Changeset 1419823
- Timestamp:
- 05/18/2016 05:48:27 PM (10 years ago)
- Location:
- hookit-related-products
- Files:
-
- 4 edited
-
tags/0.6.1/includes/filters.php (modified) (1 diff)
-
tags/0.6.1/views/recommended-products.php (modified) (2 diffs)
-
trunk/includes/filters.php (modified) (1 diff)
-
trunk/views/recommended-products.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hookit-related-products/tags/0.6.1/includes/filters.php
r1419819 r1419823 11 11 function hookit_recommended_products_the_content( $content ) { 12 12 if( is_singular() ) { 13 ob_start(); 14 hookit_recommended_products_consume_ws( 'ping' ); 15 require __DIR__ . '/../views/recommended-products.php'; 16 $content .= ob_get_clean(); 13 $products = hookit_recommended_products_get_products( get_the_ID() ); 14 15 // Doesn't show recommended products elements if the post hadn't or deactivated for the post 16 if( is_array( $products ) && hookit_recommended_products_is_active_post( get_the_ID() ) ) { 17 ob_start(); 18 hookit_recommended_products_consume_ws( 'ping' ); 19 require __DIR__ . '/../views/recommended-products.php'; 20 $content .= ob_get_clean(); 21 } 17 22 } 18 23 -
hookit-related-products/tags/0.6.1/views/recommended-products.php
r1419819 r1419823 2 2 3 3 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 4 5 $products = hookit_recommended_products_get_products( get_the_ID() );6 7 // Doesn't show recommended products elements if the post hadn't or deactivated for the post8 if( is_array( $products ) && hookit_recommended_products_is_active_post( get_the_ID() ) ) :9 4 10 5 ?> … … 55 50 <?php do_action( 'hookit_recommended_products_after_products' ) ?> 56 51 </div> 57 <?php endif; ?> -
hookit-related-products/trunk/includes/filters.php
r1419819 r1419823 11 11 function hookit_recommended_products_the_content( $content ) { 12 12 if( is_singular() ) { 13 ob_start(); 14 hookit_recommended_products_consume_ws( 'ping' ); 15 require __DIR__ . '/../views/recommended-products.php'; 16 $content .= ob_get_clean(); 13 $products = hookit_recommended_products_get_products( get_the_ID() ); 14 15 // Doesn't show recommended products elements if the post hadn't or deactivated for the post 16 if( is_array( $products ) && hookit_recommended_products_is_active_post( get_the_ID() ) ) { 17 ob_start(); 18 hookit_recommended_products_consume_ws( 'ping' ); 19 require __DIR__ . '/../views/recommended-products.php'; 20 $content .= ob_get_clean(); 21 } 17 22 } 18 23 -
hookit-related-products/trunk/views/recommended-products.php
r1419216 r1419823 2 2 3 3 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 4 5 $products = hookit_recommended_products_get_products( get_the_ID() );6 7 // Doesn't show recommended products elements if the post hadn't or deactivated for the post8 if( is_array( $products ) && hookit_recommended_products_is_active_post( get_the_ID() ) ) :9 4 10 5 ?> … … 55 50 <?php do_action( 'hookit_recommended_products_after_products' ) ?> 56 51 </div> 57 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.