Changeset 3166998
- Timestamp:
- 10/11/2024 08:16:41 AM (17 months ago)
- Location:
- sb-random-posts-widget
- Files:
-
- 2 edited
-
tags/1.1/classes.php (modified) (2 diffs)
-
trunk/classes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sb-random-posts-widget/tags/1.1/classes.php
r3166112 r3166998 20 20 ), $atts ); 21 21 22 $item_file = sanitize_file_name( 'shortcode-content-'. $atts['type'] .'.php' ); 23 $view_file = dirname(__FILE__) . '/parts/' . $item_file; 24 25 if ( ! file_exists ( $view_file ) ) { 26 $view_file = dirname(__FILE__) . '/parts/shortcode-content-image_only.php'; 27 } 28 22 29 $args = array( 23 30 'post_type' => $atts['post_type'], … … 33 40 while ( $q->have_posts() ) : 34 41 $q->the_post(); 35 include dirname(__FILE__) . '/parts/ shortcode-content-'. $atts['type'] .'.php';42 include dirname(__FILE__) . '/parts/' . $view_file; 36 43 endwhile; 37 44 wp_reset_query(); -
sb-random-posts-widget/trunk/classes.php
r3166110 r3166998 20 20 ), $atts ); 21 21 22 $item_file = sanitize_file_name( 'shortcode-content-'. $atts['type'] .'.php' ); 23 $view_file = dirname(__FILE__) . '/parts/' . $item_file; 24 25 if ( ! file_exists ( $view_file ) ) { 26 $view_file = dirname(__FILE__) . '/parts/shortcode-content-image_only.php'; 27 } 28 22 29 $args = array( 23 30 'post_type' => $atts['post_type'], … … 33 40 while ( $q->have_posts() ) : 34 41 $q->the_post(); 35 include dirname(__FILE__) . '/parts/ shortcode-content-'. $atts['type'] .'.php';42 include dirname(__FILE__) . '/parts/' . $view_file; 36 43 endwhile; 37 44 wp_reset_query();
Note: See TracChangeset
for help on using the changeset viewer.