This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://docs.woothemes.com/document/change-number-of-products-per-row/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Responsive Top Nav Toggle */ | |
#responsive-icons { | |
position: absolute; right: 0px; top:10px; z-index: 5000; font-size: 30px; | |
} | |
#responsive-icons a { | |
margin-right: 10px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Settings | |
global $BambooPlugin; // we'll need this below | |
$default_plugins = $BambooPlugin->get_setting('req_plugins_arr','array'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function save_settings() { | |
if( isset($_REQUEST["{$this->prefix}_setting"]) && check_admin_referer("save_{$this->prefix}_settings","{$this->prefix}_save") ) { | |
$new_settings = $_REQUEST["{$this->prefix}_setting"]; | |
foreach( $new_settings as $setting_name => $setting_value ) { | |
foreach( $setting_value as $type => $value ) { | |
echo '<br> t1 <br>'; | |
if( is_array($value) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//add placeholder for subscribe form | |
$(".widget_ns_mailchimp input").focus(function(){ | |
showEmptyLabels(); | |
$(this).siblings("label").stop().fadeOut(); | |
}); | |
$(".widget_ns_mailchimp input").blur(function(){ | |
showEmptyLabels(); | |
}); | |
$(".widget_ns_mailchimp label").bind("click", function() { | |
$(this).siblings("div").find("input, textarea").focus(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# END WordPress | |
AuthType Basic | |
AuthName "restricted area" | |
AuthUserFile /home/rstage/public_html/.htpasswd | |
require valid-user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// WooCommerce Shipping Calculated after Coupon | |
add_filter( 'woocommerce_shipping_free_shipping_is_available', 'filter_shipping', 10, 2 ); | |
function filter_shipping( $is_available, $package ) { | |
if ( WC()->cart->prices_include_tax ) | |
$total = WC()->cart->cart_contents_total + array_sum( WC()->cart->taxes ); | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action ('template_redirect','hide_fe'); | |
function hide_fe() { | |
if (!is_admin()) { | |
wp_redirect(admin_url('/', 'http'), 301); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Display the "Business" slider above the default WordPress homepage. | |
add_action( 'get_header', 'woo_custom_load_biz_slider', 10 ); | |
function woo_slider_biz_new() { | |
$args = array( | |
'slide_page' => 394, | |
'use_slide_page' => true | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Cart - Basket Text | |
function wpa_change_my_basket_text( $translated_text, $text, $domain ){ | |
if( $domain == 'woothemes' && $translated_text == 'Cart:' ) | |
$translated_text = 'Basket:'; | |
return $translated_text; | |
} |