Changeset 1047577
- Timestamp:
- 12/17/2014 09:22:23 PM (11 years ago)
- Location:
- woocommerce-category-banner/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
woocommerce-category-banner.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-category-banner/trunk/readme.txt
r1046236 r1047577 3 3 Tags: woocommerce, category, product, banner, image, archive, shop 4 4 Donate Link: http://wpbackoffice.com/plugins/woocommerce-category-banner/ 5 Requires at least: 2.35 Requires at least: 3.5 6 6 Tested up to: 4.0.1 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 56 56 == Changelog == 57 57 58 = 1.1.2 = 59 * Bug fix, notice was appearing with WP DEBUG set to true 60 58 61 = 1.1.1 = 59 62 * Adding Template tag for custom banner position for custom product category templates. -
woocommerce-category-banner/trunk/woocommerce-category-banner.php
r1046236 r1047577 4 4 Plugin URI: http://www.wpbackoffice.com/plugins/woocommerce-category-banner/ 5 5 Description: Place a custom banner and link at the top of your product category pages. Easily update the image through your product category edit page. 6 Version: 1.1. 16 Version: 1.1.2 7 7 Author: WP BackOffice 8 8 Author URI: http://www.wpbackoffice.com … … 160 160 161 161 // Retreives and print the category banner 162 public function wcb_show_category_banner( $only_for_categories = true) {162 public function wcb_show_category_banner() { 163 163 global $woocommerce; 164 164 global $wp_query; 165 165 166 166 // Make sure this is a product category page 167 if ( is_product_category() || !$only_for_categories) {167 if ( is_product_category() ) { 168 168 $cat_id = $wp_query->queried_object->term_id; 169 169 … … 205 205 function wcb_show_category_banner() { 206 206 global $WCB_Category_Banner; 207 $WCB_Category_Banner->wcb_show_category_banner( false); //disable the only show for category tag.207 $WCB_Category_Banner->wcb_show_category_banner(); //disable the only show for category tag. 208 208 }
Note: See TracChangeset
for help on using the changeset viewer.