Plugin Directory

Changeset 707530


Ignore:
Timestamp:
05/03/2013 04:53:32 PM (13 years ago)
Author:
ansimation
Message:

1.7.1

  • Fixes bug in widget when not previously using the optional (now mandatory) template API introduced in 1.6
Location:
tb-testimonials/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tb-testimonials/trunk/readme.txt

    r704688 r707530  
    55Requires at least: 3.0
    66Tested up to: 3.6
    7 Stable tag: 1.7
     7Stable tag: 1.7.1
    88
    99Powerful 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.
     
    4545
    4646== 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
    4750
    4851= 1.7 =
  • tb-testimonials/trunk/tb-testimonials.php

    r704688 r707530  
    44*   Plugin URI: http://travisballard.com/wordpress/tb-testimonials/
    55*   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
    77*   Author: Travis Ballard
    88*   Author URI: http://www.travisballard.com
  • tb-testimonials/trunk/tbtestimonials-widget.php

    r648155 r707530  
    104104            </label>
    105105        </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>
    116114        <p>
    117115            <?php if( ! isset( $instance['loop_all'] ) ) $instance['loop_all'] = 'true'; ?>
     
    285283            {
    286284                $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'] );
    291286            }
    292287
Note: See TracChangeset for help on using the changeset viewer.