Changeset 707530
- Timestamp:
- 05/03/2013 04:53:32 PM (13 years ago)
- Location:
- tb-testimonials/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
tb-testimonials.php (modified) (1 diff)
-
tbtestimonials-widget.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tb-testimonials/trunk/readme.txt
r704688 r707530 5 5 Requires at least: 3.0 6 6 Tested up to: 3.6 7 Stable tag: 1.7 7 Stable tag: 1.7.1 8 8 9 9 Powerful Testimonial Management. Create and use custom Output Templates anywhere on your site. Use the shortcode, function, or included widget to display your testimonials to your users. … … 45 45 46 46 == Changelog == 47 48 = 1.7.1 = 49 * Fixes bug in widget when not previously using the optional (now mandatory) template API introduced in 1.6 47 50 48 51 = 1.7 = -
tb-testimonials/trunk/tb-testimonials.php
r704688 r707530 4 4 * Plugin URI: http://travisballard.com/wordpress/tb-testimonials/ 5 5 * Description: Powerful Testimonial Management. Create and use custom Output Templates anywhere on your site. Use the shortcode, function, or included widget to display your testimonials to your users. 6 * Version: 1.7 6 * Version: 1.7.1 7 7 * Author: Travis Ballard 8 8 * Author URI: http://www.travisballard.com -
tb-testimonials/trunk/tbtestimonials-widget.php
r648155 r707530 104 104 </label> 105 105 </p> 106 <?php if( isset( $tbtestimonials->settings['use_template_api'] ) ) : ?> 107 <p> 108 <label for="<?php echo $this->get_field_id( 'template' ); ?>"><?php _e( 'Output Template:' ); ?></label> 109 <select name="<?php echo $this->get_field_name( 'template' ); ?>" id="<?php echo $this->get_field_id; ?>" class="widefat"> 110 <?php foreach( $tbtestimonials->templates as $template_id => $template ) : ?> 111 <option value="<?php echo $template_id; ?>" <?php selected( $template_id, $instance['template'] ); ?> ><?php echo $template->name(); ?></option> 112 <?php endforeach; ?> 113 </select> 114 </p> 115 <?php endif; ?> 106 <p> 107 <label for="<?php echo $this->get_field_id( 'template' ); ?>"><?php _e( 'Output Template:' ); ?></label> 108 <select name="<?php echo $this->get_field_name( 'template' ); ?>" id="<?php echo $this->get_field_id; ?>" class="widefat"> 109 <?php foreach( $tbtestimonials->templates as $template_id => $template ) : ?> 110 <option value="<?php echo $template_id; ?>" <?php selected( $template_id, $instance['template'] ); ?> ><?php echo $template->name(); ?></option> 111 <?php endforeach; ?> 112 </select> 113 </p> 116 114 <p> 117 115 <?php if( ! isset( $instance['loop_all'] ) ) $instance['loop_all'] = 'true'; ?> … … 285 283 { 286 284 $testimonials->the_post(); 287 if( isset( $tbtestimonials->settings['use_template_api'] ) ) 288 $t[] = $tbtestimonials->prepare_testimonial( $instance['template'] ); 289 else 290 $t[] = $tbtestimonials->deprecated__prepare_testimonial( 'widget' ); 285 $t[] = $tbtestimonials->prepare_testimonial( $instance['template'] ); 291 286 } 292 287
Note: See TracChangeset
for help on using the changeset viewer.