Changeset 1411753
- Timestamp:
- 05/06/2016 02:35:43 PM (10 years ago)
- Location:
- hookit-related-products
- Files:
-
- 33 added
- 4 edited
-
tags/0.5.3 (added)
-
tags/0.5.3/admin (added)
-
tags/0.5.3/admin/actions.php (added)
-
tags/0.5.3/admin/functions.php (added)
-
tags/0.5.3/admin/metabox.php (added)
-
tags/0.5.3/admin/settings.php (added)
-
tags/0.5.3/admin/views (added)
-
tags/0.5.3/admin/views/metabox.php (added)
-
tags/0.5.3/admin/views/settings.php (added)
-
tags/0.5.3/assets (added)
-
tags/0.5.3/assets/css (added)
-
tags/0.5.3/assets/css/admin.css (added)
-
tags/0.5.3/assets/css/multi-select.css (added)
-
tags/0.5.3/assets/css/style.css (added)
-
tags/0.5.3/assets/img (added)
-
tags/0.5.3/assets/img/switch.png (added)
-
tags/0.5.3/assets/js (added)
-
tags/0.5.3/assets/js/jquery.multi-select.js (added)
-
tags/0.5.3/assets/js/script.js (added)
-
tags/0.5.3/hookit-recommended-products.php (added)
-
tags/0.5.3/includes (added)
-
tags/0.5.3/includes/actions.php (added)
-
tags/0.5.3/includes/filters.php (added)
-
tags/0.5.3/includes/functions.php (added)
-
tags/0.5.3/index.php (added)
-
tags/0.5.3/init.php (added)
-
tags/0.5.3/languages (added)
-
tags/0.5.3/languages/hookit-recommended-products-pt_BR.mo (added)
-
tags/0.5.3/languages/hookit-recommended-products-pt_BR.po (added)
-
tags/0.5.3/languages/hookit-recommended-products.pot (added)
-
tags/0.5.3/readme.txt (added)
-
tags/0.5.3/views (added)
-
tags/0.5.3/views/recommended-products.php (added)
-
trunk/hookit-recommended-products.php (modified) (1 diff)
-
trunk/includes/filters.php (modified) (1 diff)
-
trunk/includes/functions.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hookit-related-products/trunk/hookit-recommended-products.php
r1408115 r1411753 3 3 /** 4 4 * Plugin Name: Hookit Recommended Products 5 * Version: 0.5. 25 * Version: 0.5.3 6 6 * Plugin URI: https://bitbucket.org/edpittol/hookit-recommended-products 7 7 * Description: WordPress plugin to get Hookit related products from a post -
hookit-related-products/trunk/includes/filters.php
r1337359 r1411753 11 11 if( is_singular() ) { 12 12 ob_start(); 13 require _once__DIR__ . '/../views/recommended-products.php';13 require __DIR__ . '/../views/recommended-products.php'; 14 14 $content .= ob_get_clean(); 15 15 } -
hookit-related-products/trunk/includes/functions.php
r1408115 r1411753 6 6 7 7 /** 8 * Verify if the category must process the products. 8 * Verify if the category must process the products. If any category was 9 * selected, consider apply the recommended products for all. 9 10 * 10 11 * @param WP_Term $category The category … … 12 13 */ 13 14 function hookit_recommended_products_is_active_category( $category ) { 14 return in_array( $category->term_id, get_option( 'hookit_recommended_products_categories' ) ); 15 $categories = get_option( 'hookit_recommended_products_categories', array() ); 16 if( empty( $categories ) ) { 17 return true; 18 } 19 20 return in_array( $category->term_id, $categories ); 15 21 } 16 22 -
hookit-related-products/trunk/readme.txt
r1408115 r1411753 35 35 == Changelog == 36 36 37 = 0.5.3 = 38 * Consertado múltiplas chamadas ao filtro the_content 39 * Ativa os produtos recomendados para todas categorias se nenhuma categoria for selecionada 40 37 41 = 0.5.2 = 38 42 * Consertado retorno de erro do web service, quando existir
Note: See TracChangeset
for help on using the changeset viewer.