Changeset 2089782
- Timestamp:
- 05/17/2019 10:12:09 AM (7 years ago)
- Location:
- wpstudio-testimonial-slider/trunk
- Files:
-
- 4 edited
-
genesis-testimonials.php (modified) (1 diff)
-
inc/gts-frontend.php (modified) (8 diffs)
-
readme.md (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpstudio-testimonial-slider/trunk/genesis-testimonials.php
r1978852 r2089782 4 4 * Plugin URI: http://wpstud.io/plugins 5 5 * 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. 36 * Version: 1.4 7 7 * Author: Frank Schrijvers, WPStudio 8 8 * Author URI: http://www.wpstud.io -
wpstudio-testimonial-slider/trunk/inc/gts-frontend.php
r1978852 r2089782 31 31 * Opening Markup. 32 32 */ 33 function gts_markup_open() { 33 if ( ! function_exists( 'gts_markup_open' ) ) { 34 function gts_markup_open() { 34 35 35 echo '<li itemprop="review" itemscope itemtype="http://schema.org/Review">';36 echo '<li>'; 36 37 38 } 37 39 } 38 40 … … 40 42 * Testimonial Image Top. 41 43 */ 42 function gts_image_top() { 44 if ( ! function_exists( 'gts_image_top' ) ) { 45 function gts_image_top() { 43 46 44 if ( genesis_get_option( 'gts_image', 'gts-settings' ) != 'bottom' && has_post_thumbnail() ) {47 if ( genesis_get_option( 'gts_image', 'gts-settings' ) != 'bottom' && has_post_thumbnail() ) { 45 48 46 echo the_post_thumbnail( 'gts-thumbnail' );49 echo the_post_thumbnail( 'gts-thumbnail' ); 47 50 51 } 48 52 } 49 53 } … … 52 56 * Testimonial Rating. 53 57 */ 54 function gts_rating() { 58 if ( ! function_exists( 'gts_rating' ) ) { 59 function gts_rating() { 55 60 56 $rating = get_post_meta( get_the_ID(), '_gts_rating', true );61 $rating = get_post_meta( get_the_ID(), '_gts_rating', true ); 57 62 58 if ( ! empty( $rating ) ) {63 if ( ! empty( $rating ) ) { 59 64 60 echo '<div class="gts-rating">';61 echo sprintf( '<span class="screen-reader-text" itemprop="reviewRating">%s</span>', $rating );65 echo '<div class="gts-rating">'; 66 echo sprintf( '<span class="screen-reader-text">%s</span>', $rating ); 62 67 63 // Loop through rating number and display star. 64 for ( $i = 0; $i < $rating; $i++ ) { 65 echo '<span class="star"></span>'; 68 // Loop through rating number and display star. 69 for ( $i = 0; $i < $rating; $i++ ) { 70 echo '<span class="star"></span>'; 71 } 72 73 echo '</div>'; 66 74 } 67 75 68 echo '</div>';69 76 } 70 71 77 } 72 78 … … 74 80 * Testimonial Content. 75 81 */ 76 function gts_content() { 82 if ( ! function_exists( 'gts_content' ) ) { 83 function gts_content() { 77 84 78 echo '<blockquote itemprop="reviewBody">' . get_the_content() . '</blockquote>';85 echo '<blockquote>' . get_the_content() . '</blockquote>'; 79 86 87 } 80 88 } 81 89 … … 83 91 * Testimonial Title. 84 92 */ 85 function gts_title() { 93 if ( ! function_exists( 'gts_title' ) ) { 94 function gts_title() { 86 95 87 echo '<h5 itemprop="author">' . get_the_title() . '</h5>';96 echo '<h5>' . get_the_title() . '</h5>'; 88 97 98 } 89 99 } 90 100 … … 92 102 * Testimonial Image Bottom. 93 103 */ 94 function gts_image_bottom() { 104 if ( ! function_exists( 'gts_image_bottom' ) ) { 105 function gts_image_bottom() { 95 106 96 if ( genesis_get_option( 'gts_image', 'gts-settings' ) === 'bottom' && has_post_thumbnail() ) {107 if ( genesis_get_option( 'gts_image', 'gts-settings' ) === 'bottom' && has_post_thumbnail() ) { 97 108 98 echo the_post_thumbnail( 'gts-thumbnail' );109 echo the_post_thumbnail( 'gts-thumbnail' ); 99 110 111 } 100 112 } 101 113 } … … 104 116 * Testimonial Company. 105 117 */ 106 function gts_company() { 118 if ( ! function_exists( 'gts_company' ) ) { 119 function gts_company() { 107 120 108 $company = '<span class="gts-company">' . get_post_meta( get_the_ID(), '_gts_company', true ) . '</span>';121 $company = '<span class="gts-company">' . get_post_meta( get_the_ID(), '_gts_company', true ) . '</span>'; 109 122 110 if ( ! empty( $company ) ) {123 if ( ! empty( $company ) ) { 111 124 112 echo $company;125 echo $company; 113 126 127 } 114 128 } 115 129 } … … 119 133 * Closing Markup. 120 134 */ 121 function gts_markup_close() { 135 if ( ! function_exists( 'gts_markup_close' ) ) { 136 function gts_markup_close() { 122 137 123 echo '</li>';138 echo '</li>'; 124 139 140 } 125 141 } 126 142 -
wpstudio-testimonial-slider/trunk/readme.md
r1978852 r2089782 4 4 * Tags: testimonials, testimonial, testimonials plugin, widget, genesis, slider, Genesis Framework, genesiswp 5 5 * Requires at least: 3.6 6 * Tested up to: 5. 07 * Stable tag: 1. 36 * Tested up to: 5.2 7 * Stable tag: 1.4 8 8 * License: GPLv2 or later 9 9 * License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 60 60 61 61 ## Changelog 62 63 **1.4** 64 - Tweak: removed Structured Data. Testimonials are used in many diffrent ways. The structured data is a limitation here. 65 - Bug fix: fixed Fatal error when shortcode and widget are used on same page. 62 66 63 67 **1.3** -
wpstudio-testimonial-slider/trunk/readme.txt
r1978852 r2089782 3 3 Tags: testimonials, testimonial, testimonials plugin, widget, genesis, slider, Genesis Framework, genesiswp 4 4 Requires at least: 3.6 5 Tested up to: 5. 06 Stable tag: 1. 35 Tested up to: 5.2 6 Stable tag: 1.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 60 60 == Changelog == 61 61 62 = 1.4 = 63 * Tweak: removed Structured Data. Testimonials are used in many diffrent ways. The structured data is a limitation here. 64 * Bug fix: fixed Fatal error when shortcode and widget are used on same page. 65 62 66 = 1.3 = 63 67 * New: Add option to show testimonials in random order.
Note: See TracChangeset
for help on using the changeset viewer.