Plugin Directory

Changeset 1978852


Ignore:
Timestamp:
11/22/2018 02:26:12 PM (7 years ago)
Author:
frankschrijvers
Message:

Add option to show testimonials in random order

Location:
wpstudio-testimonial-slider/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wpstudio-testimonial-slider/trunk/genesis-testimonials.php

    r1956479 r1978852  
    44 * Plugin URI: http://wpstud.io/plugins
    55 * Description: The Genesis Testimonials Slider is a simple-to-use plugin for adding Testimonials to your Genesis Theme, using a shortcode or a widget.
    6  * Version: 1.2.6
     6 * Version: 1.3
    77 * Author: Frank Schrijvers, WPStudio
    88 * Author URI: http://www.wpstud.io
  • wpstudio-testimonial-slider/trunk/inc/gts-admin.php

    r1834420 r1978852  
    4141                'gts_loop'     => 'yes',
    4242                'gts_effect'   => 'slide',
     43                'gts_order'    => 'no',
    4344                'gts_pause'    => 'yes',
    4445                'gts_speed'    => '6000',
     
    6465                'gts_controls',
    6566                'gts_effect',
     67                'gts_order',
    6668                'gts_loop',
    6769                'gts_number',
     
    117119
    118120        <p>
     121            <label style="width: 180px; margin: 0 40px 0 0; font-weight: bold; display: inline-block;" for="<?php echo $this->get_field_name( 'gts_order' ); ?>"><?php _e( 'Show random:', 'gts-widget' ); ?></label>
     122            <select name="<?php echo $this->get_field_name( 'gts_order' ); ?>">
     123                <?php
     124                $positions = array( 'yes', 'no' );
     125                foreach ( $positions as $position ) {
     126                    echo '<option value="' . $position . '"' . selected( $this->get_field_value( 'gts_order' ), '' . $position ) . '>' . $position . '</option>';
     127                }
     128                ?>
     129            </select>
     130
     131        </p>
     132
     133        <p>
    119134            <label style="width: 180px; margin: 0 40px 0 0; font-weight: bold; display: inline-block;" for="<?php echo $this->get_field_name( 'gts_autoplay' ); ?>"><?php _e( 'Auto play:', 'gts-widget' ); ?></label>
    120135            <select name="<?php echo $this->get_field_name( 'gts_autoplay' ); ?>">
  • wpstudio-testimonial-slider/trunk/inc/gts-frontend.php

    r1834429 r1978852  
    1212echo '<ul class="testimonials-list">';
    1313
     14if ( genesis_get_option( 'gts_order', 'gts-settings' ) === 'yes' ) {
     15
     16    $orderby = 'rand';
     17
     18} else {
     19
     20    $orderby = 'date';
     21}
     22
     23
    1424$loop = new WP_Query( array(
    1525    'post_type'      => 'Testimonial',
    1626    'posts_per_page' => -1,
     27    'orderby'        => $orderby,
    1728) );
    1829
     
    2132 */
    2233function gts_markup_open() {
     34
    2335    echo '<li itemprop="review" itemscope itemtype="http://schema.org/Review">';
     36
    2437}
    2538
  • wpstudio-testimonial-slider/trunk/readme.md

    r1956479 r1978852  
    44* Tags: testimonials, testimonial, testimonials plugin, widget, genesis, slider, Genesis Framework, genesiswp
    55* Requires at least: 3.6
    6 * Tested up to: 4.9.4
    7 * Stable tag: 1.2.6
     6* Tested up to: 5.0
     7* Stable tag: 1.3
    88* License: GPLv2 or later
    99* License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060
    6161## Changelog
     62
     63**1.3**
     64- New: Add option to show testimonials in random order.
    6265
    6366**1.2.6**
  • wpstudio-testimonial-slider/trunk/readme.txt

    r1956479 r1978852  
    33Tags: testimonials, testimonial, testimonials plugin, widget, genesis, slider, Genesis Framework, genesiswp
    44Requires at least: 3.6
    5 Tested up to: 4.9.8
    6 Stable tag: 1.2.6
     5Tested up to: 5.0
     6Stable tag: 1.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060== Changelog ==
    6161
     62= 1.3 =
     63* New: Add option to show testimonials in random order.
     64
    6265= 1.2.6 =
    6366* Bug fix: fixed check wich causes a error 500 if switched to an none Genesis theme.
Note: See TracChangeset for help on using the changeset viewer.