Version Description
= 3.0.0 =
This is a major overhaul without backwards compliance of over 80 changes. Please read the Testimonials Widget 3.0 and Testimonials Widget Premium 2.0 Upgrade Notice for more help.
If you use custom CSS, actions, or filters to modify Testimonials Widget and Testimonials Widget Premium actions or output, this upgrade will not be compatible with those modifications until corrections are made.
= Older Versions =
Read UPGRADING.
Download this release
Release Info
Developer | subharanjan |
Plugin | Testimonials Widget |
Version | 3.3.1 |
Comparing to | |
See all releases |
Code changes from version 3.3.0 to 3.3.1
- CHANGELOG.md +7 -0
- includes/class-testimonials-widget-settings.php +0 -1
- includes/class-testimonials-widget.php +59 -1
- includes/libraries/Gamajo-Template-Loader/README.md +112 -22
- includes/libraries/Gamajo-Template-Loader/class-gamajo-template-loader.php +77 -32
- languages/testimonials-widget.pot +172 -172
- readme.txt +2 -2
- testimonials-widget.php +2 -2
CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2 |
|
3 |
## master
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
## 3.3.0
|
6 |
* Change support email address to support@axelerant.com
|
7 |
* Confirm WordPress 4.4 compatibility
|
2 |
|
3 |
## master
|
4 |
|
5 |
+
## 3.3.1
|
6 |
+
* Add notice for existing users about review schema
|
7 |
+
* Confirm WordPress 4.5.3 compatibility
|
8 |
+
* Confirm PHP7 compatibility
|
9 |
+
* Disable use of review schema by default
|
10 |
+
* Update Gamajo-Template-Loader library
|
11 |
+
|
12 |
## 3.3.0
|
13 |
* Change support email address to support@axelerant.com
|
14 |
* Confirm WordPress 4.4 compatibility
|
includes/class-testimonials-widget-settings.php
CHANGED
@@ -280,7 +280,6 @@ class Axl_Testimonials_Widget_Settings extends Aihrus_Settings {
|
|
280 |
'desc' => sprintf( $desc, 'http://schema.org/Review' ),
|
281 |
'type' => 'checkbox',
|
282 |
'validate' => 'is_true',
|
283 |
-
'std' => 1,
|
284 |
);
|
285 |
|
286 |
self::$settings['do_shortcode'] = array(
|
280 |
'desc' => sprintf( $desc, 'http://schema.org/Review' ),
|
281 |
'type' => 'checkbox',
|
282 |
'validate' => 'is_true',
|
|
|
283 |
);
|
284 |
|
285 |
self::$settings['do_shortcode'] = array(
|
includes/class-testimonials-widget.php
CHANGED
@@ -39,7 +39,8 @@ class Axl_Testimonials_Widget extends Aihrus_Common {
|
|
39 |
const SLUG = 'tw_';
|
40 |
const VERSION = TW_VERSION;
|
41 |
|
42 |
-
const PT
|
|
|
43 |
|
44 |
public static $class = __CLASS__;
|
45 |
public static $cpt_category;
|
@@ -117,6 +118,9 @@ class Axl_Testimonials_Widget extends Aihrus_Common {
|
|
117 |
|
118 |
add_action( 'admin_init', array( __CLASS__, 'admin_init' ) );
|
119 |
add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ) );
|
|
|
|
|
|
|
120 |
add_action( 'dashboard_glance_items', array( __CLASS__, 'dashboard_glance_items' ) );
|
121 |
add_action( 'init', array( __CLASS__, 'init' ) );
|
122 |
add_action( 'widgets_init', array( __CLASS__, 'widgets_init' ) );
|
@@ -285,6 +289,7 @@ class Axl_Testimonials_Widget extends Aihrus_Common {
|
|
285 |
return;
|
286 |
}
|
287 |
|
|
|
288 |
flush_rewrite_rules();
|
289 |
}
|
290 |
|
@@ -303,6 +308,7 @@ class Axl_Testimonials_Widget extends Aihrus_Common {
|
|
303 |
delete_option( Axl_Testimonials_Widget_Settings::ID );
|
304 |
$wpdb->query( 'OPTIMIZE TABLE `' . $wpdb->options . '`' );
|
305 |
|
|
|
306 |
self::delete_testimonials();
|
307 |
}
|
308 |
}
|
@@ -384,6 +390,43 @@ class Axl_Testimonials_Widget extends Aihrus_Common {
|
|
384 |
}
|
385 |
|
386 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
387 |
public static function update() {
|
388 |
$prior_version = tw_get_option( 'admin_notices' );
|
389 |
if ( $prior_version ) {
|
@@ -398,6 +441,7 @@ class Axl_Testimonials_Widget extends Aihrus_Common {
|
|
398 |
if ( $prior_version < self::VERSION ) {
|
399 |
tw_requirements_check( true );
|
400 |
tw_init_options();
|
|
|
401 |
self::init_post_type();
|
402 |
flush_rewrite_rules();
|
403 |
do_action( 'tw_update' );
|
@@ -749,6 +793,20 @@ class Axl_Testimonials_Widget extends Aihrus_Common {
|
|
749 |
}
|
750 |
|
751 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
752 |
public static function scripts( $atts ) {
|
753 |
if ( is_admin() ) {
|
754 |
return;
|
39 |
const SLUG = 'tw_';
|
40 |
const VERSION = TW_VERSION;
|
41 |
|
42 |
+
const PT = 'testimonials-widget';
|
43 |
+
const NOTICE_KEY = 'tw_schema_notice';
|
44 |
|
45 |
public static $class = __CLASS__;
|
46 |
public static $cpt_category;
|
118 |
|
119 |
add_action( 'admin_init', array( __CLASS__, 'admin_init' ) );
|
120 |
add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ) );
|
121 |
+
add_action( 'admin_notices', array( __CLASS__, 'notice_schema' ) );
|
122 |
+
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_scripts' ) );
|
123 |
+
add_action( 'wp_ajax_tw_schema_notice', array( __CLASS__, 'dismiss_schema_notice' ) );
|
124 |
add_action( 'dashboard_glance_items', array( __CLASS__, 'dashboard_glance_items' ) );
|
125 |
add_action( 'init', array( __CLASS__, 'init' ) );
|
126 |
add_action( 'widgets_init', array( __CLASS__, 'widgets_init' ) );
|
289 |
return;
|
290 |
}
|
291 |
|
292 |
+
self::reset_schema_notice();
|
293 |
flush_rewrite_rules();
|
294 |
}
|
295 |
|
308 |
delete_option( Axl_Testimonials_Widget_Settings::ID );
|
309 |
$wpdb->query( 'OPTIMIZE TABLE `' . $wpdb->options . '`' );
|
310 |
|
311 |
+
self::reset_schema_notice();
|
312 |
self::delete_testimonials();
|
313 |
}
|
314 |
}
|
390 |
}
|
391 |
|
392 |
|
393 |
+
public static function notice_schema() {
|
394 |
+
if ( empty( get_option( self::NOTICE_KEY ) ) ) {
|
395 |
+
|
396 |
+
$text = __( TW_NAME . ' uses <a href="http://schema.org/Review" target="_blank">Review schema</a> markup for the testimonials. A recent move by Google <a href="https://www.seroundtable.com/google-takes-action-on-flight-rich-snippet-markup-22029.html" target="_blank">may penalize your website for using improper schema snippets</a>. Please use <strong>Review schema</strong> at your own risk via ', 'testimonials-widget' );
|
397 |
+
|
398 |
+
$notice_content = '';
|
399 |
+
$notice_content .= '<div class="notice is-dismissible error twp-schema-notice"><p>';
|
400 |
+
$notice_content .= $text;
|
401 |
+
$notice_content .= self::$settings_link;
|
402 |
+
$notice_content .= '.</p></div>';
|
403 |
+
|
404 |
+
echo $notice_content;
|
405 |
+
}
|
406 |
+
}
|
407 |
+
|
408 |
+
|
409 |
+
/**
|
410 |
+
* @SuppressWarnings(PHPMD.Superglobals)
|
411 |
+
*/
|
412 |
+
public static function dismiss_schema_notice() {
|
413 |
+
$nonce = $_POST['nonce'];
|
414 |
+
|
415 |
+
if ( ! wp_verify_nonce( $nonce, 'tw_schema_notice' ) ) {
|
416 |
+
wp_die();
|
417 |
+
}
|
418 |
+
|
419 |
+
update_option( self::NOTICE_KEY, self::VERSION );
|
420 |
+
|
421 |
+
wp_die();
|
422 |
+
}
|
423 |
+
|
424 |
+
|
425 |
+
public static function reset_schema_notice() {
|
426 |
+
delete_option( self::NOTICE_KEY );
|
427 |
+
}
|
428 |
+
|
429 |
+
|
430 |
public static function update() {
|
431 |
$prior_version = tw_get_option( 'admin_notices' );
|
432 |
if ( $prior_version ) {
|
441 |
if ( $prior_version < self::VERSION ) {
|
442 |
tw_requirements_check( true );
|
443 |
tw_init_options();
|
444 |
+
self::reset_schema_notice();
|
445 |
self::init_post_type();
|
446 |
flush_rewrite_rules();
|
447 |
do_action( 'tw_update' );
|
793 |
}
|
794 |
|
795 |
|
796 |
+
public static function admin_scripts() {
|
797 |
+
wp_register_script( 'tw_admin_scripts', self::$plugin_assets . 'js/tw-admin-scripts.js', array( 'jquery' ), '1.0', true );
|
798 |
+
wp_enqueue_script( 'tw_admin_scripts' );
|
799 |
+
|
800 |
+
wp_localize_script(
|
801 |
+
'tw_admin_scripts',
|
802 |
+
'tw_schema_notice',
|
803 |
+
array(
|
804 |
+
'nonce' => wp_create_nonce( 'tw_schema_notice' ),
|
805 |
+
)
|
806 |
+
);
|
807 |
+
}
|
808 |
+
|
809 |
+
|
810 |
public static function scripts( $atts ) {
|
811 |
if ( is_admin() ) {
|
812 |
return;
|
includes/libraries/Gamajo-Template-Loader/README.md
CHANGED
@@ -16,36 +16,117 @@ This isn't a WordPress plugin on its own, so the usual instructions don't apply.
|
|
16 |
|
17 |
1. Copy [`class-gamajo-template-loader.php`](class-gamajo-template-loader.php) into your plugin. It can be into a file in the plugin root, or better, an `includes` directory.
|
18 |
2. Create a new file, such as `class-your-plugin-template-loader.php`, in the same directory.
|
19 |
-
3. Create a class in that file that extends `Gamajo_Template_Loader`. You can
|
20 |
4. Override the class properties to suit your plugin. You could also override the `get_templates_dir()` method if it isn't right for you.
|
21 |
5. You can now instantiate your custom template loader class, and use it to call the `get_template_part()` method. This could be within a shortcode callback, or something you want theme developers to include in their files.
|
22 |
-
6. Optionally, you can wrap the reference to the object in a functions e.g.
|
23 |
|
24 |
-
~~~
|
25 |
-
// Template loader instantiated elsewhere, such as the main plugin file
|
26 |
$meal_planner_template_loader = new Meal_Planner_Template_Loader;
|
|
|
|
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
// This function can live wherever is suitable in your plugin
|
31 |
-
function meal_planner_get_template_part( $slug, $name = null, $load = true ) {
|
32 |
-
global $meal_planner_template_loader;
|
33 |
-
$meal_planner_template_loader->get_template_part( $slug, $name, $load );
|
34 |
-
}
|
35 |
~~~
|
36 |
-
|
37 |
|
|
|
|
|
|
|
|
|
38 |
~~~
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
47 |
~~~
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
## Usage Example
|
51 |
|
@@ -53,10 +134,19 @@ The [Cue](https://github.com/AudioTheme/cue) plugin from [AudioTheme](http://aud
|
|
53 |
|
54 |
If you wanted the playlist to have different markup for your theme, you'd copy `templates/playlist.php` to `wp-content/themes/{your-active-theme}/cue/playlist.php` and do whatever changes you wanted. WordPress will look for that file first, before then checking a parent theme location (if your active theme is a child theme), before falling back to the default template that comes with the Cue plugin.
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
## Contributions
|
|
|
57 |
Contributions are welcome - fork, fix and send pull requests against the `develop` branch please.
|
58 |
|
59 |
## Credits
|
60 |
|
61 |
Built by [Gary Jones](https://twitter.com/GaryJ)
|
62 |
-
Copyright 2013 [Gamajo Tech](
|
16 |
|
17 |
1. Copy [`class-gamajo-template-loader.php`](class-gamajo-template-loader.php) into your plugin. It can be into a file in the plugin root, or better, an `includes` directory.
|
18 |
2. Create a new file, such as `class-your-plugin-template-loader.php`, in the same directory.
|
19 |
+
3. Create a class in that file that extends `Gamajo_Template_Loader`. You can see the Meal Planner Template Loader example class below as a starting point if it helps.
|
20 |
4. Override the class properties to suit your plugin. You could also override the `get_templates_dir()` method if it isn't right for you.
|
21 |
5. You can now instantiate your custom template loader class, and use it to call the `get_template_part()` method. This could be within a shortcode callback, or something you want theme developers to include in their files.
|
|
|
22 |
|
23 |
+
~~~php
|
24 |
+
// Template loader instantiated elsewhere, such as the main plugin file.
|
25 |
$meal_planner_template_loader = new Meal_Planner_Template_Loader;
|
26 |
+
~~~
|
27 |
+
* Use it to call the `get_template_part()` method. This could be within a shortcode callback, or something you want theme developers to include in their files.
|
28 |
|
29 |
+
~~~php
|
30 |
+
$meal_planner_template_loader->get_template_part( 'recipe' );
|
|
|
|
|
|
|
|
|
|
|
31 |
~~~
|
32 |
+
* If you want to pass data to the template, call the `set_template_data()` method with an array before calling `get_template_part()`.
|
33 |
|
34 |
+
~~~php
|
35 |
+
$data = array( 'foo' => 'bar', 'baz' => 'boom' );
|
36 |
+
$meal_planner_template_loader->set_template_data( $data );
|
37 |
+
$meal_planner_template_loader->get_template_part( 'recipe' );
|
38 |
~~~
|
39 |
+
|
40 |
+
The value of `bar` is now available inside the recipe template as `$data['foo']`.
|
41 |
+
|
42 |
+
If you wish to use a different variable name, add a second parameter to `set_template_data()`:
|
43 |
+
|
44 |
+
~~~php
|
45 |
+
$data = array( 'foo' => 'bar', 'baz' => 'boom' );
|
46 |
+
$meal_planner_template_loader->set_template_data( $data, 'context' );
|
47 |
+
$meal_planner_template_loader->get_template_part( 'recipe', 'ingredients' );
|
48 |
~~~
|
49 |
+
|
50 |
+
The value of `bar` is now available inside the recipe template as `$context['foo']`.
|
51 |
+
|
52 |
+
This will try to load up `wp-content/themes/my-theme/meal-planner/recipe-ingredients.php`, or `wp-content/themes/my-theme/meal-planner/recipe.php`, then fallback to `wp-content/plugins/meal-planner/templates/recipe-ingredients.php` or `wp-content/plugins/meal-planner/templates/recipe.php`.
|
53 |
+
|
54 |
+
### Meal Planner Example Class
|
55 |
+
|
56 |
+
```php
|
57 |
+
<?php
|
58 |
+
/**
|
59 |
+
* Meal Planner
|
60 |
+
*
|
61 |
+
* @package Meal_Planner
|
62 |
+
* @author Gary Jones
|
63 |
+
* @link http://example.com/meal-planner
|
64 |
+
* @copyright 2013 Gary Jones
|
65 |
+
* @license GPL-2.0+
|
66 |
+
*/
|
67 |
+
|
68 |
+
if ( ! class_exists( 'Gamajo_Template_Loader' ) ) {
|
69 |
+
require plugin_dir_path( __FILE__ ) . 'class-gamajo-template-loader.php';
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Template loader for Meal Planner.
|
74 |
+
*
|
75 |
+
* Only need to specify class properties here.
|
76 |
+
*
|
77 |
+
* @package Meal_Planner
|
78 |
+
* @author Gary Jones
|
79 |
+
*/
|
80 |
+
class Meal_Planner_Template_Loader extends Gamajo_Template_Loader {
|
81 |
+
/**
|
82 |
+
* Prefix for filter names.
|
83 |
+
*
|
84 |
+
* @since 1.0.0
|
85 |
+
*
|
86 |
+
* @var string
|
87 |
+
*/
|
88 |
+
protected $filter_prefix = 'meal_planner';
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Directory name where custom templates for this plugin should be found in the theme.
|
92 |
+
*
|
93 |
+
* @since 1.0.0
|
94 |
+
*
|
95 |
+
* @var string
|
96 |
+
*/
|
97 |
+
protected $theme_template_directory = 'meal-planner';
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Reference to the root directory path of this plugin.
|
101 |
+
*
|
102 |
+
* Can either be a defined constant, or a relative reference from where the subclass lives.
|
103 |
+
*
|
104 |
+
* In this case, `MEAL_PLANNER_PLUGIN_DIR` would be defined in the root plugin file as:
|
105 |
+
*
|
106 |
+
* ~~~
|
107 |
+
* define( 'MEAL_PLANNER_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
108 |
+
* ~~~
|
109 |
+
*
|
110 |
+
* @since 1.0.0
|
111 |
+
*
|
112 |
+
* @var string
|
113 |
+
*/
|
114 |
+
protected $plugin_directory = MEAL_PLANNER_PLUGIN_DIR;
|
115 |
+
|
116 |
+
/**
|
117 |
+
* Directory name where templates are found in this plugin.
|
118 |
+
*
|
119 |
+
* Can either be a defined constant, or a relative reference from where the subclass lives.
|
120 |
+
*
|
121 |
+
* e.g. 'templates' or 'includes/templates', etc.
|
122 |
+
*
|
123 |
+
* @since 1.1.0
|
124 |
+
*
|
125 |
+
* @var string
|
126 |
+
*/
|
127 |
+
protected $plugin_template_directory = 'templates';
|
128 |
+
}
|
129 |
+
```
|
130 |
|
131 |
## Usage Example
|
132 |
|
134 |
|
135 |
If you wanted the playlist to have different markup for your theme, you'd copy `templates/playlist.php` to `wp-content/themes/{your-active-theme}/cue/playlist.php` and do whatever changes you wanted. WordPress will look for that file first, before then checking a parent theme location (if your active theme is a child theme), before falling back to the default template that comes with the Cue plugin.
|
136 |
|
137 |
+
## Change Log
|
138 |
+
|
139 |
+
See the [change log](CHANGELOG.md).
|
140 |
+
|
141 |
+
## License
|
142 |
+
|
143 |
+
[GPL-2.0+](LICENSE).
|
144 |
+
|
145 |
## Contributions
|
146 |
+
|
147 |
Contributions are welcome - fork, fix and send pull requests against the `develop` branch please.
|
148 |
|
149 |
## Credits
|
150 |
|
151 |
Built by [Gary Jones](https://twitter.com/GaryJ)
|
152 |
+
Copyright 2013 [Gamajo Tech](https://gamajo.com)
|
includes/libraries/Gamajo-Template-Loader/class-gamajo-template-loader.php
CHANGED
@@ -7,10 +7,11 @@
|
|
7 |
* @link http://github.com/GaryJones/Gamajo-Template-Loader
|
8 |
* @copyright 2013 Gary Jones
|
9 |
* @license GPL-2.0+
|
10 |
-
* @version 1.
|
11 |
*/
|
12 |
|
13 |
-
if ( ! class_exists( 'Gamajo_Template_Loader' ) )
|
|
|
14 |
/**
|
15 |
* Template loader.
|
16 |
*
|
@@ -27,74 +28,120 @@ if ( ! class_exists( 'Gamajo_Template_Loader' ) ) {
|
|
27 |
*
|
28 |
* @since 1.0.0
|
29 |
*
|
30 |
-
* @
|
31 |
*/
|
32 |
protected $filter_prefix = 'your_plugin';
|
33 |
|
34 |
/**
|
35 |
* Directory name where custom templates for this plugin should be found in the theme.
|
36 |
*
|
|
|
|
|
37 |
* @since 1.0.0
|
38 |
*
|
39 |
-
* @
|
40 |
*/
|
41 |
-
protected $theme_template_directory = '
|
42 |
|
43 |
/**
|
44 |
* Reference to the root directory path of this plugin.
|
45 |
*
|
46 |
* Can either be a defined constant, or a relative reference from where the subclass lives.
|
47 |
*
|
|
|
|
|
48 |
* @since 1.0.0
|
49 |
*
|
50 |
-
* @
|
51 |
*/
|
52 |
-
protected $plugin_directory = YOUR_PLUGIN_DIR;
|
53 |
|
54 |
/**
|
55 |
* Directory name where templates are found in this plugin.
|
56 |
*
|
57 |
* Can either be a defined constant, or a relative reference from where the subclass lives.
|
58 |
*
|
|
|
|
|
59 |
* @since 1.1.0
|
60 |
*
|
61 |
-
* @
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
*/
|
63 |
-
|
|
|
|
|
64 |
|
65 |
/**
|
66 |
* Retrieve a template part.
|
67 |
*
|
68 |
* @since 1.0.0
|
69 |
*
|
70 |
-
* @
|
71 |
-
* @
|
72 |
-
*
|
73 |
-
*
|
74 |
-
* @param string $slug
|
75 |
-
* @param string $name Optional. Default null.
|
76 |
-
* @param bool $load Optional. Default true.
|
77 |
*
|
78 |
* @return string
|
79 |
*/
|
80 |
public function get_template_part( $slug, $name = null, $load = true ) {
|
81 |
-
// Execute code for this part
|
82 |
do_action( 'get_template_part_' . $slug, $slug, $name );
|
83 |
|
84 |
// Get files names of templates, for given slug and name.
|
85 |
$templates = $this->get_template_file_names( $slug, $name );
|
86 |
|
87 |
-
// Return the part that is found
|
88 |
return $this->locate_template( $templates, $load, false );
|
89 |
}
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
/**
|
92 |
* Given a slug and optional name, create the file names of templates.
|
93 |
*
|
94 |
* @since 1.0.0
|
95 |
*
|
96 |
-
* @param string
|
97 |
-
* @param string
|
98 |
*
|
99 |
* @return array
|
100 |
*/
|
@@ -113,9 +160,9 @@ if ( ! class_exists( 'Gamajo_Template_Loader' ) ) {
|
|
113 |
*
|
114 |
* @since 1.0.0
|
115 |
*
|
116 |
-
* @param array
|
117 |
-
* @param string $slug
|
118 |
-
* @param string $name
|
119 |
*/
|
120 |
return apply_filters( $this->filter_prefix . '_get_template_part', $templates, $slug, $name );
|
121 |
}
|
@@ -129,29 +176,27 @@ if ( ! class_exists( 'Gamajo_Template_Loader' ) ) {
|
|
129 |
*
|
130 |
* @since 1.0.0
|
131 |
*
|
132 |
-
* @uses Gamajo_Tech_Loader::get_template_paths() Return a list of paths to check for template locations.
|
133 |
-
*
|
134 |
* @param string|array $template_names Template file(s) to search for, in order.
|
135 |
* @param bool $load If true the template file will be loaded if it is found.
|
136 |
* @param bool $require_once Whether to require_once or require. Default true.
|
137 |
-
*
|
138 |
*
|
139 |
* @return string The template filename if one is located.
|
140 |
*/
|
141 |
public function locate_template( $template_names, $load = false, $require_once = true ) {
|
142 |
-
// No file found yet
|
143 |
$located = false;
|
144 |
|
145 |
-
// Remove empty entries
|
146 |
$template_names = array_filter( (array) $template_names );
|
147 |
$template_paths = $this->get_template_paths();
|
148 |
|
149 |
-
// Try to find a template file
|
150 |
foreach ( $template_names as $template_name ) {
|
151 |
-
// Trim off any slashes from the template name
|
152 |
$template_name = ltrim( $template_name, '/' );
|
153 |
|
154 |
-
// Try locating this template file by looping through the template paths
|
155 |
foreach ( $template_paths as $template_path ) {
|
156 |
if ( file_exists( $template_path . $template_name ) ) {
|
157 |
$located = $template_path . $template_name;
|
@@ -200,7 +245,7 @@ if ( ! class_exists( 'Gamajo_Template_Loader' ) ) {
|
|
200 |
*/
|
201 |
$file_paths = apply_filters( $this->filter_prefix . '_template_paths', $file_paths );
|
202 |
|
203 |
-
//
|
204 |
ksort( $file_paths, SORT_NUMERIC );
|
205 |
|
206 |
return array_map( 'trailingslashit', $file_paths );
|
7 |
* @link http://github.com/GaryJones/Gamajo-Template-Loader
|
8 |
* @copyright 2013 Gary Jones
|
9 |
* @license GPL-2.0+
|
10 |
+
* @version 1.2.0
|
11 |
*/
|
12 |
|
13 |
+
if ( ! class_exists( 'Gamajo_Template_Loader' ) ) {
|
14 |
+
|
15 |
/**
|
16 |
* Template loader.
|
17 |
*
|
28 |
*
|
29 |
* @since 1.0.0
|
30 |
*
|
31 |
+
* @var string
|
32 |
*/
|
33 |
protected $filter_prefix = 'your_plugin';
|
34 |
|
35 |
/**
|
36 |
* Directory name where custom templates for this plugin should be found in the theme.
|
37 |
*
|
38 |
+
* For example: 'your-plugin-templates'.
|
39 |
+
*
|
40 |
* @since 1.0.0
|
41 |
*
|
42 |
+
* @var string
|
43 |
*/
|
44 |
+
protected $theme_template_directory = 'plugin-templates';
|
45 |
|
46 |
/**
|
47 |
* Reference to the root directory path of this plugin.
|
48 |
*
|
49 |
* Can either be a defined constant, or a relative reference from where the subclass lives.
|
50 |
*
|
51 |
+
* e.g. YOUR_PLUGIN_TEMPLATE or plugin_dir_path( dirname( __FILE__ ) ); etc.
|
52 |
+
*
|
53 |
* @since 1.0.0
|
54 |
*
|
55 |
+
* @var string
|
56 |
*/
|
57 |
+
protected $plugin_directory = 'YOUR_PLUGIN_DIR';
|
58 |
|
59 |
/**
|
60 |
* Directory name where templates are found in this plugin.
|
61 |
*
|
62 |
* Can either be a defined constant, or a relative reference from where the subclass lives.
|
63 |
*
|
64 |
+
* e.g. 'templates' or 'includes/templates', etc.
|
65 |
+
*
|
66 |
* @since 1.1.0
|
67 |
*
|
68 |
+
* @var string
|
69 |
+
*/
|
70 |
+
protected $plugin_template_directory = 'templates';
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Clean up template data.
|
74 |
+
*
|
75 |
+
* @since 1.2.0
|
76 |
*/
|
77 |
+
public function __destruct() {
|
78 |
+
$this->unset_template_data();
|
79 |
+
}
|
80 |
|
81 |
/**
|
82 |
* Retrieve a template part.
|
83 |
*
|
84 |
* @since 1.0.0
|
85 |
*
|
86 |
+
* @param string $slug Template slug.
|
87 |
+
* @param string $name Optional. Template variation name. Default null.
|
88 |
+
* @param bool $load Optional. Whether to load template. Default true.
|
|
|
|
|
|
|
|
|
89 |
*
|
90 |
* @return string
|
91 |
*/
|
92 |
public function get_template_part( $slug, $name = null, $load = true ) {
|
93 |
+
// Execute code for this part.
|
94 |
do_action( 'get_template_part_' . $slug, $slug, $name );
|
95 |
|
96 |
// Get files names of templates, for given slug and name.
|
97 |
$templates = $this->get_template_file_names( $slug, $name );
|
98 |
|
99 |
+
// Return the part that is found.
|
100 |
return $this->locate_template( $templates, $load, false );
|
101 |
}
|
102 |
|
103 |
+
/**
|
104 |
+
* Make custom data available to template.
|
105 |
+
*
|
106 |
+
* Data is available to the template as properties under the `$data` variable.
|
107 |
+
* i.e. A value provided here under `$data['foo']` is available as `$data->foo`.
|
108 |
+
*
|
109 |
+
* When an input key has a hyphen, you can use `$data->{foo-bar}` in the template.
|
110 |
+
*
|
111 |
+
* @since 1.2.0
|
112 |
+
*
|
113 |
+
* @param array $data Custom data for the template.
|
114 |
+
* @param string $var_name Optional. Variable under which the custom data is available in the template.
|
115 |
+
* Default is 'data'.
|
116 |
+
*/
|
117 |
+
public function set_template_data( array $data, $var_name = 'data' ) {
|
118 |
+
global $wp_query;
|
119 |
+
|
120 |
+
$wp_query->query_vars[ $var_name ] = (object) $data;
|
121 |
+
}
|
122 |
+
|
123 |
+
/**
|
124 |
+
* Remove access to custom data in template.
|
125 |
+
*
|
126 |
+
* Good to use once the final template part has been requested.
|
127 |
+
*
|
128 |
+
* @since 1.2.0
|
129 |
+
*/
|
130 |
+
public function unset_template_data() {
|
131 |
+
global $wp_query;
|
132 |
+
|
133 |
+
if ( isset( $wp_query->query_vars['data'] ) ) {
|
134 |
+
unset( $wp_query->query_vars['data'] );
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
/**
|
139 |
* Given a slug and optional name, create the file names of templates.
|
140 |
*
|
141 |
* @since 1.0.0
|
142 |
*
|
143 |
+
* @param string $slug Template slug.
|
144 |
+
* @param string $name Template variation name.
|
145 |
*
|
146 |
* @return array
|
147 |
*/
|
160 |
*
|
161 |
* @since 1.0.0
|
162 |
*
|
163 |
+
* @param array $templates Names of template files that should be looked for, for given slug and name.
|
164 |
+
* @param string $slug Template slug.
|
165 |
+
* @param string $name Template variation name.
|
166 |
*/
|
167 |
return apply_filters( $this->filter_prefix . '_get_template_part', $templates, $slug, $name );
|
168 |
}
|
176 |
*
|
177 |
* @since 1.0.0
|
178 |
*
|
|
|
|
|
179 |
* @param string|array $template_names Template file(s) to search for, in order.
|
180 |
* @param bool $load If true the template file will be loaded if it is found.
|
181 |
* @param bool $require_once Whether to require_once or require. Default true.
|
182 |
+
* Has no effect if $load is false.
|
183 |
*
|
184 |
* @return string The template filename if one is located.
|
185 |
*/
|
186 |
public function locate_template( $template_names, $load = false, $require_once = true ) {
|
187 |
+
// No file found yet.
|
188 |
$located = false;
|
189 |
|
190 |
+
// Remove empty entries.
|
191 |
$template_names = array_filter( (array) $template_names );
|
192 |
$template_paths = $this->get_template_paths();
|
193 |
|
194 |
+
// Try to find a template file.
|
195 |
foreach ( $template_names as $template_name ) {
|
196 |
+
// Trim off any slashes from the template name.
|
197 |
$template_name = ltrim( $template_name, '/' );
|
198 |
|
199 |
+
// Try locating this template file by looping through the template paths.
|
200 |
foreach ( $template_paths as $template_path ) {
|
201 |
if ( file_exists( $template_path . $template_name ) ) {
|
202 |
$located = $template_path . $template_name;
|
245 |
*/
|
246 |
$file_paths = apply_filters( $this->filter_prefix . '_template_paths', $file_paths );
|
247 |
|
248 |
+
// Sort the file paths based on priority.
|
249 |
ksort( $file_paths, SORT_NUMERIC );
|
250 |
|
251 |
return array_map( 'trailingslashit', $file_paths );
|
languages/testimonials-widget.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the Testimonials Widget package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Testimonials Widget 3.3.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/testimonials-"
|
7 |
"widget\n"
|
8 |
-
"POT-Creation-Date: 2016-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -64,42 +64,42 @@ msgid "Testimonials Settings"
|
|
64 |
msgstr ""
|
65 |
|
66 |
#: includes/class-testimonials-widget-settings.php:97
|
67 |
-
#: includes/class-testimonials-widget.php:
|
68 |
msgid "Settings"
|
69 |
msgstr ""
|
70 |
|
71 |
#: includes/class-testimonials-widget-settings.php:113
|
72 |
-
#: includes/class-testimonials-widget-settings.php:
|
73 |
msgid "General"
|
74 |
msgstr ""
|
75 |
|
76 |
#: includes/class-testimonials-widget-settings.php:114
|
77 |
-
#: includes/class-testimonials-widget-settings.php:
|
78 |
msgid "Fields"
|
79 |
msgstr ""
|
80 |
|
81 |
#: includes/class-testimonials-widget-settings.php:115
|
82 |
-
#: includes/class-testimonials-widget-settings.php:
|
83 |
msgid "Selection"
|
84 |
msgstr ""
|
85 |
|
86 |
#: includes/class-testimonials-widget-settings.php:116
|
87 |
-
#: includes/class-testimonials-widget-settings.php:
|
88 |
msgid "Ordering"
|
89 |
msgstr ""
|
90 |
|
91 |
#: includes/class-testimonials-widget-settings.php:117
|
92 |
-
#: includes/class-testimonials-widget-settings.php:
|
93 |
msgid "Columns"
|
94 |
msgstr ""
|
95 |
|
96 |
#: includes/class-testimonials-widget-settings.php:118
|
97 |
-
#: includes/class-testimonials-widget-settings.php:
|
98 |
msgid "Post Type"
|
99 |
msgstr ""
|
100 |
|
101 |
#: includes/class-testimonials-widget-settings.php:119
|
102 |
-
#: includes/class-testimonials-widget-settings.php:
|
103 |
msgid "Slider Widget"
|
104 |
msgstr ""
|
105 |
|
@@ -117,8 +117,8 @@ msgid "Title"
|
|
117 |
msgstr ""
|
118 |
|
119 |
#: includes/class-testimonials-widget-settings.php:140
|
120 |
-
#: includes/class-testimonials-widget.php:
|
121 |
-
#: includes/class-testimonials-widget.php:
|
122 |
msgid "Testimonials"
|
123 |
msgstr ""
|
124 |
|
@@ -287,371 +287,371 @@ msgstr ""
|
|
287 |
msgid "Enable Review Schema?"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: includes/class-testimonials-widget-settings.php:
|
291 |
msgid "Enable [shortcodes]?"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: includes/class-testimonials-widget-settings.php:
|
295 |
msgid "If unchecked, shortcodes are stripped."
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: includes/class-testimonials-widget-settings.php:
|
299 |
msgid "Enable Video?"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: includes/class-testimonials-widget-settings.php:
|
303 |
msgid "Only enable when displaying video content."
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: includes/class-testimonials-widget-settings.php:
|
307 |
msgid "Exclude bxSlider CSS?"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: includes/class-testimonials-widget-settings.php:
|
311 |
msgid "For a bare-bones, unthemed slider."
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: includes/class-testimonials-widget-settings.php:
|
315 |
msgid "Exclude default CSS?"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: includes/class-testimonials-widget-settings.php:
|
319 |
msgid "Prevent default CSS from being loaded."
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: includes/class-testimonials-widget-settings.php:
|
323 |
msgid "Remove `.hentry` CSS?"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: includes/class-testimonials-widget-settings.php:
|
327 |
msgid ""
|
328 |
"Some themes use class `.hentry` in a manner that breaks Testimonials' CSS."
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: includes/class-testimonials-widget-settings.php:
|
332 |
msgid "URL Target"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: includes/class-testimonials-widget-settings.php:
|
336 |
msgid "Add target to all URLs; leave blank if none."
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: includes/class-testimonials-widget-settings.php:
|
340 |
msgid "Use `<q>` tag?"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: includes/class-testimonials-widget-settings.php:
|
344 |
msgid "Not HTML5 compliant."
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: includes/class-testimonials-widget-settings.php:
|
348 |
msgid "Field Options"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: includes/class-testimonials-widget-settings.php:
|
352 |
msgid "Hide Title Above Content?"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: includes/class-testimonials-widget-settings.php:
|
356 |
msgid "Don't display testimonial title above testimonial content."
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: includes/class-testimonials-widget-settings.php:
|
360 |
-
#: includes/class-testimonials-widget-settings.php:
|
361 |
msgid "Hide Author?"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: includes/class-testimonials-widget-settings.php:
|
365 |
msgid "Don't display testimonial title in cite."
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: includes/class-testimonials-widget-settings.php:
|
369 |
-
#: includes/class-testimonials-widget-settings.php:
|
370 |
msgid "Hide Company?"
|
371 |
msgstr ""
|
372 |
|
373 |
-
#: includes/class-testimonials-widget-settings.php:
|
374 |
msgid "Don't display testimonial company in cite."
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: includes/class-testimonials-widget-settings.php:
|
378 |
msgid "Hide Content?"
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: includes/class-testimonials-widget-settings.php:
|
382 |
msgid "Don't display testimonial content in a view."
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: includes/class-testimonials-widget-settings.php:
|
386 |
-
#: includes/class-testimonials-widget-settings.php:
|
387 |
msgid "Hide Email?"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: includes/class-testimonials-widget-settings.php:
|
391 |
msgid "Don't display or link to testimonial email in cite."
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: includes/class-testimonials-widget-settings.php:
|
395 |
msgid "Hide Gravatar?"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: includes/class-testimonials-widget-settings.php:
|
399 |
msgid "Don't display Gravatar image with testimonial."
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: includes/class-testimonials-widget-settings.php:
|
403 |
-
#: includes/class-testimonials-widget-settings.php:
|
404 |
msgid "Hide Image?"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: includes/class-testimonials-widget-settings.php:
|
408 |
msgid "Don't display featured image with testimonial."
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: includes/class-testimonials-widget-settings.php:
|
412 |
msgid "Hide Image in Single View?"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: includes/class-testimonials-widget-settings.php:
|
416 |
-
#: includes/class-testimonials-widget-settings.php:
|
417 |
msgid "Hide Job Title?"
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: includes/class-testimonials-widget-settings.php:
|
421 |
msgid "Don't display testimonial job title in cite."
|
422 |
msgstr ""
|
423 |
|
424 |
-
#: includes/class-testimonials-widget-settings.php:
|
425 |
-
#: includes/class-testimonials-widget-settings.php:
|
426 |
msgid "Hide Location?"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: includes/class-testimonials-widget-settings.php:
|
430 |
msgid "Don't display testimonial location in cite."
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: includes/class-testimonials-widget-settings.php:
|
434 |
-
#: includes/class-testimonials-widget-settings.php:
|
435 |
msgid "Hide URL?"
|
436 |
msgstr ""
|
437 |
|
438 |
-
#: includes/class-testimonials-widget-settings.php:
|
439 |
msgid "Don't display or link to testimonial URL in cite."
|
440 |
msgstr ""
|
441 |
|
442 |
-
#: includes/class-testimonials-widget-settings.php:
|
443 |
msgid "Selection Options"
|
444 |
msgstr ""
|
445 |
|
446 |
-
#: includes/class-testimonials-widget-settings.php:
|
447 |
msgid "Category Filter"
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: includes/class-testimonials-widget-settings.php:
|
451 |
msgid "Comma separated category names or IDs."
|
452 |
msgstr ""
|
453 |
|
454 |
-
#: includes/class-testimonials-widget-settings.php:
|
455 |
msgid "Exclude IDs Filter"
|
456 |
msgstr ""
|
457 |
|
458 |
-
#: includes/class-testimonials-widget-settings.php:
|
459 |
-
#: includes/class-testimonials-widget-settings.php:
|
460 |
msgid "Comma separated testimonial IDs."
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: includes/class-testimonials-widget-settings.php:
|
464 |
msgid "Include IDs Filter"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: includes/class-testimonials-widget-settings.php:
|
468 |
msgid "Limit"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: includes/class-testimonials-widget-settings.php:
|
472 |
msgid "Number of testimonials to select per instance."
|
473 |
msgstr ""
|
474 |
|
475 |
-
#: includes/class-testimonials-widget-settings.php:
|
476 |
msgid "Require All Tags?"
|
477 |
msgstr ""
|
478 |
|
479 |
-
#: includes/class-testimonials-widget-settings.php:
|
480 |
msgid "Select only testimonials with all of the given tags."
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: includes/class-testimonials-widget-settings.php:
|
484 |
msgid "Tags Filter"
|
485 |
msgstr ""
|
486 |
|
487 |
-
#: includes/class-testimonials-widget-settings.php:
|
488 |
msgid "Comma separated tag slugs or IDs."
|
489 |
msgstr ""
|
490 |
|
491 |
-
#: includes/class-testimonials-widget-settings.php:
|
492 |
msgid "Ordering Options"
|
493 |
msgstr ""
|
494 |
|
495 |
-
#: includes/class-testimonials-widget-settings.php:
|
496 |
msgid "ORDER BY"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: includes/class-testimonials-widget-settings.php:
|
500 |
msgid "Used when \"Random Order\" is disabled."
|
501 |
msgstr ""
|
502 |
|
503 |
-
#: includes/class-testimonials-widget-settings.php:
|
504 |
msgid "Testimonial ID"
|
505 |
msgstr ""
|
506 |
|
507 |
-
#: includes/class-testimonials-widget-settings.php:
|
508 |
-
#: includes/class-testimonials-widget-settings.php:
|
509 |
-
#: includes/class-testimonials-widget.php:
|
510 |
-
#: includes/class-testimonials-widget.php:
|
511 |
-
#: includes/class-testimonials-widget.php:
|
512 |
msgid "Author"
|
513 |
msgstr ""
|
514 |
|
515 |
-
#: includes/class-testimonials-widget-settings.php:
|
516 |
-
#: includes/class-testimonials-widget.php:
|
517 |
msgid "Date"
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: includes/class-testimonials-widget-settings.php:
|
521 |
msgid "Menu Order"
|
522 |
msgstr ""
|
523 |
|
524 |
-
#: includes/class-testimonials-widget-settings.php:
|
525 |
msgid "No order"
|
526 |
msgstr ""
|
527 |
|
528 |
-
#: includes/class-testimonials-widget-settings.php:
|
529 |
msgid "ORDER BY meta_key"
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: includes/class-testimonials-widget-settings.php:
|
533 |
msgid ""
|
534 |
"Used when \"Random Order\" is disabled and sorting by a testimonials meta "
|
535 |
"key is needed. Overrides ORDER BY."
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: includes/class-testimonials-widget-settings.php:
|
539 |
msgid "None"
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: includes/class-testimonials-widget-settings.php:
|
543 |
-
#: includes/class-testimonials-widget.php:
|
544 |
-
#: includes/class-testimonials-widget.php:
|
545 |
msgid "Job Title"
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: includes/class-testimonials-widget-settings.php:
|
549 |
-
#: includes/class-testimonials-widget.php:
|
550 |
-
#: includes/class-testimonials-widget.php:
|
551 |
msgid "Email"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: includes/class-testimonials-widget-settings.php:
|
555 |
-
#: includes/class-testimonials-widget.php:
|
556 |
-
#: includes/class-testimonials-widget.php:
|
557 |
msgid "Location"
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: includes/class-testimonials-widget-settings.php:
|
561 |
-
#: includes/class-testimonials-widget.php:
|
562 |
-
#: includes/class-testimonials-widget.php:
|
563 |
msgid "Company"
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: includes/class-testimonials-widget-settings.php:
|
567 |
-
#: includes/class-testimonials-widget.php:
|
568 |
-
#: includes/class-testimonials-widget.php:
|
569 |
msgid "URL"
|
570 |
msgstr ""
|
571 |
|
572 |
-
#: includes/class-testimonials-widget-settings.php:
|
573 |
msgid "ORDER BY Order"
|
574 |
msgstr ""
|
575 |
|
576 |
-
#: includes/class-testimonials-widget-settings.php:
|
577 |
msgid "Descending"
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: includes/class-testimonials-widget-settings.php:
|
581 |
msgid "Ascending"
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: includes/class-testimonials-widget-settings.php:
|
585 |
msgid "Random Order?"
|
586 |
msgstr ""
|
587 |
|
588 |
-
#: includes/class-testimonials-widget-settings.php:
|
589 |
msgid ""
|
590 |
"If checked, ignores ORDER BY, ORDER BY meta_key, and ORDER BY Order. Widgets "
|
591 |
"are random by default automatically."
|
592 |
msgstr ""
|
593 |
|
594 |
-
#: includes/class-testimonials-widget-settings.php:
|
595 |
msgid "Allow Comments?"
|
596 |
msgstr ""
|
597 |
|
598 |
-
#: includes/class-testimonials-widget-settings.php:
|
599 |
msgid ""
|
600 |
"Only affects the Testimonials post edit page. Your theme controls the front-"
|
601 |
"end view."
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: includes/class-testimonials-widget-settings.php:
|
605 |
msgid "URL slug-name for <a href=\"%1s\">testimonials archive</a> page."
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: includes/class-testimonials-widget-settings.php:
|
609 |
msgid "Archive Page URL"
|
610 |
msgstr ""
|
611 |
|
612 |
-
#: includes/class-testimonials-widget-settings.php:
|
613 |
msgid "Disable Default Taxonomies?"
|
614 |
msgstr ""
|
615 |
|
616 |
-
#: includes/class-testimonials-widget-settings.php:
|
617 |
msgid ""
|
618 |
"If checked, use Testimonials' own category and tag taxonomies than "
|
619 |
"WordPress' defaults."
|
620 |
msgstr ""
|
621 |
|
622 |
-
#: includes/class-testimonials-widget-settings.php:
|
623 |
msgid "Include testimonials in archive and category views."
|
624 |
msgstr ""
|
625 |
|
626 |
-
#: includes/class-testimonials-widget-settings.php:
|
627 |
msgid "Enable archives view?"
|
628 |
msgstr ""
|
629 |
|
630 |
-
#: includes/class-testimonials-widget-settings.php:
|
631 |
msgid ""
|
632 |
"URL slug-name for testimonial view pages. Shouldn't be the same as the "
|
633 |
"Archive Page URL nor should it match a page URL slug."
|
634 |
msgstr ""
|
635 |
|
636 |
-
#: includes/class-testimonials-widget-settings.php:
|
637 |
msgid "Testimonial Page URL"
|
638 |
msgstr ""
|
639 |
|
640 |
-
#: includes/class-testimonials-widget-settings.php:
|
641 |
msgid "Hide ID?"
|
642 |
msgstr ""
|
643 |
|
644 |
-
#: includes/class-testimonials-widget-settings.php:
|
645 |
msgid "Hide Shortcode?"
|
646 |
msgstr ""
|
647 |
|
648 |
-
#: includes/class-testimonials-widget-settings.php:
|
649 |
-
#: includes/class-testimonials-widget-settings.php:
|
650 |
#: includes/libraries/aihrus-framework/includes/class-aihrus-settings.php:65
|
651 |
msgid "Reset"
|
652 |
msgstr ""
|
653 |
|
654 |
-
#: includes/class-testimonials-widget-settings.php:
|
655 |
msgid ""
|
656 |
"These Testimonials Settings establish the default option values for "
|
657 |
"shortcodes, theme functions, and widget instances. Widgets, once created no "
|
@@ -660,43 +660,43 @@ msgid ""
|
|
660 |
"then recreate it."
|
661 |
msgstr ""
|
662 |
|
663 |
-
#: includes/class-testimonials-widget-settings.php:
|
664 |
msgid "Shortcode option names are listed below each entry."
|
665 |
msgstr ""
|
666 |
|
667 |
-
#: includes/class-testimonials-widget-settings.php:
|
668 |
msgid "View the <a href=\"%s\">Testimonials documentation</a>."
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: includes/class-testimonials-widget-settings.php:
|
672 |
msgid "General options."
|
673 |
msgstr ""
|
674 |
|
675 |
-
#: includes/class-testimonials-widget-settings.php:
|
676 |
msgid "Show or hide fields."
|
677 |
msgstr ""
|
678 |
|
679 |
-
#: includes/class-testimonials-widget-settings.php:
|
680 |
msgid "Options used to select testimonials."
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: includes/class-testimonials-widget-settings.php:
|
684 |
msgid "Options used to determine displayed testimonials ordering."
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: includes/class-testimonials-widget-settings.php:
|
688 |
msgid "Allowed columns to display on edit page."
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: includes/class-testimonials-widget-settings.php:
|
692 |
msgid "Archive and singular page URL related testimonials options."
|
693 |
msgstr ""
|
694 |
|
695 |
-
#: includes/class-testimonials-widget-settings.php:
|
696 |
msgid "Options related to showing testimonials in widgets."
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: includes/class-testimonials-widget-settings.php:
|
700 |
msgid "Backwards compatibility, import/export options, and reset options."
|
701 |
msgstr ""
|
702 |
|
@@ -726,15 +726,15 @@ msgstr ""
|
|
726 |
|
727 |
#: includes/class-testimonials-widget-tag-cloud-widget.php:63
|
728 |
#: includes/class-testimonials-widget-tag-cloud-widget.php:70
|
729 |
-
#: includes/class-testimonials-widget.php:
|
730 |
-
#: includes/class-testimonials-widget.php:
|
731 |
msgid "Category"
|
732 |
msgstr ""
|
733 |
|
734 |
#: includes/class-testimonials-widget-tag-cloud-widget.php:64
|
735 |
#: includes/class-testimonials-widget-tag-cloud-widget.php:71
|
736 |
-
#: includes/class-testimonials-widget.php:
|
737 |
-
#: includes/class-testimonials-widget.php:
|
738 |
msgid "Tags"
|
739 |
msgstr ""
|
740 |
|
@@ -742,151 +742,151 @@ msgstr ""
|
|
742 |
msgid "Taxonomy"
|
743 |
msgstr ""
|
744 |
|
745 |
-
#: includes/class-testimonials-widget.php:
|
746 |
msgid ""
|
747 |
"If your Testimonials display has gone to funky town, please <a href=\"%s"
|
748 |
"\">read the FAQ</a> about possible CSS fixes."
|
749 |
msgstr ""
|
750 |
|
751 |
-
#: includes/class-testimonials-widget.php:
|
752 |
msgid "Published by"
|
753 |
msgstr ""
|
754 |
|
755 |
-
#: includes/class-testimonials-widget.php:
|
756 |
msgid "ID"
|
757 |
msgstr ""
|
758 |
|
759 |
-
#: includes/class-testimonials-widget.php:
|
760 |
msgid "Image"
|
761 |
msgstr ""
|
762 |
|
763 |
-
#: includes/class-testimonials-widget.php:
|
764 |
msgid "Shortcodes"
|
765 |
msgstr ""
|
766 |
|
767 |
-
#: includes/class-testimonials-widget.php:
|
768 |
msgid "Add New"
|
769 |
msgstr ""
|
770 |
|
771 |
-
#: includes/class-testimonials-widget.php:
|
772 |
-
#: includes/class-testimonials-widget.php:
|
773 |
msgid "Add New Testimonial"
|
774 |
msgstr ""
|
775 |
|
776 |
-
#: includes/class-testimonials-widget.php:
|
777 |
msgid "Edit Testimonial"
|
778 |
msgstr ""
|
779 |
|
780 |
-
#: includes/class-testimonials-widget.php:
|
781 |
-
#: includes/class-testimonials-widget.php:
|
782 |
msgid "No testimonials found"
|
783 |
msgstr ""
|
784 |
|
785 |
-
#: includes/class-testimonials-widget.php:
|
786 |
msgid "No testimonials found in Trash"
|
787 |
msgstr ""
|
788 |
|
789 |
-
#: includes/class-testimonials-widget.php:
|
790 |
msgid "Search Testimonials"
|
791 |
msgstr ""
|
792 |
|
793 |
-
#: includes/class-testimonials-widget.php:
|
794 |
-
#: includes/class-testimonials-widget.php:
|
795 |
-
#: includes/class-testimonials-widget.php:
|
796 |
msgid "Testimonial"
|
797 |
msgstr ""
|
798 |
|
799 |
-
#: includes/class-testimonials-widget.php:
|
800 |
msgid "View Testimonial"
|
801 |
msgstr ""
|
802 |
|
803 |
-
#: includes/class-testimonials-widget.php:
|
804 |
msgid "Use when the testimonial title is not the authors' name."
|
805 |
msgstr ""
|
806 |
|
807 |
-
#: includes/class-testimonials-widget.php:
|
808 |
msgid ""
|
809 |
"If an email is provided, but not an image, a Gravatar icon will be attempted "
|
810 |
"to be loaded."
|
811 |
msgstr ""
|
812 |
|
813 |
-
#: includes/class-testimonials-widget.php:
|
814 |
msgid "Testimonial Data"
|
815 |
msgstr ""
|
816 |
|
817 |
-
#: includes/class-testimonials-widget.php:
|
818 |
msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
|
819 |
msgstr ""
|
820 |
|
821 |
-
#: includes/class-testimonials-widget.php:
|
822 |
msgid "Custom field updated."
|
823 |
msgstr ""
|
824 |
|
825 |
-
#: includes/class-testimonials-widget.php:
|
826 |
msgid "Custom field deleted."
|
827 |
msgstr ""
|
828 |
|
829 |
-
#: includes/class-testimonials-widget.php:
|
830 |
msgid "Testimonial updated."
|
831 |
msgstr ""
|
832 |
|
833 |
#. translators: %s: date and time of the revision
|
834 |
-
#: includes/class-testimonials-widget.php:
|
835 |
msgid "Testimonial restored to revision from %s"
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: includes/class-testimonials-widget.php:
|
839 |
msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
|
840 |
msgstr ""
|
841 |
|
842 |
-
#: includes/class-testimonials-widget.php:
|
843 |
msgid "Testimonial saved."
|
844 |
msgstr ""
|
845 |
|
846 |
-
#: includes/class-testimonials-widget.php:
|
847 |
msgid ""
|
848 |
"Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</"
|
849 |
"a>"
|
850 |
msgstr ""
|
851 |
|
852 |
-
#: includes/class-testimonials-widget.php:
|
853 |
msgid ""
|
854 |
"Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href="
|
855 |
"\"%2$s\">Preview testimonial</a>"
|
856 |
msgstr ""
|
857 |
|
858 |
-
#: includes/class-testimonials-widget.php:
|
859 |
msgid ""
|
860 |
"Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview "
|
861 |
"testimonial</a>"
|
862 |
msgstr ""
|
863 |
|
864 |
-
#: includes/class-testimonials-widget.php:
|
865 |
msgid ""
|
866 |
"If your Testimonials display has gone to funky town, please <a href=\"%s"
|
867 |
"\">read the FAQ</a> about possible fixes."
|
868 |
msgstr ""
|
869 |
|
870 |
-
#: includes/class-testimonials-widget.php:
|
871 |
msgid "Failed version check"
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: includes/class-testimonials-widget.php:
|
875 |
msgid "Shortcode"
|
876 |
msgstr ""
|
877 |
|
878 |
-
#: includes/class-testimonials-widget.php:
|
879 |
-
#: includes/class-testimonials-widget.php:
|
880 |
msgid "Used with: "
|
881 |
msgstr ""
|
882 |
|
883 |
-
#: includes/class-testimonials-widget.php:
|
884 |
-
#: includes/class-testimonials-widget.php:
|
885 |
msgid "Options: "
|
886 |
msgstr ""
|
887 |
|
888 |
-
#: includes/class-testimonials-widget.php:
|
889 |
-
#: includes/class-testimonials-widget.php:
|
890 |
msgid "Usage: "
|
891 |
msgstr ""
|
892 |
|
2 |
# This file is distributed under the same license as the Testimonials Widget package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Testimonials Widget 3.3.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/testimonials-"
|
7 |
"widget\n"
|
8 |
+
"POT-Creation-Date: 2016-07-06 11:02:37+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
64 |
msgstr ""
|
65 |
|
66 |
#: includes/class-testimonials-widget-settings.php:97
|
67 |
+
#: includes/class-testimonials-widget.php:143
|
68 |
msgid "Settings"
|
69 |
msgstr ""
|
70 |
|
71 |
#: includes/class-testimonials-widget-settings.php:113
|
72 |
+
#: includes/class-testimonials-widget-settings.php:953
|
73 |
msgid "General"
|
74 |
msgstr ""
|
75 |
|
76 |
#: includes/class-testimonials-widget-settings.php:114
|
77 |
+
#: includes/class-testimonials-widget-settings.php:961
|
78 |
msgid "Fields"
|
79 |
msgstr ""
|
80 |
|
81 |
#: includes/class-testimonials-widget-settings.php:115
|
82 |
+
#: includes/class-testimonials-widget-settings.php:969
|
83 |
msgid "Selection"
|
84 |
msgstr ""
|
85 |
|
86 |
#: includes/class-testimonials-widget-settings.php:116
|
87 |
+
#: includes/class-testimonials-widget-settings.php:977
|
88 |
msgid "Ordering"
|
89 |
msgstr ""
|
90 |
|
91 |
#: includes/class-testimonials-widget-settings.php:117
|
92 |
+
#: includes/class-testimonials-widget-settings.php:985
|
93 |
msgid "Columns"
|
94 |
msgstr ""
|
95 |
|
96 |
#: includes/class-testimonials-widget-settings.php:118
|
97 |
+
#: includes/class-testimonials-widget-settings.php:993
|
98 |
msgid "Post Type"
|
99 |
msgstr ""
|
100 |
|
101 |
#: includes/class-testimonials-widget-settings.php:119
|
102 |
+
#: includes/class-testimonials-widget-settings.php:1001
|
103 |
msgid "Slider Widget"
|
104 |
msgstr ""
|
105 |
|
117 |
msgstr ""
|
118 |
|
119 |
#: includes/class-testimonials-widget-settings.php:140
|
120 |
+
#: includes/class-testimonials-widget.php:624
|
121 |
+
#: includes/class-testimonials-widget.php:672
|
122 |
msgid "Testimonials"
|
123 |
msgstr ""
|
124 |
|
287 |
msgid "Enable Review Schema?"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: includes/class-testimonials-widget-settings.php:286
|
291 |
msgid "Enable [shortcodes]?"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: includes/class-testimonials-widget-settings.php:287
|
295 |
msgid "If unchecked, shortcodes are stripped."
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: includes/class-testimonials-widget-settings.php:294
|
299 |
msgid "Enable Video?"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: includes/class-testimonials-widget-settings.php:295
|
303 |
msgid "Only enable when displaying video content."
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: includes/class-testimonials-widget-settings.php:301
|
307 |
msgid "Exclude bxSlider CSS?"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: includes/class-testimonials-widget-settings.php:302
|
311 |
msgid "For a bare-bones, unthemed slider."
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: includes/class-testimonials-widget-settings.php:310
|
315 |
msgid "Exclude default CSS?"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: includes/class-testimonials-widget-settings.php:311
|
319 |
msgid "Prevent default CSS from being loaded."
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: includes/class-testimonials-widget-settings.php:319
|
323 |
msgid "Remove `.hentry` CSS?"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: includes/class-testimonials-widget-settings.php:320
|
327 |
msgid ""
|
328 |
"Some themes use class `.hentry` in a manner that breaks Testimonials' CSS."
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: includes/class-testimonials-widget-settings.php:327
|
332 |
msgid "URL Target"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: includes/class-testimonials-widget-settings.php:328
|
336 |
msgid "Add target to all URLs; leave blank if none."
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: includes/class-testimonials-widget-settings.php:333
|
340 |
msgid "Use `<q>` tag?"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: includes/class-testimonials-widget-settings.php:334
|
344 |
msgid "Not HTML5 compliant."
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: includes/class-testimonials-widget-settings.php:346
|
348 |
msgid "Field Options"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: includes/class-testimonials-widget-settings.php:352
|
352 |
msgid "Hide Title Above Content?"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: includes/class-testimonials-widget-settings.php:356
|
356 |
msgid "Don't display testimonial title above testimonial content."
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: includes/class-testimonials-widget-settings.php:361
|
360 |
+
#: includes/class-testimonials-widget-settings.php:627
|
361 |
msgid "Hide Author?"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: includes/class-testimonials-widget-settings.php:364
|
365 |
msgid "Don't display testimonial title in cite."
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: includes/class-testimonials-widget-settings.php:369
|
369 |
+
#: includes/class-testimonials-widget-settings.php:637
|
370 |
msgid "Hide Company?"
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: includes/class-testimonials-widget-settings.php:372
|
374 |
msgid "Don't display testimonial company in cite."
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: includes/class-testimonials-widget-settings.php:377
|
378 |
msgid "Hide Content?"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: includes/class-testimonials-widget-settings.php:380
|
382 |
msgid "Don't display testimonial content in a view."
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: includes/class-testimonials-widget-settings.php:385
|
386 |
+
#: includes/class-testimonials-widget-settings.php:647
|
387 |
msgid "Hide Email?"
|
388 |
msgstr ""
|
389 |
|
390 |
+
#: includes/class-testimonials-widget-settings.php:389
|
391 |
msgid "Don't display or link to testimonial email in cite."
|
392 |
msgstr ""
|
393 |
|
394 |
+
#: includes/class-testimonials-widget-settings.php:394
|
395 |
msgid "Hide Gravatar?"
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: includes/class-testimonials-widget-settings.php:397
|
399 |
msgid "Don't display Gravatar image with testimonial."
|
400 |
msgstr ""
|
401 |
|
402 |
+
#: includes/class-testimonials-widget-settings.php:402
|
403 |
+
#: includes/class-testimonials-widget-settings.php:667
|
404 |
msgid "Hide Image?"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: includes/class-testimonials-widget-settings.php:405
|
408 |
msgid "Don't display featured image with testimonial."
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: includes/class-testimonials-widget-settings.php:410
|
412 |
msgid "Hide Image in Single View?"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: includes/class-testimonials-widget-settings.php:418
|
416 |
+
#: includes/class-testimonials-widget-settings.php:676
|
417 |
msgid "Hide Job Title?"
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: includes/class-testimonials-widget-settings.php:421
|
421 |
msgid "Don't display testimonial job title in cite."
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: includes/class-testimonials-widget-settings.php:426
|
425 |
+
#: includes/class-testimonials-widget-settings.php:686
|
426 |
msgid "Hide Location?"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: includes/class-testimonials-widget-settings.php:429
|
430 |
msgid "Don't display testimonial location in cite."
|
431 |
msgstr ""
|
432 |
|
433 |
+
#: includes/class-testimonials-widget-settings.php:434
|
434 |
+
#: includes/class-testimonials-widget-settings.php:705
|
435 |
msgid "Hide URL?"
|
436 |
msgstr ""
|
437 |
|
438 |
+
#: includes/class-testimonials-widget-settings.php:437
|
439 |
msgid "Don't display or link to testimonial URL in cite."
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: includes/class-testimonials-widget-settings.php:447
|
443 |
msgid "Selection Options"
|
444 |
msgstr ""
|
445 |
|
446 |
+
#: includes/class-testimonials-widget-settings.php:453
|
447 |
msgid "Category Filter"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: includes/class-testimonials-widget-settings.php:454
|
451 |
msgid "Comma separated category names or IDs."
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: includes/class-testimonials-widget-settings.php:461
|
455 |
msgid "Exclude IDs Filter"
|
456 |
msgstr ""
|
457 |
|
458 |
+
#: includes/class-testimonials-widget-settings.php:462
|
459 |
+
#: includes/class-testimonials-widget-settings.php:469
|
460 |
msgid "Comma separated testimonial IDs."
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: includes/class-testimonials-widget-settings.php:468
|
464 |
msgid "Include IDs Filter"
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: includes/class-testimonials-widget-settings.php:475
|
468 |
msgid "Limit"
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: includes/class-testimonials-widget-settings.php:476
|
472 |
msgid "Number of testimonials to select per instance."
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: includes/class-testimonials-widget-settings.php:483
|
476 |
msgid "Require All Tags?"
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: includes/class-testimonials-widget-settings.php:484
|
480 |
msgid "Select only testimonials with all of the given tags."
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: includes/class-testimonials-widget-settings.php:491
|
484 |
msgid "Tags Filter"
|
485 |
msgstr ""
|
486 |
|
487 |
+
#: includes/class-testimonials-widget-settings.php:492
|
488 |
msgid "Comma separated tag slugs or IDs."
|
489 |
msgstr ""
|
490 |
|
491 |
+
#: includes/class-testimonials-widget-settings.php:505
|
492 |
msgid "Ordering Options"
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: includes/class-testimonials-widget-settings.php:511
|
496 |
msgid "ORDER BY"
|
497 |
msgstr ""
|
498 |
|
499 |
+
#: includes/class-testimonials-widget-settings.php:512
|
500 |
msgid "Used when \"Random Order\" is disabled."
|
501 |
msgstr ""
|
502 |
|
503 |
+
#: includes/class-testimonials-widget-settings.php:515
|
504 |
msgid "Testimonial ID"
|
505 |
msgstr ""
|
506 |
|
507 |
+
#: includes/class-testimonials-widget-settings.php:516
|
508 |
+
#: includes/class-testimonials-widget-settings.php:519
|
509 |
+
#: includes/class-testimonials-widget.php:554
|
510 |
+
#: includes/class-testimonials-widget.php:585
|
511 |
+
#: includes/class-testimonials-widget.php:1436
|
512 |
msgid "Author"
|
513 |
msgstr ""
|
514 |
|
515 |
+
#: includes/class-testimonials-widget-settings.php:517
|
516 |
+
#: includes/class-testimonials-widget.php:556
|
517 |
msgid "Date"
|
518 |
msgstr ""
|
519 |
|
520 |
+
#: includes/class-testimonials-widget-settings.php:518
|
521 |
msgid "Menu Order"
|
522 |
msgstr ""
|
523 |
|
524 |
+
#: includes/class-testimonials-widget-settings.php:520
|
525 |
msgid "No order"
|
526 |
msgstr ""
|
527 |
|
528 |
+
#: includes/class-testimonials-widget-settings.php:528
|
529 |
msgid "ORDER BY meta_key"
|
530 |
msgstr ""
|
531 |
|
532 |
+
#: includes/class-testimonials-widget-settings.php:529
|
533 |
msgid ""
|
534 |
"Used when \"Random Order\" is disabled and sorting by a testimonials meta "
|
535 |
"key is needed. Overrides ORDER BY."
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: includes/class-testimonials-widget-settings.php:532
|
539 |
msgid "None"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: includes/class-testimonials-widget-settings.php:533
|
543 |
+
#: includes/class-testimonials-widget.php:590
|
544 |
+
#: includes/class-testimonials-widget.php:1442
|
545 |
msgid "Job Title"
|
546 |
msgstr ""
|
547 |
|
548 |
+
#: includes/class-testimonials-widget-settings.php:534
|
549 |
+
#: includes/class-testimonials-widget.php:605
|
550 |
+
#: includes/class-testimonials-widget.php:1460
|
551 |
msgid "Email"
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: includes/class-testimonials-widget-settings.php:535
|
555 |
+
#: includes/class-testimonials-widget.php:595
|
556 |
+
#: includes/class-testimonials-widget.php:1448
|
557 |
msgid "Location"
|
558 |
msgstr ""
|
559 |
|
560 |
+
#: includes/class-testimonials-widget-settings.php:536
|
561 |
+
#: includes/class-testimonials-widget.php:600
|
562 |
+
#: includes/class-testimonials-widget.php:1454
|
563 |
msgid "Company"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: includes/class-testimonials-widget-settings.php:537
|
567 |
+
#: includes/class-testimonials-widget.php:610
|
568 |
+
#: includes/class-testimonials-widget.php:1466
|
569 |
msgid "URL"
|
570 |
msgstr ""
|
571 |
|
572 |
+
#: includes/class-testimonials-widget-settings.php:544
|
573 |
msgid "ORDER BY Order"
|
574 |
msgstr ""
|
575 |
|
576 |
+
#: includes/class-testimonials-widget-settings.php:547
|
577 |
msgid "Descending"
|
578 |
msgstr ""
|
579 |
|
580 |
+
#: includes/class-testimonials-widget-settings.php:548
|
581 |
msgid "Ascending"
|
582 |
msgstr ""
|
583 |
|
584 |
+
#: includes/class-testimonials-widget-settings.php:556
|
585 |
msgid "Random Order?"
|
586 |
msgstr ""
|
587 |
|
588 |
+
#: includes/class-testimonials-widget-settings.php:557
|
589 |
msgid ""
|
590 |
"If checked, ignores ORDER BY, ORDER BY meta_key, and ORDER BY Order. Widgets "
|
591 |
"are random by default automatically."
|
592 |
msgstr ""
|
593 |
|
594 |
+
#: includes/class-testimonials-widget-settings.php:570
|
595 |
msgid "Allow Comments?"
|
596 |
msgstr ""
|
597 |
|
598 |
+
#: includes/class-testimonials-widget-settings.php:571
|
599 |
msgid ""
|
600 |
"Only affects the Testimonials post edit page. Your theme controls the front-"
|
601 |
"end view."
|
602 |
msgstr ""
|
603 |
|
604 |
+
#: includes/class-testimonials-widget-settings.php:578
|
605 |
msgid "URL slug-name for <a href=\"%1s\">testimonials archive</a> page."
|
606 |
msgstr ""
|
607 |
|
608 |
+
#: includes/class-testimonials-widget-settings.php:584
|
609 |
msgid "Archive Page URL"
|
610 |
msgstr ""
|
611 |
|
612 |
+
#: includes/class-testimonials-widget-settings.php:594
|
613 |
msgid "Disable Default Taxonomies?"
|
614 |
msgstr ""
|
615 |
|
616 |
+
#: includes/class-testimonials-widget-settings.php:597
|
617 |
msgid ""
|
618 |
"If checked, use Testimonials' own category and tag taxonomies than "
|
619 |
"WordPress' defaults."
|
620 |
msgstr ""
|
621 |
|
622 |
+
#: includes/class-testimonials-widget-settings.php:603
|
623 |
msgid "Include testimonials in archive and category views."
|
624 |
msgstr ""
|
625 |
|
626 |
+
#: includes/class-testimonials-widget-settings.php:606
|
627 |
msgid "Enable archives view?"
|
628 |
msgstr ""
|
629 |
|
630 |
+
#: includes/class-testimonials-widget-settings.php:612
|
631 |
msgid ""
|
632 |
"URL slug-name for testimonial view pages. Shouldn't be the same as the "
|
633 |
"Archive Page URL nor should it match a page URL slug."
|
634 |
msgstr ""
|
635 |
|
636 |
+
#: includes/class-testimonials-widget-settings.php:616
|
637 |
msgid "Testimonial Page URL"
|
638 |
msgstr ""
|
639 |
|
640 |
+
#: includes/class-testimonials-widget-settings.php:657
|
641 |
msgid "Hide ID?"
|
642 |
msgstr ""
|
643 |
|
644 |
+
#: includes/class-testimonials-widget-settings.php:696
|
645 |
msgid "Hide Shortcode?"
|
646 |
msgstr ""
|
647 |
|
648 |
+
#: includes/class-testimonials-widget-settings.php:716
|
649 |
+
#: includes/class-testimonials-widget-settings.php:1009
|
650 |
#: includes/libraries/aihrus-framework/includes/class-aihrus-settings.php:65
|
651 |
msgid "Reset"
|
652 |
msgstr ""
|
653 |
|
654 |
+
#: includes/class-testimonials-widget-settings.php:939
|
655 |
msgid ""
|
656 |
"These Testimonials Settings establish the default option values for "
|
657 |
"shortcodes, theme functions, and widget instances. Widgets, once created no "
|
660 |
"then recreate it."
|
661 |
msgstr ""
|
662 |
|
663 |
+
#: includes/class-testimonials-widget-settings.php:941
|
664 |
msgid "Shortcode option names are listed below each entry."
|
665 |
msgstr ""
|
666 |
|
667 |
+
#: includes/class-testimonials-widget-settings.php:944
|
668 |
msgid "View the <a href=\"%s\">Testimonials documentation</a>."
|
669 |
msgstr ""
|
670 |
|
671 |
+
#: includes/class-testimonials-widget-settings.php:954
|
672 |
msgid "General options."
|
673 |
msgstr ""
|
674 |
|
675 |
+
#: includes/class-testimonials-widget-settings.php:962
|
676 |
msgid "Show or hide fields."
|
677 |
msgstr ""
|
678 |
|
679 |
+
#: includes/class-testimonials-widget-settings.php:970
|
680 |
msgid "Options used to select testimonials."
|
681 |
msgstr ""
|
682 |
|
683 |
+
#: includes/class-testimonials-widget-settings.php:978
|
684 |
msgid "Options used to determine displayed testimonials ordering."
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: includes/class-testimonials-widget-settings.php:986
|
688 |
msgid "Allowed columns to display on edit page."
|
689 |
msgstr ""
|
690 |
|
691 |
+
#: includes/class-testimonials-widget-settings.php:994
|
692 |
msgid "Archive and singular page URL related testimonials options."
|
693 |
msgstr ""
|
694 |
|
695 |
+
#: includes/class-testimonials-widget-settings.php:1002
|
696 |
msgid "Options related to showing testimonials in widgets."
|
697 |
msgstr ""
|
698 |
|
699 |
+
#: includes/class-testimonials-widget-settings.php:1010
|
700 |
msgid "Backwards compatibility, import/export options, and reset options."
|
701 |
msgstr ""
|
702 |
|
726 |
|
727 |
#: includes/class-testimonials-widget-tag-cloud-widget.php:63
|
728 |
#: includes/class-testimonials-widget-tag-cloud-widget.php:70
|
729 |
+
#: includes/class-testimonials-widget.php:561
|
730 |
+
#: includes/class-testimonials-widget.php:564
|
731 |
msgid "Category"
|
732 |
msgstr ""
|
733 |
|
734 |
#: includes/class-testimonials-widget-tag-cloud-widget.php:64
|
735 |
#: includes/class-testimonials-widget-tag-cloud-widget.php:71
|
736 |
+
#: includes/class-testimonials-widget.php:562
|
737 |
+
#: includes/class-testimonials-widget.php:565
|
738 |
msgid "Tags"
|
739 |
msgstr ""
|
740 |
|
742 |
msgid "Taxonomy"
|
743 |
msgstr ""
|
744 |
|
745 |
+
#: includes/class-testimonials-widget.php:377
|
746 |
msgid ""
|
747 |
"If your Testimonials display has gone to funky town, please <a href=\"%s"
|
748 |
"\">read the FAQ</a> about possible CSS fixes."
|
749 |
msgstr ""
|
750 |
|
751 |
+
#: includes/class-testimonials-widget.php:555
|
752 |
msgid "Published by"
|
753 |
msgstr ""
|
754 |
|
755 |
+
#: includes/class-testimonials-widget.php:570
|
756 |
msgid "ID"
|
757 |
msgstr ""
|
758 |
|
759 |
+
#: includes/class-testimonials-widget.php:575
|
760 |
msgid "Image"
|
761 |
msgstr ""
|
762 |
|
763 |
+
#: includes/class-testimonials-widget.php:580
|
764 |
msgid "Shortcodes"
|
765 |
msgstr ""
|
766 |
|
767 |
+
#: includes/class-testimonials-widget.php:621
|
768 |
msgid "Add New"
|
769 |
msgstr ""
|
770 |
|
771 |
+
#: includes/class-testimonials-widget.php:622
|
772 |
+
#: includes/class-testimonials-widget.php:625
|
773 |
msgid "Add New Testimonial"
|
774 |
msgstr ""
|
775 |
|
776 |
+
#: includes/class-testimonials-widget.php:623
|
777 |
msgid "Edit Testimonial"
|
778 |
msgstr ""
|
779 |
|
780 |
+
#: includes/class-testimonials-widget.php:626
|
781 |
+
#: includes/class-testimonials-widget.php:942
|
782 |
msgid "No testimonials found"
|
783 |
msgstr ""
|
784 |
|
785 |
+
#: includes/class-testimonials-widget.php:627
|
786 |
msgid "No testimonials found in Trash"
|
787 |
msgstr ""
|
788 |
|
789 |
+
#: includes/class-testimonials-widget.php:629
|
790 |
msgid "Search Testimonials"
|
791 |
msgstr ""
|
792 |
|
793 |
+
#: includes/class-testimonials-widget.php:630
|
794 |
+
#: includes/class-testimonials-widget.php:1527
|
795 |
+
#: includes/class-testimonials-widget.php:1888
|
796 |
msgid "Testimonial"
|
797 |
msgstr ""
|
798 |
|
799 |
+
#: includes/class-testimonials-widget.php:631
|
800 |
msgid "View Testimonial"
|
801 |
msgstr ""
|
802 |
|
803 |
+
#: includes/class-testimonials-widget.php:1439
|
804 |
msgid "Use when the testimonial title is not the authors' name."
|
805 |
msgstr ""
|
806 |
|
807 |
+
#: includes/class-testimonials-widget.php:1463
|
808 |
msgid ""
|
809 |
"If an email is provided, but not an image, a Gravatar icon will be attempted "
|
810 |
"to be loaded."
|
811 |
msgstr ""
|
812 |
|
813 |
+
#: includes/class-testimonials-widget.php:1478
|
814 |
msgid "Testimonial Data"
|
815 |
msgstr ""
|
816 |
|
817 |
+
#: includes/class-testimonials-widget.php:1502
|
818 |
msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: includes/class-testimonials-widget.php:1503
|
822 |
msgid "Custom field updated."
|
823 |
msgstr ""
|
824 |
|
825 |
+
#: includes/class-testimonials-widget.php:1504
|
826 |
msgid "Custom field deleted."
|
827 |
msgstr ""
|
828 |
|
829 |
+
#: includes/class-testimonials-widget.php:1505
|
830 |
msgid "Testimonial updated."
|
831 |
msgstr ""
|
832 |
|
833 |
#. translators: %s: date and time of the revision
|
834 |
+
#: includes/class-testimonials-widget.php:1507
|
835 |
msgid "Testimonial restored to revision from %s"
|
836 |
msgstr ""
|
837 |
|
838 |
+
#: includes/class-testimonials-widget.php:1508
|
839 |
msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
|
840 |
msgstr ""
|
841 |
|
842 |
+
#: includes/class-testimonials-widget.php:1509
|
843 |
msgid "Testimonial saved."
|
844 |
msgstr ""
|
845 |
|
846 |
+
#: includes/class-testimonials-widget.php:1510
|
847 |
msgid ""
|
848 |
"Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</"
|
849 |
"a>"
|
850 |
msgstr ""
|
851 |
|
852 |
+
#: includes/class-testimonials-widget.php:1511
|
853 |
msgid ""
|
854 |
"Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href="
|
855 |
"\"%2$s\">Preview testimonial</a>"
|
856 |
msgstr ""
|
857 |
|
858 |
+
#: includes/class-testimonials-widget.php:1512
|
859 |
msgid ""
|
860 |
"Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview "
|
861 |
"testimonial</a>"
|
862 |
msgstr ""
|
863 |
|
864 |
+
#: includes/class-testimonials-widget.php:1783
|
865 |
msgid ""
|
866 |
"If your Testimonials display has gone to funky town, please <a href=\"%s"
|
867 |
"\">read the FAQ</a> about possible fixes."
|
868 |
msgstr ""
|
869 |
|
870 |
+
#: includes/class-testimonials-widget.php:1802
|
871 |
msgid "Failed version check"
|
872 |
msgstr ""
|
873 |
|
874 |
+
#: includes/class-testimonials-widget.php:1833
|
875 |
msgid "Shortcode"
|
876 |
msgstr ""
|
877 |
|
878 |
+
#: includes/class-testimonials-widget.php:2271
|
879 |
+
#: includes/class-testimonials-widget.php:2344
|
880 |
msgid "Used with: "
|
881 |
msgstr ""
|
882 |
|
883 |
+
#: includes/class-testimonials-widget.php:2308
|
884 |
+
#: includes/class-testimonials-widget.php:2372
|
885 |
msgid "Options: "
|
886 |
msgstr ""
|
887 |
|
888 |
+
#: includes/class-testimonials-widget.php:2313
|
889 |
+
#: includes/class-testimonials-widget.php:2377
|
890 |
msgid "Usage: "
|
891 |
msgstr ""
|
892 |
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Contributors: comprock,saurabhd,subharanjan
|
|
4 |
Donate link: https://axelerant.com/about-axelerant/donate/
|
5 |
Tags: axelerant, client, customer, portfolio, quote, quotes, random, recommendation, reference, review, reviews, slider, testimonial, testimonials, wpml
|
6 |
Requires at least: 3.9.2
|
7 |
-
Tested up to: 4.
|
8 |
-
Stable tag: 3.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
4 |
Donate link: https://axelerant.com/about-axelerant/donate/
|
5 |
Tags: axelerant, client, customer, portfolio, quote, quotes, random, recommendation, reference, review, reviews, slider, testimonial, testimonials, wpml
|
6 |
Requires at least: 3.9.2
|
7 |
+
Tested up to: 4.5.3
|
8 |
+
Stable tag: 3.3.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
testimonials-widget.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://wordpress.org/plugins/testimonials-widget/
|
5 |
* Description: Easily add social proofing to your website with Testimonials Widget. List or slide reviews via functions, shortcodes, or widgets.
|
6 |
* lets you socially randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site.
|
7 |
-
* Version: 3.3.
|
8 |
* Author: Axelerant
|
9 |
* Author URI: https://axelerant.com/
|
10 |
* License: GPLv2 or later
|
@@ -64,7 +64,7 @@ if ( ! defined( 'TW_PREMIUM_LINK' ) ) {
|
|
64 |
}
|
65 |
|
66 |
if ( ! defined( 'TW_VERSION' ) ) {
|
67 |
-
define( 'TW_VERSION', '3.3.
|
68 |
}
|
69 |
|
70 |
require_once TW_DIR_INC . 'requirements.php';
|
4 |
* Plugin URI: http://wordpress.org/plugins/testimonials-widget/
|
5 |
* Description: Easily add social proofing to your website with Testimonials Widget. List or slide reviews via functions, shortcodes, or widgets.
|
6 |
* lets you socially randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site.
|
7 |
+
* Version: 3.3.1
|
8 |
* Author: Axelerant
|
9 |
* Author URI: https://axelerant.com/
|
10 |
* License: GPLv2 or later
|
64 |
}
|
65 |
|
66 |
if ( ! defined( 'TW_VERSION' ) ) {
|
67 |
+
define( 'TW_VERSION', '3.3.1' );
|
68 |
}
|
69 |
|
70 |
require_once TW_DIR_INC . 'requirements.php';
|