Testimonials Widget - Version 2.19.8

Version Description

  • Cite fields for company and location are swapped
Download this release

Release Info

Developer comprock
Plugin Icon wp plugin Testimonials Widget
Version 2.19.8
Comparing to
See all releases

Code changes from version 2.19.7 to 2.19.8

API.md CHANGED
@@ -38,7 +38,7 @@ The [Testimonials plugin](http://wordpress.org/plugins/testimonials-widget/) com
38
 
39
  * `testimonials_widget_get_testimonial_html`
40
 
41
- Customize testimonial contents and layout within `get_testimonial_html`. Useful for moving processed parts around than regenerating everything from scratch.. [example](https://aihrus.zendesk.com/entries/23693433-How-do-I-use-filter-testimonials-widget-get-testimonial-html-)
42
 
43
  * `testimonials_widget_gravatar_size`
44
 
@@ -145,7 +145,7 @@ The [Testimonials plugin](http://wordpress.org/plugins/testimonials-widget/) com
145
 
146
  * `testimonials_widget_meta_box`
147
 
148
- Modify Testimonial Data fields. [example](https://gist.github.com/michael-cannon/5833704)
149
 
150
  * `testimonials_widget_posts_custom_column`
151
 
38
 
39
  * `testimonials_widget_get_testimonial_html`
40
 
41
+ Customize testimonial contents and layout within `get_testimonial_html`. Useful for moving processed parts around than regenerating everything from scratch. [example](https://aihrus.zendesk.com/entries/23693433-How-do-I-use-filter-testimonials-widget-get-testimonial-html-)
42
 
43
  * `testimonials_widget_gravatar_size`
44
 
145
 
146
  * `testimonials_widget_meta_box`
147
 
148
+ Modify Testimonial Data fields. [example](https://gist.github.com/michael-cannon/5833704). [Configuration examples](https://github.com/michael-cannon/aihrus-framework/blob/master/includes/libraries/class-redrokk-metabox-class.php#L815)
149
 
150
  * `testimonials_widget_posts_custom_column`
151
 
CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
 
3
  ## master
4
 
 
 
 
 
 
 
 
5
  ## 2.19.7
6
  * RESOLVE Testimonials content has the_content filter applied
7
 
2
 
3
  ## master
4
 
5
+ ## 2.19.8
6
+ * Add Configuration examples for filter testimonials_widget_meta_box
7
+ * Add option Exclude default CSS?
8
+ * Disable WordPress.WhiteSpace.ControlStructureSpacing coding standard
9
+ * RESOLVE #95 Incoming YouTube links not embedded
10
+ * RESOLVE #99 Swap location and company data placements
11
+
12
  ## 2.19.7
13
  * RESOLVE Testimonials content has the_content filter applied
14
 
includes/class-testimonials-widget-settings.php CHANGED
@@ -134,7 +134,7 @@ class Testimonials_Widget_Settings extends Aihrus_Settings {
134
  self::$settings['title_link'] = array(
135
  'section' => 'widget',
136
  'title' => esc_html__( 'Title Link', 'testimonials-widget' ),
137
- 'desc' => esc_html__( 'URL, path, or post ID to link widget title to. Ex: http://example.com/stuff, /testimonials, 123 or ', 'testimonials-widget' ),
138
  'validate' => 'wp_kses_data',
139
  );
140
 
@@ -237,6 +237,14 @@ class Testimonials_Widget_Settings extends Aihrus_Settings {
237
  );
238
  }
239
 
 
 
 
 
 
 
 
 
240
  self::$settings['include_ie7_css'] = array(
241
  'title' => esc_html__( 'Include IE7 CSS?', 'testimonials-widget' ),
242
  'type' => 'checkbox',
134
  self::$settings['title_link'] = array(
135
  'section' => 'widget',
136
  'title' => esc_html__( 'Title Link', 'testimonials-widget' ),
137
+ 'desc' => esc_html__( 'URL, path, or post ID to link widget title to. Ex: http://example.com/stuff, /testimonials, or 123', 'testimonials-widget' ),
138
  'validate' => 'wp_kses_data',
139
  );
140
 
237
  );
238
  }
239
 
240
+ self::$settings['exclude_css'] = array(
241
+ 'title' => esc_html__( 'Exclude default CSS?', 'testimonials-widget' ),
242
+ 'desc' => esc_html__( 'Prevent default CSS from being loaded.', 'testimonials-widget' ),
243
+ 'type' => 'checkbox',
244
+ 'validate' => 'is_true',
245
+ 'widget' => 0,
246
+ );
247
+
248
  self::$settings['include_ie7_css'] = array(
249
  'title' => esc_html__( 'Include IE7 CSS?', 'testimonials-widget' ),
250
  'type' => 'checkbox',
includes/class-testimonials-widget.php CHANGED
@@ -159,8 +159,9 @@ class Testimonials_Widget extends Aihrus_Common {
159
 
160
 
161
  public static function plugin_action_links( $links, $file ) {
162
- if ( self::BASE == $file )
163
  array_unshift( $links, self::$settings_link );
 
164
 
165
  return $links;
166
  }
@@ -206,8 +207,9 @@ class Testimonials_Widget extends Aihrus_Common {
206
  public static function get_single( $content ) {
207
  global $post;
208
 
209
- if ( ! is_single() || self::PT != $post->post_type )
210
  return $content;
 
211
 
212
  $atts = self::get_defaults( true );
213
  $atts['hide_content'] = 1;
@@ -227,6 +229,7 @@ class Testimonials_Widget extends Aihrus_Common {
227
  $details = self::get_testimonial_html( $testimonial, $atts );
228
  $details = apply_filters( 'testimonials_widget_testimonial_html_single', $details, $testimonial, $atts );
229
 
 
230
  $content = apply_filters( 'testimonials_widget_testimonial_html_single_content', $content, $testimonial, $atts );
231
 
232
  $text = $content . $details;
@@ -240,8 +243,9 @@ class Testimonials_Widget extends Aihrus_Common {
240
 
241
 
242
  public static function activation() {
243
- if ( ! current_user_can( 'activate_plugins' ) )
244
  return;
 
245
 
246
  self::init();
247
  flush_rewrite_rules();
@@ -249,16 +253,18 @@ class Testimonials_Widget extends Aihrus_Common {
249
 
250
 
251
  public static function deactivation() {
252
- if ( ! current_user_can( 'activate_plugins' ) )
253
  return;
 
254
 
255
  flush_rewrite_rules();
256
  }
257
 
258
 
259
  public static function uninstall() {
260
- if ( ! current_user_can( 'activate_plugins' ) )
261
  return;
 
262
 
263
  global $wpdb;
264
 
@@ -310,20 +316,23 @@ class Testimonials_Widget extends Aihrus_Common {
310
 
311
 
312
  public static function plugin_row_meta( $input, $file ) {
313
- if ( self::BASE != $file )
314
  return $input;
 
315
 
316
  $disable_donate = tw_get_option( 'disable_donate' );
317
- if ( $disable_donate )
318
  return $input;
 
319
 
320
  $links = array(
321
  self::$donate_link,
322
  );
323
 
324
  global $TW_Premium;
325
- if ( ! isset( $TW_Premium ) )
326
  $links[] = TW_PREMIUM_LINK;
 
327
 
328
  $input = array_merge( $input, $links );
329
 
@@ -338,6 +347,9 @@ class Testimonials_Widget extends Aihrus_Common {
338
  }
339
 
340
 
 
 
 
341
  public static function notice_donate( $disable_donate = null, $item_name = null ) {
342
  $disable_donate = tw_get_option( 'disable_donate' );
343
 
@@ -348,11 +360,13 @@ class Testimonials_Widget extends Aihrus_Common {
348
  public static function update() {
349
  $prior_version = tw_get_option( 'admin_notices' );
350
  if ( $prior_version ) {
351
- if ( $prior_version < '2.12.0' )
352
  self::set_notice( 'notice_2_12_0' );
 
353
 
354
- if ( $prior_version < '2.15.0' )
355
  self::set_notice( 'notice_2_15_0' );
 
356
 
357
  if ( $prior_version < self::VERSION ) {
358
  tw_requirements_check( true );
@@ -370,8 +384,9 @@ class Testimonials_Widget extends Aihrus_Common {
370
  }
371
 
372
  $options = get_option( self::OLD_NAME );
373
- if ( true !== $options['migrated'] )
374
  self::migrate();
 
375
  }
376
 
377
 
@@ -444,8 +459,9 @@ class Testimonials_Widget extends Aihrus_Common {
444
  // track/link testimonial import to new post
445
  add_post_meta( $post_id, $meta_key, $result->testimonial_id );
446
 
447
- if ( ! empty( $company ) )
448
  add_post_meta( $post_id, 'testimonials-widget-company', $company );
 
449
 
450
  $source = $result->source;
451
  if ( ! empty( $source ) ) {
@@ -510,8 +526,9 @@ class Testimonials_Widget extends Aihrus_Common {
510
  case 'testimonials-widget-email':
511
  case 'testimonials-widget-url':
512
  $url = get_post_meta( $post_id, $column, true );
513
- if ( ! empty( $url ) && ! is_email( $url ) && 0 === preg_match( '#https?://#', $url ) )
514
  $url = 'http://' . $url;
 
515
 
516
  $result = make_clickable( $url );
517
  break;
@@ -519,10 +536,11 @@ class Testimonials_Widget extends Aihrus_Common {
519
  case 'thumbnail':
520
  $email = get_post_meta( $post_id, 'testimonials-widget-email', true );
521
 
522
- if ( has_post_thumbnail( $post_id ) )
523
  $result = get_the_post_thumbnail( $post_id, 'thumbnail' );
524
- elseif ( is_email( $email ) )
525
  $result = get_avatar( $email );
 
526
  else
527
  $result = false;
528
  break;
@@ -533,8 +551,9 @@ class Testimonials_Widget extends Aihrus_Common {
533
  $result = '';
534
  if ( ! empty( $terms ) ) {
535
  $out = array();
536
- foreach ( $terms as $term )
537
  $out[] = '<a href="' . admin_url( 'edit-tags.php?action=edit&taxonomy=' . $column . '&tag_ID=' . $term->term_id . '&post_type=' . self::PT ) . '">' . $term->name . '</a>';
 
538
 
539
  $result = join( ', ', $out );
540
  }
@@ -543,8 +562,9 @@ class Testimonials_Widget extends Aihrus_Common {
543
 
544
  $result = apply_filters( 'testimonials_widget_posts_custom_column', $result, $column, $post_id );
545
 
546
- if ( $result )
547
  echo $result;
 
548
  }
549
 
550
 
@@ -643,8 +663,9 @@ class Testimonials_Widget extends Aihrus_Common {
643
  $use_cpt_taxonomy = tw_get_option( 'use_cpt_taxonomy', false );
644
 
645
  // editor's and up
646
- if ( current_user_can( 'edit_others_posts' ) )
647
  $supports[] = 'author';
 
648
 
649
  if ( ! $use_cpt_taxonomy ) {
650
  $do_register_taxonomy = false;
@@ -765,11 +786,13 @@ class Testimonials_Widget extends Aihrus_Common {
765
  if ( empty( $widget_number ) ) {
766
  $widget_number = self::$widget_number++;
767
 
768
- if ( ! isset( $atts['random'] ) )
769
  $atts['random'] = 1;
 
770
 
771
- if ( ! isset( $atts['enable_schema'] ) )
772
  $atts['enable_schema'] = 0;
 
773
  }
774
 
775
  $atts = wp_parse_args( $atts, self::get_defaults() );
@@ -797,8 +820,9 @@ class Testimonials_Widget extends Aihrus_Common {
797
 
798
 
799
  public static function scripts( $atts ) {
800
- if ( is_admin() )
801
  return;
 
802
 
803
  wp_enqueue_script( 'jquery' );
804
 
@@ -819,8 +843,9 @@ class Testimonials_Widget extends Aihrus_Common {
819
 
820
 
821
  public static function styles() {
822
- if ( is_admin() )
823
  return;
 
824
 
825
  $use_bxslider = tw_get_option( 'use_bxslider' );
826
  if ( $use_bxslider ) {
@@ -841,7 +866,10 @@ class Testimonials_Widget extends Aihrus_Common {
841
  }
842
  }
843
 
844
- wp_enqueue_style( __CLASS__ );
 
 
 
845
 
846
  do_action( 'testimonials_widget_styles' );
847
  }
@@ -895,8 +923,9 @@ EOF;
895
 
896
  public static function get_testimonials_html_js( $testimonials, $atts, $widget_number = null ) {
897
  $not_found = self::get_not_found();
898
- if ( $not_found )
899
  return;
 
900
 
901
  $scripts = array();
902
  $scripts_internal = array();
@@ -956,8 +985,9 @@ EOF;
956
  $min_height = $atts['min_height'];
957
 
958
  $enable_animation = 1;
959
- if ( $disable_animation || $height || $max_height || $min_height )
960
  $enable_animation = 0;
 
961
 
962
  if ( $refresh_interval ) {
963
  $javascript .= <<<EOF
@@ -1037,8 +1067,9 @@ EOF;
1037
  if ( is_null( $widget_number ) ) {
1038
  $div_open = '<div class="' . $id;
1039
 
1040
- if ( $is_list )
1041
  $div_open .= ' listing';
 
1042
 
1043
  $div_open .= '">';
1044
  } else {
@@ -1078,8 +1109,9 @@ EOF;
1078
  }
1079
 
1080
  $post_paging = '';
1081
- if ( $paging || $paging_after )
1082
  $post_paging = self::get_testimonials_paging( $atts, false );
 
1083
 
1084
  $div_close = '</div>';
1085
  $div_close .= "\n";
@@ -1127,14 +1159,16 @@ EOF;
1127
  }
1128
  }
1129
 
1130
- if ( $keep_whitespace )
1131
  $class .= ' whitespace';
 
1132
 
1133
  $post_id = $testimonial['post_id'];
1134
- if ( ! empty( $post_id ) )
1135
  $class = join( ' ', get_post_class( $class, $post_id ) );
1136
- else
1137
  $class = 'testimonials-widget type-testimonials-widget status-publish hentry ' . $class;
 
1138
 
1139
  $class = apply_filters( 'testimonials_widget_get_testimonial_html_class', $class, $testimonial, $atts, $is_list, $is_first, $widget_number );
1140
  $div_open = '<div class="' . $class . '">';
@@ -1145,8 +1179,9 @@ EOF;
1145
  $div_open .= sprintf( self::$schema_div_open, self::$review_schema );
1146
  }
1147
 
1148
- if ( $remove_hentry )
1149
  $div_open = str_replace( ' hentry', '', $div_open );
 
1150
 
1151
  $image = '';
1152
  if ( $do_image ) {
@@ -1157,8 +1192,9 @@ EOF;
1157
  $image .= '</span>';
1158
  }
1159
 
1160
- if ( ! $do_image_single && 'get_single' == $atts['type'] )
1161
  $image = '';
 
1162
 
1163
  $quote = self::get_quote( $testimonial, $atts, $widget_number );
1164
 
@@ -1291,8 +1327,9 @@ EOF;
1291
  $cite .= '</span>';
1292
  }
1293
 
1294
- if ( $do_title && $cite )
1295
  $cite .= '<span class="join-title"></span>';
 
1296
 
1297
  if ( $do_title ) {
1298
  $cite .= '<span class="job-title">';
@@ -1300,17 +1337,9 @@ EOF;
1300
  $cite .= '</span>';
1301
  }
1302
 
1303
- if ( $do_location && $cite )
1304
- $cite .= '<span class="join-location"></span>';
1305
-
1306
- if ( $do_location ) {
1307
- $cite .= '<span class="location">';
1308
- $cite .= $testimonial_location;
1309
- $cite .= '</span>';
1310
- }
1311
-
1312
- if ( ( $do_company || ( $do_url && ! $done_url ) ) && $cite )
1313
  $cite .= '<span class="join"></span>';
 
1314
 
1315
  if ( $do_company && $do_url ) {
1316
  $cite .= '<span class="company">';
@@ -1328,6 +1357,16 @@ EOF;
1328
  $cite .= '</span>';
1329
  }
1330
 
 
 
 
 
 
 
 
 
 
 
1331
  $cite = apply_filters( 'testimonials_widget_cite_html', $cite, $testimonial, $atts );
1332
 
1333
  if ( ! empty( $cite ) ) {
@@ -1367,45 +1406,41 @@ EOF;
1367
  }
1368
 
1369
 
 
 
 
1370
  public static function format_content( $content, $widget_number, $atts ) {
1371
- if ( empty ( $content ) )
1372
  return $content;
 
1373
 
1374
  $keep_whitespace = $atts['keep_whitespace'];
1375
  $do_shortcode = $atts['do_shortcode'];
1376
- $enable_video = $atts['enable_video'];
1377
 
1378
- // wrap our own quote class around the content before any formatting
1379
- // happens
1380
 
 
1381
  $temp_content = self::$tag_open_quote;
1382
- $temp_content .= $content;
1383
  $temp_content .= self::$tag_close_quote;
1384
 
1385
  $content = $temp_content;
1386
- $content = trim( $content );
1387
  $content = wptexturize( $content );
1388
  $content = convert_smilies( $content );
1389
  $content = convert_chars( $content );
1390
-
1391
- if ( $enable_video && ! empty( $GLOBALS['wp_embed'] ) ) {
1392
- $content = $GLOBALS['wp_embed']->run_shortcode( $content );
1393
  }
1394
 
 
 
1395
  if ( $do_shortcode ) {
1396
  $content = do_shortcode( $content );
1397
  } else {
1398
  $content = strip_shortcodes( $content );
1399
  }
1400
 
1401
- if ( is_null( $widget_number ) || $keep_whitespace ) {
1402
- $content = wpautop( $content );
1403
- }
1404
-
1405
- $content = shortcode_unautop( $content );
1406
- $content = str_replace( ']]>', ']]&gt;', $content );
1407
- $content = trim( $content );
1408
-
1409
  return $content;
1410
  }
1411
 
@@ -1413,23 +1448,26 @@ EOF;
1413
  public static function get_testimonials_paging( $atts, $prepend = true ) {
1414
  $html = '';
1415
 
1416
- if ( is_home() || 1 === self::$max_num_pages )
1417
  return $html;
 
1418
 
1419
  $html .= '<div class="paging';
1420
 
1421
- if ( $prepend )
1422
  $html .= ' prepend';
1423
- else
1424
  $html .= ' append';
 
1425
 
1426
  $html .= '">';
1427
  $html .= "\n";
1428
 
1429
- if ( $atts['paged'] )
1430
  $paged = $atts['paged'];
1431
- else
1432
  $paged = 1;
 
1433
 
1434
  if ( ! function_exists( 'wp_pagenavi' ) ) {
1435
  $html .= '<div class="alignleft">';
@@ -1469,8 +1507,9 @@ EOF;
1469
 
1470
  public static function get_testimonials_css() {
1471
  if ( empty( self::$css_called ) ) {
1472
- foreach ( self::$css as $css )
1473
  echo $css;
 
1474
 
1475
  self::$css_called = true;
1476
  }
@@ -1479,8 +1518,9 @@ EOF;
1479
 
1480
  public static function get_testimonials_scripts() {
1481
  if ( empty( self::$scripts_called ) ) {
1482
- foreach ( self::$scripts as $script )
1483
  echo $script;
 
1484
 
1485
  self::$scripts_called = true;
1486
  }
@@ -1495,8 +1535,9 @@ EOF;
1495
  public static function get_query_args( $atts ) {
1496
  extract( $atts );
1497
 
1498
- if ( has_filter( 'posts_orderby', 'CPTOrderPosts' ) )
1499
  remove_filter( 'posts_orderby', 'CPTOrderPosts', 99, 2 );
 
1500
 
1501
  if ( empty( $fields ) ) {
1502
  $fields = false;
@@ -1523,24 +1564,27 @@ EOF;
1523
  $args['post_status'][] = 'draft';
1524
  }
1525
 
1526
- if ( $paging && ! empty( $atts['paged'] ) && is_singular() )
1527
  $args['paged'] = $atts['paged'];
 
1528
 
1529
  if ( ! $random && $meta_key ) {
1530
  $args['meta_key'] = $meta_key;
1531
  $args['orderby'] = 'meta_value';
1532
  }
1533
 
1534
- if ( $order )
1535
  $args['order'] = $order;
 
1536
 
1537
  if ( $ids ) {
1538
  $ids = explode( ',', $ids );
1539
 
1540
  $args['post__in'] = $ids;
1541
 
1542
- if ( 'none' == $args['orderby'] )
1543
  add_filter( 'posts_results', array( __CLASS__, 'posts_results_sort_none' ), 10, 2 );
 
1544
  }
1545
 
1546
  if ( $exclude ) {
@@ -1550,20 +1594,24 @@ EOF;
1550
 
1551
  $use_cpt_taxonomy = tw_get_option( 'use_cpt_taxonomy', false );
1552
  if ( ! $use_cpt_taxonomy ) {
1553
- if ( $category )
1554
  $args['category_name'] = $category;
 
1555
 
1556
  if ( $tags ) {
1557
  $tags = explode( ',', $tags );
1558
 
1559
- if ( $tags_all )
1560
  $args['tag_slug__and'] = $tags;
1561
- else
 
1562
  $args['tag_slug__in'] = $tags;
 
1563
  }
1564
  } else {
1565
- if ( $category )
1566
  $args[ self::$cpt_category ] = $category;
 
1567
 
1568
  if ( $tags ) {
1569
  if ( $tags_all ) {
@@ -1608,8 +1656,9 @@ EOF;
1608
  $testimonials = apply_filters( 'testimonials_widget_cache_set', $testimonials, $args );
1609
  }
1610
 
1611
- if ( has_filter( 'posts_results', array( __CLASS__, 'posts_results_sort_none' ) ) )
1612
  remove_filter( 'posts_results', array( __CLASS__, 'posts_results_sort_none' ) );
 
1613
 
1614
  self::$max_num_pages = $testimonials->max_num_pages;
1615
  self::$found_posts = $testimonials->found_posts;
@@ -1621,19 +1670,22 @@ EOF;
1621
  $image_size = apply_filters( 'testimonials_widget_image_size', 'thumbnail' );
1622
  if ( ! is_array( $image_size ) ) {
1623
  global $_wp_additional_image_sizes;
1624
- if ( ! empty( $_wp_additional_image_sizes[ $image_size ] ) )
1625
  $gravatar_size = $_wp_additional_image_sizes[ $image_size ]['width'];
1626
- else
1627
  $gravatar_size = get_option( $image_size . '_size_w' );
 
1628
 
1629
  $gravatar_size = apply_filters( 'testimonials_widget_gravatar_size', $gravatar_size );
1630
- } else
1631
  $gravatar_size = apply_filters( 'testimonials_widget_gravatar_size', $image_size );
 
1632
 
1633
  $testimonial_data = array();
1634
 
1635
- if ( empty( self::$post_count ) )
1636
  return $testimonial_data;
 
1637
 
1638
  foreach ( $testimonials->posts as $row ) {
1639
  $post_id = $row->ID;
@@ -1679,8 +1731,9 @@ EOF;
1679
 
1680
  public static function posts_results_sort_none( $posts, $query ) {
1681
  $order = $query->query_vars['post__in'];
1682
- if ( empty( $order ) )
1683
  return $posts;
 
1684
 
1685
  $posts_none_sorted = array();
1686
  // put posts in same orders as post__in
@@ -1827,10 +1880,11 @@ EOF;
1827
  $a_open = '<a href="edit.php?post_type=' . self::PT . '">';
1828
  $a_close = '</a>';
1829
 
1830
- if ( current_user_can( 'edit_others_posts' ) )
1831
  $result = sprintf( $content, self::PT, $count_f, $name, $a_open, $a_close );
1832
- else
1833
  $result = sprintf( $content, self::PT, $count_f, $name, '', '' );
 
1834
 
1835
  echo $result;
1836
  }
@@ -1843,8 +1897,9 @@ EOF;
1843
  */
1844
  public static function get_schema( $testimonial, $atts ) {
1845
  foreach ( $testimonial as $key => $value ) {
1846
- if ( 'testimonial_image' != $key )
1847
  $testimonial[ $key ] = self::clean_string( $value );
 
1848
  }
1849
 
1850
  extract( $testimonial );
@@ -1871,21 +1926,26 @@ EOF;
1871
  $org_meta = array();
1872
  $review_meta = array();
1873
 
1874
- if ( $do_source )
1875
  $author_meta[ self::$thing_name ] = $testimonial_source;
 
1876
 
1877
- if ( $do_title )
1878
  $author_meta[ self::$person_job_title ] = $testimonial_title;
 
1879
 
1880
- if ( $do_email )
1881
  $author_meta[ self::$person_email ] = $testimonial_email;
 
1882
 
1883
  if ( ! $do_company ) {
1884
- if ( $do_url )
1885
  $author_meta[ self::$thing_url ] = $testimonial_url;
 
1886
  } else {
1887
- if ( $do_url )
1888
  $org_meta[ self::$thing_url ] = $testimonial_url;
 
1889
 
1890
  $org_meta[ self::$thing_name ] = $testimonial_company;
1891
  }
@@ -1893,16 +1953,18 @@ EOF;
1893
  if ( $do_location ) {
1894
  $location_meta[ self::$thing_name ] = $testimonial_location;
1895
 
1896
- if ( ! $do_company )
1897
  $author_meta[ self::$person_home ] = array( self::$place_schema, $location_meta );
1898
- else
1899
  $org_meta[ self::$org_location ] = array( self::$place_schema, $location_meta );
 
1900
  }
1901
 
1902
- if ( ! empty( $author_meta ) && ! empty( $org_meta ) )
1903
  $author_meta[ self::$person_member ] = array( self::$org_schema, $org_meta );
1904
- elseif ( ! empty( $org_meta ) )
1905
  $author_meta[ self::$cw_source_org ] = array( self::$org_schema, $org_meta );
 
1906
 
1907
  $author_meta = apply_filters( 'testimonials_widget_schema_author', $author_meta, $testimonial, $atts );
1908
  $author = self::create_schema_div_prop( self::$cw_author, self::$person_schema, $author_meta );
@@ -1915,8 +1977,9 @@ EOF;
1915
 
1916
  $review_name_length = apply_filters( 'testimonials_widget_review_name_length', 156 );
1917
 
1918
- if ( $do_content )
1919
  $review_meta[ self::$review_body ] = $testimonial['testimonial_content'];
 
1920
 
1921
  $review_meta[ self::$cw_date ] = $the_date;
1922
  $review_meta[ self::$cw_date_mod ] = $the_date_mod;
@@ -1961,14 +2024,16 @@ EOF;
1961
  public static function create_schema_meta( $meta_data ) {
1962
  $meta = '';
1963
 
1964
- if ( empty( $meta_data ) )
1965
  return $meta;
 
1966
 
1967
  foreach ( $meta_data as $key => $value ) {
1968
- if ( is_array( $value ) )
1969
  $meta .= self::create_schema_div_prop( $key, $value[ 0 ], $value[ 1 ] );
1970
- else
1971
  $meta .= sprintf( self::$schema_meta, $key, $value );
 
1972
 
1973
  $meta .= "\n";
1974
  }
@@ -1980,8 +2045,9 @@ EOF;
1980
  public static function create_schema_span( $property_name, $span_data ) {
1981
  $span = '';
1982
 
1983
- if ( empty( $span_data ) )
1984
  return $span;
 
1985
 
1986
  $span = sprintf( self::$schema_span, $property_name, $span_data );
1987
 
@@ -1993,22 +2059,25 @@ EOF;
1993
  $meta = '';
1994
  $schema = '';
1995
 
1996
- if ( empty( $meta_data ) )
1997
  return $schema;
 
1998
 
1999
  if ( is_array( $meta_data ) ) {
2000
  foreach ( $meta_data as $key => $value ) {
2001
- if ( is_array( $value ) )
2002
  $meta .= self::create_schema_div_prop( $key, $value[ 0 ], $value[ 1 ] );
2003
- else
2004
  $meta .= sprintf( self::$schema_meta, $key, $value );
 
2005
 
2006
  $meta .= "\n";
2007
  }
2008
 
2009
  $schema = sprintf( self::$schema_div_prop, $property_name, $schema_name, $meta );
2010
- } else
2011
  $schema = sprintf( self::$schema_div_prop, $property_name, $schema_name, $meta_data );
 
2012
 
2013
  return $schema;
2014
  }
@@ -2047,8 +2116,9 @@ EOF;
2047
 
2048
 
2049
  public static function call_scripts_styles( $testimonials, $atts, $widget_number = null ) {
2050
- if ( is_null( $widget_number ) )
2051
  $widget_number = self::get_instance();
 
2052
 
2053
  self::scripts( $atts );
2054
 
@@ -2165,15 +2235,17 @@ EOD;
2165
 
2166
  $use_cpt_taxonomy = tw_get_option( 'use_cpt_taxonomy', false );
2167
  if ( ! $use_cpt_taxonomy ) {
2168
- if ( $category )
2169
  $term = get_term( $term_id, 'category' );
2170
- else
2171
  $term = get_term( $term_id, 'post_tag' );
 
2172
  } else {
2173
- if ( $category )
2174
  $term = get_term( $term_id, self::$cpt_category );
2175
- else
2176
  $term = get_term( $term_id, self::$cpt_tags );
 
2177
  }
2178
 
2179
  switch ( $column_name ) {
@@ -2194,8 +2266,9 @@ EOD;
2194
 
2195
 
2196
  public static function dashboard_glance_items( $array ) {
2197
- if ( ! current_user_can( 'edit_others_posts' ) )
2198
  return $array;
 
2199
 
2200
  $count = apply_filters( 'testimonials_widget_cache_get', false, 'dashboard_count' );
2201
  if ( false === $count ) {
@@ -2216,6 +2289,20 @@ EOD;
2216
 
2217
  return $array;
2218
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2219
  }
2220
 
2221
 
159
 
160
 
161
  public static function plugin_action_links( $links, $file ) {
162
+ if ( self::BASE == $file ) {
163
  array_unshift( $links, self::$settings_link );
164
+ }
165
 
166
  return $links;
167
  }
207
  public static function get_single( $content ) {
208
  global $post;
209
 
210
+ if ( ! is_single() || self::PT != $post->post_type ) {
211
  return $content;
212
+ }
213
 
214
  $atts = self::get_defaults( true );
215
  $atts['hide_content'] = 1;
229
  $details = self::get_testimonial_html( $testimonial, $atts );
230
  $details = apply_filters( 'testimonials_widget_testimonial_html_single', $details, $testimonial, $atts );
231
 
232
+ $content = self::do_video( $content, $atts );
233
  $content = apply_filters( 'testimonials_widget_testimonial_html_single_content', $content, $testimonial, $atts );
234
 
235
  $text = $content . $details;
243
 
244
 
245
  public static function activation() {
246
+ if ( ! current_user_can( 'activate_plugins' ) ) {
247
  return;
248
+ }
249
 
250
  self::init();
251
  flush_rewrite_rules();
253
 
254
 
255
  public static function deactivation() {
256
+ if ( ! current_user_can( 'activate_plugins' ) ) {
257
  return;
258
+ }
259
 
260
  flush_rewrite_rules();
261
  }
262
 
263
 
264
  public static function uninstall() {
265
+ if ( ! current_user_can( 'activate_plugins' ) ) {
266
  return;
267
+ }
268
 
269
  global $wpdb;
270
 
316
 
317
 
318
  public static function plugin_row_meta( $input, $file ) {
319
+ if ( self::BASE != $file ) {
320
  return $input;
321
+ }
322
 
323
  $disable_donate = tw_get_option( 'disable_donate' );
324
+ if ( $disable_donate ) {
325
  return $input;
326
+ }
327
 
328
  $links = array(
329
  self::$donate_link,
330
  );
331
 
332
  global $TW_Premium;
333
+ if ( ! isset( $TW_Premium ) ) {
334
  $links[] = TW_PREMIUM_LINK;
335
+ }
336
 
337
  $input = array_merge( $input, $links );
338
 
347
  }
348
 
349
 
350
+ /**
351
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
352
+ */
353
  public static function notice_donate( $disable_donate = null, $item_name = null ) {
354
  $disable_donate = tw_get_option( 'disable_donate' );
355
 
360
  public static function update() {
361
  $prior_version = tw_get_option( 'admin_notices' );
362
  if ( $prior_version ) {
363
+ if ( $prior_version < '2.12.0' ) {
364
  self::set_notice( 'notice_2_12_0' );
365
+ }
366
 
367
+ if ( $prior_version < '2.15.0' ) {
368
  self::set_notice( 'notice_2_15_0' );
369
+ }
370
 
371
  if ( $prior_version < self::VERSION ) {
372
  tw_requirements_check( true );
384
  }
385
 
386
  $options = get_option( self::OLD_NAME );
387
+ if ( true !== $options['migrated'] ) {
388
  self::migrate();
389
+ }
390
  }
391
 
392
 
459
  // track/link testimonial import to new post
460
  add_post_meta( $post_id, $meta_key, $result->testimonial_id );
461
 
462
+ if ( ! empty( $company ) ) {
463
  add_post_meta( $post_id, 'testimonials-widget-company', $company );
464
+ }
465
 
466
  $source = $result->source;
467
  if ( ! empty( $source ) ) {
526
  case 'testimonials-widget-email':
527
  case 'testimonials-widget-url':
528
  $url = get_post_meta( $post_id, $column, true );
529
+ if ( ! empty( $url ) && ! is_email( $url ) && 0 === preg_match( '#https?://#', $url ) ) {
530
  $url = 'http://' . $url;
531
+ }
532
 
533
  $result = make_clickable( $url );
534
  break;
536
  case 'thumbnail':
537
  $email = get_post_meta( $post_id, 'testimonials-widget-email', true );
538
 
539
+ if ( has_post_thumbnail( $post_id ) ) {
540
  $result = get_the_post_thumbnail( $post_id, 'thumbnail' );
541
+ } elseif ( is_email( $email ) ) {
542
  $result = get_avatar( $email );
543
+ }
544
  else
545
  $result = false;
546
  break;
551
  $result = '';
552
  if ( ! empty( $terms ) ) {
553
  $out = array();
554
+ foreach ( $terms as $term ) {
555
  $out[] = '<a href="' . admin_url( 'edit-tags.php?action=edit&taxonomy=' . $column . '&tag_ID=' . $term->term_id . '&post_type=' . self::PT ) . '">' . $term->name . '</a>';
556
+ }
557
 
558
  $result = join( ', ', $out );
559
  }
562
 
563
  $result = apply_filters( 'testimonials_widget_posts_custom_column', $result, $column, $post_id );
564
 
565
+ if ( $result ) {
566
  echo $result;
567
+ }
568
  }
569
 
570
 
663
  $use_cpt_taxonomy = tw_get_option( 'use_cpt_taxonomy', false );
664
 
665
  // editor's and up
666
+ if ( current_user_can( 'edit_others_posts' ) ) {
667
  $supports[] = 'author';
668
+ }
669
 
670
  if ( ! $use_cpt_taxonomy ) {
671
  $do_register_taxonomy = false;
786
  if ( empty( $widget_number ) ) {
787
  $widget_number = self::$widget_number++;
788
 
789
+ if ( ! isset( $atts['random'] ) ) {
790
  $atts['random'] = 1;
791
+ }
792
 
793
+ if ( ! isset( $atts['enable_schema'] ) ) {
794
  $atts['enable_schema'] = 0;
795
+ }
796
  }
797
 
798
  $atts = wp_parse_args( $atts, self::get_defaults() );
820
 
821
 
822
  public static function scripts( $atts ) {
823
+ if ( is_admin() ) {
824
  return;
825
+ }
826
 
827
  wp_enqueue_script( 'jquery' );
828
 
843
 
844
 
845
  public static function styles() {
846
+ if ( is_admin() ) {
847
  return;
848
+ }
849
 
850
  $use_bxslider = tw_get_option( 'use_bxslider' );
851
  if ( $use_bxslider ) {
866
  }
867
  }
868
 
869
+ $exclude_css = tw_get_option( 'exclude_css' );
870
+ if ( empty( $exclude_css ) ) {
871
+ wp_enqueue_style( __CLASS__ );
872
+ }
873
 
874
  do_action( 'testimonials_widget_styles' );
875
  }
923
 
924
  public static function get_testimonials_html_js( $testimonials, $atts, $widget_number = null ) {
925
  $not_found = self::get_not_found();
926
+ if ( $not_found ) {
927
  return;
928
+ }
929
 
930
  $scripts = array();
931
  $scripts_internal = array();
985
  $min_height = $atts['min_height'];
986
 
987
  $enable_animation = 1;
988
+ if ( $disable_animation || $height || $max_height || $min_height ) {
989
  $enable_animation = 0;
990
+ }
991
 
992
  if ( $refresh_interval ) {
993
  $javascript .= <<<EOF
1067
  if ( is_null( $widget_number ) ) {
1068
  $div_open = '<div class="' . $id;
1069
 
1070
+ if ( $is_list ) {
1071
  $div_open .= ' listing';
1072
+ }
1073
 
1074
  $div_open .= '">';
1075
  } else {
1109
  }
1110
 
1111
  $post_paging = '';
1112
+ if ( $paging || $paging_after ) {
1113
  $post_paging = self::get_testimonials_paging( $atts, false );
1114
+ }
1115
 
1116
  $div_close = '</div>';
1117
  $div_close .= "\n";
1159
  }
1160
  }
1161
 
1162
+ if ( $keep_whitespace ) {
1163
  $class .= ' whitespace';
1164
+ }
1165
 
1166
  $post_id = $testimonial['post_id'];
1167
+ if ( ! empty( $post_id ) ) {
1168
  $class = join( ' ', get_post_class( $class, $post_id ) );
1169
+ } else {
1170
  $class = 'testimonials-widget type-testimonials-widget status-publish hentry ' . $class;
1171
+ }
1172
 
1173
  $class = apply_filters( 'testimonials_widget_get_testimonial_html_class', $class, $testimonial, $atts, $is_list, $is_first, $widget_number );
1174
  $div_open = '<div class="' . $class . '">';
1179
  $div_open .= sprintf( self::$schema_div_open, self::$review_schema );
1180
  }
1181
 
1182
+ if ( $remove_hentry ) {
1183
  $div_open = str_replace( ' hentry', '', $div_open );
1184
+ }
1185
 
1186
  $image = '';
1187
  if ( $do_image ) {
1192
  $image .= '</span>';
1193
  }
1194
 
1195
+ if ( ! $do_image_single && 'get_single' == $atts['type'] ) {
1196
  $image = '';
1197
+ }
1198
 
1199
  $quote = self::get_quote( $testimonial, $atts, $widget_number );
1200
 
1327
  $cite .= '</span>';
1328
  }
1329
 
1330
+ if ( $do_title && $cite ) {
1331
  $cite .= '<span class="join-title"></span>';
1332
+ }
1333
 
1334
  if ( $do_title ) {
1335
  $cite .= '<span class="job-title">';
1337
  $cite .= '</span>';
1338
  }
1339
 
1340
+ if ( ( $do_company || ( $do_url && ! $done_url ) ) && $cite ) {
 
 
 
 
 
 
 
 
 
1341
  $cite .= '<span class="join"></span>';
1342
+ }
1343
 
1344
  if ( $do_company && $do_url ) {
1345
  $cite .= '<span class="company">';
1357
  $cite .= '</span>';
1358
  }
1359
 
1360
+ if ( $do_location && $cite ) {
1361
+ $cite .= '<span class="join-location"></span>';
1362
+ }
1363
+
1364
+ if ( $do_location ) {
1365
+ $cite .= '<span class="location">';
1366
+ $cite .= $testimonial_location;
1367
+ $cite .= '</span>';
1368
+ }
1369
+
1370
  $cite = apply_filters( 'testimonials_widget_cite_html', $cite, $testimonial, $atts );
1371
 
1372
  if ( ! empty( $cite ) ) {
1406
  }
1407
 
1408
 
1409
+ /**
1410
+ * @SuppressWarnings(PHPMD.Superglobals)
1411
+ */
1412
  public static function format_content( $content, $widget_number, $atts ) {
1413
+ if ( empty ( $content ) ) {
1414
  return $content;
1415
+ }
1416
 
1417
  $keep_whitespace = $atts['keep_whitespace'];
1418
  $do_shortcode = $atts['do_shortcode'];
 
1419
 
1420
+ $content = self::do_video( $content, $atts );
 
1421
 
1422
+ // wrap our own quote class around the content before any formatting happens
1423
  $temp_content = self::$tag_open_quote;
1424
+ $temp_content .= trim( $content );
1425
  $temp_content .= self::$tag_close_quote;
1426
 
1427
  $content = $temp_content;
1428
+
1429
  $content = wptexturize( $content );
1430
  $content = convert_smilies( $content );
1431
  $content = convert_chars( $content );
1432
+ if ( is_null( $widget_number ) || $keep_whitespace ) {
1433
+ $content = wpautop( $content );
 
1434
  }
1435
 
1436
+ $content = shortcode_unautop( $content );
1437
+ $content = str_replace( ']]>', ']]&gt;', $content );
1438
  if ( $do_shortcode ) {
1439
  $content = do_shortcode( $content );
1440
  } else {
1441
  $content = strip_shortcodes( $content );
1442
  }
1443
 
 
 
 
 
 
 
 
 
1444
  return $content;
1445
  }
1446
 
1448
  public static function get_testimonials_paging( $atts, $prepend = true ) {
1449
  $html = '';
1450
 
1451
+ if ( is_home() || 1 === self::$max_num_pages ) {
1452
  return $html;
1453
+ }
1454
 
1455
  $html .= '<div class="paging';
1456
 
1457
+ if ( $prepend ) {
1458
  $html .= ' prepend';
1459
+ } else {
1460
  $html .= ' append';
1461
+ }
1462
 
1463
  $html .= '">';
1464
  $html .= "\n";
1465
 
1466
+ if ( $atts['paged'] ) {
1467
  $paged = $atts['paged'];
1468
+ } else {
1469
  $paged = 1;
1470
+ }
1471
 
1472
  if ( ! function_exists( 'wp_pagenavi' ) ) {
1473
  $html .= '<div class="alignleft">';
1507
 
1508
  public static function get_testimonials_css() {
1509
  if ( empty( self::$css_called ) ) {
1510
+ foreach ( self::$css as $css ) {
1511
  echo $css;
1512
+ }
1513
 
1514
  self::$css_called = true;
1515
  }
1518
 
1519
  public static function get_testimonials_scripts() {
1520
  if ( empty( self::$scripts_called ) ) {
1521
+ foreach ( self::$scripts as $script ) {
1522
  echo $script;
1523
+ }
1524
 
1525
  self::$scripts_called = true;
1526
  }
1535
  public static function get_query_args( $atts ) {
1536
  extract( $atts );
1537
 
1538
+ if ( has_filter( 'posts_orderby', 'CPTOrderPosts' ) ) {
1539
  remove_filter( 'posts_orderby', 'CPTOrderPosts', 99, 2 );
1540
+ }
1541
 
1542
  if ( empty( $fields ) ) {
1543
  $fields = false;
1564
  $args['post_status'][] = 'draft';
1565
  }
1566
 
1567
+ if ( $paging && ! empty( $atts['paged'] ) && is_singular() ) {
1568
  $args['paged'] = $atts['paged'];
1569
+ }
1570
 
1571
  if ( ! $random && $meta_key ) {
1572
  $args['meta_key'] = $meta_key;
1573
  $args['orderby'] = 'meta_value';
1574
  }
1575
 
1576
+ if ( $order ) {
1577
  $args['order'] = $order;
1578
+ }
1579
 
1580
  if ( $ids ) {
1581
  $ids = explode( ',', $ids );
1582
 
1583
  $args['post__in'] = $ids;
1584
 
1585
+ if ( 'none' == $args['orderby'] ) {
1586
  add_filter( 'posts_results', array( __CLASS__, 'posts_results_sort_none' ), 10, 2 );
1587
+ }
1588
  }
1589
 
1590
  if ( $exclude ) {
1594
 
1595
  $use_cpt_taxonomy = tw_get_option( 'use_cpt_taxonomy', false );
1596
  if ( ! $use_cpt_taxonomy ) {
1597
+ if ( $category ) {
1598
  $args['category_name'] = $category;
1599
+ }
1600
 
1601
  if ( $tags ) {
1602
  $tags = explode( ',', $tags );
1603
 
1604
+ if ( $tags_all ) {
1605
  $args['tag_slug__and'] = $tags;
1606
+ }
1607
+ else {
1608
  $args['tag_slug__in'] = $tags;
1609
+ }
1610
  }
1611
  } else {
1612
+ if ( $category ) {
1613
  $args[ self::$cpt_category ] = $category;
1614
+ }
1615
 
1616
  if ( $tags ) {
1617
  if ( $tags_all ) {
1656
  $testimonials = apply_filters( 'testimonials_widget_cache_set', $testimonials, $args );
1657
  }
1658
 
1659
+ if ( has_filter( 'posts_results', array( __CLASS__, 'posts_results_sort_none' ) ) ) {
1660
  remove_filter( 'posts_results', array( __CLASS__, 'posts_results_sort_none' ) );
1661
+ }
1662
 
1663
  self::$max_num_pages = $testimonials->max_num_pages;
1664
  self::$found_posts = $testimonials->found_posts;
1670
  $image_size = apply_filters( 'testimonials_widget_image_size', 'thumbnail' );
1671
  if ( ! is_array( $image_size ) ) {
1672
  global $_wp_additional_image_sizes;
1673
+ if ( ! empty( $_wp_additional_image_sizes[ $image_size ] ) ) {
1674
  $gravatar_size = $_wp_additional_image_sizes[ $image_size ]['width'];
1675
+ } else {
1676
  $gravatar_size = get_option( $image_size . '_size_w' );
1677
+ }
1678
 
1679
  $gravatar_size = apply_filters( 'testimonials_widget_gravatar_size', $gravatar_size );
1680
+ } else {
1681
  $gravatar_size = apply_filters( 'testimonials_widget_gravatar_size', $image_size );
1682
+ }
1683
 
1684
  $testimonial_data = array();
1685
 
1686
+ if ( empty( self::$post_count ) ) {
1687
  return $testimonial_data;
1688
+ }
1689
 
1690
  foreach ( $testimonials->posts as $row ) {
1691
  $post_id = $row->ID;
1731
 
1732
  public static function posts_results_sort_none( $posts, $query ) {
1733
  $order = $query->query_vars['post__in'];
1734
+ if ( empty( $order ) ) {
1735
  return $posts;
1736
+ }
1737
 
1738
  $posts_none_sorted = array();
1739
  // put posts in same orders as post__in
1880
  $a_open = '<a href="edit.php?post_type=' . self::PT . '">';
1881
  $a_close = '</a>';
1882
 
1883
+ if ( current_user_can( 'edit_others_posts' ) ) {
1884
  $result = sprintf( $content, self::PT, $count_f, $name, $a_open, $a_close );
1885
+ } else {
1886
  $result = sprintf( $content, self::PT, $count_f, $name, '', '' );
1887
+ }
1888
 
1889
  echo $result;
1890
  }
1897
  */
1898
  public static function get_schema( $testimonial, $atts ) {
1899
  foreach ( $testimonial as $key => $value ) {
1900
+ if ( 'testimonial_image' != $key ) {
1901
  $testimonial[ $key ] = self::clean_string( $value );
1902
+ }
1903
  }
1904
 
1905
  extract( $testimonial );
1926
  $org_meta = array();
1927
  $review_meta = array();
1928
 
1929
+ if ( $do_source ) {
1930
  $author_meta[ self::$thing_name ] = $testimonial_source;
1931
+ }
1932
 
1933
+ if ( $do_title ) {
1934
  $author_meta[ self::$person_job_title ] = $testimonial_title;
1935
+ }
1936
 
1937
+ if ( $do_email ) {
1938
  $author_meta[ self::$person_email ] = $testimonial_email;
1939
+ }
1940
 
1941
  if ( ! $do_company ) {
1942
+ if ( $do_url ) {
1943
  $author_meta[ self::$thing_url ] = $testimonial_url;
1944
+ }
1945
  } else {
1946
+ if ( $do_url ) {
1947
  $org_meta[ self::$thing_url ] = $testimonial_url;
1948
+ }
1949
 
1950
  $org_meta[ self::$thing_name ] = $testimonial_company;
1951
  }
1953
  if ( $do_location ) {
1954
  $location_meta[ self::$thing_name ] = $testimonial_location;
1955
 
1956
+ if ( ! $do_company ) {
1957
  $author_meta[ self::$person_home ] = array( self::$place_schema, $location_meta );
1958
+ } else {
1959
  $org_meta[ self::$org_location ] = array( self::$place_schema, $location_meta );
1960
+ }
1961
  }
1962
 
1963
+ if ( ! empty( $author_meta ) && ! empty( $org_meta ) ) {
1964
  $author_meta[ self::$person_member ] = array( self::$org_schema, $org_meta );
1965
+ } elseif ( ! empty( $org_meta ) ) {
1966
  $author_meta[ self::$cw_source_org ] = array( self::$org_schema, $org_meta );
1967
+ }
1968
 
1969
  $author_meta = apply_filters( 'testimonials_widget_schema_author', $author_meta, $testimonial, $atts );
1970
  $author = self::create_schema_div_prop( self::$cw_author, self::$person_schema, $author_meta );
1977
 
1978
  $review_name_length = apply_filters( 'testimonials_widget_review_name_length', 156 );
1979
 
1980
+ if ( $do_content ) {
1981
  $review_meta[ self::$review_body ] = $testimonial['testimonial_content'];
1982
+ }
1983
 
1984
  $review_meta[ self::$cw_date ] = $the_date;
1985
  $review_meta[ self::$cw_date_mod ] = $the_date_mod;
2024
  public static function create_schema_meta( $meta_data ) {
2025
  $meta = '';
2026
 
2027
+ if ( empty( $meta_data ) ) {
2028
  return $meta;
2029
+ }
2030
 
2031
  foreach ( $meta_data as $key => $value ) {
2032
+ if ( is_array( $value ) ) {
2033
  $meta .= self::create_schema_div_prop( $key, $value[ 0 ], $value[ 1 ] );
2034
+ } else {
2035
  $meta .= sprintf( self::$schema_meta, $key, $value );
2036
+ }
2037
 
2038
  $meta .= "\n";
2039
  }
2045
  public static function create_schema_span( $property_name, $span_data ) {
2046
  $span = '';
2047
 
2048
+ if ( empty( $span_data ) ) {
2049
  return $span;
2050
+ }
2051
 
2052
  $span = sprintf( self::$schema_span, $property_name, $span_data );
2053
 
2059
  $meta = '';
2060
  $schema = '';
2061
 
2062
+ if ( empty( $meta_data ) ) {
2063
  return $schema;
2064
+ }
2065
 
2066
  if ( is_array( $meta_data ) ) {
2067
  foreach ( $meta_data as $key => $value ) {
2068
+ if ( is_array( $value ) ) {
2069
  $meta .= self::create_schema_div_prop( $key, $value[ 0 ], $value[ 1 ] );
2070
+ } else {
2071
  $meta .= sprintf( self::$schema_meta, $key, $value );
2072
+ }
2073
 
2074
  $meta .= "\n";
2075
  }
2076
 
2077
  $schema = sprintf( self::$schema_div_prop, $property_name, $schema_name, $meta );
2078
+ } else {
2079
  $schema = sprintf( self::$schema_div_prop, $property_name, $schema_name, $meta_data );
2080
+ }
2081
 
2082
  return $schema;
2083
  }
2116
 
2117
 
2118
  public static function call_scripts_styles( $testimonials, $atts, $widget_number = null ) {
2119
+ if ( is_null( $widget_number ) ) {
2120
  $widget_number = self::get_instance();
2121
+ }
2122
 
2123
  self::scripts( $atts );
2124
 
2235
 
2236
  $use_cpt_taxonomy = tw_get_option( 'use_cpt_taxonomy', false );
2237
  if ( ! $use_cpt_taxonomy ) {
2238
+ if ( $category ) {
2239
  $term = get_term( $term_id, 'category' );
2240
+ } else {
2241
  $term = get_term( $term_id, 'post_tag' );
2242
+ }
2243
  } else {
2244
+ if ( $category ) {
2245
  $term = get_term( $term_id, self::$cpt_category );
2246
+ } else {
2247
  $term = get_term( $term_id, self::$cpt_tags );
2248
+ }
2249
  }
2250
 
2251
  switch ( $column_name ) {
2266
 
2267
 
2268
  public static function dashboard_glance_items( $array ) {
2269
+ if ( ! current_user_can( 'edit_others_posts' ) ) {
2270
  return $array;
2271
+ }
2272
 
2273
  $count = apply_filters( 'testimonials_widget_cache_get', false, 'dashboard_count' );
2274
  if ( false === $count ) {
2289
 
2290
  return $array;
2291
  }
2292
+
2293
+
2294
+ /**
2295
+ * @SuppressWarnings(PHPMD.Superglobals)
2296
+ */
2297
+ public static function do_video( $content, $atts ) {
2298
+ $enable_video = $atts['enable_video'];
2299
+ if ( $enable_video && ! empty( $GLOBALS['wp_embed'] ) ) {
2300
+ $content = $GLOBALS['wp_embed']->autoembed( $content );
2301
+ $content = $GLOBALS['wp_embed']->run_shortcode( $content );
2302
+ }
2303
+
2304
+ return $content;
2305
+ }
2306
  }
2307
 
2308
 
includes/libraries/aihrus-framework/includes/class-aihrus-licensing.php CHANGED
@@ -100,7 +100,7 @@ abstract class Aihrus_Licensing implements Aihrus_Licensing_Interface {
100
  delete_transient( $key );
101
 
102
  if ( ! is_null( $value ) ) {
103
- set_transient( $key, $value, 2 * YEAR_IN_SECONDS );
104
  }
105
  }
106
 
100
  delete_transient( $key );
101
 
102
  if ( ! is_null( $value ) ) {
103
+ set_transient( $key, $value, YEAR_IN_SECONDS );
104
  }
105
  }
106
 
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.19.7\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
7
- "POT-Creation-Date: 2014-05-19 14:02:21+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,32 +22,32 @@ msgid "Settings"
22
  msgstr ""
23
 
24
  #: includes/class-testimonials-widget-settings.php:107
25
- #: includes/class-testimonials-widget-settings.php:946
26
  msgid "General"
27
  msgstr ""
28
 
29
  #: includes/class-testimonials-widget-settings.php:108
30
- #: includes/class-testimonials-widget-settings.php:954
31
  msgid "Selection"
32
  msgstr ""
33
 
34
  #: includes/class-testimonials-widget-settings.php:109
35
- #: includes/class-testimonials-widget-settings.php:962
36
  msgid "Ordering"
37
  msgstr ""
38
 
39
  #: includes/class-testimonials-widget-settings.php:110
40
- #: includes/class-testimonials-widget-settings.php:970
41
  msgid "Widget"
42
  msgstr ""
43
 
44
  #: includes/class-testimonials-widget-settings.php:111
45
- #: includes/class-testimonials-widget-settings.php:978
46
  msgid "Post Type"
47
  msgstr ""
48
 
49
  #: includes/class-testimonials-widget-settings.php:112
50
- #: includes/class-testimonials-widget-settings.php:986
51
  msgid "Columns"
52
  msgstr ""
53
 
@@ -57,8 +57,8 @@ msgstr ""
57
 
58
  #: includes/class-testimonials-widget-settings.php:130
59
  #: includes/class-testimonials-widget-widget.php:32
60
- #: includes/class-testimonials-widget.php:620
61
- #: includes/class-testimonials-widget.php:666
62
  msgid "Testimonials"
63
  msgstr ""
64
 
@@ -67,7 +67,7 @@ msgid "Title Link"
67
  msgstr ""
68
 
69
  #: includes/class-testimonials-widget-settings.php:137
70
- msgid "URL, path, or post ID to link widget title to. Ex: http://example.com/stuff, /testimonials, 123 or "
71
  msgstr ""
72
 
73
  #: includes/class-testimonials-widget-settings.php:143
@@ -155,451 +155,459 @@ msgid "For a bare-bones, unthemed slider."
155
  msgstr ""
156
 
157
  #: includes/class-testimonials-widget-settings.php:241
 
 
 
 
 
 
 
 
158
  msgid "Include IE7 CSS?"
159
  msgstr ""
160
 
161
- #: includes/class-testimonials-widget-settings.php:248
162
  msgid "Hide built-in quotes?"
163
  msgstr ""
164
 
165
- #: includes/class-testimonials-widget-settings.php:249
166
  msgid "Remove open and close quote span tags surrounding testimonial content"
167
  msgstr ""
168
 
169
- #: includes/class-testimonials-widget-settings.php:255
170
  msgid "Remove `.hentry` CSS?"
171
  msgstr ""
172
 
173
- #: includes/class-testimonials-widget-settings.php:256
174
  msgid "Some themes use class `.hentry` in a manner that breaks Testimonials' CSS"
175
  msgstr ""
176
 
177
- #: includes/class-testimonials-widget-settings.php:263
178
  msgid "Use `&lt;q&gt;` tag?"
179
  msgstr ""
180
 
181
- #: includes/class-testimonials-widget-settings.php:264
182
  msgid "Not HTML5 compliant"
183
  msgstr ""
184
 
185
- #: includes/class-testimonials-widget-settings.php:270
186
  msgid "Fields to Show"
187
  msgstr ""
188
 
189
- #: includes/class-testimonials-widget-settings.php:275
190
  msgid "Hide Gravatar Image?"
191
  msgstr ""
192
 
193
- #: includes/class-testimonials-widget-settings.php:281
194
- #: includes/class-testimonials-widget-settings.php:581
195
  msgid "Hide Image?"
196
  msgstr ""
197
 
198
- #: includes/class-testimonials-widget-settings.php:287
199
  msgid "Hide Image in Single View?"
200
  msgstr ""
201
 
202
- #: includes/class-testimonials-widget-settings.php:294
203
  msgid "Hide Testimonial Content?"
204
  msgstr ""
205
 
206
- #: includes/class-testimonials-widget-settings.php:300
207
  msgid "Hide Author/Source?"
208
  msgstr ""
209
 
210
- #: includes/class-testimonials-widget-settings.php:303
211
  msgid "Don't display \"Post Title\" in cite"
212
  msgstr ""
213
 
214
- #: includes/class-testimonials-widget-settings.php:307
215
- #: includes/class-testimonials-widget-settings.php:615
216
  msgid "Hide Email?"
217
  msgstr ""
218
 
219
- #: includes/class-testimonials-widget-settings.php:314
220
- #: includes/class-testimonials-widget-settings.php:597
221
  msgid "Hide Job Title?"
222
  msgstr ""
223
 
224
- #: includes/class-testimonials-widget-settings.php:320
225
- #: includes/class-testimonials-widget-settings.php:606
226
  msgid "Hide Location?"
227
  msgstr ""
228
 
229
- #: includes/class-testimonials-widget-settings.php:326
230
- #: includes/class-testimonials-widget-settings.php:624
231
  msgid "Hide Company?"
232
  msgstr ""
233
 
234
- #: includes/class-testimonials-widget-settings.php:332
235
- #: includes/class-testimonials-widget-settings.php:633
236
  msgid "Hide URL?"
237
  msgstr ""
238
 
239
- #: includes/class-testimonials-widget-settings.php:338
240
  msgid "Miscellaneous"
241
  msgstr ""
242
 
243
- #: includes/class-testimonials-widget-settings.php:343
244
  msgid "Default Reviewed Item?"
245
  msgstr ""
246
 
247
- #: includes/class-testimonials-widget-settings.php:344
248
  msgid "Name of thing being referenced in testimonials"
249
  msgstr ""
250
 
251
- #: includes/class-testimonials-widget-settings.php:350
252
  msgid "Default Reviewed Item URL?"
253
  msgstr ""
254
 
255
- #: includes/class-testimonials-widget-settings.php:351
256
  msgid "URL of thing being referenced in testimonials"
257
  msgstr ""
258
 
259
- #: includes/class-testimonials-widget-settings.php:358
260
  msgid "Enable Paging?"
261
  msgstr ""
262
 
263
- #: includes/class-testimonials-widget-settings.php:359
264
  msgid "For `[testimonials]`"
265
  msgstr ""
266
 
267
- #: includes/class-testimonials-widget-settings.php:362
268
  msgid "Disable"
269
  msgstr ""
270
 
271
- #: includes/class-testimonials-widget-settings.php:363
272
  msgid "Enable"
273
  msgstr ""
274
 
275
- #: includes/class-testimonials-widget-settings.php:364
276
  msgid "Before testimonials"
277
  msgstr ""
278
 
279
- #: includes/class-testimonials-widget-settings.php:365
280
  msgid "After testimonials"
281
  msgstr ""
282
 
283
- #: includes/class-testimonials-widget-settings.php:371
284
  msgid "Adds HTML tag markup per the <a href=\"%s\">Review schema</a> to testimonials. Search engines including Bing, Google, Yahoo! and Yandex rely on this markup to improve the display of search results."
285
  msgstr ""
286
 
287
- #: includes/class-testimonials-widget-settings.php:374
288
  msgid "Enable Review Schema?"
289
  msgstr ""
290
 
291
- #: includes/class-testimonials-widget-settings.php:382
292
  msgid "Enable Video?"
293
  msgstr ""
294
 
295
- #: includes/class-testimonials-widget-settings.php:383
296
  msgid "Only enable when displaying video content."
297
  msgstr ""
298
 
299
- #: includes/class-testimonials-widget-settings.php:389
300
  msgid "Enable [shortcodes]?"
301
  msgstr ""
302
 
303
- #: includes/class-testimonials-widget-settings.php:390
304
  msgid "If unchecked, shortcodes are stripped."
305
  msgstr ""
306
 
307
- #: includes/class-testimonials-widget-settings.php:397
308
  msgid "Hide \"Testimonials Not Found\"?"
309
  msgstr ""
310
 
311
- #: includes/class-testimonials-widget-settings.php:403
312
  msgid "URL Target"
313
  msgstr ""
314
 
315
- #: includes/class-testimonials-widget-settings.php:404
316
  msgid "Add target to all URLs; leave blank if none"
317
  msgstr ""
318
 
319
- #: includes/class-testimonials-widget-settings.php:415
320
  msgid "Selection Options"
321
  msgstr ""
322
 
323
- #: includes/class-testimonials-widget-settings.php:421
324
  msgid "Category Filter"
325
  msgstr ""
326
 
327
- #: includes/class-testimonials-widget-settings.php:422
328
  msgid "Comma separated category names. Ex: Category A, Another category"
329
  msgstr ""
330
 
331
- #: includes/class-testimonials-widget-settings.php:429
332
  msgid "Tags Filter"
333
  msgstr ""
334
 
335
- #: includes/class-testimonials-widget-settings.php:430
336
  msgid "Comma separated tag names. Ex: Tag A, Another tag"
337
  msgstr ""
338
 
339
- #: includes/class-testimonials-widget-settings.php:437
340
  msgid "Require All Tags?"
341
  msgstr ""
342
 
343
- #: includes/class-testimonials-widget-settings.php:438
344
  msgid "Select only testimonials with all of the given tags"
345
  msgstr ""
346
 
347
- #: includes/class-testimonials-widget-settings.php:445
348
  msgid "Include IDs Filter"
349
  msgstr ""
350
 
351
- #: includes/class-testimonials-widget-settings.php:446
352
- #: includes/class-testimonials-widget-settings.php:453
353
  msgid "Comma separated testimonial IDs. Ex: 3,1,2"
354
  msgstr ""
355
 
356
- #: includes/class-testimonials-widget-settings.php:452
357
  msgid "Exclude IDs Filter"
358
  msgstr ""
359
 
360
- #: includes/class-testimonials-widget-settings.php:459
361
  msgid "Limit"
362
  msgstr ""
363
 
364
- #: includes/class-testimonials-widget-settings.php:460
365
  msgid "Number of testimonials to select per instance"
366
  msgstr ""
367
 
368
- #: includes/class-testimonials-widget-settings.php:473
369
  msgid "Ordering Options"
370
  msgstr ""
371
 
372
- #: includes/class-testimonials-widget-settings.php:479
373
  msgid "Random Order?"
374
  msgstr ""
375
 
376
- #: includes/class-testimonials-widget-settings.php:480
377
  msgid "If checked, ignores ORDER BY, ORDER BY meta_key, and ORDER BY Order. Widgets are random by default automatically"
378
  msgstr ""
379
 
380
- #: includes/class-testimonials-widget-settings.php:487
381
  msgid "ORDER BY"
382
  msgstr ""
383
 
384
- #: includes/class-testimonials-widget-settings.php:488
385
  msgid "Used when \"Random Order\" is disabled"
386
  msgstr ""
387
 
388
- #: includes/class-testimonials-widget-settings.php:491
389
  msgid "Testimonial ID"
390
  msgstr ""
391
 
392
- #: includes/class-testimonials-widget-settings.php:492
393
  msgid "Author"
394
  msgstr ""
395
 
396
- #: includes/class-testimonials-widget-settings.php:493
397
- #: includes/class-testimonials-widget.php:557
398
  msgid "Date"
399
  msgstr ""
400
 
401
- #: includes/class-testimonials-widget-settings.php:494
402
  msgid "Menu Order"
403
  msgstr ""
404
 
405
- #: includes/class-testimonials-widget-settings.php:495
406
- #: includes/class-testimonials-widget.php:555
407
  msgid "Source"
408
  msgstr ""
409
 
410
- #: includes/class-testimonials-widget-settings.php:496
411
  msgid "No order"
412
  msgstr ""
413
 
414
- #: includes/class-testimonials-widget-settings.php:504
415
  msgid "ORDER BY meta_key"
416
  msgstr ""
417
 
418
- #: includes/class-testimonials-widget-settings.php:505
419
  msgid "Used when \"Random Order\" is disabled and sorting by a testimonials meta key is needed. Overrides ORDER BY"
420
  msgstr ""
421
 
422
- #: includes/class-testimonials-widget-settings.php:508
423
  msgid "None"
424
  msgstr ""
425
 
426
- #: includes/class-testimonials-widget-settings.php:509
427
- #: includes/class-testimonials-widget.php:586
428
- #: includes/class-testimonials-widget.php:1713
429
  msgid "Job Title"
430
  msgstr ""
431
 
432
- #: includes/class-testimonials-widget-settings.php:510
433
- #: includes/class-testimonials-widget.php:596
434
- #: includes/class-testimonials-widget.php:1725
435
  msgid "Email"
436
  msgstr ""
437
 
438
- #: includes/class-testimonials-widget-settings.php:511
439
- #: includes/class-testimonials-widget.php:591
440
- #: includes/class-testimonials-widget.php:1719
441
  msgid "Location"
442
  msgstr ""
443
 
444
- #: includes/class-testimonials-widget-settings.php:512
445
- #: includes/class-testimonials-widget.php:601
446
- #: includes/class-testimonials-widget.php:1731
447
  msgid "Company"
448
  msgstr ""
449
 
450
- #: includes/class-testimonials-widget-settings.php:513
451
- #: includes/class-testimonials-widget.php:606
452
- #: includes/class-testimonials-widget.php:1737
453
  msgid "URL"
454
  msgstr ""
455
 
456
- #: includes/class-testimonials-widget-settings.php:520
457
  msgid "ORDER BY Order"
458
  msgstr ""
459
 
460
- #: includes/class-testimonials-widget-settings.php:523
461
  msgid "Descending"
462
  msgstr ""
463
 
464
- #: includes/class-testimonials-widget-settings.php:524
465
  msgid "Ascending"
466
  msgstr ""
467
 
468
- #: includes/class-testimonials-widget-settings.php:538
469
  msgid "Allow Comments?"
470
  msgstr ""
471
 
472
- #: includes/class-testimonials-widget-settings.php:539
473
  msgid "Only affects the Testimonials post edit page. Your theme controls the front-end view."
474
  msgstr ""
475
 
476
- #: includes/class-testimonials-widget-settings.php:545
477
  msgid "URL slug-name for <a href=\"%1s\">testimonials archive</a> page."
478
  msgstr ""
479
 
480
- #: includes/class-testimonials-widget-settings.php:551
481
  msgid "Archive Page URL"
482
  msgstr ""
483
 
484
- #: includes/class-testimonials-widget-settings.php:558
485
  msgid "URL slug-name for testimonial view pages. Shouldn't be the same as the Archive Page URL nor should it match a page URL slug."
486
  msgstr ""
487
 
488
- #: includes/class-testimonials-widget-settings.php:562
489
  msgid "Testimonial Page URL"
490
  msgstr ""
491
 
492
- #: includes/class-testimonials-widget-settings.php:572
493
  msgid "Hide ID?"
494
  msgstr ""
495
 
496
- #: includes/class-testimonials-widget-settings.php:589
497
  msgid "Hide Shortcode?"
498
  msgstr ""
499
 
500
- #: includes/class-testimonials-widget-settings.php:643
501
  #: includes/libraries/aihrus-framework/includes/class-aihrus-settings.php:64
502
  msgid "Reset"
503
  msgstr ""
504
 
505
- #: includes/class-testimonials-widget-settings.php:649
506
  msgid "Don't Use Default Taxonomies?"
507
  msgstr ""
508
 
509
- #: includes/class-testimonials-widget-settings.php:652
510
  msgid "If checked, use Testimonials' own category and tag taxonomies instead"
511
  msgstr ""
512
 
513
- #: includes/class-testimonials-widget-settings.php:661
514
  msgid "Version Based Options"
515
  msgstr ""
516
 
517
- #: includes/class-testimonials-widget-settings.php:667
518
  msgid "Disable Animation?"
519
  msgstr ""
520
 
521
- #: includes/class-testimonials-widget-settings.php:668
522
  msgid "Prior to 2.15.0, Disable animation between testimonial transitions. Useful when stacking widgets."
523
  msgstr ""
524
 
525
- #: includes/class-testimonials-widget-settings.php:676
526
  msgid "Fade Out Speed"
527
  msgstr ""
528
 
529
- #: includes/class-testimonials-widget-settings.php:677
530
  #: includes/class-testimonials-widget-settings.php:685
 
531
  msgid "Prior to 2.15.0, Transition duration in milliseconds; higher values indicate slower animations, not faster ones."
532
  msgstr ""
533
 
534
- #: includes/class-testimonials-widget-settings.php:684
535
  msgid "Fade In Speed"
536
  msgstr ""
537
 
538
- #: includes/class-testimonials-widget-settings.php:692
539
  msgid "Height"
540
  msgstr ""
541
 
542
- #: includes/class-testimonials-widget-settings.php:693
543
  msgid "Prior to 2.15.0, Testimonials height, in pixels. Overrides minimum and maximum height"
544
  msgstr ""
545
 
546
- #: includes/class-testimonials-widget-settings.php:699
547
  msgid "Minimum Height"
548
  msgstr ""
549
 
550
- #: includes/class-testimonials-widget-settings.php:700
551
  msgid "Prior to 2.15.0, Set for minimum display height, in pixels"
552
  msgstr ""
553
 
554
- #: includes/class-testimonials-widget-settings.php:706
555
  msgid "Maximum Height"
556
  msgstr ""
557
 
558
- #: includes/class-testimonials-widget-settings.php:707
559
  msgid "Prior to 2.15.0, Set for maximum display height, in pixels"
560
  msgstr ""
561
 
562
- #: includes/class-testimonials-widget-settings.php:932
563
  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."
564
  msgstr ""
565
 
566
- #: includes/class-testimonials-widget-settings.php:934
567
  msgid "Shortcode option names are listed below each entry."
568
  msgstr ""
569
 
570
- #: includes/class-testimonials-widget-settings.php:937
571
  msgid "View the <a href=\"%s\">Testimonials documentation</a>."
572
  msgstr ""
573
 
574
- #: includes/class-testimonials-widget-settings.php:947
575
  msgid "Show or hide optional fields."
576
  msgstr ""
577
 
578
- #: includes/class-testimonials-widget-settings.php:955
579
  msgid "Options used to select testimonials."
580
  msgstr ""
581
 
582
- #: includes/class-testimonials-widget-settings.php:963
583
  msgid "Options used to determine displayed testimonials ordering."
584
  msgstr ""
585
 
586
- #: includes/class-testimonials-widget-settings.php:971
587
  msgid "Options related to showing testimonials in widgets."
588
  msgstr ""
589
 
590
- #: includes/class-testimonials-widget-settings.php:979
591
  msgid "Archive and singular page URL related testimonials options."
592
  msgstr ""
593
 
594
- #: includes/class-testimonials-widget-settings.php:987
595
  msgid "Allowed columns to display on edit page."
596
  msgstr ""
597
 
598
- #: includes/class-testimonials-widget-settings.php:994
599
  msgid "Compatibility & Reset"
600
  msgstr ""
601
 
602
- #: includes/class-testimonials-widget-settings.php:995
603
  msgid "Backwards compatibility, import/export options, and reset options."
604
  msgstr ""
605
 
@@ -616,7 +624,7 @@ msgid "This widget's unique CSS class for styling"
616
  msgstr ""
617
 
618
  #: includes/class-testimonials-widget.php:144
619
- #: includes/class-testimonials-widget.php:2080
620
  msgid "Testimonials Shortcode Examples"
621
  msgstr ""
622
 
@@ -624,147 +632,147 @@ msgstr ""
624
  msgid "E.g. Shortcodes"
625
  msgstr ""
626
 
627
- #: includes/class-testimonials-widget.php:335
628
  msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible CSS fixes."
629
  msgstr ""
630
 
631
- #: includes/class-testimonials-widget.php:556
632
  msgid "Published by"
633
  msgstr ""
634
 
635
- #: includes/class-testimonials-widget.php:562
636
- #: includes/class-testimonials-widget.php:565
637
  msgid "Category"
638
  msgstr ""
639
 
640
- #: includes/class-testimonials-widget.php:563
641
- #: includes/class-testimonials-widget.php:566
642
  msgid "Tags"
643
  msgstr ""
644
 
645
- #: includes/class-testimonials-widget.php:571
646
  msgid "ID"
647
  msgstr ""
648
 
649
- #: includes/class-testimonials-widget.php:576
650
  msgid "Image"
651
  msgstr ""
652
 
653
- #: includes/class-testimonials-widget.php:581
654
  msgid "Shortcodes"
655
  msgstr ""
656
 
657
- #: includes/class-testimonials-widget.php:617
658
  msgid "Add New"
659
  msgstr ""
660
 
661
- #: includes/class-testimonials-widget.php:618
662
- #: includes/class-testimonials-widget.php:621
663
  msgid "Add New Testimonial"
664
  msgstr ""
665
 
666
- #: includes/class-testimonials-widget.php:619
667
  msgid "Edit Testimonial"
668
  msgstr ""
669
 
670
- #: includes/class-testimonials-widget.php:622
671
- #: includes/class-testimonials-widget.php:1052
672
  msgid "No testimonials found"
673
  msgstr ""
674
 
675
- #: includes/class-testimonials-widget.php:623
676
  msgid "No testimonials found in Trash"
677
  msgstr ""
678
 
679
- #: includes/class-testimonials-widget.php:625
680
  msgid "Search Testimonials"
681
  msgstr ""
682
 
683
- #: includes/class-testimonials-widget.php:626
684
- #: includes/class-testimonials-widget.php:1825
685
- #: includes/class-testimonials-widget.php:2209
686
  msgid "Testimonial"
687
  msgstr ""
688
 
689
- #: includes/class-testimonials-widget.php:627
690
  msgid "View Testimonial"
691
  msgstr ""
692
 
693
- #: includes/class-testimonials-widget.php:1222
694
  msgid "…"
695
  msgstr ""
696
 
697
- #: includes/class-testimonials-widget.php:1438
698
  msgid "&laquo;"
699
  msgstr ""
700
 
701
- #: includes/class-testimonials-widget.php:1446
702
  msgid "&raquo;"
703
  msgstr ""
704
 
705
- #: includes/class-testimonials-widget.php:1749
706
  msgid "Testimonial Data"
707
  msgstr ""
708
 
709
- #: includes/class-testimonials-widget.php:1774
710
  msgid "Enter title here"
711
  msgstr ""
712
 
713
- #: includes/class-testimonials-widget.php:1775
714
  msgid "Enter testimonial source here"
715
  msgstr ""
716
 
717
- #: includes/class-testimonials-widget.php:1800
718
  msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
719
  msgstr ""
720
 
721
- #: includes/class-testimonials-widget.php:1801
722
  msgid "Custom field updated."
723
  msgstr ""
724
 
725
- #: includes/class-testimonials-widget.php:1802
726
  msgid "Custom field deleted."
727
  msgstr ""
728
 
729
- #: includes/class-testimonials-widget.php:1803
730
  msgid "Testimonial updated."
731
  msgstr ""
732
 
733
  #. translators: %s: date and time of the revision
734
 
735
- #: includes/class-testimonials-widget.php:1805
736
  msgid "Testimonial restored to revision from %s"
737
  msgstr ""
738
 
739
- #: includes/class-testimonials-widget.php:1806
740
  msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
741
  msgstr ""
742
 
743
- #: includes/class-testimonials-widget.php:1807
744
  msgid "Testimonial saved."
745
  msgstr ""
746
 
747
- #: includes/class-testimonials-widget.php:1808
748
  msgid "Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
749
  msgstr ""
750
 
751
- #: includes/class-testimonials-widget.php:1809
752
  msgid "Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview testimonial</a>"
753
  msgstr ""
754
 
755
- #: includes/class-testimonials-widget.php:1810
756
  msgid "Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
757
  msgstr ""
758
 
759
- #: includes/class-testimonials-widget.php:2071
760
  msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible fixes."
761
  msgstr ""
762
 
763
- #: includes/class-testimonials-widget.php:2126
764
  msgid "Failed version check"
765
  msgstr ""
766
 
767
- #: includes/class-testimonials-widget.php:2157
768
  msgid "Shortcode"
769
  msgstr ""
770
 
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.19.8\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
7
+ "POT-Creation-Date: 2014-06-22 10:28:51+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:954
26
  msgid "General"
27
  msgstr ""
28
 
29
  #: includes/class-testimonials-widget-settings.php:108
30
+ #: includes/class-testimonials-widget-settings.php:962
31
  msgid "Selection"
32
  msgstr ""
33
 
34
  #: includes/class-testimonials-widget-settings.php:109
35
+ #: includes/class-testimonials-widget-settings.php:970
36
  msgid "Ordering"
37
  msgstr ""
38
 
39
  #: includes/class-testimonials-widget-settings.php:110
40
+ #: includes/class-testimonials-widget-settings.php:978
41
  msgid "Widget"
42
  msgstr ""
43
 
44
  #: includes/class-testimonials-widget-settings.php:111
45
+ #: includes/class-testimonials-widget-settings.php:986
46
  msgid "Post Type"
47
  msgstr ""
48
 
49
  #: includes/class-testimonials-widget-settings.php:112
50
+ #: includes/class-testimonials-widget-settings.php:994
51
  msgid "Columns"
52
  msgstr ""
53
 
57
 
58
  #: includes/class-testimonials-widget-settings.php:130
59
  #: includes/class-testimonials-widget-widget.php:32
60
+ #: includes/class-testimonials-widget.php:640
61
+ #: includes/class-testimonials-widget.php:687
62
  msgid "Testimonials"
63
  msgstr ""
64
 
67
  msgstr ""
68
 
69
  #: includes/class-testimonials-widget-settings.php:137
70
+ msgid "URL, path, or post ID to link widget title to. Ex: http://example.com/stuff, /testimonials, or 123"
71
  msgstr ""
72
 
73
  #: includes/class-testimonials-widget-settings.php:143
155
  msgstr ""
156
 
157
  #: includes/class-testimonials-widget-settings.php:241
158
+ msgid "Exclude default CSS?"
159
+ msgstr ""
160
+
161
+ #: includes/class-testimonials-widget-settings.php:242
162
+ msgid "Prevent default CSS from being loaded."
163
+ msgstr ""
164
+
165
+ #: includes/class-testimonials-widget-settings.php:249
166
  msgid "Include IE7 CSS?"
167
  msgstr ""
168
 
169
+ #: includes/class-testimonials-widget-settings.php:256
170
  msgid "Hide built-in quotes?"
171
  msgstr ""
172
 
173
+ #: includes/class-testimonials-widget-settings.php:257
174
  msgid "Remove open and close quote span tags surrounding testimonial content"
175
  msgstr ""
176
 
177
+ #: includes/class-testimonials-widget-settings.php:263
178
  msgid "Remove `.hentry` CSS?"
179
  msgstr ""
180
 
181
+ #: includes/class-testimonials-widget-settings.php:264
182
  msgid "Some themes use class `.hentry` in a manner that breaks Testimonials' CSS"
183
  msgstr ""
184
 
185
+ #: includes/class-testimonials-widget-settings.php:271
186
  msgid "Use `&lt;q&gt;` tag?"
187
  msgstr ""
188
 
189
+ #: includes/class-testimonials-widget-settings.php:272
190
  msgid "Not HTML5 compliant"
191
  msgstr ""
192
 
193
+ #: includes/class-testimonials-widget-settings.php:278
194
  msgid "Fields to Show"
195
  msgstr ""
196
 
197
+ #: includes/class-testimonials-widget-settings.php:283
198
  msgid "Hide Gravatar Image?"
199
  msgstr ""
200
 
201
+ #: includes/class-testimonials-widget-settings.php:289
202
+ #: includes/class-testimonials-widget-settings.php:589
203
  msgid "Hide Image?"
204
  msgstr ""
205
 
206
+ #: includes/class-testimonials-widget-settings.php:295
207
  msgid "Hide Image in Single View?"
208
  msgstr ""
209
 
210
+ #: includes/class-testimonials-widget-settings.php:302
211
  msgid "Hide Testimonial Content?"
212
  msgstr ""
213
 
214
+ #: includes/class-testimonials-widget-settings.php:308
215
  msgid "Hide Author/Source?"
216
  msgstr ""
217
 
218
+ #: includes/class-testimonials-widget-settings.php:311
219
  msgid "Don't display \"Post Title\" in cite"
220
  msgstr ""
221
 
222
+ #: includes/class-testimonials-widget-settings.php:315
223
+ #: includes/class-testimonials-widget-settings.php:623
224
  msgid "Hide Email?"
225
  msgstr ""
226
 
227
+ #: includes/class-testimonials-widget-settings.php:322
228
+ #: includes/class-testimonials-widget-settings.php:605
229
  msgid "Hide Job Title?"
230
  msgstr ""
231
 
232
+ #: includes/class-testimonials-widget-settings.php:328
233
+ #: includes/class-testimonials-widget-settings.php:614
234
  msgid "Hide Location?"
235
  msgstr ""
236
 
237
+ #: includes/class-testimonials-widget-settings.php:334
238
+ #: includes/class-testimonials-widget-settings.php:632
239
  msgid "Hide Company?"
240
  msgstr ""
241
 
242
+ #: includes/class-testimonials-widget-settings.php:340
243
+ #: includes/class-testimonials-widget-settings.php:641
244
  msgid "Hide URL?"
245
  msgstr ""
246
 
247
+ #: includes/class-testimonials-widget-settings.php:346
248
  msgid "Miscellaneous"
249
  msgstr ""
250
 
251
+ #: includes/class-testimonials-widget-settings.php:351
252
  msgid "Default Reviewed Item?"
253
  msgstr ""
254
 
255
+ #: includes/class-testimonials-widget-settings.php:352
256
  msgid "Name of thing being referenced in testimonials"
257
  msgstr ""
258
 
259
+ #: includes/class-testimonials-widget-settings.php:358
260
  msgid "Default Reviewed Item URL?"
261
  msgstr ""
262
 
263
+ #: includes/class-testimonials-widget-settings.php:359
264
  msgid "URL of thing being referenced in testimonials"
265
  msgstr ""
266
 
267
+ #: includes/class-testimonials-widget-settings.php:366
268
  msgid "Enable Paging?"
269
  msgstr ""
270
 
271
+ #: includes/class-testimonials-widget-settings.php:367
272
  msgid "For `[testimonials]`"
273
  msgstr ""
274
 
275
+ #: includes/class-testimonials-widget-settings.php:370
276
  msgid "Disable"
277
  msgstr ""
278
 
279
+ #: includes/class-testimonials-widget-settings.php:371
280
  msgid "Enable"
281
  msgstr ""
282
 
283
+ #: includes/class-testimonials-widget-settings.php:372
284
  msgid "Before testimonials"
285
  msgstr ""
286
 
287
+ #: includes/class-testimonials-widget-settings.php:373
288
  msgid "After testimonials"
289
  msgstr ""
290
 
291
+ #: includes/class-testimonials-widget-settings.php:379
292
  msgid "Adds HTML tag markup per the <a href=\"%s\">Review schema</a> to testimonials. Search engines including Bing, Google, Yahoo! and Yandex rely on this markup to improve the display of search results."
293
  msgstr ""
294
 
295
+ #: includes/class-testimonials-widget-settings.php:382
296
  msgid "Enable Review Schema?"
297
  msgstr ""
298
 
299
+ #: includes/class-testimonials-widget-settings.php:390
300
  msgid "Enable Video?"
301
  msgstr ""
302
 
303
+ #: includes/class-testimonials-widget-settings.php:391
304
  msgid "Only enable when displaying video content."
305
  msgstr ""
306
 
307
+ #: includes/class-testimonials-widget-settings.php:397
308
  msgid "Enable [shortcodes]?"
309
  msgstr ""
310
 
311
+ #: includes/class-testimonials-widget-settings.php:398
312
  msgid "If unchecked, shortcodes are stripped."
313
  msgstr ""
314
 
315
+ #: includes/class-testimonials-widget-settings.php:405
316
  msgid "Hide \"Testimonials Not Found\"?"
317
  msgstr ""
318
 
319
+ #: includes/class-testimonials-widget-settings.php:411
320
  msgid "URL Target"
321
  msgstr ""
322
 
323
+ #: includes/class-testimonials-widget-settings.php:412
324
  msgid "Add target to all URLs; leave blank if none"
325
  msgstr ""
326
 
327
+ #: includes/class-testimonials-widget-settings.php:423
328
  msgid "Selection Options"
329
  msgstr ""
330
 
331
+ #: includes/class-testimonials-widget-settings.php:429
332
  msgid "Category Filter"
333
  msgstr ""
334
 
335
+ #: includes/class-testimonials-widget-settings.php:430
336
  msgid "Comma separated category names. Ex: Category A, Another category"
337
  msgstr ""
338
 
339
+ #: includes/class-testimonials-widget-settings.php:437
340
  msgid "Tags Filter"
341
  msgstr ""
342
 
343
+ #: includes/class-testimonials-widget-settings.php:438
344
  msgid "Comma separated tag names. Ex: Tag A, Another tag"
345
  msgstr ""
346
 
347
+ #: includes/class-testimonials-widget-settings.php:445
348
  msgid "Require All Tags?"
349
  msgstr ""
350
 
351
+ #: includes/class-testimonials-widget-settings.php:446
352
  msgid "Select only testimonials with all of the given tags"
353
  msgstr ""
354
 
355
+ #: includes/class-testimonials-widget-settings.php:453
356
  msgid "Include IDs Filter"
357
  msgstr ""
358
 
359
+ #: includes/class-testimonials-widget-settings.php:454
360
+ #: includes/class-testimonials-widget-settings.php:461
361
  msgid "Comma separated testimonial IDs. Ex: 3,1,2"
362
  msgstr ""
363
 
364
+ #: includes/class-testimonials-widget-settings.php:460
365
  msgid "Exclude IDs Filter"
366
  msgstr ""
367
 
368
+ #: includes/class-testimonials-widget-settings.php:467
369
  msgid "Limit"
370
  msgstr ""
371
 
372
+ #: includes/class-testimonials-widget-settings.php:468
373
  msgid "Number of testimonials to select per instance"
374
  msgstr ""
375
 
376
+ #: includes/class-testimonials-widget-settings.php:481
377
  msgid "Ordering Options"
378
  msgstr ""
379
 
380
+ #: includes/class-testimonials-widget-settings.php:487
381
  msgid "Random Order?"
382
  msgstr ""
383
 
384
+ #: includes/class-testimonials-widget-settings.php:488
385
  msgid "If checked, ignores ORDER BY, ORDER BY meta_key, and ORDER BY Order. Widgets are random by default automatically"
386
  msgstr ""
387
 
388
+ #: includes/class-testimonials-widget-settings.php:495
389
  msgid "ORDER BY"
390
  msgstr ""
391
 
392
+ #: includes/class-testimonials-widget-settings.php:496
393
  msgid "Used when \"Random Order\" is disabled"
394
  msgstr ""
395
 
396
+ #: includes/class-testimonials-widget-settings.php:499
397
  msgid "Testimonial ID"
398
  msgstr ""
399
 
400
+ #: includes/class-testimonials-widget-settings.php:500
401
  msgid "Author"
402
  msgstr ""
403
 
404
+ #: includes/class-testimonials-widget-settings.php:501
405
+ #: includes/class-testimonials-widget.php:577
406
  msgid "Date"
407
  msgstr ""
408
 
409
+ #: includes/class-testimonials-widget-settings.php:502
410
  msgid "Menu Order"
411
  msgstr ""
412
 
413
+ #: includes/class-testimonials-widget-settings.php:503
414
+ #: includes/class-testimonials-widget.php:575
415
  msgid "Source"
416
  msgstr ""
417
 
418
+ #: includes/class-testimonials-widget-settings.php:504
419
  msgid "No order"
420
  msgstr ""
421
 
422
+ #: includes/class-testimonials-widget-settings.php:512
423
  msgid "ORDER BY meta_key"
424
  msgstr ""
425
 
426
+ #: includes/class-testimonials-widget-settings.php:513
427
  msgid "Used when \"Random Order\" is disabled and sorting by a testimonials meta key is needed. Overrides ORDER BY"
428
  msgstr ""
429
 
430
+ #: includes/class-testimonials-widget-settings.php:516
431
  msgid "None"
432
  msgstr ""
433
 
434
+ #: includes/class-testimonials-widget-settings.php:517
435
+ #: includes/class-testimonials-widget.php:606
436
+ #: includes/class-testimonials-widget.php:1766
437
  msgid "Job Title"
438
  msgstr ""
439
 
440
+ #: includes/class-testimonials-widget-settings.php:518
441
+ #: includes/class-testimonials-widget.php:616
442
+ #: includes/class-testimonials-widget.php:1778
443
  msgid "Email"
444
  msgstr ""
445
 
446
+ #: includes/class-testimonials-widget-settings.php:519
447
+ #: includes/class-testimonials-widget.php:611
448
+ #: includes/class-testimonials-widget.php:1772
449
  msgid "Location"
450
  msgstr ""
451
 
452
+ #: includes/class-testimonials-widget-settings.php:520
453
+ #: includes/class-testimonials-widget.php:621
454
+ #: includes/class-testimonials-widget.php:1784
455
  msgid "Company"
456
  msgstr ""
457
 
458
+ #: includes/class-testimonials-widget-settings.php:521
459
+ #: includes/class-testimonials-widget.php:626
460
+ #: includes/class-testimonials-widget.php:1790
461
  msgid "URL"
462
  msgstr ""
463
 
464
+ #: includes/class-testimonials-widget-settings.php:528
465
  msgid "ORDER BY Order"
466
  msgstr ""
467
 
468
+ #: includes/class-testimonials-widget-settings.php:531
469
  msgid "Descending"
470
  msgstr ""
471
 
472
+ #: includes/class-testimonials-widget-settings.php:532
473
  msgid "Ascending"
474
  msgstr ""
475
 
476
+ #: includes/class-testimonials-widget-settings.php:546
477
  msgid "Allow Comments?"
478
  msgstr ""
479
 
480
+ #: includes/class-testimonials-widget-settings.php:547
481
  msgid "Only affects the Testimonials post edit page. Your theme controls the front-end view."
482
  msgstr ""
483
 
484
+ #: includes/class-testimonials-widget-settings.php:553
485
  msgid "URL slug-name for <a href=\"%1s\">testimonials archive</a> page."
486
  msgstr ""
487
 
488
+ #: includes/class-testimonials-widget-settings.php:559
489
  msgid "Archive Page URL"
490
  msgstr ""
491
 
492
+ #: includes/class-testimonials-widget-settings.php:566
493
  msgid "URL slug-name for testimonial view pages. Shouldn't be the same as the Archive Page URL nor should it match a page URL slug."
494
  msgstr ""
495
 
496
+ #: includes/class-testimonials-widget-settings.php:570
497
  msgid "Testimonial Page URL"
498
  msgstr ""
499
 
500
+ #: includes/class-testimonials-widget-settings.php:580
501
  msgid "Hide ID?"
502
  msgstr ""
503
 
504
+ #: includes/class-testimonials-widget-settings.php:597
505
  msgid "Hide Shortcode?"
506
  msgstr ""
507
 
508
+ #: includes/class-testimonials-widget-settings.php:651
509
  #: includes/libraries/aihrus-framework/includes/class-aihrus-settings.php:64
510
  msgid "Reset"
511
  msgstr ""
512
 
513
+ #: includes/class-testimonials-widget-settings.php:657
514
  msgid "Don't Use Default Taxonomies?"
515
  msgstr ""
516
 
517
+ #: includes/class-testimonials-widget-settings.php:660
518
  msgid "If checked, use Testimonials' own category and tag taxonomies instead"
519
  msgstr ""
520
 
521
+ #: includes/class-testimonials-widget-settings.php:669
522
  msgid "Version Based Options"
523
  msgstr ""
524
 
525
+ #: includes/class-testimonials-widget-settings.php:675
526
  msgid "Disable Animation?"
527
  msgstr ""
528
 
529
+ #: includes/class-testimonials-widget-settings.php:676
530
  msgid "Prior to 2.15.0, Disable animation between testimonial transitions. Useful when stacking widgets."
531
  msgstr ""
532
 
533
+ #: includes/class-testimonials-widget-settings.php:684
534
  msgid "Fade Out Speed"
535
  msgstr ""
536
 
 
537
  #: includes/class-testimonials-widget-settings.php:685
538
+ #: includes/class-testimonials-widget-settings.php:693
539
  msgid "Prior to 2.15.0, Transition duration in milliseconds; higher values indicate slower animations, not faster ones."
540
  msgstr ""
541
 
542
+ #: includes/class-testimonials-widget-settings.php:692
543
  msgid "Fade In Speed"
544
  msgstr ""
545
 
546
+ #: includes/class-testimonials-widget-settings.php:700
547
  msgid "Height"
548
  msgstr ""
549
 
550
+ #: includes/class-testimonials-widget-settings.php:701
551
  msgid "Prior to 2.15.0, Testimonials height, in pixels. Overrides minimum and maximum height"
552
  msgstr ""
553
 
554
+ #: includes/class-testimonials-widget-settings.php:707
555
  msgid "Minimum Height"
556
  msgstr ""
557
 
558
+ #: includes/class-testimonials-widget-settings.php:708
559
  msgid "Prior to 2.15.0, Set for minimum display height, in pixels"
560
  msgstr ""
561
 
562
+ #: includes/class-testimonials-widget-settings.php:714
563
  msgid "Maximum Height"
564
  msgstr ""
565
 
566
+ #: includes/class-testimonials-widget-settings.php:715
567
  msgid "Prior to 2.15.0, Set for maximum display height, in pixels"
568
  msgstr ""
569
 
570
+ #: includes/class-testimonials-widget-settings.php:940
571
  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."
572
  msgstr ""
573
 
574
+ #: includes/class-testimonials-widget-settings.php:942
575
  msgid "Shortcode option names are listed below each entry."
576
  msgstr ""
577
 
578
+ #: includes/class-testimonials-widget-settings.php:945
579
  msgid "View the <a href=\"%s\">Testimonials documentation</a>."
580
  msgstr ""
581
 
582
+ #: includes/class-testimonials-widget-settings.php:955
583
  msgid "Show or hide optional fields."
584
  msgstr ""
585
 
586
+ #: includes/class-testimonials-widget-settings.php:963
587
  msgid "Options used to select testimonials."
588
  msgstr ""
589
 
590
+ #: includes/class-testimonials-widget-settings.php:971
591
  msgid "Options used to determine displayed testimonials ordering."
592
  msgstr ""
593
 
594
+ #: includes/class-testimonials-widget-settings.php:979
595
  msgid "Options related to showing testimonials in widgets."
596
  msgstr ""
597
 
598
+ #: includes/class-testimonials-widget-settings.php:987
599
  msgid "Archive and singular page URL related testimonials options."
600
  msgstr ""
601
 
602
+ #: includes/class-testimonials-widget-settings.php:995
603
  msgid "Allowed columns to display on edit page."
604
  msgstr ""
605
 
606
+ #: includes/class-testimonials-widget-settings.php:1002
607
  msgid "Compatibility & Reset"
608
  msgstr ""
609
 
610
+ #: includes/class-testimonials-widget-settings.php:1003
611
  msgid "Backwards compatibility, import/export options, and reset options."
612
  msgstr ""
613
 
624
  msgstr ""
625
 
626
  #: includes/class-testimonials-widget.php:144
627
+ #: includes/class-testimonials-widget.php:2150
628
  msgid "Testimonials Shortcode Examples"
629
  msgstr ""
630
 
632
  msgid "E.g. Shortcodes"
633
  msgstr ""
634
 
635
+ #: includes/class-testimonials-widget.php:344
636
  msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible CSS fixes."
637
  msgstr ""
638
 
639
+ #: includes/class-testimonials-widget.php:576
640
  msgid "Published by"
641
  msgstr ""
642
 
643
+ #: includes/class-testimonials-widget.php:582
644
+ #: includes/class-testimonials-widget.php:585
645
  msgid "Category"
646
  msgstr ""
647
 
648
+ #: includes/class-testimonials-widget.php:583
649
+ #: includes/class-testimonials-widget.php:586
650
  msgid "Tags"
651
  msgstr ""
652
 
653
+ #: includes/class-testimonials-widget.php:591
654
  msgid "ID"
655
  msgstr ""
656
 
657
+ #: includes/class-testimonials-widget.php:596
658
  msgid "Image"
659
  msgstr ""
660
 
661
+ #: includes/class-testimonials-widget.php:601
662
  msgid "Shortcodes"
663
  msgstr ""
664
 
665
+ #: includes/class-testimonials-widget.php:637
666
  msgid "Add New"
667
  msgstr ""
668
 
669
+ #: includes/class-testimonials-widget.php:638
670
+ #: includes/class-testimonials-widget.php:641
671
  msgid "Add New Testimonial"
672
  msgstr ""
673
 
674
+ #: includes/class-testimonials-widget.php:639
675
  msgid "Edit Testimonial"
676
  msgstr ""
677
 
678
+ #: includes/class-testimonials-widget.php:642
679
+ #: includes/class-testimonials-widget.php:1083
680
  msgid "No testimonials found"
681
  msgstr ""
682
 
683
+ #: includes/class-testimonials-widget.php:643
684
  msgid "No testimonials found in Trash"
685
  msgstr ""
686
 
687
+ #: includes/class-testimonials-widget.php:645
688
  msgid "Search Testimonials"
689
  msgstr ""
690
 
691
+ #: includes/class-testimonials-widget.php:646
692
+ #: includes/class-testimonials-widget.php:1878
693
+ #: includes/class-testimonials-widget.php:2282
694
  msgid "Testimonial"
695
  msgstr ""
696
 
697
+ #: includes/class-testimonials-widget.php:647
698
  msgid "View Testimonial"
699
  msgstr ""
700
 
701
+ #: includes/class-testimonials-widget.php:1258
702
  msgid "…"
703
  msgstr ""
704
 
705
+ #: includes/class-testimonials-widget.php:1476
706
  msgid "&laquo;"
707
  msgstr ""
708
 
709
+ #: includes/class-testimonials-widget.php:1484
710
  msgid "&raquo;"
711
  msgstr ""
712
 
713
+ #: includes/class-testimonials-widget.php:1802
714
  msgid "Testimonial Data"
715
  msgstr ""
716
 
717
+ #: includes/class-testimonials-widget.php:1827
718
  msgid "Enter title here"
719
  msgstr ""
720
 
721
+ #: includes/class-testimonials-widget.php:1828
722
  msgid "Enter testimonial source here"
723
  msgstr ""
724
 
725
+ #: includes/class-testimonials-widget.php:1853
726
  msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
727
  msgstr ""
728
 
729
+ #: includes/class-testimonials-widget.php:1854
730
  msgid "Custom field updated."
731
  msgstr ""
732
 
733
+ #: includes/class-testimonials-widget.php:1855
734
  msgid "Custom field deleted."
735
  msgstr ""
736
 
737
+ #: includes/class-testimonials-widget.php:1856
738
  msgid "Testimonial updated."
739
  msgstr ""
740
 
741
  #. translators: %s: date and time of the revision
742
 
743
+ #: includes/class-testimonials-widget.php:1858
744
  msgid "Testimonial restored to revision from %s"
745
  msgstr ""
746
 
747
+ #: includes/class-testimonials-widget.php:1859
748
  msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
749
  msgstr ""
750
 
751
+ #: includes/class-testimonials-widget.php:1860
752
  msgid "Testimonial saved."
753
  msgstr ""
754
 
755
+ #: includes/class-testimonials-widget.php:1861
756
  msgid "Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
757
  msgstr ""
758
 
759
+ #: includes/class-testimonials-widget.php:1862
760
  msgid "Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview testimonial</a>"
761
  msgstr ""
762
 
763
+ #: includes/class-testimonials-widget.php:1863
764
  msgid "Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
765
  msgstr ""
766
 
767
+ #: includes/class-testimonials-widget.php:2141
768
  msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible fixes."
769
  msgstr ""
770
 
771
+ #: includes/class-testimonials-widget.php:2196
772
  msgid "Failed version check"
773
  msgstr ""
774
 
775
+ #: includes/class-testimonials-widget.php:2227
776
  msgid "Shortcode"
777
  msgstr ""
778
 
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: 4.0.0
8
- Stable tag: 2.19.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -191,7 +191,9 @@ Further, global settings are the baseline for shortcodes. If you want to alter t
191
 
192
  * Use bxSlider? - Prior to 2.15.0, Testimonials' used custom JavaScript for transitions.
193
  * Exclude bxSlider CSS? - For a bare-bones, unthemed slider.
194
- * `exclude_bxslider_css` - default show; exclude_bxslider_css=true
 
 
195
  * Include IE7 CSS?
196
  * Hide built-in quotes? - Remove open and close quote span tags surrounding testimonial content
197
  * `disable_quotes` - default false; disable_quotes=true
@@ -444,6 +446,10 @@ See [Changelog](https://github.com/michael-cannon/testimonials-widget/blob/maste
444
 
445
  == Upgrade Notice ==
446
 
 
 
 
 
447
  = 2.19.6 =
448
 
449
  * Enable Video also means enable video embedding and display
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: 4.0.0
8
+ Stable tag: 2.19.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
191
 
192
  * Use bxSlider? - Prior to 2.15.0, Testimonials' used custom JavaScript for transitions.
193
  * Exclude bxSlider CSS? - For a bare-bones, unthemed slider.
194
+ * `exclude_bxslider_css` - default false; exclude_bxslider_css=true
195
+ * Exclude default CSS? - Prevent default CSS from being loaded.
196
+ * `exclude_css` - default false; exclude_css=true
197
  * Include IE7 CSS?
198
  * Hide built-in quotes? - Remove open and close quote span tags surrounding testimonial content
199
  * `disable_quotes` - default false; disable_quotes=true
446
 
447
  == Upgrade Notice ==
448
 
449
+ = 2.19.8 =
450
+
451
+ * Cite fields for company and location are swapped
452
+
453
  = 2.19.6 =
454
 
455
  * Enable Video also means enable video embedding and display
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.19.7
7
  * Author: Michael Cannon
8
  * Author URI: http://aihr.us/resume/
9
  * License: GPLv2 or later
@@ -52,7 +52,7 @@ if ( ! defined( 'TW_PREMIUM_LINK' ) )
52
  define( 'TW_PREMIUM_LINK', '<a href="http://aihr.us/downloads/testimonials-widget-premium-wordpress-plugin/">Buy Premium</a>' );
53
 
54
  if ( ! defined( 'TW_VERSION' ) )
55
- define( 'TW_VERSION', '2.19.7' );
56
 
57
  require_once TW_DIR_INC . 'requirements.php';
58
 
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.19.8
7
  * Author: Michael Cannon
8
  * Author URI: http://aihr.us/resume/
9
  * License: GPLv2 or later
52
  define( 'TW_PREMIUM_LINK', '<a href="http://aihr.us/downloads/testimonials-widget-premium-wordpress-plugin/">Buy Premium</a>' );
53
 
54
  if ( ! defined( 'TW_VERSION' ) )
55
+ define( 'TW_VERSION', '2.19.8' );
56
 
57
  require_once TW_DIR_INC . 'requirements.php';
58