Version Description
- CSS is back to being always loaded in the header
- Removed "Use bxSlider?" and "Include IE7 CSS" from widget options
Download this release
Release Info
Developer | comprock |
Plugin | Testimonials Widget |
Version | 2.18.1 |
Comparing to | |
See all releases |
Code changes from version 2.18.0 to 2.18.1
- CHANGELOG.md +22 -1
- README.md +1 -1
- includes/class-testimonials-widget-settings.php +3 -14
- includes/class-testimonials-widget.php +102 -36
- includes/libraries/aihrus-framework/CHANGELOG.md +10 -1
- includes/libraries/aihrus-framework/class-aihrus-common.php +4 -2
- includes/libraries/aihrus-framework/class-aihrus-settings.php +16 -1
- includes/libraries/aihrus-framework/requirements.php +1 -1
- languages/testimonials-widget.pot +113 -113
- readme.txt +21 -9
- testimonials-widget.php +29 -9
CHANGELOG.md
CHANGED
@@ -2,6 +2,27 @@
|
|
2 |
|
3 |
## master
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
## 2.18.0
|
6 |
* Add Codeship.io status
|
7 |
* Check for init and theme functions to exist
|
@@ -23,7 +44,7 @@
|
|
23 |
* Update verbiage
|
24 |
* Use $plugin_assets than $plugin_path
|
25 |
|
26 |
-
## 2.17.3
|
27 |
* RESOLVE #44 Blank testimonial between each rotating testimonial
|
28 |
|
29 |
## 2.17.2
|
2 |
|
3 |
## master
|
4 |
|
5 |
+
## 2.18.1
|
6 |
+
* Add FAQ How do I create a testimonial record?
|
7 |
+
* Add screenshot 21. Shortcode helpers on category and tag admin screens
|
8 |
+
* Correct Codeship image include
|
9 |
+
* jQuery 1.10+ note
|
10 |
+
* Remove "Use bxSlider?" and "Include IE7 CSS" from widget options
|
11 |
+
* Remove option "Always Load CSS?" `force_css_loading`
|
12 |
+
* Remove Travis CI configuration. Using Codeship.io instead
|
13 |
+
* Require Aihrus Framework 1.0.3
|
14 |
+
* RESOLVE #2 Add shortcode column to categories page
|
15 |
+
* RESOLVE #3 Add shortcode column to tags page
|
16 |
+
* RESOLVE #54 Notice: Constant TW_AIHR_VERSION already defined
|
17 |
+
* RESOLVE #8 Validate HTML
|
18 |
+
* RESOLVE Featured image via Gravatar not saving correctly
|
19 |
+
* RESOLVE Not passing requirements failure to premium plugin
|
20 |
+
* RESOLVE Schema output cluttered up single view
|
21 |
+
* RESOLVE Scripts not loading in footer
|
22 |
+
* Support JetPack's Publicize module
|
23 |
+
* Verbiage updates
|
24 |
+
* Widgets don't rotate notice
|
25 |
+
|
26 |
## 2.18.0
|
27 |
* Add Codeship.io status
|
28 |
* Check for init and theme functions to exist
|
44 |
* Update verbiage
|
45 |
* Use $plugin_assets than $plugin_path
|
46 |
|
47 |
+
## 2.17.3
|
48 |
* RESOLVE #44 Blank testimonial between each rotating testimonial
|
49 |
|
50 |
## 2.17.2
|
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
# README Testimonials WordPress Plugin
|
2 |
|
3 |
-
[Codeship status](https://www.codeship.io/projects/b5524630-43f6-0131-3b4d-76a8e32a74d4/status)
|
4 |
[![ProjectStatus](http://stillmaintained.com/michael-cannon/testimonials-widget.png)](http://stillmaintained.com/michael-cannon/testimonials-widget)
|
5 |
|
6 |
## Welcome to the Testimonials Github repository
|
1 |
# README Testimonials WordPress Plugin
|
2 |
|
3 |
+
[![Codeship status](https://www.codeship.io/projects/b5524630-43f6-0131-3b4d-76a8e32a74d4/status)](https://www.codeship.io/projects/10739)
|
4 |
[![ProjectStatus](http://stillmaintained.com/michael-cannon/testimonials-widget.png)](http://stillmaintained.com/michael-cannon/testimonials-widget)
|
5 |
|
6 |
## Welcome to the Testimonials Github repository
|
includes/class-testimonials-widget-settings.php
CHANGED
@@ -342,7 +342,7 @@ class Testimonials_Widget_Settings extends Aihrus_Settings {
|
|
342 |
);
|
343 |
|
344 |
self::$settings['do_shortcode'] = array(
|
345 |
-
'title' => esc_html__( '
|
346 |
'desc' => esc_html__( 'If unchecked, shortcodes are stripped.', 'testimonials-widget' ),
|
347 |
'type' => 'checkbox',
|
348 |
'validate' => 'is_true',
|
@@ -545,6 +545,7 @@ class Testimonials_Widget_Settings extends Aihrus_Settings {
|
|
545 |
'std' => 0,
|
546 |
),
|
547 |
'std' => 1,
|
|
|
548 |
);
|
549 |
|
550 |
self::$settings['disable_animation'] = array(
|
@@ -593,18 +594,6 @@ class Testimonials_Widget_Settings extends Aihrus_Settings {
|
|
593 |
'validate' => 'min1',
|
594 |
);
|
595 |
|
596 |
-
self::$settings['force_css_loading'] = array(
|
597 |
-
'section' => 'reset',
|
598 |
-
'title' => esc_html__( 'Always Load CSS?', 'testimonials-widget' ),
|
599 |
-
'desc' => esc_html__( 'Pre 2.14.0, Testimonials\' CSS was always loaded, whether needed or not', 'testimonials-widget' ),
|
600 |
-
'type' => 'checkbox',
|
601 |
-
'validate' => 'is_true',
|
602 |
-
'backwards' => array(
|
603 |
-
'version' => '2.14.0',
|
604 |
-
'std' => 1,
|
605 |
-
),
|
606 |
-
);
|
607 |
-
|
608 |
self::$settings['include_ie7_css'] = array(
|
609 |
'section' => 'reset',
|
610 |
'title' => esc_html__( 'Include IE7 CSS?', 'testimonials-widget' ),
|
@@ -615,7 +604,7 @@ class Testimonials_Widget_Settings extends Aihrus_Settings {
|
|
615 |
'version' => '2.13.6',
|
616 |
'std' => 1,
|
617 |
),
|
618 |
-
'widget' =>
|
619 |
);
|
620 |
|
621 |
self::$settings['use_quote_tag'] = array(
|
342 |
);
|
343 |
|
344 |
self::$settings['do_shortcode'] = array(
|
345 |
+
'title' => esc_html__( 'Enable [shortcodes]?', 'testimonials-widget' ),
|
346 |
'desc' => esc_html__( 'If unchecked, shortcodes are stripped.', 'testimonials-widget' ),
|
347 |
'type' => 'checkbox',
|
348 |
'validate' => 'is_true',
|
545 |
'std' => 0,
|
546 |
),
|
547 |
'std' => 1,
|
548 |
+
'widget' => 0,
|
549 |
);
|
550 |
|
551 |
self::$settings['disable_animation'] = array(
|
594 |
'validate' => 'min1',
|
595 |
);
|
596 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
597 |
self::$settings['include_ie7_css'] = array(
|
598 |
'section' => 'reset',
|
599 |
'title' => esc_html__( 'Include IE7 CSS?', 'testimonials-widget' ),
|
604 |
'version' => '2.13.6',
|
605 |
'std' => 1,
|
606 |
),
|
607 |
+
'widget' => 0,
|
608 |
);
|
609 |
|
610 |
self::$settings['use_quote_tag'] = array(
|
includes/class-testimonials-widget.php
CHANGED
@@ -123,6 +123,17 @@ class Testimonials_Widget extends Aihrus_Common {
|
|
123 |
add_filter( 'plugin_row_meta', array( __CLASS__, 'plugin_row_meta' ), 10, 2 );
|
124 |
add_filter( 'post_updated_messages', array( __CLASS__, 'post_updated_messages' ) );
|
125 |
add_filter( 'pre_get_posts', array( __CLASS__, 'pre_get_posts_author' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
}
|
127 |
|
128 |
|
@@ -132,7 +143,7 @@ class Testimonials_Widget extends Aihrus_Common {
|
|
132 |
|
133 |
|
134 |
public static function init() {
|
135 |
-
add_filter( 'the_content', array( __CLASS__, 'get_single' ) );
|
136 |
|
137 |
load_plugin_textdomain( self::PT, false, 'testimonials-widget/languages' );
|
138 |
|
@@ -140,10 +151,7 @@ class Testimonials_Widget extends Aihrus_Common {
|
|
140 |
self::$cpt_tags = self::PT . '-post_tag';
|
141 |
|
142 |
self::init_post_type();
|
143 |
-
|
144 |
-
$force_css_loading = tw_get_option( 'force_css_loading' );
|
145 |
-
if ( $force_css_loading )
|
146 |
-
self::styles();
|
147 |
}
|
148 |
|
149 |
|
@@ -216,16 +224,9 @@ class Testimonials_Widget extends Aihrus_Common {
|
|
216 |
$details = self::get_testimonial_html( $testimonial, $atts );
|
217 |
$details = apply_filters( 'testimonials_widget_testimonial_html_single', $details, $testimonial, $atts );
|
218 |
|
219 |
-
$do_schema = $atts['enable_schema'];
|
220 |
-
if ( $do_schema )
|
221 |
-
$content = self::create_schema_span( self::$review_body, $content );
|
222 |
-
|
223 |
$content = apply_filters( 'testimonials_widget_testimonial_html_single_content', $content, $testimonial, $atts );
|
224 |
|
225 |
$text = $content . $details;
|
226 |
-
if ( $do_schema )
|
227 |
-
$text = self::create_schema_div_prop( self::$cw_review, self::$review_schema, $text );
|
228 |
-
|
229 |
$text = apply_filters( 'testimonials_widget_cache_set', $text, $atts );
|
230 |
}
|
231 |
|
@@ -330,7 +331,7 @@ class Testimonials_Widget extends Aihrus_Common {
|
|
330 |
public static function notice_2_12_0() {
|
331 |
$text = sprintf( __( 'If your Testimonials display has gone to funky town, please <a href="%s">read the FAQ</a> about possible CSS fixes.', 'testimonials-widget' ), esc_url( 'https://aihrus.zendesk.com/entries/23722573-Major-Changes-Since-2-10-0' ) );
|
332 |
|
333 |
-
|
334 |
}
|
335 |
|
336 |
|
@@ -586,6 +587,7 @@ class Testimonials_Widget extends Aihrus_Common {
|
|
586 |
'title',
|
587 |
'editor',
|
588 |
'thumbnail',
|
|
|
589 |
);
|
590 |
|
591 |
$allow_comments = tw_get_option( 'allow_comments', false );
|
@@ -742,11 +744,11 @@ class Testimonials_Widget extends Aihrus_Common {
|
|
742 |
if ( $use_bxslider ) {
|
743 |
$enable_video = $atts['enable_video'];
|
744 |
if ( $enable_video ) {
|
745 |
-
wp_register_script( 'jquery.fitvids', self::$plugin_assets . 'js/jquery.fitvids.js', array( 'jquery' ), '1.0' );
|
746 |
wp_enqueue_script( 'jquery.fitvids' );
|
747 |
}
|
748 |
|
749 |
-
wp_register_script( 'jquery.bxslider', self::$plugin_assets . 'js/jquery.bxslider.js', array( 'jquery' ), '4.1.1' );
|
750 |
wp_enqueue_script( 'jquery.bxslider' );
|
751 |
}
|
752 |
|
@@ -979,6 +981,7 @@ EOF;
|
|
979 |
$div_open = '<div class="' . $id . ' ' . $id_base . '">';
|
980 |
}
|
981 |
|
|
|
982 |
if ( empty( $testimonials ) && ! $hide_not_found ) {
|
983 |
$testimonials = array(
|
984 |
array( 'testimonial_content' => esc_html__( 'No testimonials found', 'testimonials-widget' ) ),
|
@@ -1009,7 +1012,8 @@ EOF;
|
|
1009 |
if ( $paging || $paging_after )
|
1010 |
$post_paging = self::get_testimonials_paging( $atts, false );
|
1011 |
|
1012 |
-
$div_close
|
|
|
1013 |
|
1014 |
$html = $div_open
|
1015 |
. $pre_paging
|
@@ -1027,7 +1031,6 @@ EOF;
|
|
1027 |
$disable_quotes = $atts['disable_quotes'];
|
1028 |
$do_image = ! $atts['hide_image'] && ! empty( $testimonial['testimonial_image'] );
|
1029 |
$do_image_single = ! $atts['hide_image_single'];
|
1030 |
-
$do_content = ! $atts['hide_content'];
|
1031 |
$do_schema = $atts['enable_schema'];
|
1032 |
$keep_whitespace = $atts['keep_whitespace'];
|
1033 |
$remove_hentry = $atts['remove_hentry'];
|
@@ -1058,8 +1061,10 @@ EOF;
|
|
1058 |
$div_open = '<div class="' . $class . '">';
|
1059 |
$div_open .= '<!-- ' . self::ID . ":{$post_id}: -->";
|
1060 |
|
1061 |
-
if ( $do_schema
|
|
|
1062 |
$div_open .= sprintf( self::$schema_div_open, self::$review_schema );
|
|
|
1063 |
|
1064 |
if ( $remove_hentry )
|
1065 |
$div_open = str_replace( ' hentry', '', $div_open );
|
@@ -1093,6 +1098,7 @@ EOF;
|
|
1093 |
$extra .= '<div class="extra">';
|
1094 |
$extra .= $testimonial['testimonial_extra'];
|
1095 |
$extra .= '</div>';
|
|
|
1096 |
}
|
1097 |
|
1098 |
$bottom_text = '';
|
@@ -1100,13 +1106,17 @@ EOF;
|
|
1100 |
$bottom_text = '<div class="bottom_text">';
|
1101 |
$bottom_text .= $atts['bottom_text'];
|
1102 |
$bottom_text .= '</div>';
|
|
|
1103 |
}
|
1104 |
|
1105 |
$div_close = '';
|
1106 |
-
if ( $do_schema
|
1107 |
$div_close .= '</div>';
|
|
|
|
|
1108 |
|
1109 |
$div_close .= '</div>';
|
|
|
1110 |
|
1111 |
$html = $div_open
|
1112 |
. $image
|
@@ -1133,17 +1143,12 @@ EOF;
|
|
1133 |
$content_more = apply_filters( 'testimonials_widget_content_more', esc_html__( '…', 'testimonials-widget' ) );
|
1134 |
$content_more .= self::$tag_close_quote;
|
1135 |
$do_content = ! $atts['hide_content'] && ! empty( $testimonial['testimonial_content'] );
|
1136 |
-
$do_schema = $atts['enable_schema'];
|
1137 |
$use_quote_tag = $atts['use_quote_tag'];
|
1138 |
|
1139 |
$quote = '';
|
1140 |
if ( $do_content ) {
|
1141 |
$content = $testimonial['testimonial_content'];
|
1142 |
-
if ( $do_schema )
|
1143 |
-
$content = self::create_schema_span( self::$review_body, $content );
|
1144 |
-
|
1145 |
$content = self::format_content( $content, $widget_number, $atts );
|
1146 |
-
|
1147 |
if ( $char_limit ) {
|
1148 |
$content = self::testimonials_truncate( $content, $char_limit, $content_more );
|
1149 |
$content = force_balance_tags( $content );
|
@@ -1161,6 +1166,8 @@ EOF;
|
|
1161 |
$quote .= $content;
|
1162 |
$quote .= '</q>';
|
1163 |
}
|
|
|
|
|
1164 |
}
|
1165 |
|
1166 |
return $quote;
|
@@ -1250,7 +1257,7 @@ EOF;
|
|
1250 |
$temp .= $cite;
|
1251 |
$temp .= '</div>';
|
1252 |
|
1253 |
-
$cite = $temp;
|
1254 |
} else {
|
1255 |
$cite = '<cite>' . $cite . '</cite>';
|
1256 |
}
|
@@ -1329,6 +1336,7 @@ EOF;
|
|
1329 |
$html .= ' append';
|
1330 |
|
1331 |
$html .= '">';
|
|
|
1332 |
|
1333 |
if ( $atts['paged'] )
|
1334 |
$paged = $atts['paged'];
|
@@ -1336,23 +1344,23 @@ EOF;
|
|
1336 |
$paged = 1;
|
1337 |
|
1338 |
if ( ! function_exists( 'wp_pagenavi' ) ) {
|
1339 |
-
$html .= '
|
1340 |
|
1341 |
if ( 1 < $paged ) {
|
1342 |
$laquo = apply_filters( 'testimonials_widget_previous_posts_link_text', esc_html__( '«', 'testimonials-widget' ) );
|
1343 |
$html .= get_previous_posts_link( $laquo, $paged );
|
1344 |
}
|
1345 |
|
1346 |
-
$html .= '
|
1347 |
-
|
1348 |
-
$html .= '
|
1349 |
-
|
1350 |
if ( $paged != self::$max_num_pages ) {
|
1351 |
$raquo = apply_filters( 'testimonials_widget_next_posts_link_text', esc_html__( '»', 'testimonials-widget' ) );
|
1352 |
$html .= get_next_posts_link( $raquo, self::$max_num_pages );
|
1353 |
}
|
1354 |
|
1355 |
-
$html .= '
|
|
|
1356 |
} else {
|
1357 |
$args = array(
|
1358 |
'echo' => false,
|
@@ -1361,9 +1369,11 @@ EOF;
|
|
1361 |
$args = apply_filters( 'testimonials_widget_wp_pagenavi', $args );
|
1362 |
|
1363 |
$html .= wp_pagenavi( $args );
|
|
|
1364 |
}
|
1365 |
|
1366 |
$html .= '</div>';
|
|
|
1367 |
|
1368 |
return $html;
|
1369 |
}
|
@@ -1747,6 +1757,7 @@ EOF;
|
|
1747 |
extract( $testimonial );
|
1748 |
|
1749 |
$do_company = ! $atts['hide_company'] && ! empty( $testimonial_company );
|
|
|
1750 |
$do_email = ! $atts['hide_email'] && ! empty( $testimonial_email ) && is_email( $testimonial_email );
|
1751 |
$do_image = ! $atts['hide_image'] && ! empty( $testimonial_image );
|
1752 |
$do_location = ! $atts['hide_location'] && ! empty( $testimonial_location );
|
@@ -1757,7 +1768,8 @@ EOF;
|
|
1757 |
$item_reviewed = self::clean_string( $atts['item_reviewed'] );
|
1758 |
$item_reviewed_url = self::clean_string( $atts['item_reviewed_url'] );
|
1759 |
|
1760 |
-
$schema = '
|
|
|
1761 |
|
1762 |
$agg_meta = array();
|
1763 |
$author_meta = array();
|
@@ -1802,6 +1814,7 @@ EOF;
|
|
1802 |
$author_meta = apply_filters( 'testimonials_widget_schema_author', $author_meta, $testimonial, $atts );
|
1803 |
$author = self::create_schema_div_prop( self::$cw_author, self::$person_schema, $author_meta );
|
1804 |
$schema .= $author;
|
|
|
1805 |
|
1806 |
$post = get_post( $testimonial['post_id'] );
|
1807 |
$the_date = mysql2date( 'Y-m-d', $post->post_date );
|
@@ -1809,6 +1822,9 @@ EOF;
|
|
1809 |
|
1810 |
$review_name_length = apply_filters( 'testimonials_widget_review_name_length', 156 );
|
1811 |
|
|
|
|
|
|
|
1812 |
$review_meta[ self::$cw_date ] = $the_date;
|
1813 |
$review_meta[ self::$cw_date_mod ] = $the_date_mod;
|
1814 |
$review_meta[ self::$thing_name ] = self::testimonials_truncate( $testimonial_content, $review_name_length );
|
@@ -1823,12 +1839,14 @@ EOF;
|
|
1823 |
$review_meta = apply_filters( 'testimonials_widget_schema_review', $review_meta, $testimonial, $atts );
|
1824 |
$review = self::create_schema_meta( $review_meta );
|
1825 |
$schema .= $review;
|
|
|
1826 |
|
1827 |
$agg_meta[ self::$agg_count ] = self::$found_posts;
|
1828 |
|
1829 |
$agg_meta = apply_filters( 'testimonials_widget_schema_aggregate', $agg_meta, $testimonial, $atts );
|
1830 |
$aggregate = self::create_schema_div_prop( self::$cw_aggregate, self::$agg_schema, $agg_meta );
|
1831 |
$schema .= $aggregate;
|
|
|
1832 |
|
1833 |
$item_meta[ self::$thing_name ] = $item_reviewed;
|
1834 |
$item_meta[ self::$thing_url ] = $item_reviewed_url;
|
@@ -1836,6 +1854,10 @@ EOF;
|
|
1836 |
$item_meta = apply_filters( 'testimonials_widget_schema_item', $item_meta, $testimonial, $atts );
|
1837 |
$item = self::create_schema_div_prop( self::$review_item, self::$thing_schema, $item_meta );
|
1838 |
$schema .= $item;
|
|
|
|
|
|
|
|
|
1839 |
|
1840 |
$schema = apply_filters( 'testimonials_widget_schema', $schema, $testimonial, $atts );
|
1841 |
|
@@ -1854,6 +1876,8 @@ EOF;
|
|
1854 |
$meta .= self::create_schema_div_prop( $key, $value[ 0 ], $value[ 1 ] );
|
1855 |
else
|
1856 |
$meta .= sprintf( self::$schema_meta, $key, $value );
|
|
|
|
|
1857 |
}
|
1858 |
|
1859 |
return $meta;
|
@@ -1885,6 +1909,8 @@ EOF;
|
|
1885 |
$meta .= self::create_schema_div_prop( $key, $value[ 0 ], $value[ 1 ] );
|
1886 |
else
|
1887 |
$meta .= sprintf( self::$schema_meta, $key, $value );
|
|
|
|
|
1888 |
}
|
1889 |
|
1890 |
$schema = sprintf( self::$schema_div_prop, $property_name, $schema_name, $meta );
|
@@ -1932,7 +1958,6 @@ EOF;
|
|
1932 |
$widget_number = Testimonials_Widget::get_instance();
|
1933 |
|
1934 |
self::scripts( $atts );
|
1935 |
-
self::styles();
|
1936 |
|
1937 |
self::generate_css( $atts );
|
1938 |
self::generate_js( $testimonials, $atts, $widget_number );
|
@@ -1942,7 +1967,7 @@ EOF;
|
|
1942 |
public static function make_gravatar_featured( $post_id, $email ) {
|
1943 |
$size = get_option( 'large_size_w' );
|
1944 |
$image = get_avatar( $email, $size );
|
1945 |
-
$src = self::get_image_src( $image );
|
1946 |
$file = sanitize_title( $email ) . '.jpeg';
|
1947 |
|
1948 |
self::add_media( $post_id, $src, $file );
|
@@ -1952,7 +1977,7 @@ EOF;
|
|
1952 |
public static function notice_2_15_0() {
|
1953 |
$text = sprintf( __( 'If your Testimonials display has gone to funky town, please <a href="%s">read the FAQ</a> about possible fixes.', 'testimonials-widget' ), esc_url( 'https://aihrus.zendesk.com/entries/28402246-Major-Change-for-2-15-0' ) );
|
1954 |
|
1955 |
-
|
1956 |
}
|
1957 |
|
1958 |
|
@@ -2019,7 +2044,7 @@ EOD;
|
|
2019 |
if ( ! empty( $GLOBALS['pagenow'] ) && in_array( $GLOBALS['pagenow'], array( 'options.php' ) ) ) {
|
2020 |
$do_load = true;
|
2021 |
} elseif ( ! empty( $_REQUEST['post_type'] ) && self::PT == $_REQUEST['post_type'] ) {
|
2022 |
-
if ( ! empty( $GLOBALS['pagenow'] ) && in_array( $GLOBALS['pagenow'], array( 'edit.php' ) ) ) {
|
2023 |
$do_load = true;
|
2024 |
} elseif ( ! empty( $_REQUEST['page'] ) && Testimonials_Widget_Settings::ID == $_REQUEST['page'] ) {
|
2025 |
$do_load = true;
|
@@ -2028,6 +2053,47 @@ EOD;
|
|
2028 |
|
2029 |
return $do_load;
|
2030 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2031 |
}
|
2032 |
|
|
|
2033 |
?>
|
123 |
add_filter( 'plugin_row_meta', array( __CLASS__, 'plugin_row_meta' ), 10, 2 );
|
124 |
add_filter( 'post_updated_messages', array( __CLASS__, 'post_updated_messages' ) );
|
125 |
add_filter( 'pre_get_posts', array( __CLASS__, 'pre_get_posts_author' ) );
|
126 |
+
|
127 |
+
if ( self::do_load() ) {
|
128 |
+
add_filter( 'manage_category_custom_column', array( __CLASS__, 'category_column' ), 10, 3 );
|
129 |
+
add_filter( 'manage_edit-category_columns', array( __CLASS__, 'category_columns' ) );
|
130 |
+
add_filter( 'manage_edit-post_tag_columns', array( __CLASS__, 'category_columns' ) );
|
131 |
+
add_filter( 'manage_edit-testimonials-widget-category_columns', array( __CLASS__, 'category_columns' ) );
|
132 |
+
add_filter( 'manage_edit-testimonials-widget-post_tag_columns', array( __CLASS__, 'category_columns' ) );
|
133 |
+
add_filter( 'manage_post_tag_custom_column', array( __CLASS__, 'post_tag_column' ), 10, 3 );
|
134 |
+
add_filter( 'manage_testimonials-widget-category_custom_column', array( __CLASS__, 'category_column' ), 10, 3 );
|
135 |
+
add_filter( 'manage_testimonials-widget-post_tag_custom_column', array( __CLASS__, 'post_tag_column' ), 10, 3 );
|
136 |
+
}
|
137 |
}
|
138 |
|
139 |
|
143 |
|
144 |
|
145 |
public static function init() {
|
146 |
+
add_filter( 'the_content', array( __CLASS__, 'get_single' ), -1 );
|
147 |
|
148 |
load_plugin_textdomain( self::PT, false, 'testimonials-widget/languages' );
|
149 |
|
151 |
self::$cpt_tags = self::PT . '-post_tag';
|
152 |
|
153 |
self::init_post_type();
|
154 |
+
self::styles();
|
|
|
|
|
|
|
155 |
}
|
156 |
|
157 |
|
224 |
$details = self::get_testimonial_html( $testimonial, $atts );
|
225 |
$details = apply_filters( 'testimonials_widget_testimonial_html_single', $details, $testimonial, $atts );
|
226 |
|
|
|
|
|
|
|
|
|
227 |
$content = apply_filters( 'testimonials_widget_testimonial_html_single_content', $content, $testimonial, $atts );
|
228 |
|
229 |
$text = $content . $details;
|
|
|
|
|
|
|
230 |
$text = apply_filters( 'testimonials_widget_cache_set', $text, $atts );
|
231 |
}
|
232 |
|
331 |
public static function notice_2_12_0() {
|
332 |
$text = sprintf( __( 'If your Testimonials display has gone to funky town, please <a href="%s">read the FAQ</a> about possible CSS fixes.', 'testimonials-widget' ), esc_url( 'https://aihrus.zendesk.com/entries/23722573-Major-Changes-Since-2-10-0' ) );
|
333 |
|
334 |
+
aihr_notice_updated( $text );
|
335 |
}
|
336 |
|
337 |
|
587 |
'title',
|
588 |
'editor',
|
589 |
'thumbnail',
|
590 |
+
'publicize',
|
591 |
);
|
592 |
|
593 |
$allow_comments = tw_get_option( 'allow_comments', false );
|
744 |
if ( $use_bxslider ) {
|
745 |
$enable_video = $atts['enable_video'];
|
746 |
if ( $enable_video ) {
|
747 |
+
wp_register_script( 'jquery.fitvids', self::$plugin_assets . 'js/jquery.fitvids.js', array( 'jquery' ), '1.0', true );
|
748 |
wp_enqueue_script( 'jquery.fitvids' );
|
749 |
}
|
750 |
|
751 |
+
wp_register_script( 'jquery.bxslider', self::$plugin_assets . 'js/jquery.bxslider.js', array( 'jquery' ), '4.1.1', true );
|
752 |
wp_enqueue_script( 'jquery.bxslider' );
|
753 |
}
|
754 |
|
981 |
$div_open = '<div class="' . $id . ' ' . $id_base . '">';
|
982 |
}
|
983 |
|
984 |
+
$div_open .= "\n";
|
985 |
if ( empty( $testimonials ) && ! $hide_not_found ) {
|
986 |
$testimonials = array(
|
987 |
array( 'testimonial_content' => esc_html__( 'No testimonials found', 'testimonials-widget' ) ),
|
1012 |
if ( $paging || $paging_after )
|
1013 |
$post_paging = self::get_testimonials_paging( $atts, false );
|
1014 |
|
1015 |
+
$div_close = '</div>';
|
1016 |
+
$div_close .= "\n";
|
1017 |
|
1018 |
$html = $div_open
|
1019 |
. $pre_paging
|
1031 |
$disable_quotes = $atts['disable_quotes'];
|
1032 |
$do_image = ! $atts['hide_image'] && ! empty( $testimonial['testimonial_image'] );
|
1033 |
$do_image_single = ! $atts['hide_image_single'];
|
|
|
1034 |
$do_schema = $atts['enable_schema'];
|
1035 |
$keep_whitespace = $atts['keep_whitespace'];
|
1036 |
$remove_hentry = $atts['remove_hentry'];
|
1061 |
$div_open = '<div class="' . $class . '">';
|
1062 |
$div_open .= '<!-- ' . self::ID . ":{$post_id}: -->";
|
1063 |
|
1064 |
+
if ( $do_schema ) {
|
1065 |
+
$div_open .= "\n";
|
1066 |
$div_open .= sprintf( self::$schema_div_open, self::$review_schema );
|
1067 |
+
}
|
1068 |
|
1069 |
if ( $remove_hentry )
|
1070 |
$div_open = str_replace( ' hentry', '', $div_open );
|
1098 |
$extra .= '<div class="extra">';
|
1099 |
$extra .= $testimonial['testimonial_extra'];
|
1100 |
$extra .= '</div>';
|
1101 |
+
$extra .= "\n";
|
1102 |
}
|
1103 |
|
1104 |
$bottom_text = '';
|
1106 |
$bottom_text = '<div class="bottom_text">';
|
1107 |
$bottom_text .= $atts['bottom_text'];
|
1108 |
$bottom_text .= '</div>';
|
1109 |
+
$bottom_text .= "\n";
|
1110 |
}
|
1111 |
|
1112 |
$div_close = '';
|
1113 |
+
if ( $do_schema ) {
|
1114 |
$div_close .= '</div>';
|
1115 |
+
$div_close .= "\n";
|
1116 |
+
}
|
1117 |
|
1118 |
$div_close .= '</div>';
|
1119 |
+
$div_close .= "\n";
|
1120 |
|
1121 |
$html = $div_open
|
1122 |
. $image
|
1143 |
$content_more = apply_filters( 'testimonials_widget_content_more', esc_html__( '…', 'testimonials-widget' ) );
|
1144 |
$content_more .= self::$tag_close_quote;
|
1145 |
$do_content = ! $atts['hide_content'] && ! empty( $testimonial['testimonial_content'] );
|
|
|
1146 |
$use_quote_tag = $atts['use_quote_tag'];
|
1147 |
|
1148 |
$quote = '';
|
1149 |
if ( $do_content ) {
|
1150 |
$content = $testimonial['testimonial_content'];
|
|
|
|
|
|
|
1151 |
$content = self::format_content( $content, $widget_number, $atts );
|
|
|
1152 |
if ( $char_limit ) {
|
1153 |
$content = self::testimonials_truncate( $content, $char_limit, $content_more );
|
1154 |
$content = force_balance_tags( $content );
|
1166 |
$quote .= $content;
|
1167 |
$quote .= '</q>';
|
1168 |
}
|
1169 |
+
|
1170 |
+
$quote = "\n" . $quote;
|
1171 |
}
|
1172 |
|
1173 |
return $quote;
|
1257 |
$temp .= $cite;
|
1258 |
$temp .= '</div>';
|
1259 |
|
1260 |
+
$cite = "\n" . $temp . "\n";
|
1261 |
} else {
|
1262 |
$cite = '<cite>' . $cite . '</cite>';
|
1263 |
}
|
1336 |
$html .= ' append';
|
1337 |
|
1338 |
$html .= '">';
|
1339 |
+
$html .= "\n";
|
1340 |
|
1341 |
if ( $atts['paged'] )
|
1342 |
$paged = $atts['paged'];
|
1344 |
$paged = 1;
|
1345 |
|
1346 |
if ( ! function_exists( 'wp_pagenavi' ) ) {
|
1347 |
+
$html .= '<div class="alignleft">';
|
1348 |
|
1349 |
if ( 1 < $paged ) {
|
1350 |
$laquo = apply_filters( 'testimonials_widget_previous_posts_link_text', esc_html__( '«', 'testimonials-widget' ) );
|
1351 |
$html .= get_previous_posts_link( $laquo, $paged );
|
1352 |
}
|
1353 |
|
1354 |
+
$html .= '</div>';
|
1355 |
+
$html .= "\n";
|
1356 |
+
$html .= '<div class="alignright">';
|
|
|
1357 |
if ( $paged != self::$max_num_pages ) {
|
1358 |
$raquo = apply_filters( 'testimonials_widget_next_posts_link_text', esc_html__( '»', 'testimonials-widget' ) );
|
1359 |
$html .= get_next_posts_link( $raquo, self::$max_num_pages );
|
1360 |
}
|
1361 |
|
1362 |
+
$html .= '</div>';
|
1363 |
+
$html .= "\n";
|
1364 |
} else {
|
1365 |
$args = array(
|
1366 |
'echo' => false,
|
1369 |
$args = apply_filters( 'testimonials_widget_wp_pagenavi', $args );
|
1370 |
|
1371 |
$html .= wp_pagenavi( $args );
|
1372 |
+
$html .= "\n";
|
1373 |
}
|
1374 |
|
1375 |
$html .= '</div>';
|
1376 |
+
$html .= "\n";
|
1377 |
|
1378 |
return $html;
|
1379 |
}
|
1757 |
extract( $testimonial );
|
1758 |
|
1759 |
$do_company = ! $atts['hide_company'] && ! empty( $testimonial_company );
|
1760 |
+
$do_content = ! empty( $testimonial['testimonial_content'] );
|
1761 |
$do_email = ! $atts['hide_email'] && ! empty( $testimonial_email ) && is_email( $testimonial_email );
|
1762 |
$do_image = ! $atts['hide_image'] && ! empty( $testimonial_image );
|
1763 |
$do_location = ! $atts['hide_location'] && ! empty( $testimonial_location );
|
1768 |
$item_reviewed = self::clean_string( $atts['item_reviewed'] );
|
1769 |
$item_reviewed_url = self::clean_string( $atts['item_reviewed_url'] );
|
1770 |
|
1771 |
+
$schema = '<div style="display: none;">';
|
1772 |
+
$schema .= "\n";
|
1773 |
|
1774 |
$agg_meta = array();
|
1775 |
$author_meta = array();
|
1814 |
$author_meta = apply_filters( 'testimonials_widget_schema_author', $author_meta, $testimonial, $atts );
|
1815 |
$author = self::create_schema_div_prop( self::$cw_author, self::$person_schema, $author_meta );
|
1816 |
$schema .= $author;
|
1817 |
+
$schema .= "\n";
|
1818 |
|
1819 |
$post = get_post( $testimonial['post_id'] );
|
1820 |
$the_date = mysql2date( 'Y-m-d', $post->post_date );
|
1822 |
|
1823 |
$review_name_length = apply_filters( 'testimonials_widget_review_name_length', 156 );
|
1824 |
|
1825 |
+
if ( $do_content )
|
1826 |
+
$review_meta[ self::$review_body ] = $testimonial['testimonial_content'];
|
1827 |
+
|
1828 |
$review_meta[ self::$cw_date ] = $the_date;
|
1829 |
$review_meta[ self::$cw_date_mod ] = $the_date_mod;
|
1830 |
$review_meta[ self::$thing_name ] = self::testimonials_truncate( $testimonial_content, $review_name_length );
|
1839 |
$review_meta = apply_filters( 'testimonials_widget_schema_review', $review_meta, $testimonial, $atts );
|
1840 |
$review = self::create_schema_meta( $review_meta );
|
1841 |
$schema .= $review;
|
1842 |
+
$schema .= "\n";
|
1843 |
|
1844 |
$agg_meta[ self::$agg_count ] = self::$found_posts;
|
1845 |
|
1846 |
$agg_meta = apply_filters( 'testimonials_widget_schema_aggregate', $agg_meta, $testimonial, $atts );
|
1847 |
$aggregate = self::create_schema_div_prop( self::$cw_aggregate, self::$agg_schema, $agg_meta );
|
1848 |
$schema .= $aggregate;
|
1849 |
+
$schema .= "\n";
|
1850 |
|
1851 |
$item_meta[ self::$thing_name ] = $item_reviewed;
|
1852 |
$item_meta[ self::$thing_url ] = $item_reviewed_url;
|
1854 |
$item_meta = apply_filters( 'testimonials_widget_schema_item', $item_meta, $testimonial, $atts );
|
1855 |
$item = self::create_schema_div_prop( self::$review_item, self::$thing_schema, $item_meta );
|
1856 |
$schema .= $item;
|
1857 |
+
$schema .= "\n";
|
1858 |
+
|
1859 |
+
$schema .= '</div>';
|
1860 |
+
$schema .= "\n";
|
1861 |
|
1862 |
$schema = apply_filters( 'testimonials_widget_schema', $schema, $testimonial, $atts );
|
1863 |
|
1876 |
$meta .= self::create_schema_div_prop( $key, $value[ 0 ], $value[ 1 ] );
|
1877 |
else
|
1878 |
$meta .= sprintf( self::$schema_meta, $key, $value );
|
1879 |
+
|
1880 |
+
$meta .= "\n";
|
1881 |
}
|
1882 |
|
1883 |
return $meta;
|
1909 |
$meta .= self::create_schema_div_prop( $key, $value[ 0 ], $value[ 1 ] );
|
1910 |
else
|
1911 |
$meta .= sprintf( self::$schema_meta, $key, $value );
|
1912 |
+
|
1913 |
+
$meta .= "\n";
|
1914 |
}
|
1915 |
|
1916 |
$schema = sprintf( self::$schema_div_prop, $property_name, $schema_name, $meta );
|
1958 |
$widget_number = Testimonials_Widget::get_instance();
|
1959 |
|
1960 |
self::scripts( $atts );
|
|
|
1961 |
|
1962 |
self::generate_css( $atts );
|
1963 |
self::generate_js( $testimonials, $atts, $widget_number );
|
1967 |
public static function make_gravatar_featured( $post_id, $email ) {
|
1968 |
$size = get_option( 'large_size_w' );
|
1969 |
$image = get_avatar( $email, $size );
|
1970 |
+
$src = self::get_image_src( $image, false );
|
1971 |
$file = sanitize_title( $email ) . '.jpeg';
|
1972 |
|
1973 |
self::add_media( $post_id, $src, $file );
|
1977 |
public static function notice_2_15_0() {
|
1978 |
$text = sprintf( __( 'If your Testimonials display has gone to funky town, please <a href="%s">read the FAQ</a> about possible fixes.', 'testimonials-widget' ), esc_url( 'https://aihrus.zendesk.com/entries/28402246-Major-Change-for-2-15-0' ) );
|
1979 |
|
1980 |
+
aihr_notice_updated( $text );
|
1981 |
}
|
1982 |
|
1983 |
|
2044 |
if ( ! empty( $GLOBALS['pagenow'] ) && in_array( $GLOBALS['pagenow'], array( 'options.php' ) ) ) {
|
2045 |
$do_load = true;
|
2046 |
} elseif ( ! empty( $_REQUEST['post_type'] ) && self::PT == $_REQUEST['post_type'] ) {
|
2047 |
+
if ( ! empty( $GLOBALS['pagenow'] ) && in_array( $GLOBALS['pagenow'], array( 'edit.php', 'edit-tags.php' ) ) ) {
|
2048 |
$do_load = true;
|
2049 |
} elseif ( ! empty( $_REQUEST['page'] ) && Testimonials_Widget_Settings::ID == $_REQUEST['page'] ) {
|
2050 |
$do_load = true;
|
2053 |
|
2054 |
return $do_load;
|
2055 |
}
|
2056 |
+
|
2057 |
+
|
2058 |
+
public static function category_columns( $columns ) {
|
2059 |
+
$columns['shortcode'] = esc_html__( 'Shortcode', 'testimonials-widget' );
|
2060 |
+
|
2061 |
+
return $columns;
|
2062 |
+
}
|
2063 |
+
|
2064 |
+
|
2065 |
+
public static function category_column( $result, $column_name, $term_id, $category = true ) {
|
2066 |
+
$attribute = $category ? 'category' : 'tags';
|
2067 |
+
|
2068 |
+
$use_cpt_taxonomy = tw_get_option( 'use_cpt_taxonomy', false );
|
2069 |
+
if ( ! $use_cpt_taxonomy ) {
|
2070 |
+
if ( $category )
|
2071 |
+
$term = get_term( $term_id, 'category' );
|
2072 |
+
else
|
2073 |
+
$term = get_term( $term_id, 'post_tag' );
|
2074 |
+
} else {
|
2075 |
+
if ( $category )
|
2076 |
+
$term = get_term( $term_id, self::$cpt_category );
|
2077 |
+
else
|
2078 |
+
$term = get_term( $term_id, self::$cpt_tags );
|
2079 |
+
}
|
2080 |
+
|
2081 |
+
switch ( $column_name ) {
|
2082 |
+
case 'shortcode':
|
2083 |
+
$result = '[testimonialswidget_list ' . $attribute . '="' .$term->slug . '"]';
|
2084 |
+
$result .= '<br />';
|
2085 |
+
$result .= '[testimonialswidget_widget ' . $attribute . '="' .$term->slug . '"]';
|
2086 |
+
break;
|
2087 |
+
}
|
2088 |
+
|
2089 |
+
return $result;
|
2090 |
+
}
|
2091 |
+
|
2092 |
+
|
2093 |
+
public static function post_tag_column( $result, $column_name, $term_id ) {
|
2094 |
+
return self::category_column( $result, $column_name, $term_id, false );
|
2095 |
+
}
|
2096 |
}
|
2097 |
|
2098 |
+
|
2099 |
?>
|
includes/libraries/aihrus-framework/CHANGELOG.md
CHANGED
@@ -1,12 +1,21 @@
|
|
1 |
# CHANGELOG Aihrus Framework
|
2 |
|
3 |
## master
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
* Add phpunit.xml
|
|
|
6 |
* Coding standards
|
|
|
7 |
* Move ci to tests
|
8 |
* Remove Travis configuration
|
9 |
* RESOLVE michael-cannon/testimonials-widget#48 Activation on WP 3.6 not working
|
|
|
10 |
* Update usage instructions
|
11 |
* Use $plugin_assets than $plugin_path
|
12 |
|
1 |
# CHANGELOG Aihrus Framework
|
2 |
|
3 |
## master
|
4 |
+
|
5 |
+
## 1.0.3
|
6 |
+
* RESOLVE Fatal error: Call to undefined function add_settings_error() in class-aihrus-settings.php on line 559
|
7 |
+
* RESOLVE Featured image via Gravatar not saving correctly
|
8 |
+
* Revise data deletion description - Thank you Mark
|
9 |
+
|
10 |
+
## 1.0.2
|
11 |
* Add phpunit.xml
|
12 |
+
* Add `slash_sanitize_title` verification helper
|
13 |
* Coding standards
|
14 |
+
* Display "Settings saved."
|
15 |
* Move ci to tests
|
16 |
* Remove Travis configuration
|
17 |
* RESOLVE michael-cannon/testimonials-widget#48 Activation on WP 3.6 not working
|
18 |
+
* RESOLVE michael-cannon/wootheme-testimonials-to-testimonials#2 No settings saved notice upon saving settings
|
19 |
* Update usage instructions
|
20 |
* Use $plugin_assets than $plugin_path
|
21 |
|
includes/libraries/aihrus-framework/class-aihrus-common.php
CHANGED
@@ -308,12 +308,14 @@ EOD;
|
|
308 |
}
|
309 |
|
310 |
|
311 |
-
public static function get_image_src( $image ) {
|
312 |
$doc = new DOMDocument();
|
313 |
$doc->loadHTML( $image );
|
314 |
$xpath = new DOMXPath( $doc );
|
315 |
$src = $xpath->evaluate( 'string(//img/@src)' );
|
316 |
-
|
|
|
|
|
317 |
|
318 |
return $src;
|
319 |
}
|
308 |
}
|
309 |
|
310 |
|
311 |
+
public static function get_image_src( $image, $strip_protocol = true ) {
|
312 |
$doc = new DOMDocument();
|
313 |
$doc->loadHTML( $image );
|
314 |
$xpath = new DOMXPath( $doc );
|
315 |
$src = $xpath->evaluate( 'string(//img/@src)' );
|
316 |
+
|
317 |
+
if ( $strip_protocol )
|
318 |
+
$src = self::strip_protocol( $src );
|
319 |
|
320 |
return $src;
|
321 |
}
|
includes/libraries/aihrus-framework/class-aihrus-settings.php
CHANGED
@@ -22,6 +22,7 @@
|
|
22 |
* Based upon http://alisothegeek.com/2011/01/wordpress-settings-api-tutorial-1/
|
23 |
*/
|
24 |
|
|
|
25 |
|
26 |
if ( class_exists( 'Aihrus_Settings' ) )
|
27 |
return;
|
@@ -93,7 +94,7 @@ abstract class Aihrus_Settings {
|
|
93 |
'widget' => 0,
|
94 |
);
|
95 |
|
96 |
-
$desc = esc_html__( 'Delete all %s data and options from database on plugin deletion' );
|
97 |
|
98 |
static::$settings['delete_data'] = array(
|
99 |
'section' => 'reset',
|
@@ -262,6 +263,7 @@ abstract class Aihrus_Settings {
|
|
262 |
|
263 |
echo '<form action="options.php" method="post">';
|
264 |
|
|
|
265 |
settings_fields( static::ID );
|
266 |
|
267 |
echo '<div id="' . static::ID . '">
|
@@ -478,7 +480,10 @@ abstract class Aihrus_Settings {
|
|
478 |
public static function validate_settings( $input, $options = null, $do_errors = false ) {
|
479 |
$errors = array();
|
480 |
|
|
|
481 |
if ( is_null( $options ) ) {
|
|
|
|
|
482 |
$options = self::get_settings();
|
483 |
$defaults = static::get_defaults();
|
484 |
|
@@ -546,6 +551,16 @@ abstract class Aihrus_Settings {
|
|
546 |
unset( $input['export'] );
|
547 |
unset( $input['import'] );
|
548 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
549 |
if ( empty( $do_errors ) ) {
|
550 |
$validated = $input;
|
551 |
} else {
|
22 |
* Based upon http://alisothegeek.com/2011/01/wordpress-settings-api-tutorial-1/
|
23 |
*/
|
24 |
|
25 |
+
require_once ABSPATH . 'wp-admin/includes/template.php';
|
26 |
|
27 |
if ( class_exists( 'Aihrus_Settings' ) )
|
28 |
return;
|
94 |
'widget' => 0,
|
95 |
);
|
96 |
|
97 |
+
$desc = esc_html__( 'Delete all %s data and options from database on plugin deletion. Even if this option isn\'t checked, WordPress will still give a data deletion warning.' );
|
98 |
|
99 |
static::$settings['delete_data'] = array(
|
100 |
'section' => 'reset',
|
263 |
|
264 |
echo '<form action="options.php" method="post">';
|
265 |
|
266 |
+
settings_errors( static::ID );
|
267 |
settings_fields( static::ID );
|
268 |
|
269 |
echo '<div id="' . static::ID . '">
|
480 |
public static function validate_settings( $input, $options = null, $do_errors = false ) {
|
481 |
$errors = array();
|
482 |
|
483 |
+
$null_options = false;
|
484 |
if ( is_null( $options ) ) {
|
485 |
+
$null_options = true;
|
486 |
+
|
487 |
$options = self::get_settings();
|
488 |
$defaults = static::get_defaults();
|
489 |
|
551 |
unset( $input['export'] );
|
552 |
unset( $input['import'] );
|
553 |
|
554 |
+
$hide_update_notice = false;
|
555 |
+
if ( isset( static::$hide_update_notice ) && ! empty( static::$hide_update_notice ) ) {
|
556 |
+
$hide_update_notice = true;
|
557 |
+
}
|
558 |
+
|
559 |
+
if ( $null_options && empty( $errors ) && ! $hide_update_notice ) {
|
560 |
+
add_settings_error( static::ID, 'settings_updated', esc_html__( 'Settings saved.' ), 'updated' );
|
561 |
+
set_transient( 'settings_errors', get_settings_errors(), 30 );
|
562 |
+
}
|
563 |
+
|
564 |
if ( empty( $do_errors ) ) {
|
565 |
$validated = $input;
|
566 |
} else {
|
includes/libraries/aihrus-framework/requirements.php
CHANGED
@@ -20,7 +20,7 @@ if ( ! defined( 'AIHR_BASE' ) )
|
|
20 |
define( 'AIHR_BASE', __FILE__ );
|
21 |
|
22 |
if ( ! defined( 'AIHR_VERSION' ) )
|
23 |
-
define( 'AIHR_VERSION', '1.0.
|
24 |
|
25 |
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
26 |
|
20 |
define( 'AIHR_BASE', __FILE__ );
|
21 |
|
22 |
if ( ! defined( 'AIHR_VERSION' ) )
|
23 |
+
define( 'AIHR_VERSION', '1.0.3' );
|
24 |
|
25 |
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
26 |
|
languages/testimonials-widget.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Testimonials by Aihrus package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Testimonials by Aihrus 2.18.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
|
7 |
-
"POT-Creation-Date: 2014-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -22,27 +22,27 @@ msgid "Settings"
|
|
22 |
msgstr ""
|
23 |
|
24 |
#: includes/class-testimonials-widget-settings.php:107
|
25 |
-
#: includes/class-testimonials-widget-settings.php:
|
26 |
msgid "General"
|
27 |
msgstr ""
|
28 |
|
29 |
#: includes/class-testimonials-widget-settings.php:108
|
30 |
-
#: includes/class-testimonials-widget-settings.php:
|
31 |
msgid "Selection"
|
32 |
msgstr ""
|
33 |
|
34 |
#: includes/class-testimonials-widget-settings.php:109
|
35 |
-
#: includes/class-testimonials-widget-settings.php:
|
36 |
msgid "Ordering"
|
37 |
msgstr ""
|
38 |
|
39 |
#: includes/class-testimonials-widget-settings.php:110
|
40 |
-
#: includes/class-testimonials-widget-settings.php:
|
41 |
msgid "Widget"
|
42 |
msgstr ""
|
43 |
|
44 |
#: includes/class-testimonials-widget-settings.php:111
|
45 |
-
#: includes/class-testimonials-widget-settings.php:
|
46 |
msgid "Post Type"
|
47 |
msgstr ""
|
48 |
|
@@ -52,8 +52,8 @@ msgstr ""
|
|
52 |
|
53 |
#: includes/class-testimonials-widget-settings.php:129
|
54 |
#: includes/class-testimonials-widget-widget.php:32
|
55 |
-
#: includes/class-testimonials-widget.php:
|
56 |
-
#: includes/class-testimonials-widget.php:
|
57 |
msgid "Testimonials"
|
58 |
msgstr ""
|
59 |
|
@@ -254,7 +254,7 @@ msgid "After testimonials"
|
|
254 |
msgstr ""
|
255 |
|
256 |
#: includes/class-testimonials-widget-settings.php:345
|
257 |
-
msgid "
|
258 |
msgstr ""
|
259 |
|
260 |
#: includes/class-testimonials-widget-settings.php:346
|
@@ -339,7 +339,7 @@ msgid "Author"
|
|
339 |
msgstr ""
|
340 |
|
341 |
#: includes/class-testimonials-widget-settings.php:437
|
342 |
-
#: includes/class-testimonials-widget.php:
|
343 |
msgid "Date"
|
344 |
msgstr ""
|
345 |
|
@@ -348,7 +348,7 @@ msgid "Menu Order"
|
|
348 |
msgstr ""
|
349 |
|
350 |
#: includes/class-testimonials-widget-settings.php:439
|
351 |
-
#: includes/class-testimonials-widget.php:
|
352 |
msgid "Source"
|
353 |
msgstr ""
|
354 |
|
@@ -369,32 +369,32 @@ msgid "None"
|
|
369 |
msgstr ""
|
370 |
|
371 |
#: includes/class-testimonials-widget-settings.php:453
|
372 |
-
#: includes/class-testimonials-widget.php:
|
373 |
-
#: includes/class-testimonials-widget.php:
|
374 |
msgid "Job Title"
|
375 |
msgstr ""
|
376 |
|
377 |
#: includes/class-testimonials-widget-settings.php:454
|
378 |
-
#: includes/class-testimonials-widget.php:
|
379 |
-
#: includes/class-testimonials-widget.php:
|
380 |
msgid "Email"
|
381 |
msgstr ""
|
382 |
|
383 |
#: includes/class-testimonials-widget-settings.php:455
|
384 |
-
#: includes/class-testimonials-widget.php:
|
385 |
-
#: includes/class-testimonials-widget.php:
|
386 |
msgid "Location"
|
387 |
msgstr ""
|
388 |
|
389 |
#: includes/class-testimonials-widget-settings.php:456
|
390 |
-
#: includes/class-testimonials-widget.php:
|
391 |
-
#: includes/class-testimonials-widget.php:
|
392 |
msgid "Company"
|
393 |
msgstr ""
|
394 |
|
395 |
#: includes/class-testimonials-widget-settings.php:457
|
396 |
-
#: includes/class-testimonials-widget.php:
|
397 |
-
#: includes/class-testimonials-widget.php:
|
398 |
msgid "URL"
|
399 |
msgstr ""
|
400 |
|
@@ -458,120 +458,112 @@ msgstr ""
|
|
458 |
msgid "Pre 2.15.0, Testimonials' used custom JavaScript for transitions."
|
459 |
msgstr ""
|
460 |
|
461 |
-
#: includes/class-testimonials-widget-settings.php:
|
462 |
msgid "Disable Animation?"
|
463 |
msgstr ""
|
464 |
|
465 |
-
#: includes/class-testimonials-widget-settings.php:
|
466 |
msgid "Pre 2.15.0, Disable animation between testimonial transitions. Useful when stacking widgets."
|
467 |
msgstr ""
|
468 |
|
469 |
-
#: includes/class-testimonials-widget-settings.php:
|
470 |
msgid "Fade Out Speed"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: includes/class-testimonials-widget-settings.php:
|
474 |
-
#: includes/class-testimonials-widget-settings.php:
|
475 |
msgid "Pre 2.15.0, Transition duration in milliseconds; higher values indicate slower animations, not faster ones."
|
476 |
msgstr ""
|
477 |
|
478 |
-
#: includes/class-testimonials-widget-settings.php:
|
479 |
msgid "Fade In Speed"
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: includes/class-testimonials-widget-settings.php:
|
483 |
msgid "Height"
|
484 |
msgstr ""
|
485 |
|
486 |
-
#: includes/class-testimonials-widget-settings.php:
|
487 |
msgid "Pre 2.15.0, Testimonials height, in pixels. Overrides minimum and maximum height"
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: includes/class-testimonials-widget-settings.php:
|
491 |
msgid "Minimum Height"
|
492 |
msgstr ""
|
493 |
|
494 |
-
#: includes/class-testimonials-widget-settings.php:
|
495 |
msgid "Pre 2.15.0, Set for minimum display height, in pixels"
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: includes/class-testimonials-widget-settings.php:
|
499 |
msgid "Maximum Height"
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: includes/class-testimonials-widget-settings.php:
|
503 |
msgid "Pre 2.15.0, Set for maximum display height, in pixels"
|
504 |
msgstr ""
|
505 |
|
506 |
-
#: includes/class-testimonials-widget-settings.php:598
|
507 |
-
msgid "Always Load CSS?"
|
508 |
-
msgstr ""
|
509 |
-
|
510 |
#: includes/class-testimonials-widget-settings.php:599
|
511 |
-
msgid "Pre 2.14.0, Testimonials' CSS was always loaded, whether needed or not"
|
512 |
-
msgstr ""
|
513 |
-
|
514 |
-
#: includes/class-testimonials-widget-settings.php:610
|
515 |
msgid "Include IE7 CSS?"
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: includes/class-testimonials-widget-settings.php:
|
519 |
msgid "IE7 specific CSS moved to separate CSS file in version 2.13.6."
|
520 |
msgstr ""
|
521 |
|
522 |
-
#: includes/class-testimonials-widget-settings.php:
|
523 |
msgid "Use `<q>` tag?"
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: includes/class-testimonials-widget-settings.php:
|
527 |
msgid "Pre 2.11.0, not HTML5 compliant"
|
528 |
msgstr ""
|
529 |
|
530 |
-
#: includes/class-testimonials-widget-settings.php:
|
531 |
msgid "Remove `.hentry` CSS?"
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: includes/class-testimonials-widget-settings.php:
|
535 |
msgid "Pre 2.6.4, some themes use class `.hentry` in a manner that breaks Testimonials' CSS"
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: includes/class-testimonials-widget-settings.php:
|
539 |
msgid "These Testimonials Settings establish the default option values for shortcodes, theme functions, and widget instances. Widgets, once created no longer inherit these global settings. Therefore, you'll need to update each widget with the new settings. It might be easier to delete the widget and then recreate it."
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: includes/class-testimonials-widget-settings.php:
|
543 |
msgid "Shortcode option names are listed below each entry."
|
544 |
msgstr ""
|
545 |
|
546 |
-
#: includes/class-testimonials-widget-settings.php:
|
547 |
msgid "View the <a href=\"%s\">Testimonials documentation</a>."
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: includes/class-testimonials-widget-settings.php:
|
551 |
msgid "Show or hide optional fields."
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: includes/class-testimonials-widget-settings.php:
|
555 |
msgid "Options used to select testimonials."
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: includes/class-testimonials-widget-settings.php:
|
559 |
msgid "Options used to determine displayed testimonials ordering."
|
560 |
msgstr ""
|
561 |
|
562 |
-
#: includes/class-testimonials-widget-settings.php:
|
563 |
msgid "Options related to showing testimonials in widgets."
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: includes/class-testimonials-widget-settings.php:
|
567 |
msgid "Archive and singular page URL related testimonials options."
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: includes/class-testimonials-widget-settings.php:
|
571 |
msgid "Compatibility & Reset"
|
572 |
msgstr ""
|
573 |
|
574 |
-
#: includes/class-testimonials-widget-settings.php:
|
575 |
msgid "Backwards compatibility, import/export options, and reset options."
|
576 |
msgstr ""
|
577 |
|
@@ -587,211 +579,219 @@ msgstr ""
|
|
587 |
msgid "This widget's unique CSS class for styling"
|
588 |
msgstr ""
|
589 |
|
590 |
-
#: includes/class-testimonials-widget.php:
|
591 |
-
#: includes/class-testimonials-widget.php:
|
592 |
msgid "Testimonials Shortcode Examples"
|
593 |
msgstr ""
|
594 |
|
595 |
-
#: includes/class-testimonials-widget.php:
|
596 |
msgid "E.g. Shortcodes"
|
597 |
msgstr ""
|
598 |
|
599 |
-
#: includes/class-testimonials-widget.php:
|
600 |
msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible CSS fixes."
|
601 |
msgstr ""
|
602 |
|
603 |
-
#: includes/class-testimonials-widget.php:
|
604 |
msgid "ID"
|
605 |
msgstr ""
|
606 |
|
607 |
-
#: includes/class-testimonials-widget.php:
|
608 |
msgid "Image"
|
609 |
msgstr ""
|
610 |
|
611 |
-
#: includes/class-testimonials-widget.php:
|
612 |
msgid "Shortcodes"
|
613 |
msgstr ""
|
614 |
|
615 |
-
#: includes/class-testimonials-widget.php:
|
616 |
msgid "Published by"
|
617 |
msgstr ""
|
618 |
|
619 |
-
#: includes/class-testimonials-widget.php:
|
620 |
-
#: includes/class-testimonials-widget.php:
|
621 |
msgid "Category"
|
622 |
msgstr ""
|
623 |
|
624 |
-
#: includes/class-testimonials-widget.php:
|
625 |
-
#: includes/class-testimonials-widget.php:
|
626 |
msgid "Tags"
|
627 |
msgstr ""
|
628 |
|
629 |
-
#: includes/class-testimonials-widget.php:
|
630 |
msgid "Add New"
|
631 |
msgstr ""
|
632 |
|
633 |
-
#: includes/class-testimonials-widget.php:
|
634 |
-
#: includes/class-testimonials-widget.php:
|
635 |
msgid "Add New Testimonial"
|
636 |
msgstr ""
|
637 |
|
638 |
-
#: includes/class-testimonials-widget.php:
|
639 |
msgid "Edit Testimonial"
|
640 |
msgstr ""
|
641 |
|
642 |
-
#: includes/class-testimonials-widget.php:
|
643 |
-
#: includes/class-testimonials-widget.php:
|
644 |
msgid "No testimonials found"
|
645 |
msgstr ""
|
646 |
|
647 |
-
#: includes/class-testimonials-widget.php:
|
648 |
msgid "No testimonials found in Trash"
|
649 |
msgstr ""
|
650 |
|
651 |
-
#: includes/class-testimonials-widget.php:
|
652 |
msgid "Search Testimonials"
|
653 |
msgstr ""
|
654 |
|
655 |
-
#: includes/class-testimonials-widget.php:
|
656 |
-
#: includes/class-testimonials-widget.php:
|
657 |
msgid "Testimonial"
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: includes/class-testimonials-widget.php:
|
661 |
msgid "View Testimonial"
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: includes/class-testimonials-widget.php:
|
665 |
msgid "…"
|
666 |
msgstr ""
|
667 |
|
668 |
-
#: includes/class-testimonials-widget.php:
|
669 |
msgid "«"
|
670 |
msgstr ""
|
671 |
|
672 |
-
#: includes/class-testimonials-widget.php:
|
673 |
msgid "»"
|
674 |
msgstr ""
|
675 |
|
676 |
-
#: includes/class-testimonials-widget.php:
|
677 |
msgid "Testimonial Data"
|
678 |
msgstr ""
|
679 |
|
680 |
-
#: includes/class-testimonials-widget.php:
|
681 |
msgid "Enter title here"
|
682 |
msgstr ""
|
683 |
|
684 |
-
#: includes/class-testimonials-widget.php:
|
685 |
msgid "Enter testimonial source here"
|
686 |
msgstr ""
|
687 |
|
688 |
-
#: includes/class-testimonials-widget.php:
|
689 |
msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
|
690 |
msgstr ""
|
691 |
|
692 |
-
#: includes/class-testimonials-widget.php:
|
693 |
msgid "Custom field updated."
|
694 |
msgstr ""
|
695 |
|
696 |
-
#: includes/class-testimonials-widget.php:
|
697 |
msgid "Custom field deleted."
|
698 |
msgstr ""
|
699 |
|
700 |
-
#: includes/class-testimonials-widget.php:
|
701 |
msgid "Testimonial updated."
|
702 |
msgstr ""
|
703 |
|
704 |
#. translators: %s: date and time of the revision
|
705 |
|
706 |
-
#: includes/class-testimonials-widget.php:
|
707 |
msgid "Testimonial restored to revision from %s"
|
708 |
msgstr ""
|
709 |
|
710 |
-
#: includes/class-testimonials-widget.php:
|
711 |
msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: includes/class-testimonials-widget.php:
|
715 |
msgid "Testimonial saved."
|
716 |
msgstr ""
|
717 |
|
718 |
-
#: includes/class-testimonials-widget.php:
|
719 |
msgid "Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
|
720 |
msgstr ""
|
721 |
|
722 |
-
#: includes/class-testimonials-widget.php:
|
723 |
msgid "Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview testimonial</a>"
|
724 |
msgstr ""
|
725 |
|
726 |
-
#: includes/class-testimonials-widget.php:
|
727 |
msgid "Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
|
728 |
msgstr ""
|
729 |
|
730 |
-
#: includes/class-testimonials-widget.php:
|
731 |
msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible fixes."
|
732 |
msgstr ""
|
733 |
|
|
|
|
|
|
|
|
|
734 |
#: includes/libraries/aihrus-framework/class-aihrus-common.php:156
|
735 |
msgid "Please donate $5 towards ongoing free support and development of the \"%1$s\" plugin. %2$s"
|
736 |
msgstr ""
|
737 |
|
738 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
739 |
msgid "Reset"
|
740 |
msgstr ""
|
741 |
|
742 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
743 |
msgid "About"
|
744 |
msgstr ""
|
745 |
|
746 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
747 |
msgid "Export Settings"
|
748 |
msgstr ""
|
749 |
|
750 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
751 |
msgid "These are your current settings in a serialized format. Copy the contents to make a backup of your settings."
|
752 |
msgstr ""
|
753 |
|
754 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
755 |
msgid "Import Settings"
|
756 |
msgstr ""
|
757 |
|
758 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
759 |
msgid "Paste new serialized settings here to overwrite your current configuration."
|
760 |
msgstr ""
|
761 |
|
762 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
763 |
-
msgid "Delete all %s data and options from database on plugin deletion"
|
764 |
msgstr ""
|
765 |
|
766 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
767 |
msgid "Remove Plugin Data on Deletion?"
|
768 |
msgstr ""
|
769 |
|
770 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
771 |
msgid "Reset to Defaults?"
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
775 |
msgid "Check this box to reset options to their defaults"
|
776 |
msgstr ""
|
777 |
|
778 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
779 |
msgid "<img class=\"alignright size-medium\" src=\"%1$simages/michael-cannon-red-square-300x2251.jpg\" alt=\"Michael in Red Square, Moscow, Russia\" width=\"300\" height=\"225\" /><a href=\"%2$s\">%3$s</a> is by <a href=\"%4$s\">Michael Cannon</a>. He's <a href=\"%5$s\">Peichi’s</a> smiling man, an adventurous <a href=\"%6$s\" target=\"_blank\">water-rat</a>, <a href=\"%7$s\">chief people officer</a>, <a href=\"%8$s\">cyclist</a>, <a href=\"%9$s\">full stack developer</a>, <a href=\"%10$s\">poet</a>, <a href=\"%11$s\">WWOOF’er</a> and <a href=\"%12$s\">world traveler</a>."
|
780 |
msgstr ""
|
781 |
|
782 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
783 |
msgid "Save Changes"
|
784 |
msgstr ""
|
785 |
|
786 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
787 |
msgid "If you like this plugin, please <a href=\"%1$s\" title=\"Donate for Good Karma\"><img src=\"%2$s\" border=\"0\" alt=\"Donate for Good Karma\" /></a> or <a href=\"%3$s\" title=\"purchase premium WordPress plugins from Aihrus \">purchase the Premium version</a> to help fund further development and <a href=\"%4$s\" title=\"Support forums\">support</a>."
|
788 |
msgstr ""
|
789 |
|
790 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
791 |
msgid "Copyright ©%1$s <a href=\"%2$s\">Aihrus</a>."
|
792 |
msgstr ""
|
793 |
|
794 |
-
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:
|
|
|
|
|
|
|
|
|
795 |
msgid "Required"
|
796 |
msgstr ""
|
797 |
|
2 |
# This file is distributed under the same license as the Testimonials by Aihrus package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Testimonials by Aihrus 2.18.1\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
|
7 |
+
"POT-Creation-Date: 2014-02-17 05:03:44+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
22 |
msgstr ""
|
23 |
|
24 |
#: includes/class-testimonials-widget-settings.php:107
|
25 |
+
#: includes/class-testimonials-widget-settings.php:869
|
26 |
msgid "General"
|
27 |
msgstr ""
|
28 |
|
29 |
#: includes/class-testimonials-widget-settings.php:108
|
30 |
+
#: includes/class-testimonials-widget-settings.php:877
|
31 |
msgid "Selection"
|
32 |
msgstr ""
|
33 |
|
34 |
#: includes/class-testimonials-widget-settings.php:109
|
35 |
+
#: includes/class-testimonials-widget-settings.php:885
|
36 |
msgid "Ordering"
|
37 |
msgstr ""
|
38 |
|
39 |
#: includes/class-testimonials-widget-settings.php:110
|
40 |
+
#: includes/class-testimonials-widget-settings.php:893
|
41 |
msgid "Widget"
|
42 |
msgstr ""
|
43 |
|
44 |
#: includes/class-testimonials-widget-settings.php:111
|
45 |
+
#: includes/class-testimonials-widget-settings.php:901
|
46 |
msgid "Post Type"
|
47 |
msgstr ""
|
48 |
|
52 |
|
53 |
#: includes/class-testimonials-widget-settings.php:129
|
54 |
#: includes/class-testimonials-widget-widget.php:32
|
55 |
+
#: includes/class-testimonials-widget.php:576
|
56 |
+
#: includes/class-testimonials-widget.php:622
|
57 |
msgid "Testimonials"
|
58 |
msgstr ""
|
59 |
|
254 |
msgstr ""
|
255 |
|
256 |
#: includes/class-testimonials-widget-settings.php:345
|
257 |
+
msgid "Enable [shortcodes]?"
|
258 |
msgstr ""
|
259 |
|
260 |
#: includes/class-testimonials-widget-settings.php:346
|
339 |
msgstr ""
|
340 |
|
341 |
#: includes/class-testimonials-widget-settings.php:437
|
342 |
+
#: includes/class-testimonials-widget.php:553
|
343 |
msgid "Date"
|
344 |
msgstr ""
|
345 |
|
348 |
msgstr ""
|
349 |
|
350 |
#: includes/class-testimonials-widget-settings.php:439
|
351 |
+
#: includes/class-testimonials-widget.php:545
|
352 |
msgid "Source"
|
353 |
msgstr ""
|
354 |
|
369 |
msgstr ""
|
370 |
|
371 |
#: includes/class-testimonials-widget-settings.php:453
|
372 |
+
#: includes/class-testimonials-widget.php:547
|
373 |
+
#: includes/class-testimonials-widget.php:1620
|
374 |
msgid "Job Title"
|
375 |
msgstr ""
|
376 |
|
377 |
#: includes/class-testimonials-widget-settings.php:454
|
378 |
+
#: includes/class-testimonials-widget.php:549
|
379 |
+
#: includes/class-testimonials-widget.php:1632
|
380 |
msgid "Email"
|
381 |
msgstr ""
|
382 |
|
383 |
#: includes/class-testimonials-widget-settings.php:455
|
384 |
+
#: includes/class-testimonials-widget.php:548
|
385 |
+
#: includes/class-testimonials-widget.php:1626
|
386 |
msgid "Location"
|
387 |
msgstr ""
|
388 |
|
389 |
#: includes/class-testimonials-widget-settings.php:456
|
390 |
+
#: includes/class-testimonials-widget.php:550
|
391 |
+
#: includes/class-testimonials-widget.php:1638
|
392 |
msgid "Company"
|
393 |
msgstr ""
|
394 |
|
395 |
#: includes/class-testimonials-widget-settings.php:457
|
396 |
+
#: includes/class-testimonials-widget.php:551
|
397 |
+
#: includes/class-testimonials-widget.php:1644
|
398 |
msgid "URL"
|
399 |
msgstr ""
|
400 |
|
458 |
msgid "Pre 2.15.0, Testimonials' used custom JavaScript for transitions."
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: includes/class-testimonials-widget-settings.php:553
|
462 |
msgid "Disable Animation?"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: includes/class-testimonials-widget-settings.php:554
|
466 |
msgid "Pre 2.15.0, Disable animation between testimonial transitions. Useful when stacking widgets."
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: includes/class-testimonials-widget-settings.php:562
|
470 |
msgid "Fade Out Speed"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: includes/class-testimonials-widget-settings.php:563
|
474 |
+
#: includes/class-testimonials-widget-settings.php:571
|
475 |
msgid "Pre 2.15.0, Transition duration in milliseconds; higher values indicate slower animations, not faster ones."
|
476 |
msgstr ""
|
477 |
|
478 |
+
#: includes/class-testimonials-widget-settings.php:570
|
479 |
msgid "Fade In Speed"
|
480 |
msgstr ""
|
481 |
|
482 |
+
#: includes/class-testimonials-widget-settings.php:578
|
483 |
msgid "Height"
|
484 |
msgstr ""
|
485 |
|
486 |
+
#: includes/class-testimonials-widget-settings.php:579
|
487 |
msgid "Pre 2.15.0, Testimonials height, in pixels. Overrides minimum and maximum height"
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: includes/class-testimonials-widget-settings.php:585
|
491 |
msgid "Minimum Height"
|
492 |
msgstr ""
|
493 |
|
494 |
+
#: includes/class-testimonials-widget-settings.php:586
|
495 |
msgid "Pre 2.15.0, Set for minimum display height, in pixels"
|
496 |
msgstr ""
|
497 |
|
498 |
+
#: includes/class-testimonials-widget-settings.php:592
|
499 |
msgid "Maximum Height"
|
500 |
msgstr ""
|
501 |
|
502 |
+
#: includes/class-testimonials-widget-settings.php:593
|
503 |
msgid "Pre 2.15.0, Set for maximum display height, in pixels"
|
504 |
msgstr ""
|
505 |
|
|
|
|
|
|
|
|
|
506 |
#: includes/class-testimonials-widget-settings.php:599
|
|
|
|
|
|
|
|
|
507 |
msgid "Include IE7 CSS?"
|
508 |
msgstr ""
|
509 |
|
510 |
+
#: includes/class-testimonials-widget-settings.php:600
|
511 |
msgid "IE7 specific CSS moved to separate CSS file in version 2.13.6."
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: includes/class-testimonials-widget-settings.php:612
|
515 |
msgid "Use `<q>` tag?"
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: includes/class-testimonials-widget-settings.php:613
|
519 |
msgid "Pre 2.11.0, not HTML5 compliant"
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: includes/class-testimonials-widget-settings.php:624
|
523 |
msgid "Remove `.hentry` CSS?"
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: includes/class-testimonials-widget-settings.php:625
|
527 |
msgid "Pre 2.6.4, some themes use class `.hentry` in a manner that breaks Testimonials' CSS"
|
528 |
msgstr ""
|
529 |
|
530 |
+
#: includes/class-testimonials-widget-settings.php:855
|
531 |
msgid "These Testimonials Settings establish the default option values for shortcodes, theme functions, and widget instances. Widgets, once created no longer inherit these global settings. Therefore, you'll need to update each widget with the new settings. It might be easier to delete the widget and then recreate it."
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: includes/class-testimonials-widget-settings.php:857
|
535 |
msgid "Shortcode option names are listed below each entry."
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: includes/class-testimonials-widget-settings.php:860
|
539 |
msgid "View the <a href=\"%s\">Testimonials documentation</a>."
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: includes/class-testimonials-widget-settings.php:870
|
543 |
msgid "Show or hide optional fields."
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: includes/class-testimonials-widget-settings.php:878
|
547 |
msgid "Options used to select testimonials."
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: includes/class-testimonials-widget-settings.php:886
|
551 |
msgid "Options used to determine displayed testimonials ordering."
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: includes/class-testimonials-widget-settings.php:894
|
555 |
msgid "Options related to showing testimonials in widgets."
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: includes/class-testimonials-widget-settings.php:902
|
559 |
msgid "Archive and singular page URL related testimonials options."
|
560 |
msgstr ""
|
561 |
|
562 |
+
#: includes/class-testimonials-widget-settings.php:909
|
563 |
msgid "Compatibility & Reset"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: includes/class-testimonials-widget-settings.php:910
|
567 |
msgid "Backwards compatibility, import/export options, and reset options."
|
568 |
msgstr ""
|
569 |
|
579 |
msgid "This widget's unique CSS class for styling"
|
580 |
msgstr ""
|
581 |
|
582 |
+
#: includes/class-testimonials-widget.php:141
|
583 |
+
#: includes/class-testimonials-widget.php:1987
|
584 |
msgid "Testimonials Shortcode Examples"
|
585 |
msgstr ""
|
586 |
|
587 |
+
#: includes/class-testimonials-widget.php:141
|
588 |
msgid "E.g. Shortcodes"
|
589 |
msgstr ""
|
590 |
|
591 |
+
#: includes/class-testimonials-widget.php:332
|
592 |
msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible CSS fixes."
|
593 |
msgstr ""
|
594 |
|
595 |
+
#: includes/class-testimonials-widget.php:543
|
596 |
msgid "ID"
|
597 |
msgstr ""
|
598 |
|
599 |
+
#: includes/class-testimonials-widget.php:544
|
600 |
msgid "Image"
|
601 |
msgstr ""
|
602 |
|
603 |
+
#: includes/class-testimonials-widget.php:546
|
604 |
msgid "Shortcodes"
|
605 |
msgstr ""
|
606 |
|
607 |
+
#: includes/class-testimonials-widget.php:552
|
608 |
msgid "Published by"
|
609 |
msgstr ""
|
610 |
|
611 |
+
#: includes/class-testimonials-widget.php:558
|
612 |
+
#: includes/class-testimonials-widget.php:561
|
613 |
msgid "Category"
|
614 |
msgstr ""
|
615 |
|
616 |
+
#: includes/class-testimonials-widget.php:559
|
617 |
+
#: includes/class-testimonials-widget.php:562
|
618 |
msgid "Tags"
|
619 |
msgstr ""
|
620 |
|
621 |
+
#: includes/class-testimonials-widget.php:573
|
622 |
msgid "Add New"
|
623 |
msgstr ""
|
624 |
|
625 |
+
#: includes/class-testimonials-widget.php:574
|
626 |
+
#: includes/class-testimonials-widget.php:577
|
627 |
msgid "Add New Testimonial"
|
628 |
msgstr ""
|
629 |
|
630 |
+
#: includes/class-testimonials-widget.php:575
|
631 |
msgid "Edit Testimonial"
|
632 |
msgstr ""
|
633 |
|
634 |
+
#: includes/class-testimonials-widget.php:578
|
635 |
+
#: includes/class-testimonials-widget.php:987
|
636 |
msgid "No testimonials found"
|
637 |
msgstr ""
|
638 |
|
639 |
+
#: includes/class-testimonials-widget.php:579
|
640 |
msgid "No testimonials found in Trash"
|
641 |
msgstr ""
|
642 |
|
643 |
+
#: includes/class-testimonials-widget.php:581
|
644 |
msgid "Search Testimonials"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: includes/class-testimonials-widget.php:582
|
648 |
+
#: includes/class-testimonials-widget.php:1732
|
649 |
msgid "Testimonial"
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: includes/class-testimonials-widget.php:583
|
653 |
msgid "View Testimonial"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: includes/class-testimonials-widget.php:1143
|
657 |
msgid "…"
|
658 |
msgstr ""
|
659 |
|
660 |
+
#: includes/class-testimonials-widget.php:1350
|
661 |
msgid "«"
|
662 |
msgstr ""
|
663 |
|
664 |
+
#: includes/class-testimonials-widget.php:1358
|
665 |
msgid "»"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: includes/class-testimonials-widget.php:1656
|
669 |
msgid "Testimonial Data"
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: includes/class-testimonials-widget.php:1681
|
673 |
msgid "Enter title here"
|
674 |
msgstr ""
|
675 |
|
676 |
+
#: includes/class-testimonials-widget.php:1682
|
677 |
msgid "Enter testimonial source here"
|
678 |
msgstr ""
|
679 |
|
680 |
+
#: includes/class-testimonials-widget.php:1707
|
681 |
msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
|
682 |
msgstr ""
|
683 |
|
684 |
+
#: includes/class-testimonials-widget.php:1708
|
685 |
msgid "Custom field updated."
|
686 |
msgstr ""
|
687 |
|
688 |
+
#: includes/class-testimonials-widget.php:1709
|
689 |
msgid "Custom field deleted."
|
690 |
msgstr ""
|
691 |
|
692 |
+
#: includes/class-testimonials-widget.php:1710
|
693 |
msgid "Testimonial updated."
|
694 |
msgstr ""
|
695 |
|
696 |
#. translators: %s: date and time of the revision
|
697 |
|
698 |
+
#: includes/class-testimonials-widget.php:1712
|
699 |
msgid "Testimonial restored to revision from %s"
|
700 |
msgstr ""
|
701 |
|
702 |
+
#: includes/class-testimonials-widget.php:1713
|
703 |
msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: includes/class-testimonials-widget.php:1714
|
707 |
msgid "Testimonial saved."
|
708 |
msgstr ""
|
709 |
|
710 |
+
#: includes/class-testimonials-widget.php:1715
|
711 |
msgid "Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
|
712 |
msgstr ""
|
713 |
|
714 |
+
#: includes/class-testimonials-widget.php:1716
|
715 |
msgid "Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview testimonial</a>"
|
716 |
msgstr ""
|
717 |
|
718 |
+
#: includes/class-testimonials-widget.php:1717
|
719 |
msgid "Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
|
720 |
msgstr ""
|
721 |
|
722 |
+
#: includes/class-testimonials-widget.php:1978
|
723 |
msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible fixes."
|
724 |
msgstr ""
|
725 |
|
726 |
+
#: includes/class-testimonials-widget.php:2059
|
727 |
+
msgid "Shortcode"
|
728 |
+
msgstr ""
|
729 |
+
|
730 |
#: includes/libraries/aihrus-framework/class-aihrus-common.php:156
|
731 |
msgid "Please donate $5 towards ongoing free support and development of the \"%1$s\" plugin. %2$s"
|
732 |
msgstr ""
|
733 |
|
734 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:62
|
735 |
msgid "Reset"
|
736 |
msgstr ""
|
737 |
|
738 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:63
|
739 |
msgid "About"
|
740 |
msgstr ""
|
741 |
|
742 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:81
|
743 |
msgid "Export Settings"
|
744 |
msgstr ""
|
745 |
|
746 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:83
|
747 |
msgid "These are your current settings in a serialized format. Copy the contents to make a backup of your settings."
|
748 |
msgstr ""
|
749 |
|
750 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:91
|
751 |
msgid "Import Settings"
|
752 |
msgstr ""
|
753 |
|
754 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:93
|
755 |
msgid "Paste new serialized settings here to overwrite your current configuration."
|
756 |
msgstr ""
|
757 |
|
758 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:97
|
759 |
+
msgid "Delete all %s data and options from database on plugin deletion. Even if this option isn't checked, WordPress will still give a data deletion warning."
|
760 |
msgstr ""
|
761 |
|
762 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:101
|
763 |
msgid "Remove Plugin Data on Deletion?"
|
764 |
msgstr ""
|
765 |
|
766 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:110
|
767 |
msgid "Reset to Defaults?"
|
768 |
msgstr ""
|
769 |
|
770 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:113
|
771 |
msgid "Check this box to reset options to their defaults"
|
772 |
msgstr ""
|
773 |
|
774 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:237
|
775 |
msgid "<img class=\"alignright size-medium\" src=\"%1$simages/michael-cannon-red-square-300x2251.jpg\" alt=\"Michael in Red Square, Moscow, Russia\" width=\"300\" height=\"225\" /><a href=\"%2$s\">%3$s</a> is by <a href=\"%4$s\">Michael Cannon</a>. He's <a href=\"%5$s\">Peichi’s</a> smiling man, an adventurous <a href=\"%6$s\" target=\"_blank\">water-rat</a>, <a href=\"%7$s\">chief people officer</a>, <a href=\"%8$s\">cyclist</a>, <a href=\"%9$s\">full stack developer</a>, <a href=\"%10$s\">poet</a>, <a href=\"%11$s\">WWOOF’er</a> and <a href=\"%12$s\">world traveler</a>."
|
776 |
msgstr ""
|
777 |
|
778 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:280
|
779 |
msgid "Save Changes"
|
780 |
msgstr ""
|
781 |
|
782 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:288
|
783 |
msgid "If you like this plugin, please <a href=\"%1$s\" title=\"Donate for Good Karma\"><img src=\"%2$s\" border=\"0\" alt=\"Donate for Good Karma\" /></a> or <a href=\"%3$s\" title=\"purchase premium WordPress plugins from Aihrus \">purchase the Premium version</a> to help fund further development and <a href=\"%4$s\" title=\"Support forums\">support</a>."
|
784 |
msgstr ""
|
785 |
|
786 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:299
|
787 |
msgid "Copyright ©%1$s <a href=\"%2$s\">Aihrus</a>."
|
788 |
msgstr ""
|
789 |
|
790 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:560
|
791 |
+
msgid "Settings saved."
|
792 |
+
msgstr ""
|
793 |
+
|
794 |
+
#: includes/libraries/aihrus-framework/class-aihrus-settings.php:613
|
795 |
msgid "Required"
|
796 |
msgstr ""
|
797 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://aihr.us/about-aihrus/donate/
|
|
5 |
Tags: client, customer, portfolio, quotations, quote, quotes, random, recommendation, reference, review, reviews, testimonial, testimonials, testimony, wpml
|
6 |
Requires at least: 3.6
|
7 |
Tested up to: 3.9.0
|
8 |
-
Stable tag: 2.18.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -16,8 +16,9 @@ Testimonials by Aihrus lets you randomly slide or list selected portfolios, quot
|
|
16 |
|
17 |
Testimonials [by Aihrus](http://aihr.us/about-aihrus/) lets you randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site. You can insert Testimonials content via shortcode, theme functions, or widgets with category and tag selections and having multiple display options such as random or specific ordering. Further, [Review schema](http://schema.org/Review) for improved search engine results is built-in.
|
18 |
|
19 |
-
[youtube
|
20 |
-
|
|
|
21 |
|
22 |
**View a [Live Testimonials Demo](http://aihr.us/good-work-deserves-good-words-testimonials-examples/)**
|
23 |
|
@@ -141,15 +142,16 @@ Testimonials Premium adds onto the best WordPress testimonials plugin there is,
|
|
141 |
* Respects meta capabilities
|
142 |
* Rotation JavaScript in footer than body
|
143 |
* Settings page contextual help
|
|
|
144 |
* Shortcodes allowed inside of testimonials content
|
145 |
* Supports [WP-PageNavi](http://wordpress.org/extend/plugins/wp-pagenavi/)
|
146 |
* Testimonial content supports HTML
|
147 |
* Testimonial, email, and URL fields are clickable – URL requires `http://` or `https://` prefix
|
148 |
-
* Testimonials widget displays static and rotating testimonials
|
149 |
* Testimonials output is completely customizable via filters
|
150 |
* Testimonials support styling based upon CSS classes for category, tags and post id
|
151 |
-
*
|
152 |
* Unique CSS class per widget
|
|
|
153 |
* WordPress Multilingual enabled [WPML](http://wpml.org/)
|
154 |
|
155 |
= Shortcode Examples =
|
@@ -212,13 +214,13 @@ Further, global settings are the baseline for shortcodes. If you want to alter t
|
|
212 |
* `hide_url` - default show; hide_url=true
|
213 |
* URL Target - Add target to all URLs; leave blank if none
|
214 |
* `target` - default none; target=_new
|
215 |
-
* Enable Paging - for [[testimonialswidget_list]]
|
216 |
* `paging` - default true [true|before|after|false]; paging=false
|
217 |
* `true` – display paging before and after testimonial entries
|
218 |
* `before` – display paging only before testimonial entries
|
219 |
* `after` – display paging only after testimonial entries
|
220 |
* Widget - Not functional
|
221 |
-
*
|
222 |
* `do_shortcode` - default false; do_shortcode=true
|
223 |
|
224 |
**Selection**
|
@@ -300,7 +302,6 @@ Further, global settings are the baseline for shortcodes. If you want to alter t
|
|
300 |
* `min_height` - default none; min_height=100
|
301 |
* Maximum Height - Set for maximum display height, in pixels
|
302 |
* `max_height` - default none; max_height=250
|
303 |
-
* Always Load CSS? - Pre 2.14.0. Testimonials' CSS was always loaded, whether needed or not
|
304 |
* Include IE7 CSS? - IE7 specific CSS moved to separate CSS file in version 2.13.6.
|
305 |
* Use `<q>` tag? – Pre 2.11.0. Not HTML5 compliant
|
306 |
* `use_quote_tag` - default none; use_quote_tag=true
|
@@ -312,6 +313,7 @@ Further, global settings are the baseline for shortcodes. If you want to alter t
|
|
312 |
|
313 |
= Requirements =
|
314 |
|
|
|
315 |
* PHP 5.3+ [Read notice](https://aihrus.zendesk.com/entries/30678006) – Since 2.16.0
|
316 |
|
317 |
= Install Methods =
|
@@ -357,12 +359,16 @@ Further, global settings are the baseline for shortcodes. If you want to alter t
|
|
357 |
= Most Common Issues =
|
358 |
|
359 |
* Got `Parse error: syntax error, unexpected T_STATIC, expecting ')'`? Read [Most Aihrus Plugins Require PHP 5.3+](https://aihrus.zendesk.com/entries/30678006) for the fixes.
|
360 |
-
* [Debug common theme and plugin conflicts](https://aihrus.zendesk.com/entries/25119302)
|
361 |
* [Change or debug CSS](https://aihrus.zendesk.com/entries/24910733) AKA "What's up with these quotes?"
|
362 |
* [Customize bxSlider](http://bxslider.com/examples)
|
|
|
363 |
* [How do I change my widget's rotation speed or other options?](https://aihrus.zendesk.com/entries/27714083)
|
|
|
|
|
|
|
364 |
* [Pagination is broken](https://aihrus.zendesk.com/entries/23693513)
|
365 |
* [Test Review schema output](http://www.google.com/webmasters/tools/richsnippets)
|
|
|
366 |
|
367 |
= Still Stuck or Want Something Done? Get Support! =
|
368 |
|
@@ -395,6 +401,7 @@ Further, global settings are the baseline for shortcodes. If you want to alter t
|
|
395 |
18. Dashboard > Right Now "Testimonials" count
|
396 |
19. Using Review and AggregateRating schema data structures
|
397 |
20. Testimonials Shortcode Examples page
|
|
|
398 |
|
399 |
[gallery]
|
400 |
|
@@ -406,6 +413,11 @@ See [Changelog](https://github.com/michael-cannon/testimonials-widget/blob/maste
|
|
406 |
|
407 |
== Upgrade Notice ==
|
408 |
|
|
|
|
|
|
|
|
|
|
|
409 |
= 2.18.0 =
|
410 |
|
411 |
* `remove_hentry` is now true by default
|
5 |
Tags: client, customer, portfolio, quotations, quote, quotes, random, recommendation, reference, review, reviews, testimonial, testimonials, testimony, wpml
|
6 |
Requires at least: 3.6
|
7 |
Tested up to: 3.9.0
|
8 |
+
Stable tag: 2.18.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
16 |
|
17 |
Testimonials [by Aihrus](http://aihr.us/about-aihrus/) lets you randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site. You can insert Testimonials content via shortcode, theme functions, or widgets with category and tag selections and having multiple display options such as random or specific ordering. Further, [Review schema](http://schema.org/Review) for improved search engine results is built-in.
|
18 |
|
19 |
+
[youtube https://www.youtube.com/watch?v=bhUhuQ-2m8s]
|
20 |
+
|
21 |
+
**[Video introduction](https://www.youtube.com/watch?v=bhUhuQ-2m8s)**
|
22 |
|
23 |
**View a [Live Testimonials Demo](http://aihr.us/good-work-deserves-good-words-testimonials-examples/)**
|
24 |
|
142 |
* Respects meta capabilities
|
143 |
* Rotation JavaScript in footer than body
|
144 |
* Settings page contextual help
|
145 |
+
* Shortcode helpers on category and tag admin screens
|
146 |
* Shortcodes allowed inside of testimonials content
|
147 |
* Supports [WP-PageNavi](http://wordpress.org/extend/plugins/wp-pagenavi/)
|
148 |
* Testimonial content supports HTML
|
149 |
* Testimonial, email, and URL fields are clickable – URL requires `http://` or `https://` prefix
|
|
|
150 |
* Testimonials output is completely customizable via filters
|
151 |
* Testimonials support styling based upon CSS classes for category, tags and post id
|
152 |
+
* Testimonials widget displays static and rotating testimonials
|
153 |
* Unique CSS class per widget
|
154 |
+
* URLs can be opened in new windows
|
155 |
* WordPress Multilingual enabled [WPML](http://wpml.org/)
|
156 |
|
157 |
= Shortcode Examples =
|
214 |
* `hide_url` - default show; hide_url=true
|
215 |
* URL Target - Add target to all URLs; leave blank if none
|
216 |
* `target` - default none; target=_new
|
217 |
+
* Enable Paging? - for [[testimonialswidget_list]]
|
218 |
* `paging` - default true [true|before|after|false]; paging=false
|
219 |
* `true` – display paging before and after testimonial entries
|
220 |
* `before` – display paging only before testimonial entries
|
221 |
* `after` – display paging only after testimonial entries
|
222 |
* Widget - Not functional
|
223 |
+
* Enable [shortcodes]? - If unchecked, shortcodes are stripped.
|
224 |
* `do_shortcode` - default false; do_shortcode=true
|
225 |
|
226 |
**Selection**
|
302 |
* `min_height` - default none; min_height=100
|
303 |
* Maximum Height - Set for maximum display height, in pixels
|
304 |
* `max_height` - default none; max_height=250
|
|
|
305 |
* Include IE7 CSS? - IE7 specific CSS moved to separate CSS file in version 2.13.6.
|
306 |
* Use `<q>` tag? – Pre 2.11.0. Not HTML5 compliant
|
307 |
* `use_quote_tag` - default none; use_quote_tag=true
|
313 |
|
314 |
= Requirements =
|
315 |
|
316 |
+
* [jQuery 1.10+](https://aihrus.zendesk.com/entries/23693363)
|
317 |
* PHP 5.3+ [Read notice](https://aihrus.zendesk.com/entries/30678006) – Since 2.16.0
|
318 |
|
319 |
= Install Methods =
|
359 |
= Most Common Issues =
|
360 |
|
361 |
* Got `Parse error: syntax error, unexpected T_STATIC, expecting ')'`? Read [Most Aihrus Plugins Require PHP 5.3+](https://aihrus.zendesk.com/entries/30678006) for the fixes.
|
|
|
362 |
* [Change or debug CSS](https://aihrus.zendesk.com/entries/24910733) AKA "What's up with these quotes?"
|
363 |
* [Customize bxSlider](http://bxslider.com/examples)
|
364 |
+
* [Debug common theme and plugin conflicts](https://aihrus.zendesk.com/entries/25119302)
|
365 |
* [How do I change my widget's rotation speed or other options?](https://aihrus.zendesk.com/entries/27714083)
|
366 |
+
* [How do I create a testimonial record?](https://aihrus.zendesk.com/entries/30602506)
|
367 |
+
* [How to change testimonials layout](https://aihrus.zendesk.com/entries/38055707)
|
368 |
+
* [My options don't work, no matter what I do.](https://aihrus.zendesk.com/entries/30746533)
|
369 |
* [Pagination is broken](https://aihrus.zendesk.com/entries/23693513)
|
370 |
* [Test Review schema output](http://www.google.com/webmasters/tools/richsnippets)
|
371 |
+
* [Widgets don't rotate](https://aihrus.zendesk.com/entries/23693363)
|
372 |
|
373 |
= Still Stuck or Want Something Done? Get Support! =
|
374 |
|
401 |
18. Dashboard > Right Now "Testimonials" count
|
402 |
19. Using Review and AggregateRating schema data structures
|
403 |
20. Testimonials Shortcode Examples page
|
404 |
+
21. Shortcode helpers on category and tag admin screens
|
405 |
|
406 |
[gallery]
|
407 |
|
413 |
|
414 |
== Upgrade Notice ==
|
415 |
|
416 |
+
= 2.18.1 =
|
417 |
+
|
418 |
+
* CSS is back to being always loaded in the header
|
419 |
+
* Removed "Use bxSlider?" and "Include IE7 CSS" from widget options
|
420 |
+
|
421 |
= 2.18.0 =
|
422 |
|
423 |
* `remove_hentry` is now true by default
|
testimonials-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Testimonials by Aihrus
|
4 |
* Plugin URI: http://wordpress.org/plugins/testimonials-widget/
|
5 |
* Description: Testimonials by Aihrus lets you randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site.
|
6 |
-
* Version: 2.18.
|
7 |
* Author: Michael Cannon
|
8 |
* Author URI: http://aihr.us/resume/
|
9 |
* License: GPLv2 or later
|
@@ -26,18 +26,38 @@
|
|
26 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
*/
|
28 |
|
29 |
-
|
30 |
-
define( '
|
31 |
-
|
32 |
-
|
33 |
-
define( '
|
34 |
-
|
35 |
-
|
36 |
-
define( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
require_once TW_DIR_INC . 'requirements.php';
|
39 |
|
|
|
|
|
|
|
40 |
if ( ! tw_requirements_check() ) {
|
|
|
|
|
41 |
return false;
|
42 |
}
|
43 |
|
3 |
* Plugin Name: Testimonials by Aihrus
|
4 |
* Plugin URI: http://wordpress.org/plugins/testimonials-widget/
|
5 |
* Description: Testimonials by Aihrus lets you randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site.
|
6 |
+
* Version: 2.18.1
|
7 |
* Author: Michael Cannon
|
8 |
* Author URI: http://aihr.us/resume/
|
9 |
* License: GPLv2 or later
|
26 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
*/
|
28 |
|
29 |
+
if ( ! defined( 'TW_AIHR_VERSION' ) )
|
30 |
+
define( 'TW_AIHR_VERSION', '1.0.3' );
|
31 |
+
|
32 |
+
if ( ! defined( 'TW_BASE' ) )
|
33 |
+
define( 'TW_BASE', plugin_basename( __FILE__ ) );
|
34 |
+
|
35 |
+
if ( ! defined( 'TW_DIR' ) )
|
36 |
+
define( 'TW_DIR', plugin_dir_path( __FILE__ ) );
|
37 |
+
|
38 |
+
if ( ! defined( 'TW_DIR_INC' ) )
|
39 |
+
define( 'TW_DIR_INC', TW_DIR . 'includes/' );
|
40 |
+
|
41 |
+
if ( ! defined( 'TW_DIR_LIB' ) )
|
42 |
+
define( 'TW_DIR_LIB', TW_DIR_INC . 'libraries/' );
|
43 |
+
|
44 |
+
if ( ! defined( 'TW_NAME' ) )
|
45 |
+
define( 'TW_NAME', 'Testimonials by Aihrus' );
|
46 |
+
|
47 |
+
if ( ! defined( 'TW_PREMIUM_LINK' ) )
|
48 |
+
define( 'TW_PREMIUM_LINK', '<a href="http://aihr.us/downloads/testimonials-widget-premium-wordpress-plugin/">Buy Premium</a>' );
|
49 |
+
|
50 |
+
if ( ! defined( 'TW_VERSION' ) )
|
51 |
+
define( 'TW_VERSION', '2.18.1' );
|
52 |
|
53 |
require_once TW_DIR_INC . 'requirements.php';
|
54 |
|
55 |
+
global $tw_activated;
|
56 |
+
|
57 |
+
$tw_activated = true;
|
58 |
if ( ! tw_requirements_check() ) {
|
59 |
+
$tw_activated = false;
|
60 |
+
|
61 |
return false;
|
62 |
}
|
63 |
|