Version Description
- Tweak: Change text domain from "content-views" to "content-views-query-and-display-post-page" and update pot file (prepare for language packs at http://translate.wordpress.org)
Download this release
Release Info
Developer | PT Guy |
Plugin | Content Views – Post Grid & List for WordPress |
Version | 1.6.8.3 |
Comparing to | |
See all releases |
Code changes from version 1.6.8.2 to 1.6.8.3
- README.txt +4 -1
- admin/content-views-admin.php +11 -11
- admin/includes/options.php +3 -3
- admin/includes/plugin.php +2 -2
- admin/views/view.php +41 -41
- content-views.php +3 -3
- includes/defines.php +1 -0
- includes/functions.php +6 -6
- includes/hooks.php +10 -10
- includes/html.php +13 -13
- includes/settings.php +35 -35
- includes/values.php +50 -50
- languages/{content-views.po → content-views-query-and-display-post-page.po} +118 -119
- languages/readme.txt +15 -0
- public/content-views.php +40 -20
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: post, posts, page, pages, query, queries, search, display, show, grid, column, layout, author, blog, categories, category, comment, content, custom, editor, filter, Formatting, image, list, meta, plugin, responsive, shortcode, excerpt, title, tag, term, Taxonomy, thumbnail, pagination, date, scrollable, slider, collapsible
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 1.6.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -174,6 +174,9 @@ function my_move_bootstrap( $args ) {
|
|
174 |
|
175 |
== Changelog ==
|
176 |
|
|
|
|
|
|
|
177 |
= 1.6.8.2 =
|
178 |
* Bug fixed: Trimming excerpt of non-latin languages cause broken characters
|
179 |
|
4 |
Tags: post, posts, page, pages, query, queries, search, display, show, grid, column, layout, author, blog, categories, category, comment, content, custom, editor, filter, Formatting, image, list, meta, plugin, responsive, shortcode, excerpt, title, tag, term, Taxonomy, thumbnail, pagination, date, scrollable, slider, collapsible
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.3.1
|
7 |
+
Stable tag: 1.6.8.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
174 |
|
175 |
== Changelog ==
|
176 |
|
177 |
+
= 1.6.8.3 =
|
178 |
+
* Tweak: Change text domain from "content-views" to "content-views-query-and-display-post-page" and update pot file (prepare for language packs at http://translate.wordpress.org)
|
179 |
+
|
180 |
= 1.6.8.2 =
|
181 |
* Bug fixed: Trimming excerpt of non-latin languages cause broken characters
|
182 |
|
admin/content-views-admin.php
CHANGED
@@ -249,15 +249,15 @@ class PT_Content_Views_Admin {
|
|
249 |
'admin', PT_CV_PREFIX_UPPER . 'ADMIN', array(
|
250 |
'supported_version' => PT_CV_Functions::wp_version_compare( '3.5' ),
|
251 |
'text' => array(
|
252 |
-
'no_taxonomy' => __( 'There is no taxonomy for selected content type',
|
253 |
-
'pagination_disable' => __( 'Pagination is disabled when Limit = -1',
|
254 |
-
'prevent_click' => __( 'Opening a link is prevented in preview box',
|
255 |
),
|
256 |
'btn' => array(
|
257 |
'preview' => array(
|
258 |
-
'show' => __( 'Show Preview',
|
259 |
-
'hide' => __( 'Hide Preview',
|
260 |
-
'update' => __( 'Update Preview',
|
261 |
),
|
262 |
),
|
263 |
'data' => array(
|
@@ -300,15 +300,15 @@ class PT_Content_Views_Admin {
|
|
300 |
$user_role = current_user_can( 'administrator' ) ? 'administrator' : PT_CV_Functions::get_option_value( 'access_role', 'edit_posts' );
|
301 |
|
302 |
$this->plugin_screen_hook_suffix = add_menu_page(
|
303 |
-
__( 'Content View Settings',
|
304 |
);
|
305 |
|
306 |
$this->plugin_sub_screen_hook_suffix[] = PT_CV_Functions::menu_add_sub(
|
307 |
-
$this->plugin_slug, __( 'All Content Views',
|
308 |
);
|
309 |
|
310 |
$this->plugin_sub_screen_hook_suffix[] = PT_CV_Functions::menu_add_sub(
|
311 |
-
$this->plugin_slug, __( 'Add New View',
|
312 |
);
|
313 |
}
|
314 |
|
@@ -359,8 +359,8 @@ class PT_Content_Views_Admin {
|
|
359 |
|
360 |
return array_merge(
|
361 |
array(
|
362 |
-
'settings' => '<a href="' . admin_url( 'admin.php?page=' . $this->plugin_slug ) . '">' . __( 'Settings',
|
363 |
-
'add' => '<a href="' . admin_url( 'admin.php?page=' . $this->plugin_slug . '-add' ) . '">' . __( 'Add View',
|
364 |
), $links
|
365 |
);
|
366 |
}
|
249 |
'admin', PT_CV_PREFIX_UPPER . 'ADMIN', array(
|
250 |
'supported_version' => PT_CV_Functions::wp_version_compare( '3.5' ),
|
251 |
'text' => array(
|
252 |
+
'no_taxonomy' => __( 'There is no taxonomy for selected content type', PT_CV_TEXTDOMAIN ),
|
253 |
+
'pagination_disable' => __( 'Pagination is disabled when Limit = -1', PT_CV_TEXTDOMAIN ),
|
254 |
+
'prevent_click' => __( 'Opening a link is prevented in preview box', PT_CV_TEXTDOMAIN ),
|
255 |
),
|
256 |
'btn' => array(
|
257 |
'preview' => array(
|
258 |
+
'show' => __( 'Show Preview', PT_CV_TEXTDOMAIN ),
|
259 |
+
'hide' => __( 'Hide Preview', PT_CV_TEXTDOMAIN ),
|
260 |
+
'update' => __( 'Update Preview', PT_CV_TEXTDOMAIN ),
|
261 |
),
|
262 |
),
|
263 |
'data' => array(
|
300 |
$user_role = current_user_can( 'administrator' ) ? 'administrator' : PT_CV_Functions::get_option_value( 'access_role', 'edit_posts' );
|
301 |
|
302 |
$this->plugin_screen_hook_suffix = add_menu_page(
|
303 |
+
__( 'Content View Settings', PT_CV_TEXTDOMAIN ), __( 'Content View Settings', PT_CV_TEXTDOMAIN ), $user_role, $this->plugin_slug, array( $this, 'display_plugin_admin_page' ), '', '45.6'
|
304 |
);
|
305 |
|
306 |
$this->plugin_sub_screen_hook_suffix[] = PT_CV_Functions::menu_add_sub(
|
307 |
+
$this->plugin_slug, __( 'All Content Views', PT_CV_TEXTDOMAIN ), __( 'All Views', PT_CV_TEXTDOMAIN ), $user_role, 'list', __CLASS__
|
308 |
);
|
309 |
|
310 |
$this->plugin_sub_screen_hook_suffix[] = PT_CV_Functions::menu_add_sub(
|
311 |
+
$this->plugin_slug, __( 'Add New View', PT_CV_TEXTDOMAIN ), __( 'Add New', PT_CV_TEXTDOMAIN ), $user_role, 'add', __CLASS__
|
312 |
);
|
313 |
}
|
314 |
|
359 |
|
360 |
return array_merge(
|
361 |
array(
|
362 |
+
'settings' => '<a href="' . admin_url( 'admin.php?page=' . $this->plugin_slug ) . '">' . __( 'Settings', PT_CV_TEXTDOMAIN ) . '</a>',
|
363 |
+
'add' => '<a href="' . admin_url( 'admin.php?page=' . $this->plugin_slug . '-add' ) . '">' . __( 'Add View', PT_CV_TEXTDOMAIN ) . '</a>',
|
364 |
), $links
|
365 |
);
|
366 |
}
|
admin/includes/options.php
CHANGED
@@ -123,7 +123,7 @@ if ( !class_exists( 'PT_Options_Framework' ) ) {
|
|
123 |
$for = isset( $label[ 'for' ] ) ? "for='{$label[ 'for' ]}'" : '';
|
124 |
$width = 12 - ( isset( $extra_setting[ 'params' ][ 'width' ] ) ? intval( $extra_setting[ 'params' ][ 'width' ] ) : 10 );
|
125 |
if ( $width ) {
|
126 |
-
$html = "<label $for class='col-md-$width control-label'>" . __( $label[ 'text' ],
|
127 |
} else {
|
128 |
$html = '';
|
129 |
}
|
@@ -273,7 +273,7 @@ if ( !class_exists( 'PT_Options_Framework' ) ) {
|
|
273 |
$options .= "<option value='$key' $selected $option_class>$text</option>";
|
274 |
}
|
275 |
if ( empty( $options ) ) {
|
276 |
-
$html .= "<div class='" . PT_CV_PREFIX . "text'>" . __( 'There is no option',
|
277 |
} else {
|
278 |
$multiple = '';
|
279 |
if ( ( isset( $param[ 'multiple' ] ) && $param[ 'multiple' ] == '1' ) || $value == 'all' ) {
|
@@ -345,7 +345,7 @@ if ( !class_exists( 'PT_Options_Framework' ) ) {
|
|
345 |
if ( !isset( $settings[ 'no_panel' ] ) ) {
|
346 |
// Heading text
|
347 |
$heading = ( isset( $settings[ 'nice_name' ] ) && isset( $settings[ 'nice_name' ][ $key ] ) ) ? $settings[ 'nice_name' ][ $key ] : PT_CV_Functions::string_slug_to_text( $key );
|
348 |
-
$heading = __( $heading,
|
349 |
$html = PT_CV_Html::html_collapse_one( $parent_id, $id . '-child', $heading, $content, true );
|
350 |
} else {
|
351 |
$html = $content;
|
123 |
$for = isset( $label[ 'for' ] ) ? "for='{$label[ 'for' ]}'" : '';
|
124 |
$width = 12 - ( isset( $extra_setting[ 'params' ][ 'width' ] ) ? intval( $extra_setting[ 'params' ][ 'width' ] ) : 10 );
|
125 |
if ( $width ) {
|
126 |
+
$html = "<label $for class='col-md-$width control-label'>" . __( $label[ 'text' ], PT_CV_TEXTDOMAIN ) . '</label>';
|
127 |
} else {
|
128 |
$html = '';
|
129 |
}
|
273 |
$options .= "<option value='$key' $selected $option_class>$text</option>";
|
274 |
}
|
275 |
if ( empty( $options ) ) {
|
276 |
+
$html .= "<div class='" . PT_CV_PREFIX . "text'>" . __( 'There is no option', PT_CV_TEXTDOMAIN ) . '</div>';
|
277 |
} else {
|
278 |
$multiple = '';
|
279 |
if ( ( isset( $param[ 'multiple' ] ) && $param[ 'multiple' ] == '1' ) || $value == 'all' ) {
|
345 |
if ( !isset( $settings[ 'no_panel' ] ) ) {
|
346 |
// Heading text
|
347 |
$heading = ( isset( $settings[ 'nice_name' ] ) && isset( $settings[ 'nice_name' ][ $key ] ) ) ? $settings[ 'nice_name' ][ $key ] : PT_CV_Functions::string_slug_to_text( $key );
|
348 |
+
$heading = __( $heading, PT_CV_TEXTDOMAIN ) . ' ' . __( 'Settings', PT_CV_TEXTDOMAIN );
|
349 |
$html = PT_CV_Html::html_collapse_one( $parent_id, $id . '-child', $heading, $content, true );
|
350 |
} else {
|
351 |
$html = $content;
|
admin/includes/plugin.php
CHANGED
@@ -103,7 +103,7 @@ if ( !class_exists( 'PT_CV_Plugin' ) ) {
|
|
103 |
$frontend_assets_fields = array(
|
104 |
array(
|
105 |
'id' => 'unload_bootstrap',
|
106 |
-
'title' => '<strong>' . __( 'Frontend assets',
|
107 |
),
|
108 |
);
|
109 |
|
@@ -167,7 +167,7 @@ if ( !class_exists( 'PT_CV_Plugin' ) ) {
|
|
167 |
$field_name = 'unload_bootstrap';
|
168 |
|
169 |
self::_field_print(
|
170 |
-
$field_name, 'checkbox', __( "Don't load <b>Bootstrap 3</b> style & script (in frontend of website)",
|
171 |
);
|
172 |
}
|
173 |
|
103 |
$frontend_assets_fields = array(
|
104 |
array(
|
105 |
'id' => 'unload_bootstrap',
|
106 |
+
'title' => '<strong>' . __( 'Frontend assets', PT_CV_TEXTDOMAIN ) . '</strong>',
|
107 |
),
|
108 |
);
|
109 |
|
167 |
$field_name = 'unload_bootstrap';
|
168 |
|
169 |
self::_field_print(
|
170 |
+
$field_name, 'checkbox', __( "Don't load <b>Bootstrap 3</b> style & script (in frontend of website)", PT_CV_TEXTDOMAIN ), __( 'Only tick this option if Bootstrap has been loaded by active theme or other plugins', PT_CV_TEXTDOMAIN )
|
171 |
);
|
172 |
}
|
173 |
|
admin/views/view.php
CHANGED
@@ -36,7 +36,7 @@ PT_CV_Functions::view_submit();
|
|
36 |
<div class="wrap form-horizontal pt-wrap">
|
37 |
<?php do_action( PT_CV_PREFIX_ . 'admin_view_header' ); ?>
|
38 |
|
39 |
-
<h2><?php echo esc_html( $id ? __( 'Edit View',
|
40 |
|
41 |
<?php
|
42 |
if ( $id ) {
|
@@ -52,14 +52,14 @@ PT_CV_Functions::view_submit();
|
|
52 |
$options = array(
|
53 |
array(
|
54 |
'label' => array(
|
55 |
-
'text' => __( 'Preview',
|
56 |
),
|
57 |
'params' => array(
|
58 |
array(
|
59 |
'type' => 'html',
|
60 |
'name' => 'preview',
|
61 |
'content' => PT_CV_Html::html_preview_box(),
|
62 |
-
'desc' => __( 'Click "Show Preview" or "Update Preview" button to show, "Hide Preview" button to hide the output',
|
63 |
),
|
64 |
),
|
65 |
),
|
@@ -69,7 +69,7 @@ PT_CV_Functions::view_submit();
|
|
69 |
</div>
|
70 |
|
71 |
<!-- Show Preview -->
|
72 |
-
<a class="btn btn-success" id="<?php echo esc_attr( PT_CV_PREFIX ); ?>show-preview"><?php _e( 'Show Preview',
|
73 |
|
74 |
<br>
|
75 |
|
@@ -93,14 +93,14 @@ PT_CV_Functions::view_submit();
|
|
93 |
$options = array(
|
94 |
array(
|
95 |
'label' => array(
|
96 |
-
'text' => __( 'View title',
|
97 |
),
|
98 |
'params' => array(
|
99 |
array(
|
100 |
'type' => 'text',
|
101 |
'name' => 'view-title',
|
102 |
'std' => isset( $view_object->post_title ) ? $view_object->post_title : '',
|
103 |
-
'desc' => __( 'Enter a name to identify your views easily',
|
104 |
),
|
105 |
),
|
106 |
),
|
@@ -110,17 +110,17 @@ PT_CV_Functions::view_submit();
|
|
110 |
<br>
|
111 |
|
112 |
<!-- Save -->
|
113 |
-
<input type="submit" class="btn btn-primary pull-right <?php echo esc_attr( PT_CV_PREFIX ); ?>save-view" value="<?php _e( 'Save',
|
114 |
<?php do_action( PT_CV_PREFIX_ . 'admin_more_buttons' ); ?>
|
115 |
|
116 |
<!-- Nav tabs -->
|
117 |
<ul class="nav nav-tabs">
|
118 |
<li class="active">
|
119 |
-
<a href="#<?php echo esc_attr( PT_CV_PREFIX ); ?>filter-settings" data-toggle="tab"><span class="glyphicon glyphicon-search"></span><?php _e( 'Filter Settings',
|
120 |
</a>
|
121 |
</li>
|
122 |
<li>
|
123 |
-
<a href="#<?php echo esc_attr( PT_CV_PREFIX ); ?>display-settings" data-toggle="tab"><span class="glyphicon glyphicon-th-large"></span><?php _e( 'Display Settings',
|
124 |
</a>
|
125 |
</li>
|
126 |
<?php do_action( PT_CV_PREFIX_ . 'setting_tabs_header', $settings ); ?>
|
@@ -135,7 +135,7 @@ PT_CV_Functions::view_submit();
|
|
135 |
// Content type
|
136 |
array(
|
137 |
'label' => array(
|
138 |
-
'text' => __( 'Content type',
|
139 |
),
|
140 |
'params' => array(
|
141 |
array(
|
@@ -159,7 +159,7 @@ PT_CV_Functions::view_submit();
|
|
159 |
'params' => array(
|
160 |
array(
|
161 |
'type' => 'html',
|
162 |
-
'content' => sprintf( '<p class="text-muted">→ %s</p>', __( 'Filter custom content type (or post type) ?',
|
163 |
),
|
164 |
),
|
165 |
) : '',
|
@@ -167,7 +167,7 @@ PT_CV_Functions::view_submit();
|
|
167 |
// Common Filters
|
168 |
array(
|
169 |
'label' => array(
|
170 |
-
'text' => __( 'Common filters',
|
171 |
),
|
172 |
'extra_setting' => array(
|
173 |
'params' => array(
|
@@ -182,14 +182,14 @@ PT_CV_Functions::view_submit();
|
|
182 |
// Includes
|
183 |
array(
|
184 |
'label' => array(
|
185 |
-
'text' => __( 'In list',
|
186 |
),
|
187 |
'params' => array(
|
188 |
array(
|
189 |
'type' => 'text',
|
190 |
'name' => 'post__in',
|
191 |
'std' => '',
|
192 |
-
'desc' => __( 'List of post ids to retrieve (comma-separated values, e.g. 1,2,3).<br>A post is displayed only if its ID is equal to any of the values IN this list',
|
193 |
),
|
194 |
),
|
195 |
),
|
@@ -197,14 +197,14 @@ PT_CV_Functions::view_submit();
|
|
197 |
// Excludes
|
198 |
array(
|
199 |
'label' => array(
|
200 |
-
'text' => __( 'Excludes',
|
201 |
),
|
202 |
'params' => array(
|
203 |
array(
|
204 |
'type' => 'text',
|
205 |
'name' => 'post__not_in',
|
206 |
'std' => '',
|
207 |
-
'desc' => __( 'List of post ids to exclude (comma-separated values, e.g. 1,2,3)',
|
208 |
),
|
209 |
),
|
210 |
),
|
@@ -212,14 +212,14 @@ PT_CV_Functions::view_submit();
|
|
212 |
// Parent page
|
213 |
array(
|
214 |
'label' => array(
|
215 |
-
'text' => __( 'Parent page',
|
216 |
),
|
217 |
'params' => array(
|
218 |
array(
|
219 |
'type' => 'number',
|
220 |
'name' => 'post_parent',
|
221 |
'std' => '',
|
222 |
-
'desc' => __( 'Enter ID of parent page to query child pages',
|
223 |
),
|
224 |
),
|
225 |
'dependence' => array( 'content-type', 'page' ),
|
@@ -228,7 +228,7 @@ PT_CV_Functions::view_submit();
|
|
228 |
// Limit
|
229 |
array(
|
230 |
'label' => array(
|
231 |
-
'text' => __( 'Limit',
|
232 |
),
|
233 |
'params' => array(
|
234 |
array(
|
@@ -237,7 +237,7 @@ PT_CV_Functions::view_submit();
|
|
237 |
'std' => '10',
|
238 |
'min' => '1',
|
239 |
'append_text' => '1 → 999',
|
240 |
-
'desc' => __( 'The number of posts to show. Set empty to show all found posts (which match all filter settings)',
|
241 |
),
|
242 |
),
|
243 |
),
|
@@ -249,7 +249,7 @@ PT_CV_Functions::view_submit();
|
|
249 |
// Advanced Filters
|
250 |
array(
|
251 |
'label' => array(
|
252 |
-
'text' => __( 'Advanced filters',
|
253 |
),
|
254 |
'extra_setting' => array(
|
255 |
'params' => array(
|
@@ -304,7 +304,7 @@ PT_CV_Functions::view_submit();
|
|
304 |
// Taxonomies list
|
305 |
array(
|
306 |
'label' => array(
|
307 |
-
'text' => __( 'Taxonomies',
|
308 |
),
|
309 |
'extra_setting' => array(
|
310 |
'params' => array(
|
@@ -318,14 +318,14 @@ PT_CV_Functions::view_submit();
|
|
318 |
'options' => PT_CV_Values::taxonomy_list(),
|
319 |
'std' => '',
|
320 |
'class' => 'taxonomy-item',
|
321 |
-
'desc' => __( 'Tick checkbox of taxonomies to filter posts by their terms',
|
322 |
),
|
323 |
),
|
324 |
),
|
325 |
// Terms list
|
326 |
array(
|
327 |
'label' => array(
|
328 |
-
'text' => __( 'Terms',
|
329 |
),
|
330 |
'extra_setting' => array(
|
331 |
'params' => array(
|
@@ -346,7 +346,7 @@ PT_CV_Functions::view_submit();
|
|
346 |
// Relation of taxonomies
|
347 |
array(
|
348 |
'label' => array(
|
349 |
-
'text' => __( 'Relation',
|
350 |
),
|
351 |
'params' => array(
|
352 |
array(
|
@@ -355,7 +355,7 @@ PT_CV_Functions::view_submit();
|
|
355 |
'options' => PT_CV_Values::taxonomy_relation(),
|
356 |
'std' => PT_CV_Functions::array_get_first_key( PT_CV_Values::taxonomy_relation() ),
|
357 |
'class' => 'taxonomy-relation',
|
358 |
-
'desc' => __( 'Select AND to show posts which match ALL settings of selected taxonomies.<br>Select OR to show posts which match settings of at least one selected taxonomy',
|
359 |
),
|
360 |
),
|
361 |
),
|
@@ -365,7 +365,7 @@ PT_CV_Functions::view_submit();
|
|
365 |
'order' => array(
|
366 |
array(
|
367 |
'label' => array(
|
368 |
-
'text' => __( 'Order by',
|
369 |
),
|
370 |
'extra_setting' => array(
|
371 |
'params' => array(
|
@@ -387,7 +387,7 @@ PT_CV_Functions::view_submit();
|
|
387 |
'author' => apply_filters( PT_CV_PREFIX_ . 'author_settings', array(
|
388 |
array(
|
389 |
'label' => array(
|
390 |
-
'text' => __( 'Written by',
|
391 |
),
|
392 |
'params' => array(
|
393 |
array(
|
@@ -403,7 +403,7 @@ PT_CV_Functions::view_submit();
|
|
403 |
$version_gt_37 ?
|
404 |
array(
|
405 |
'label' => array(
|
406 |
-
'text' => __( 'Not written by',
|
407 |
),
|
408 |
'params' => array(
|
409 |
array(
|
@@ -421,7 +421,7 @@ PT_CV_Functions::view_submit();
|
|
421 |
'status' => array(
|
422 |
array(
|
423 |
'label' => array(
|
424 |
-
'text' => __( 'Status',
|
425 |
),
|
426 |
'params' => array(
|
427 |
array(
|
@@ -431,7 +431,7 @@ PT_CV_Functions::view_submit();
|
|
431 |
'std' => 'publish',
|
432 |
'class' => 'select2',
|
433 |
'multiple' => '1',
|
434 |
-
'desc' => __( 'Select status of posts',
|
435 |
),
|
436 |
),
|
437 |
),
|
@@ -440,14 +440,14 @@ PT_CV_Functions::view_submit();
|
|
440 |
'search' => array(
|
441 |
array(
|
442 |
'label' => array(
|
443 |
-
'text' => __( 'Keyword',
|
444 |
),
|
445 |
'params' => array(
|
446 |
array(
|
447 |
'type' => 'text',
|
448 |
'name' => 's',
|
449 |
'std' => '',
|
450 |
-
'desc' => __( 'Enter the keyword to searching for posts.',
|
451 |
),
|
452 |
),
|
453 |
),
|
@@ -470,7 +470,7 @@ PT_CV_Functions::view_submit();
|
|
470 |
// View Type
|
471 |
array(
|
472 |
'label' => array(
|
473 |
-
'text' => __( 'View type (Layout)',
|
474 |
),
|
475 |
'params' => array(
|
476 |
array(
|
@@ -484,7 +484,7 @@ PT_CV_Functions::view_submit();
|
|
484 |
// View settings
|
485 |
array(
|
486 |
'label' => array(
|
487 |
-
'text' => __( 'View type settings',
|
488 |
),
|
489 |
'params' => array(
|
490 |
array(
|
@@ -502,7 +502,7 @@ PT_CV_Functions::view_submit();
|
|
502 |
// Layout format of output item
|
503 |
array(
|
504 |
'label' => array(
|
505 |
-
'text' => __( 'Layout format',
|
506 |
),
|
507 |
'params' => array(
|
508 |
array(
|
@@ -510,14 +510,14 @@ PT_CV_Functions::view_submit();
|
|
510 |
'name' => 'layout-format',
|
511 |
'options' => PT_CV_Values::layout_format(),
|
512 |
'std' => PT_CV_Functions::array_get_first_key( PT_CV_Values::layout_format() ),
|
513 |
-
'desc' => __( 'This is layout format of output for each post',
|
514 |
),
|
515 |
),
|
516 |
),
|
517 |
// Fields settings
|
518 |
array(
|
519 |
'label' => array(
|
520 |
-
'text' => __( 'Fields settings',
|
521 |
),
|
522 |
'extra_setting' => array(
|
523 |
'params' => array(
|
@@ -535,7 +535,7 @@ PT_CV_Functions::view_submit();
|
|
535 |
// Pagination settings
|
536 |
array(
|
537 |
'label' => array(
|
538 |
-
'text' => __( 'Pagination settings',
|
539 |
),
|
540 |
'extra_setting' => array(
|
541 |
'params' => array(
|
@@ -552,7 +552,7 @@ PT_CV_Functions::view_submit();
|
|
552 |
// Other settings
|
553 |
array(
|
554 |
'label' => array(
|
555 |
-
'text' => __( 'Other settings',
|
556 |
),
|
557 |
'extra_setting' => array(
|
558 |
'params' => array(
|
@@ -583,6 +583,6 @@ PT_CV_Functions::view_submit();
|
|
583 |
<div class="clearfix"></div>
|
584 |
<hr>
|
585 |
<!-- Save -->
|
586 |
-
<input type="submit" class="btn btn-primary pull-right <?php echo esc_attr( PT_CV_PREFIX ); ?>save-view" value="<?php _e( 'Save',
|
587 |
</form>
|
588 |
</div>
|
36 |
<div class="wrap form-horizontal pt-wrap">
|
37 |
<?php do_action( PT_CV_PREFIX_ . 'admin_view_header' ); ?>
|
38 |
|
39 |
+
<h2><?php echo esc_html( $id ? __( 'Edit View', PT_CV_TEXTDOMAIN ) : get_admin_page_title() ); ?></h2>
|
40 |
|
41 |
<?php
|
42 |
if ( $id ) {
|
52 |
$options = array(
|
53 |
array(
|
54 |
'label' => array(
|
55 |
+
'text' => __( 'Preview', PT_CV_TEXTDOMAIN ),
|
56 |
),
|
57 |
'params' => array(
|
58 |
array(
|
59 |
'type' => 'html',
|
60 |
'name' => 'preview',
|
61 |
'content' => PT_CV_Html::html_preview_box(),
|
62 |
+
'desc' => __( 'Click "Show Preview" or "Update Preview" button to show, "Hide Preview" button to hide the output', PT_CV_TEXTDOMAIN ),
|
63 |
),
|
64 |
),
|
65 |
),
|
69 |
</div>
|
70 |
|
71 |
<!-- Show Preview -->
|
72 |
+
<a class="btn btn-success" id="<?php echo esc_attr( PT_CV_PREFIX ); ?>show-preview"><?php _e( 'Show Preview', PT_CV_TEXTDOMAIN ); ?></a>
|
73 |
|
74 |
<br>
|
75 |
|
93 |
$options = array(
|
94 |
array(
|
95 |
'label' => array(
|
96 |
+
'text' => __( 'View title', PT_CV_TEXTDOMAIN ),
|
97 |
),
|
98 |
'params' => array(
|
99 |
array(
|
100 |
'type' => 'text',
|
101 |
'name' => 'view-title',
|
102 |
'std' => isset( $view_object->post_title ) ? $view_object->post_title : '',
|
103 |
+
'desc' => __( 'Enter a name to identify your views easily', PT_CV_TEXTDOMAIN ),
|
104 |
),
|
105 |
),
|
106 |
),
|
110 |
<br>
|
111 |
|
112 |
<!-- Save -->
|
113 |
+
<input type="submit" class="btn btn-primary pull-right <?php echo esc_attr( PT_CV_PREFIX ); ?>save-view" value="<?php _e( 'Save', PT_CV_TEXTDOMAIN ); ?>">
|
114 |
<?php do_action( PT_CV_PREFIX_ . 'admin_more_buttons' ); ?>
|
115 |
|
116 |
<!-- Nav tabs -->
|
117 |
<ul class="nav nav-tabs">
|
118 |
<li class="active">
|
119 |
+
<a href="#<?php echo esc_attr( PT_CV_PREFIX ); ?>filter-settings" data-toggle="tab"><span class="glyphicon glyphicon-search"></span><?php _e( 'Filter Settings', PT_CV_TEXTDOMAIN ); ?>
|
120 |
</a>
|
121 |
</li>
|
122 |
<li>
|
123 |
+
<a href="#<?php echo esc_attr( PT_CV_PREFIX ); ?>display-settings" data-toggle="tab"><span class="glyphicon glyphicon-th-large"></span><?php _e( 'Display Settings', PT_CV_TEXTDOMAIN ); ?>
|
124 |
</a>
|
125 |
</li>
|
126 |
<?php do_action( PT_CV_PREFIX_ . 'setting_tabs_header', $settings ); ?>
|
135 |
// Content type
|
136 |
array(
|
137 |
'label' => array(
|
138 |
+
'text' => __( 'Content type', PT_CV_TEXTDOMAIN ),
|
139 |
),
|
140 |
'params' => array(
|
141 |
array(
|
159 |
'params' => array(
|
160 |
array(
|
161 |
'type' => 'html',
|
162 |
+
'content' => sprintf( '<p class="text-muted">→ %s</p>', __( 'Filter custom content type (or post type) ?', PT_CV_TEXTDOMAIN ) . sprintf( ' <a href="%s" target="_blank">%s</a>', esc_url( 'http://www.contentviewspro.com/pricing/?utm_source=client&utm_medium=view' ), __( 'Please upgrade to Pro', PT_CV_TEXTDOMAIN ) ) ),
|
163 |
),
|
164 |
),
|
165 |
) : '',
|
167 |
// Common Filters
|
168 |
array(
|
169 |
'label' => array(
|
170 |
+
'text' => __( 'Common filters', PT_CV_TEXTDOMAIN ),
|
171 |
),
|
172 |
'extra_setting' => array(
|
173 |
'params' => array(
|
182 |
// Includes
|
183 |
array(
|
184 |
'label' => array(
|
185 |
+
'text' => __( 'In list', PT_CV_TEXTDOMAIN ),
|
186 |
),
|
187 |
'params' => array(
|
188 |
array(
|
189 |
'type' => 'text',
|
190 |
'name' => 'post__in',
|
191 |
'std' => '',
|
192 |
+
'desc' => __( 'List of post ids to retrieve (comma-separated values, e.g. 1,2,3).<br>A post is displayed only if its ID is equal to any of the values IN this list', PT_CV_TEXTDOMAIN ),
|
193 |
),
|
194 |
),
|
195 |
),
|
197 |
// Excludes
|
198 |
array(
|
199 |
'label' => array(
|
200 |
+
'text' => __( 'Excludes', PT_CV_TEXTDOMAIN ),
|
201 |
),
|
202 |
'params' => array(
|
203 |
array(
|
204 |
'type' => 'text',
|
205 |
'name' => 'post__not_in',
|
206 |
'std' => '',
|
207 |
+
'desc' => __( 'List of post ids to exclude (comma-separated values, e.g. 1,2,3)', PT_CV_TEXTDOMAIN ),
|
208 |
),
|
209 |
),
|
210 |
),
|
212 |
// Parent page
|
213 |
array(
|
214 |
'label' => array(
|
215 |
+
'text' => __( 'Parent page', PT_CV_TEXTDOMAIN ),
|
216 |
),
|
217 |
'params' => array(
|
218 |
array(
|
219 |
'type' => 'number',
|
220 |
'name' => 'post_parent',
|
221 |
'std' => '',
|
222 |
+
'desc' => __( 'Enter ID of parent page to query child pages', PT_CV_TEXTDOMAIN ),
|
223 |
),
|
224 |
),
|
225 |
'dependence' => array( 'content-type', 'page' ),
|
228 |
// Limit
|
229 |
array(
|
230 |
'label' => array(
|
231 |
+
'text' => __( 'Limit', PT_CV_TEXTDOMAIN ),
|
232 |
),
|
233 |
'params' => array(
|
234 |
array(
|
237 |
'std' => '10',
|
238 |
'min' => '1',
|
239 |
'append_text' => '1 → 999',
|
240 |
+
'desc' => __( 'The number of posts to show. Set empty to show all found posts (which match all filter settings)', PT_CV_TEXTDOMAIN ),
|
241 |
),
|
242 |
),
|
243 |
),
|
249 |
// Advanced Filters
|
250 |
array(
|
251 |
'label' => array(
|
252 |
+
'text' => __( 'Advanced filters', PT_CV_TEXTDOMAIN ),
|
253 |
),
|
254 |
'extra_setting' => array(
|
255 |
'params' => array(
|
304 |
// Taxonomies list
|
305 |
array(
|
306 |
'label' => array(
|
307 |
+
'text' => __( 'Taxonomies', PT_CV_TEXTDOMAIN ),
|
308 |
),
|
309 |
'extra_setting' => array(
|
310 |
'params' => array(
|
318 |
'options' => PT_CV_Values::taxonomy_list(),
|
319 |
'std' => '',
|
320 |
'class' => 'taxonomy-item',
|
321 |
+
'desc' => __( 'Tick checkbox of taxonomies to filter posts by their terms', PT_CV_TEXTDOMAIN ),
|
322 |
),
|
323 |
),
|
324 |
),
|
325 |
// Terms list
|
326 |
array(
|
327 |
'label' => array(
|
328 |
+
'text' => __( 'Terms', PT_CV_TEXTDOMAIN ),
|
329 |
),
|
330 |
'extra_setting' => array(
|
331 |
'params' => array(
|
346 |
// Relation of taxonomies
|
347 |
array(
|
348 |
'label' => array(
|
349 |
+
'text' => __( 'Relation', PT_CV_TEXTDOMAIN ),
|
350 |
),
|
351 |
'params' => array(
|
352 |
array(
|
355 |
'options' => PT_CV_Values::taxonomy_relation(),
|
356 |
'std' => PT_CV_Functions::array_get_first_key( PT_CV_Values::taxonomy_relation() ),
|
357 |
'class' => 'taxonomy-relation',
|
358 |
+
'desc' => __( 'Select AND to show posts which match ALL settings of selected taxonomies.<br>Select OR to show posts which match settings of at least one selected taxonomy', PT_CV_TEXTDOMAIN ),
|
359 |
),
|
360 |
),
|
361 |
),
|
365 |
'order' => array(
|
366 |
array(
|
367 |
'label' => array(
|
368 |
+
'text' => __( 'Order by', PT_CV_TEXTDOMAIN ),
|
369 |
),
|
370 |
'extra_setting' => array(
|
371 |
'params' => array(
|
387 |
'author' => apply_filters( PT_CV_PREFIX_ . 'author_settings', array(
|
388 |
array(
|
389 |
'label' => array(
|
390 |
+
'text' => __( 'Written by', PT_CV_TEXTDOMAIN ),
|
391 |
),
|
392 |
'params' => array(
|
393 |
array(
|
403 |
$version_gt_37 ?
|
404 |
array(
|
405 |
'label' => array(
|
406 |
+
'text' => __( 'Not written by', PT_CV_TEXTDOMAIN ),
|
407 |
),
|
408 |
'params' => array(
|
409 |
array(
|
421 |
'status' => array(
|
422 |
array(
|
423 |
'label' => array(
|
424 |
+
'text' => __( 'Status', PT_CV_TEXTDOMAIN ),
|
425 |
),
|
426 |
'params' => array(
|
427 |
array(
|
431 |
'std' => 'publish',
|
432 |
'class' => 'select2',
|
433 |
'multiple' => '1',
|
434 |
+
'desc' => __( 'Select status of posts', PT_CV_TEXTDOMAIN ),
|
435 |
),
|
436 |
),
|
437 |
),
|
440 |
'search' => array(
|
441 |
array(
|
442 |
'label' => array(
|
443 |
+
'text' => __( 'Keyword', PT_CV_TEXTDOMAIN ),
|
444 |
),
|
445 |
'params' => array(
|
446 |
array(
|
447 |
'type' => 'text',
|
448 |
'name' => 's',
|
449 |
'std' => '',
|
450 |
+
'desc' => __( 'Enter the keyword to searching for posts.', PT_CV_TEXTDOMAIN ) . apply_filters( PT_CV_PREFIX_ . 'searchby_keyword_desc', '' ),
|
451 |
),
|
452 |
),
|
453 |
),
|
470 |
// View Type
|
471 |
array(
|
472 |
'label' => array(
|
473 |
+
'text' => __( 'View type (Layout)', PT_CV_TEXTDOMAIN ),
|
474 |
),
|
475 |
'params' => array(
|
476 |
array(
|
484 |
// View settings
|
485 |
array(
|
486 |
'label' => array(
|
487 |
+
'text' => __( 'View type settings', PT_CV_TEXTDOMAIN ),
|
488 |
),
|
489 |
'params' => array(
|
490 |
array(
|
502 |
// Layout format of output item
|
503 |
array(
|
504 |
'label' => array(
|
505 |
+
'text' => __( 'Layout format', PT_CV_TEXTDOMAIN ),
|
506 |
),
|
507 |
'params' => array(
|
508 |
array(
|
510 |
'name' => 'layout-format',
|
511 |
'options' => PT_CV_Values::layout_format(),
|
512 |
'std' => PT_CV_Functions::array_get_first_key( PT_CV_Values::layout_format() ),
|
513 |
+
'desc' => __( 'This is layout format of output for each post', PT_CV_TEXTDOMAIN ),
|
514 |
),
|
515 |
),
|
516 |
),
|
517 |
// Fields settings
|
518 |
array(
|
519 |
'label' => array(
|
520 |
+
'text' => __( 'Fields settings', PT_CV_TEXTDOMAIN ),
|
521 |
),
|
522 |
'extra_setting' => array(
|
523 |
'params' => array(
|
535 |
// Pagination settings
|
536 |
array(
|
537 |
'label' => array(
|
538 |
+
'text' => __( 'Pagination settings', PT_CV_TEXTDOMAIN ),
|
539 |
),
|
540 |
'extra_setting' => array(
|
541 |
'params' => array(
|
552 |
// Other settings
|
553 |
array(
|
554 |
'label' => array(
|
555 |
+
'text' => __( 'Other settings', PT_CV_TEXTDOMAIN ),
|
556 |
),
|
557 |
'extra_setting' => array(
|
558 |
'params' => array(
|
583 |
<div class="clearfix"></div>
|
584 |
<hr>
|
585 |
<!-- Save -->
|
586 |
+
<input type="submit" class="btn btn-primary pull-right <?php echo esc_attr( PT_CV_PREFIX ); ?>save-view" value="<?php _e( 'Save', PT_CV_TEXTDOMAIN ); ?>">
|
587 |
</form>
|
588 |
</div>
|
content-views.php
CHANGED
@@ -11,10 +11,10 @@
|
|
11 |
* Plugin Name: Content Views
|
12 |
* Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
|
13 |
* Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
|
14 |
-
* Version: 1.6.8.
|
15 |
* Author: PT Guy
|
16 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
17 |
-
* Text Domain: content-views
|
18 |
* License: GPL-2.0+
|
19 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
20 |
* Domain Path: /languages
|
@@ -27,7 +27,7 @@ if ( !defined( 'WPINC' ) ) {
|
|
27 |
/*
|
28 |
* Define Constant
|
29 |
*/
|
30 |
-
define( 'PT_CV_VERSION', '1.6.8.
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
$pt_cv_path = plugin_dir_path( __FILE__ );
|
33 |
include_once( $pt_cv_path . 'includes/defines.php' );
|
11 |
* Plugin Name: Content Views
|
12 |
* Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
|
13 |
* Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
|
14 |
+
* Version: 1.6.8.3
|
15 |
* Author: PT Guy
|
16 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
17 |
+
* Text Domain: content-views-query-and-display-post-page
|
18 |
* License: GPL-2.0+
|
19 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
20 |
* Domain Path: /languages
|
27 |
/*
|
28 |
* Define Constant
|
29 |
*/
|
30 |
+
define( 'PT_CV_VERSION', '1.6.8.3' );
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
$pt_cv_path = plugin_dir_path( __FILE__ );
|
33 |
include_once( $pt_cv_path . 'includes/defines.php' );
|
includes/defines.php
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
* @copyright 2014 PT Guy
|
11 |
*/
|
12 |
define( 'PT_CV_DOMAIN', 'content-views' );
|
|
|
13 |
define( 'PT_CV_PREFIX', 'pt-cv-' );
|
14 |
define( 'PT_CV_PREFIX_', 'pt_cv_' );
|
15 |
define( 'PT_CV_PREFIX_UPPER', 'PT_CV_' );
|
10 |
* @copyright 2014 PT Guy
|
11 |
*/
|
12 |
define( 'PT_CV_DOMAIN', 'content-views' );
|
13 |
+
define( 'PT_CV_TEXTDOMAIN', 'content-views-query-and-display-post-page' );
|
14 |
define( 'PT_CV_PREFIX', 'pt-cv-' );
|
15 |
define( 'PT_CV_PREFIX_', 'pt_cv_' );
|
16 |
define( 'PT_CV_PREFIX_UPPER', 'PT_CV_' );
|
includes/functions.php
CHANGED
@@ -421,7 +421,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
421 |
$include_this = apply_filters( PT_CV_PREFIX_ . 'terms_include_this', true, $term );
|
422 |
if ( $include_this ) {
|
423 |
$links[] = sprintf(
|
424 |
-
'<a href="%1$s" title="%2$s %3$s" class="%4$s">%3$s</a>', esc_url( get_term_link( $term, $term->taxonomy ) ), __( 'View all posts in',
|
425 |
);
|
426 |
}
|
427 |
|
@@ -463,7 +463,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
463 |
$count = 1;
|
464 |
}
|
465 |
|
466 |
-
return _n( 'view', 'views', $count,
|
467 |
}
|
468 |
|
469 |
/**
|
@@ -480,7 +480,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
480 |
'ID' => (int) $arr[ 'ID' ],
|
481 |
'post_type' => PT_CV_POST_TYPE,
|
482 |
'post_content' => '',
|
483 |
-
'post_title' => !empty( $arr[ 'title' ] ) ? $arr[ 'title' ] : __( '(no title)',
|
484 |
'post_status' => 'publish',
|
485 |
);
|
486 |
|
@@ -544,7 +544,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
544 |
static function _nonce_check( $nonce_name, $action_name ) {
|
545 |
$nonce_name = PT_CV_PREFIX_ . $nonce_name;
|
546 |
if ( !isset( $_POST[ $nonce_name ] ) || !wp_verify_nonce( $_POST[ $nonce_name ], PT_CV_PREFIX_ . $action_name ) ) {
|
547 |
-
print esc_html( __( 'Sorry, your nonce did not verify.',
|
548 |
exit;
|
549 |
}
|
550 |
}
|
@@ -622,7 +622,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
622 |
*/
|
623 |
static function view_process_settings( $id, $settings, $pargs = array() ) {
|
624 |
if ( empty( $settings ) ) {
|
625 |
-
return __( 'Empty settings',
|
626 |
}
|
627 |
|
628 |
global $pt_cv_glb, $pt_cv_id;
|
@@ -820,7 +820,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
820 |
$_class = apply_filters( PT_CV_PREFIX_ . 'content_no_post_found_class', 'alert alert-warning' );
|
821 |
|
822 |
// Get no post found text
|
823 |
-
$_text = apply_filters( PT_CV_PREFIX_ . 'content_no_post_found_text', __( 'No post found',
|
824 |
|
825 |
// Output HTML
|
826 |
$content_items[] = sprintf( '<div class="%1$s">%2$s</div>', esc_attr( $_class ), balanceTags( $_text ) );
|
421 |
$include_this = apply_filters( PT_CV_PREFIX_ . 'terms_include_this', true, $term );
|
422 |
if ( $include_this ) {
|
423 |
$links[] = sprintf(
|
424 |
+
'<a href="%1$s" title="%2$s %3$s" class="%4$s">%3$s</a>', esc_url( get_term_link( $term, $term->taxonomy ) ), __( 'View all posts in', PT_CV_TEXTDOMAIN ), $term->name, PT_CV_PREFIX . 'tax-' . PT_CV_Functions::term_slug_sanitize( $term->slug )
|
425 |
);
|
426 |
}
|
427 |
|
463 |
$count = 1;
|
464 |
}
|
465 |
|
466 |
+
return _n( 'view', 'views', $count, PT_CV_TEXTDOMAIN );
|
467 |
}
|
468 |
|
469 |
/**
|
480 |
'ID' => (int) $arr[ 'ID' ],
|
481 |
'post_type' => PT_CV_POST_TYPE,
|
482 |
'post_content' => '',
|
483 |
+
'post_title' => !empty( $arr[ 'title' ] ) ? $arr[ 'title' ] : __( '(no title)', PT_CV_TEXTDOMAIN ),
|
484 |
'post_status' => 'publish',
|
485 |
);
|
486 |
|
544 |
static function _nonce_check( $nonce_name, $action_name ) {
|
545 |
$nonce_name = PT_CV_PREFIX_ . $nonce_name;
|
546 |
if ( !isset( $_POST[ $nonce_name ] ) || !wp_verify_nonce( $_POST[ $nonce_name ], PT_CV_PREFIX_ . $action_name ) ) {
|
547 |
+
print esc_html( __( 'Sorry, your nonce did not verify.', PT_CV_TEXTDOMAIN ) );
|
548 |
exit;
|
549 |
}
|
550 |
}
|
622 |
*/
|
623 |
static function view_process_settings( $id, $settings, $pargs = array() ) {
|
624 |
if ( empty( $settings ) ) {
|
625 |
+
return __( 'Empty settings', PT_CV_TEXTDOMAIN );
|
626 |
}
|
627 |
|
628 |
global $pt_cv_glb, $pt_cv_id;
|
820 |
$_class = apply_filters( PT_CV_PREFIX_ . 'content_no_post_found_class', 'alert alert-warning' );
|
821 |
|
822 |
// Get no post found text
|
823 |
+
$_text = apply_filters( PT_CV_PREFIX_ . 'content_no_post_found_text', __( 'No post found', PT_CV_TEXTDOMAIN ) );
|
824 |
|
825 |
// Output HTML
|
826 |
$content_items[] = sprintf( '<div class="%1$s">%2$s</div>', esc_attr( $_class ), balanceTags( $_text ) );
|
includes/hooks.php
CHANGED
@@ -45,12 +45,12 @@ if ( !class_exists( 'PT_CV_Hooks' ) ) {
|
|
45 |
|
46 |
$messages = array(
|
47 |
'field' => array(
|
48 |
-
'select' => __( 'Please select an option in : ',
|
49 |
-
'text' => __( 'Please set value in : ',
|
50 |
),
|
51 |
'tab' => array(
|
52 |
-
'filter' => __( 'Filter Settings',
|
53 |
-
'display' => __( 'Display Settings',
|
54 |
),
|
55 |
);
|
56 |
|
@@ -59,7 +59,7 @@ if ( !class_exists( 'PT_CV_Hooks' ) ) {
|
|
59 |
*/
|
60 |
// Post type
|
61 |
if ( empty( $args[ 'post_type' ] ) ) {
|
62 |
-
$errors[] = $messages[ 'field' ][ 'select' ] . $messages[ 'tab' ][ 'filter' ] . ' > ' . __( 'Content type',
|
63 |
}
|
64 |
|
65 |
/**
|
@@ -67,23 +67,23 @@ if ( !class_exists( 'PT_CV_Hooks' ) ) {
|
|
67 |
*/
|
68 |
// View type
|
69 |
if ( empty( $dargs[ 'view-type' ] ) ) {
|
70 |
-
$errors[] = $messages[ 'field' ][ 'select' ] . $messages[ 'tab' ][ 'display' ] . ' > ' . __( 'View type',
|
71 |
}
|
72 |
|
73 |
// Layout format
|
74 |
if ( empty( $dargs[ 'layout-format' ] ) ) {
|
75 |
-
$errors[] = $messages[ 'field' ][ 'select' ] . $messages[ 'tab' ][ 'display' ] . ' > ' . __( 'Layout format',
|
76 |
}
|
77 |
|
78 |
// Field settings
|
79 |
if ( !isset( $dargs[ 'fields' ] ) ) {
|
80 |
-
$errors[] = $messages[ 'field' ][ 'select' ] . $messages[ 'tab' ][ 'display' ] . ' > ' . __( 'Fields settings',
|
81 |
}
|
82 |
|
83 |
// Item per page
|
84 |
if ( isset( $dargs[ 'pagination-settings' ] ) ) {
|
85 |
if ( empty( $dargs[ 'pagination-settings' ][ 'items-per-page' ] ) ) {
|
86 |
-
$errors[] = $messages[ 'field' ][ 'text' ] . $messages[ 'tab' ][ 'display' ] . ' > ' . __( 'Pagination settings',
|
87 |
}
|
88 |
}
|
89 |
|
@@ -94,7 +94,7 @@ if ( !class_exists( 'PT_CV_Hooks' ) ) {
|
|
94 |
switch ( $dargs[ 'view-type' ] ) {
|
95 |
case 'grid':
|
96 |
if ( empty( $dargs[ 'number-columns' ] ) ) {
|
97 |
-
$errors[] = $messages[ 'field' ][ 'text' ] . $messages[ 'tab' ][ 'display' ] . ' > ' . __( 'View type settings',
|
98 |
}
|
99 |
break;
|
100 |
}
|
45 |
|
46 |
$messages = array(
|
47 |
'field' => array(
|
48 |
+
'select' => __( 'Please select an option in : ', PT_CV_TEXTDOMAIN ),
|
49 |
+
'text' => __( 'Please set value in : ', PT_CV_TEXTDOMAIN ),
|
50 |
),
|
51 |
'tab' => array(
|
52 |
+
'filter' => __( 'Filter Settings', PT_CV_TEXTDOMAIN ),
|
53 |
+
'display' => __( 'Display Settings', PT_CV_TEXTDOMAIN ),
|
54 |
),
|
55 |
);
|
56 |
|
59 |
*/
|
60 |
// Post type
|
61 |
if ( empty( $args[ 'post_type' ] ) ) {
|
62 |
+
$errors[] = $messages[ 'field' ][ 'select' ] . $messages[ 'tab' ][ 'filter' ] . ' > ' . __( 'Content type', PT_CV_TEXTDOMAIN );
|
63 |
}
|
64 |
|
65 |
/**
|
67 |
*/
|
68 |
// View type
|
69 |
if ( empty( $dargs[ 'view-type' ] ) ) {
|
70 |
+
$errors[] = $messages[ 'field' ][ 'select' ] . $messages[ 'tab' ][ 'display' ] . ' > ' . __( 'View type', PT_CV_TEXTDOMAIN );
|
71 |
}
|
72 |
|
73 |
// Layout format
|
74 |
if ( empty( $dargs[ 'layout-format' ] ) ) {
|
75 |
+
$errors[] = $messages[ 'field' ][ 'select' ] . $messages[ 'tab' ][ 'display' ] . ' > ' . __( 'Layout format', PT_CV_TEXTDOMAIN );
|
76 |
}
|
77 |
|
78 |
// Field settings
|
79 |
if ( !isset( $dargs[ 'fields' ] ) ) {
|
80 |
+
$errors[] = $messages[ 'field' ][ 'select' ] . $messages[ 'tab' ][ 'display' ] . ' > ' . __( 'Fields settings', PT_CV_TEXTDOMAIN ) . ' > ' . __( 'Fields display', PT_CV_TEXTDOMAIN );
|
81 |
}
|
82 |
|
83 |
// Item per page
|
84 |
if ( isset( $dargs[ 'pagination-settings' ] ) ) {
|
85 |
if ( empty( $dargs[ 'pagination-settings' ][ 'items-per-page' ] ) ) {
|
86 |
+
$errors[] = $messages[ 'field' ][ 'text' ] . $messages[ 'tab' ][ 'display' ] . ' > ' . __( 'Pagination settings', PT_CV_TEXTDOMAIN ) . ' > ' . __( 'Items per page', PT_CV_TEXTDOMAIN );
|
87 |
}
|
88 |
}
|
89 |
|
94 |
switch ( $dargs[ 'view-type' ] ) {
|
95 |
case 'grid':
|
96 |
if ( empty( $dargs[ 'number-columns' ] ) ) {
|
97 |
+
$errors[] = $messages[ 'field' ][ 'text' ] . $messages[ 'tab' ][ 'display' ] . ' > ' . __( 'View type settings', PT_CV_TEXTDOMAIN ) . ' > ' . __( 'Items per row', PT_CV_TEXTDOMAIN );
|
98 |
}
|
99 |
break;
|
100 |
}
|
includes/html.php
CHANGED
@@ -85,7 +85,7 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
|
|
85 |
?>
|
86 |
<div class="panel panel-primary pt-accordion">
|
87 |
<div class="panel-heading">
|
88 |
-
<h4 class="panel-title" title="<?php _e( 'Click to toggle',
|
89 |
<a class="pt-accordion-a" data-parent="#<?php echo esc_attr( $parent_id ); ?>" href="#<?php echo esc_attr( $id ); ?>">
|
90 |
<?php echo balanceTags( $heading ); ?>
|
91 |
</a>
|
@@ -124,7 +124,7 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
|
|
124 |
* @return type
|
125 |
*/
|
126 |
static function html_loading_img( $dimension = 16, $class = '' ) {
|
127 |
-
$img = sprintf( '<img width="%1$s" height="%1$s" class="%2$s" alt="%3$s" src="%4$s" /><div class="clear %5$s"></div>', esc_attr( $dimension ), esc_attr( $class ), __( 'loading',
|
128 |
|
129 |
return apply_filters( PT_CV_PREFIX_ . 'loading_image', $img );
|
130 |
}
|
@@ -450,7 +450,7 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
|
|
450 |
// Get post title
|
451 |
$title = get_the_title( $post );
|
452 |
if ( empty( $title ) ) {
|
453 |
-
$title = __( '(no title)',
|
454 |
}
|
455 |
|
456 |
$title = apply_filters( PT_CV_PREFIX_ . 'field_title_result', $title, $fargs, $post->ID );
|
@@ -499,7 +499,7 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
|
|
499 |
|
500 |
// Read more button
|
501 |
if ( apply_filters( PT_CV_PREFIX_ . 'field_content_readmore_enable', 1, $fargs[ 'content' ] ) ) {
|
502 |
-
$text = apply_filters( PT_CV_PREFIX_ . 'field_content_readmore_text', __( 'Read More',
|
503 |
$btn_class = apply_filters( PT_CV_PREFIX_ . 'field_content_readmore_class', 'btn btn-success btn-sm', $fargs );
|
504 |
$readmore_btn .= self::_field_href( $oargs, $post, $text, PT_CV_PREFIX . 'readmore ' . $btn_class );
|
505 |
$readmore_html .= apply_filters( PT_CV_PREFIX_ . 'field_content_readmore_seperated', '<br/>', $fargs ) . $readmore_btn;
|
@@ -671,7 +671,7 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
|
|
671 |
|
672 |
// Get terms wrapper class
|
673 |
$term_class = apply_filters( PT_CV_PREFIX_ . 'field_meta_class', 'terms', 'terms' );
|
674 |
-
$prefix_text = apply_filters( PT_CV_PREFIX_ . 'field_meta_prefix_text', __( 'in',
|
675 |
|
676 |
$terms = PT_CV_Functions::post_terms( $post );
|
677 |
if ( !empty( $terms ) ) {
|
@@ -687,7 +687,7 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
|
|
687 |
$prefix_text = apply_filters( PT_CV_PREFIX_ . 'field_meta_prefix_text', '', 'comment' );
|
688 |
|
689 |
ob_start();
|
690 |
-
comments_popup_link( __( 'Leave a comment',
|
691 |
$comment_content = ob_get_clean();
|
692 |
$html[ 'comment' ] = sprintf( '<span class="%s">%s %s</span>', esc_attr( $comment_class ), balanceTags( $prefix_text ), $comment_content );
|
693 |
endif;
|
@@ -697,7 +697,7 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
|
|
697 |
|
698 |
// Get author wrapper class
|
699 |
$author_class = apply_filters( PT_CV_PREFIX_ . 'field_meta_class', 'author', 'author' );
|
700 |
-
$prefix_text = apply_filters( PT_CV_PREFIX_ . 'field_meta_prefix_text', __( 'by',
|
701 |
|
702 |
$author_html = sprintf( '<span class="%s">%s <a href="%s" rel="author">%s</a></span>', esc_attr( $author_class ), balanceTags( $prefix_text ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), get_the_author() );
|
703 |
$html[ 'author' ] = apply_filters( PT_CV_PREFIX_ . 'field_meta_author_html', $author_html, $post );
|
@@ -914,12 +914,12 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
|
|
914 |
'prev' => apply_filters( PT_CV_PREFIX_ . 'pagination_prev', '‹' ),
|
915 |
'next' => apply_filters( PT_CV_PREFIX_ . 'pagination_next', '›' ),
|
916 |
'last' => apply_filters( PT_CV_PREFIX_ . 'pagination_last', '»' ),
|
917 |
-
'goto_first' => apply_filters( PT_CV_PREFIX_ . 'goto_first', __( 'Go to first page',
|
918 |
-
'goto_prev' => apply_filters( PT_CV_PREFIX_ . 'goto_prev', __( 'Go to previous page',
|
919 |
-
'goto_next' => apply_filters( PT_CV_PREFIX_ . 'goto_next', __( 'Go to next page',
|
920 |
-
'goto_last' => apply_filters( PT_CV_PREFIX_ . 'goto_last', __( 'Go to last page',
|
921 |
-
'current_page' => apply_filters( PT_CV_PREFIX_ . 'current_page', __( 'Current page is',
|
922 |
-
'goto_page' => apply_filters( PT_CV_PREFIX_ . 'goto_page', __( 'Go to page',
|
923 |
)
|
924 |
);
|
925 |
}
|
85 |
?>
|
86 |
<div class="panel panel-primary pt-accordion">
|
87 |
<div class="panel-heading">
|
88 |
+
<h4 class="panel-title" title="<?php _e( 'Click to toggle', PT_CV_TEXTDOMAIN ); ?>">
|
89 |
<a class="pt-accordion-a" data-parent="#<?php echo esc_attr( $parent_id ); ?>" href="#<?php echo esc_attr( $id ); ?>">
|
90 |
<?php echo balanceTags( $heading ); ?>
|
91 |
</a>
|
124 |
* @return type
|
125 |
*/
|
126 |
static function html_loading_img( $dimension = 16, $class = '' ) {
|
127 |
+
$img = sprintf( '<img width="%1$s" height="%1$s" class="%2$s" alt="%3$s" src="%4$s" /><div class="clear %5$s"></div>', esc_attr( $dimension ), esc_attr( $class ), __( 'loading', PT_CV_TEXTDOMAIN ), 'data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==', PT_CV_PREFIX . 'clear-pagination' );
|
128 |
|
129 |
return apply_filters( PT_CV_PREFIX_ . 'loading_image', $img );
|
130 |
}
|
450 |
// Get post title
|
451 |
$title = get_the_title( $post );
|
452 |
if ( empty( $title ) ) {
|
453 |
+
$title = __( '(no title)', PT_CV_TEXTDOMAIN );
|
454 |
}
|
455 |
|
456 |
$title = apply_filters( PT_CV_PREFIX_ . 'field_title_result', $title, $fargs, $post->ID );
|
499 |
|
500 |
// Read more button
|
501 |
if ( apply_filters( PT_CV_PREFIX_ . 'field_content_readmore_enable', 1, $fargs[ 'content' ] ) ) {
|
502 |
+
$text = apply_filters( PT_CV_PREFIX_ . 'field_content_readmore_text', __( 'Read More', PT_CV_TEXTDOMAIN ), $fargs[ 'content' ] );
|
503 |
$btn_class = apply_filters( PT_CV_PREFIX_ . 'field_content_readmore_class', 'btn btn-success btn-sm', $fargs );
|
504 |
$readmore_btn .= self::_field_href( $oargs, $post, $text, PT_CV_PREFIX . 'readmore ' . $btn_class );
|
505 |
$readmore_html .= apply_filters( PT_CV_PREFIX_ . 'field_content_readmore_seperated', '<br/>', $fargs ) . $readmore_btn;
|
671 |
|
672 |
// Get terms wrapper class
|
673 |
$term_class = apply_filters( PT_CV_PREFIX_ . 'field_meta_class', 'terms', 'terms' );
|
674 |
+
$prefix_text = apply_filters( PT_CV_PREFIX_ . 'field_meta_prefix_text', __( 'in', PT_CV_TEXTDOMAIN ), 'terms' );
|
675 |
|
676 |
$terms = PT_CV_Functions::post_terms( $post );
|
677 |
if ( !empty( $terms ) ) {
|
687 |
$prefix_text = apply_filters( PT_CV_PREFIX_ . 'field_meta_prefix_text', '', 'comment' );
|
688 |
|
689 |
ob_start();
|
690 |
+
comments_popup_link( __( 'Leave a comment', PT_CV_TEXTDOMAIN ), __( '1 Comment', PT_CV_TEXTDOMAIN ), __( '% Comments', PT_CV_TEXTDOMAIN ) );
|
691 |
$comment_content = ob_get_clean();
|
692 |
$html[ 'comment' ] = sprintf( '<span class="%s">%s %s</span>', esc_attr( $comment_class ), balanceTags( $prefix_text ), $comment_content );
|
693 |
endif;
|
697 |
|
698 |
// Get author wrapper class
|
699 |
$author_class = apply_filters( PT_CV_PREFIX_ . 'field_meta_class', 'author', 'author' );
|
700 |
+
$prefix_text = apply_filters( PT_CV_PREFIX_ . 'field_meta_prefix_text', __( 'by', PT_CV_TEXTDOMAIN ), 'author' );
|
701 |
|
702 |
$author_html = sprintf( '<span class="%s">%s <a href="%s" rel="author">%s</a></span>', esc_attr( $author_class ), balanceTags( $prefix_text ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), get_the_author() );
|
703 |
$html[ 'author' ] = apply_filters( PT_CV_PREFIX_ . 'field_meta_author_html', $author_html, $post );
|
914 |
'prev' => apply_filters( PT_CV_PREFIX_ . 'pagination_prev', '‹' ),
|
915 |
'next' => apply_filters( PT_CV_PREFIX_ . 'pagination_next', '›' ),
|
916 |
'last' => apply_filters( PT_CV_PREFIX_ . 'pagination_last', '»' ),
|
917 |
+
'goto_first' => apply_filters( PT_CV_PREFIX_ . 'goto_first', __( 'Go to first page', PT_CV_TEXTDOMAIN ) ),
|
918 |
+
'goto_prev' => apply_filters( PT_CV_PREFIX_ . 'goto_prev', __( 'Go to previous page', PT_CV_TEXTDOMAIN ) ),
|
919 |
+
'goto_next' => apply_filters( PT_CV_PREFIX_ . 'goto_next', __( 'Go to next page', PT_CV_TEXTDOMAIN ) ),
|
920 |
+
'goto_last' => apply_filters( PT_CV_PREFIX_ . 'goto_last', __( 'Go to last page', PT_CV_TEXTDOMAIN ) ),
|
921 |
+
'current_page' => apply_filters( PT_CV_PREFIX_ . 'current_page', __( 'Current page is', PT_CV_TEXTDOMAIN ) ),
|
922 |
+
'goto_page' => apply_filters( PT_CV_PREFIX_ . 'goto_page', __( 'Go to page', PT_CV_TEXTDOMAIN ) ),
|
923 |
)
|
924 |
);
|
925 |
}
|
includes/settings.php
CHANGED
@@ -40,7 +40,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
40 |
// Select term to filter
|
41 |
array(
|
42 |
'label' => array(
|
43 |
-
'text' => __( 'Select terms',
|
44 |
),
|
45 |
'params' => array(
|
46 |
array(
|
@@ -58,7 +58,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
58 |
//Operator
|
59 |
array(
|
60 |
'label' => array(
|
61 |
-
'text' => __( 'Operator',
|
62 |
),
|
63 |
'params' => array(
|
64 |
array(
|
@@ -87,7 +87,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
87 |
// Order By
|
88 |
array(
|
89 |
'label' => array(
|
90 |
-
'text' => __( 'Order by',
|
91 |
),
|
92 |
'params' => array(
|
93 |
array(
|
@@ -95,14 +95,14 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
95 |
'name' => 'orderby',
|
96 |
'options' => PT_CV_Values::post_regular_orderby(),
|
97 |
'std' => '',
|
98 |
-
'desc' => __( 'Select a criteria to sort by',
|
99 |
),
|
100 |
),
|
101 |
),
|
102 |
// Order
|
103 |
array(
|
104 |
'label' => array(
|
105 |
-
'text' => __( 'Order',
|
106 |
),
|
107 |
'params' => array(
|
108 |
array(
|
@@ -133,13 +133,13 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
133 |
// Pagination
|
134 |
array(
|
135 |
'label' => array(
|
136 |
-
'text' => __( 'Pagination',
|
137 |
),
|
138 |
'params' => array(
|
139 |
array(
|
140 |
'type' => 'checkbox',
|
141 |
'name' => 'enable-pagination',
|
142 |
-
'options' => PT_CV_Values::yes_no( 'yes', __( 'Enable',
|
143 |
'std' => '',
|
144 |
),
|
145 |
),
|
@@ -147,7 +147,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
147 |
// Items per page
|
148 |
array(
|
149 |
'label' => array(
|
150 |
-
'text' => __( 'Items per page',
|
151 |
),
|
152 |
'params' => array(
|
153 |
array(
|
@@ -156,7 +156,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
156 |
'std' => '5',
|
157 |
'placeholder' => 'e.g. 5',
|
158 |
'append_text' => '1 → 100',
|
159 |
-
'desc' => __( 'The number of items per page.<br>If value of "Limit" option is not blank (empty), this value should be smaller than "Limit" value',
|
160 |
),
|
161 |
),
|
162 |
'dependence' => array( 'enable-pagination', 'yes' ),
|
@@ -164,7 +164,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
164 |
// Pagination Type
|
165 |
array(
|
166 |
'label' => array(
|
167 |
-
'text' => __( 'Pagination type',
|
168 |
),
|
169 |
'params' => array(
|
170 |
array(
|
@@ -192,7 +192,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
192 |
'params' => array(
|
193 |
array(
|
194 |
'label' => array(
|
195 |
-
'text' => __( 'Pagination style',
|
196 |
),
|
197 |
'params' => array(
|
198 |
array(
|
@@ -227,7 +227,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
227 |
// Open an item in
|
228 |
array(
|
229 |
'label' => array(
|
230 |
-
'text' => __( 'Open item in',
|
231 |
),
|
232 |
'params' => array(
|
233 |
array(
|
@@ -235,7 +235,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
235 |
'name' => $prefix . 'open-in',
|
236 |
'options' => PT_CV_Values::open_in(),
|
237 |
'std' => PT_CV_Functions::array_get_first_key( PT_CV_Values::open_in() ),
|
238 |
-
'desc' => __( 'How to open an item when click on Title, Thumbnail, Read more button',
|
239 |
),
|
240 |
),
|
241 |
),
|
@@ -286,7 +286,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
286 |
'params' => array(
|
287 |
array(
|
288 |
'type' => 'html',
|
289 |
-
'content' => sprintf( '<p class="text-muted" style="margin-top: -15px; margin-bottom: 5px;">→ %s</p>', __( 'Customize display order of above fields by a simple drag-and-drop ?',
|
290 |
),
|
291 |
),
|
292 |
) : '',
|
@@ -295,7 +295,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
295 |
// Thumbnail settings
|
296 |
array(
|
297 |
'label' => array(
|
298 |
-
'text' => __( 'Thumbnail settings',
|
299 |
),
|
300 |
'extra_setting' => array(
|
301 |
'params' => array(
|
@@ -314,7 +314,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
314 |
// Content settings
|
315 |
array(
|
316 |
'label' => array(
|
317 |
-
'text' => __( 'Content settings',
|
318 |
),
|
319 |
'extra_setting' => array(
|
320 |
'params' => array(
|
@@ -326,8 +326,8 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
326 |
'type' => 'radio',
|
327 |
'name' => $prefix . 'content-show',
|
328 |
'options' => array(
|
329 |
-
'full' => __( 'Show Full Content',
|
330 |
-
'excerpt' => __( 'Show Excerpt',
|
331 |
),
|
332 |
'std' => 'excerpt',
|
333 |
),
|
@@ -353,7 +353,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
353 |
// Excerpt length
|
354 |
array(
|
355 |
'label' => array(
|
356 |
-
'text' => __( 'Excerpt settings',
|
357 |
),
|
358 |
'extra_setting' => array(
|
359 |
'params' => array(
|
@@ -367,7 +367,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
367 |
'std' => '20',
|
368 |
'placeholder' => 'e.g. 20',
|
369 |
'append_text' => 'words',
|
370 |
-
'desc' => __( 'Generating excerpt by selecting the first X words of the content',
|
371 |
),
|
372 |
),
|
373 |
),
|
@@ -386,7 +386,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
386 |
array(
|
387 |
'type' => 'checkbox',
|
388 |
'name' => $prefix . 'excerpt-allow_html',
|
389 |
-
'options' => PT_CV_Values::yes_no( 'yes', __( 'Allow HTML tags (a, br, strong, em, strike, i, ul, ol, li) in excerpt',
|
390 |
'std' => '',
|
391 |
),
|
392 |
),
|
@@ -400,7 +400,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
400 |
// Meta fields settings
|
401 |
array(
|
402 |
'label' => array(
|
403 |
-
'text' => __( 'Meta fields settings',
|
404 |
),
|
405 |
'extra_setting' => array(
|
406 |
'params' => array(
|
@@ -472,7 +472,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
472 |
// Thumbnail position
|
473 |
array(
|
474 |
'label' => array(
|
475 |
-
'text' => __( 'Thumbnail position',
|
476 |
),
|
477 |
'extra_setting' => array(
|
478 |
'params' => array(
|
@@ -503,7 +503,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
503 |
array(
|
504 |
'type' => 'checkbox',
|
505 |
'name' => $prefix . 'thumbnail',
|
506 |
-
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Thumbnail',
|
507 |
'std' => 'yes',
|
508 |
),
|
509 |
),
|
@@ -523,7 +523,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
523 |
array(
|
524 |
'type' => 'checkbox',
|
525 |
'name' => $prefix . 'title',
|
526 |
-
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Title',
|
527 |
'std' => 'yes',
|
528 |
),
|
529 |
),
|
@@ -542,7 +542,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
542 |
array(
|
543 |
'type' => 'checkbox',
|
544 |
'name' => $prefix . 'content',
|
545 |
-
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Content',
|
546 |
'std' => 'yes',
|
547 |
),
|
548 |
),
|
@@ -561,7 +561,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
561 |
array(
|
562 |
'type' => 'checkbox',
|
563 |
'name' => $prefix . 'meta-fields',
|
564 |
-
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Meta Fields (Author, Date, Comment...)',
|
565 |
'std' => '',
|
566 |
),
|
567 |
),
|
@@ -586,7 +586,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
586 |
// Size
|
587 |
array(
|
588 |
'label' => array(
|
589 |
-
'text' => __( 'Thumbnail size',
|
590 |
),
|
591 |
'extra_setting' => array(
|
592 |
'params' => array(
|
@@ -629,7 +629,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
629 |
array(
|
630 |
'type' => 'checkbox',
|
631 |
'name' => $prefix . 'date',
|
632 |
-
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Date',
|
633 |
'std' => 'yes',
|
634 |
),
|
635 |
),
|
@@ -648,7 +648,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
648 |
array(
|
649 |
'type' => 'checkbox',
|
650 |
'name' => $prefix . 'author',
|
651 |
-
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Author',
|
652 |
'std' => 'yes',
|
653 |
),
|
654 |
),
|
@@ -667,7 +667,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
667 |
array(
|
668 |
'type' => 'checkbox',
|
669 |
'name' => $prefix . 'taxonomy',
|
670 |
-
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Taxonomies (categories, tags...)',
|
671 |
'std' => 'yes',
|
672 |
),
|
673 |
),
|
@@ -687,7 +687,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
687 |
array(
|
688 |
'type' => 'checkbox',
|
689 |
'name' => $prefix . 'comment',
|
690 |
-
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Comment Count',
|
691 |
'std' => 'yes',
|
692 |
),
|
693 |
),
|
@@ -713,7 +713,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
713 |
// Number of columns
|
714 |
array(
|
715 |
'label' => array(
|
716 |
-
'text' => __( 'Items per row',
|
717 |
),
|
718 |
'params' => array(
|
719 |
array(
|
@@ -721,7 +721,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
721 |
'name' => $prefix . 'number-columns',
|
722 |
'std' => '2',
|
723 |
'append_text' => '1 → 4',
|
724 |
-
'desc' => __( 'The number of items per row of grid',
|
725 |
),
|
726 |
),
|
727 |
'dependence' => array( 'view-type', 'grid' ),
|
@@ -788,7 +788,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
788 |
'params' => array(
|
789 |
array(
|
790 |
'type' => 'html',
|
791 |
-
'content' => "<div class='" . PT_CV_PREFIX . "text'>" . __( 'There is no option',
|
792 |
),
|
793 |
),
|
794 |
);
|
40 |
// Select term to filter
|
41 |
array(
|
42 |
'label' => array(
|
43 |
+
'text' => __( 'Select terms', PT_CV_TEXTDOMAIN ),
|
44 |
),
|
45 |
'params' => array(
|
46 |
array(
|
58 |
//Operator
|
59 |
array(
|
60 |
'label' => array(
|
61 |
+
'text' => __( 'Operator', PT_CV_TEXTDOMAIN ),
|
62 |
),
|
63 |
'params' => array(
|
64 |
array(
|
87 |
// Order By
|
88 |
array(
|
89 |
'label' => array(
|
90 |
+
'text' => __( 'Order by', PT_CV_TEXTDOMAIN ),
|
91 |
),
|
92 |
'params' => array(
|
93 |
array(
|
95 |
'name' => 'orderby',
|
96 |
'options' => PT_CV_Values::post_regular_orderby(),
|
97 |
'std' => '',
|
98 |
+
'desc' => __( 'Select a criteria to sort by', PT_CV_TEXTDOMAIN ),
|
99 |
),
|
100 |
),
|
101 |
),
|
102 |
// Order
|
103 |
array(
|
104 |
'label' => array(
|
105 |
+
'text' => __( 'Order', PT_CV_TEXTDOMAIN ),
|
106 |
),
|
107 |
'params' => array(
|
108 |
array(
|
133 |
// Pagination
|
134 |
array(
|
135 |
'label' => array(
|
136 |
+
'text' => __( 'Pagination', PT_CV_TEXTDOMAIN ),
|
137 |
),
|
138 |
'params' => array(
|
139 |
array(
|
140 |
'type' => 'checkbox',
|
141 |
'name' => 'enable-pagination',
|
142 |
+
'options' => PT_CV_Values::yes_no( 'yes', __( 'Enable', PT_CV_TEXTDOMAIN ) ),
|
143 |
'std' => '',
|
144 |
),
|
145 |
),
|
147 |
// Items per page
|
148 |
array(
|
149 |
'label' => array(
|
150 |
+
'text' => __( 'Items per page', PT_CV_TEXTDOMAIN ),
|
151 |
),
|
152 |
'params' => array(
|
153 |
array(
|
156 |
'std' => '5',
|
157 |
'placeholder' => 'e.g. 5',
|
158 |
'append_text' => '1 → 100',
|
159 |
+
'desc' => __( 'The number of items per page.<br>If value of "Limit" option is not blank (empty), this value should be smaller than "Limit" value', PT_CV_TEXTDOMAIN ),
|
160 |
),
|
161 |
),
|
162 |
'dependence' => array( 'enable-pagination', 'yes' ),
|
164 |
// Pagination Type
|
165 |
array(
|
166 |
'label' => array(
|
167 |
+
'text' => __( 'Pagination type', PT_CV_TEXTDOMAIN ),
|
168 |
),
|
169 |
'params' => array(
|
170 |
array(
|
192 |
'params' => array(
|
193 |
array(
|
194 |
'label' => array(
|
195 |
+
'text' => __( 'Pagination style', PT_CV_TEXTDOMAIN ),
|
196 |
),
|
197 |
'params' => array(
|
198 |
array(
|
227 |
// Open an item in
|
228 |
array(
|
229 |
'label' => array(
|
230 |
+
'text' => __( 'Open item in', PT_CV_TEXTDOMAIN ),
|
231 |
),
|
232 |
'params' => array(
|
233 |
array(
|
235 |
'name' => $prefix . 'open-in',
|
236 |
'options' => PT_CV_Values::open_in(),
|
237 |
'std' => PT_CV_Functions::array_get_first_key( PT_CV_Values::open_in() ),
|
238 |
+
'desc' => __( 'How to open an item when click on Title, Thumbnail, Read more button', PT_CV_TEXTDOMAIN ),
|
239 |
),
|
240 |
),
|
241 |
),
|
286 |
'params' => array(
|
287 |
array(
|
288 |
'type' => 'html',
|
289 |
+
'content' => sprintf( '<p class="text-muted" style="margin-top: -15px; margin-bottom: 5px;">→ %s</p>', __( 'Customize display order of above fields by a simple drag-and-drop ?', PT_CV_TEXTDOMAIN ) . sprintf( ' <a href="%s" target="_blank">%s</a>', esc_url( 'http://www.contentviewspro.com/pricing/?utm_source=client&utm_medium=view' ), __( 'Please upgrade to Pro', PT_CV_TEXTDOMAIN ) ) ),
|
290 |
),
|
291 |
),
|
292 |
) : '',
|
295 |
// Thumbnail settings
|
296 |
array(
|
297 |
'label' => array(
|
298 |
+
'text' => __( 'Thumbnail settings', PT_CV_TEXTDOMAIN ),
|
299 |
),
|
300 |
'extra_setting' => array(
|
301 |
'params' => array(
|
314 |
// Content settings
|
315 |
array(
|
316 |
'label' => array(
|
317 |
+
'text' => __( 'Content settings', PT_CV_TEXTDOMAIN ),
|
318 |
),
|
319 |
'extra_setting' => array(
|
320 |
'params' => array(
|
326 |
'type' => 'radio',
|
327 |
'name' => $prefix . 'content-show',
|
328 |
'options' => array(
|
329 |
+
'full' => __( 'Show Full Content', PT_CV_TEXTDOMAIN ),
|
330 |
+
'excerpt' => __( 'Show Excerpt', PT_CV_TEXTDOMAIN ),
|
331 |
),
|
332 |
'std' => 'excerpt',
|
333 |
),
|
353 |
// Excerpt length
|
354 |
array(
|
355 |
'label' => array(
|
356 |
+
'text' => __( 'Excerpt settings', PT_CV_TEXTDOMAIN ),
|
357 |
),
|
358 |
'extra_setting' => array(
|
359 |
'params' => array(
|
367 |
'std' => '20',
|
368 |
'placeholder' => 'e.g. 20',
|
369 |
'append_text' => 'words',
|
370 |
+
'desc' => __( 'Generating excerpt by selecting the first X words of the content', PT_CV_TEXTDOMAIN ),
|
371 |
),
|
372 |
),
|
373 |
),
|
386 |
array(
|
387 |
'type' => 'checkbox',
|
388 |
'name' => $prefix . 'excerpt-allow_html',
|
389 |
+
'options' => PT_CV_Values::yes_no( 'yes', __( 'Allow HTML tags (a, br, strong, em, strike, i, ul, ol, li) in excerpt', PT_CV_TEXTDOMAIN ) ),
|
390 |
'std' => '',
|
391 |
),
|
392 |
),
|
400 |
// Meta fields settings
|
401 |
array(
|
402 |
'label' => array(
|
403 |
+
'text' => __( 'Meta fields settings', PT_CV_TEXTDOMAIN ),
|
404 |
),
|
405 |
'extra_setting' => array(
|
406 |
'params' => array(
|
472 |
// Thumbnail position
|
473 |
array(
|
474 |
'label' => array(
|
475 |
+
'text' => __( 'Thumbnail position', PT_CV_TEXTDOMAIN ),
|
476 |
),
|
477 |
'extra_setting' => array(
|
478 |
'params' => array(
|
503 |
array(
|
504 |
'type' => 'checkbox',
|
505 |
'name' => $prefix . 'thumbnail',
|
506 |
+
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Thumbnail', PT_CV_TEXTDOMAIN ) ),
|
507 |
'std' => 'yes',
|
508 |
),
|
509 |
),
|
523 |
array(
|
524 |
'type' => 'checkbox',
|
525 |
'name' => $prefix . 'title',
|
526 |
+
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Title', PT_CV_TEXTDOMAIN ) ),
|
527 |
'std' => 'yes',
|
528 |
),
|
529 |
),
|
542 |
array(
|
543 |
'type' => 'checkbox',
|
544 |
'name' => $prefix . 'content',
|
545 |
+
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Content', PT_CV_TEXTDOMAIN ) ),
|
546 |
'std' => 'yes',
|
547 |
),
|
548 |
),
|
561 |
array(
|
562 |
'type' => 'checkbox',
|
563 |
'name' => $prefix . 'meta-fields',
|
564 |
+
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Meta Fields (Author, Date, Comment...)', PT_CV_TEXTDOMAIN ) ),
|
565 |
'std' => '',
|
566 |
),
|
567 |
),
|
586 |
// Size
|
587 |
array(
|
588 |
'label' => array(
|
589 |
+
'text' => __( 'Thumbnail size', PT_CV_TEXTDOMAIN ),
|
590 |
),
|
591 |
'extra_setting' => array(
|
592 |
'params' => array(
|
629 |
array(
|
630 |
'type' => 'checkbox',
|
631 |
'name' => $prefix . 'date',
|
632 |
+
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Date', PT_CV_TEXTDOMAIN ) ),
|
633 |
'std' => 'yes',
|
634 |
),
|
635 |
),
|
648 |
array(
|
649 |
'type' => 'checkbox',
|
650 |
'name' => $prefix . 'author',
|
651 |
+
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Author', PT_CV_TEXTDOMAIN ) ),
|
652 |
'std' => 'yes',
|
653 |
),
|
654 |
),
|
667 |
array(
|
668 |
'type' => 'checkbox',
|
669 |
'name' => $prefix . 'taxonomy',
|
670 |
+
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Taxonomies (categories, tags...)', PT_CV_TEXTDOMAIN ) ),
|
671 |
'std' => 'yes',
|
672 |
),
|
673 |
),
|
687 |
array(
|
688 |
'type' => 'checkbox',
|
689 |
'name' => $prefix . 'comment',
|
690 |
+
'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Comment Count', PT_CV_TEXTDOMAIN ) ),
|
691 |
'std' => 'yes',
|
692 |
),
|
693 |
),
|
713 |
// Number of columns
|
714 |
array(
|
715 |
'label' => array(
|
716 |
+
'text' => __( 'Items per row', PT_CV_TEXTDOMAIN ),
|
717 |
),
|
718 |
'params' => array(
|
719 |
array(
|
721 |
'name' => $prefix . 'number-columns',
|
722 |
'std' => '2',
|
723 |
'append_text' => '1 → 4',
|
724 |
+
'desc' => __( 'The number of items per row of grid', PT_CV_TEXTDOMAIN ),
|
725 |
),
|
726 |
),
|
727 |
'dependence' => array( 'view-type', 'grid' ),
|
788 |
'params' => array(
|
789 |
array(
|
790 |
'type' => 'html',
|
791 |
+
'content' => "<div class='" . PT_CV_PREFIX . "text'>" . __( 'There is no option', PT_CV_TEXTDOMAIN ) . '</div>',
|
792 |
),
|
793 |
),
|
794 |
);
|
includes/values.php
CHANGED
@@ -36,7 +36,7 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
36 |
if ( in_array( $post_type->name, $excludes ) ) {
|
37 |
continue;
|
38 |
}
|
39 |
-
$result[ $post_type->name ] = __( $post_type->labels->singular_name,
|
40 |
}
|
41 |
|
42 |
return $result;
|
@@ -77,7 +77,7 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
77 |
$taxonomies = get_taxonomies( $args, 'objects' );
|
78 |
|
79 |
foreach ( $taxonomies as $taxonomy ) {
|
80 |
-
$result[ $taxonomy->name ] = __( $taxonomy->labels->singular_name,
|
81 |
}
|
82 |
|
83 |
return $result;
|
@@ -90,8 +90,8 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
90 |
*/
|
91 |
static function taxonomy_relation() {
|
92 |
return array(
|
93 |
-
'AND' => __( 'AND',
|
94 |
-
'OR' => __( 'OR',
|
95 |
);
|
96 |
}
|
97 |
|
@@ -101,9 +101,9 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
101 |
*/
|
102 |
static function taxonomy_operators() {
|
103 |
return array(
|
104 |
-
'IN' => __( 'IN',
|
105 |
-
'NOT IN' => __( 'NOT IN',
|
106 |
-
'AND' => __( 'AND',
|
107 |
);
|
108 |
}
|
109 |
|
@@ -141,7 +141,7 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
141 |
$result = $data->$info;
|
142 |
} else {
|
143 |
if ( isset( $data->labels->$info ) ) {
|
144 |
-
$result = __( $data->labels->$info,
|
145 |
}
|
146 |
}
|
147 |
|
@@ -178,8 +178,8 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
178 |
*/
|
179 |
static function yes_no( $key = '', $value = '' ) {
|
180 |
$result = array(
|
181 |
-
'yes' => __( 'Yes',
|
182 |
-
'no' => __( 'No',
|
183 |
);
|
184 |
if ( !empty( $key ) ) {
|
185 |
return array( $key => empty( $value ) ? $result[ $key ] : $value );
|
@@ -195,8 +195,8 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
195 |
*/
|
196 |
static function show_hide() {
|
197 |
return array(
|
198 |
-
'show' => __( 'Show',
|
199 |
-
'hide' => __( 'Hide',
|
200 |
);
|
201 |
}
|
202 |
|
@@ -207,8 +207,8 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
207 |
*/
|
208 |
static function pagination_types() {
|
209 |
$result = array(
|
210 |
-
'ajax' => __( 'Ajax',
|
211 |
-
'normal' => __( 'Normal',
|
212 |
);
|
213 |
|
214 |
$result = apply_filters( PT_CV_PREFIX_ . 'pagination_types', $result );
|
@@ -223,7 +223,7 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
223 |
*/
|
224 |
static function pagination_styles() {
|
225 |
$result = array(
|
226 |
-
'regular' => __( 'Numbered pagination',
|
227 |
);
|
228 |
|
229 |
$result = apply_filters( PT_CV_PREFIX_ . 'pagination_styles', $result );
|
@@ -238,8 +238,8 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
238 |
*/
|
239 |
static function orders() {
|
240 |
return array(
|
241 |
-
'asc' => __( 'ASC',
|
242 |
-
'desc' => __( 'DESC',
|
243 |
);
|
244 |
}
|
245 |
|
@@ -248,14 +248,14 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
248 |
*/
|
249 |
static function post_statuses() {
|
250 |
return array(
|
251 |
-
'publish' => __( 'Publish',
|
252 |
-
'pending' => __( 'Pending',
|
253 |
-
'draft' => __( 'Draft',
|
254 |
-
'auto-draft' => __( 'Auto draft',
|
255 |
-
'future' => __( 'Future',
|
256 |
-
'private' => __( 'Private',
|
257 |
-
'inherit' => __( 'Inherit',
|
258 |
-
'trash' => __( 'Trash',
|
259 |
);
|
260 |
}
|
261 |
|
@@ -267,11 +267,11 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
267 |
static function advanced_settings() {
|
268 |
return apply_filters(
|
269 |
PT_CV_PREFIX_ . 'advanced_settings', array(
|
270 |
-
'taxonomy' => __( 'Taxonomy (Categories, Tags...)',
|
271 |
-
'status' => __( 'Status',
|
272 |
-
'order' => __( 'Order & Orderby',
|
273 |
-
'search' => __( 'Search',
|
274 |
-
'author' => __( 'Author',
|
275 |
)
|
276 |
);
|
277 |
}
|
@@ -285,7 +285,7 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
285 |
$field_name = PT_CV_PREFIX . $name;
|
286 |
$selected = isset( $data[ $field_name ] ) ? $data[ $field_name ] : '';
|
287 |
|
288 |
-
return wp_dropdown_users( array( 'name' => $field_name, 'selected' => $selected, 'class' => 'form-control', 'show_option_none' => __( '— Select —',
|
289 |
}
|
290 |
|
291 |
/**
|
@@ -320,11 +320,11 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
320 |
*/
|
321 |
static function post_regular_orderby() {
|
322 |
$regular_orderby = array(
|
323 |
-
'' => __( '— Select —',
|
324 |
-
'ID' => __( 'ID',
|
325 |
-
'title' => __( 'Title',
|
326 |
-
'date' => __( 'Created date',
|
327 |
-
'modified' => __( 'Modified date',
|
328 |
);
|
329 |
|
330 |
$result = apply_filters( PT_CV_PREFIX_ . 'regular_orderby', $regular_orderby );
|
@@ -340,9 +340,9 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
340 |
static function view_type() {
|
341 |
|
342 |
$view_type = array(
|
343 |
-
'grid' => __( 'Grid',
|
344 |
-
'collapsible' => __( 'Collapsible List',
|
345 |
-
'scrollable' => __( 'Scrollable List',
|
346 |
);
|
347 |
|
348 |
$result = apply_filters( PT_CV_PREFIX_ . 'view_type', $view_type );
|
@@ -381,8 +381,8 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
381 |
static function layout_format() {
|
382 |
|
383 |
$result = array(
|
384 |
-
'1-col' => __( '1 column — All fields inside an output item are shown in one column',
|
385 |
-
'2-col' => __( '2 columns — Show thumbnail on the left/right side of other fields',
|
386 |
);
|
387 |
|
388 |
$result = apply_filters( PT_CV_PREFIX_ . 'layout_format', $result );
|
@@ -396,8 +396,8 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
396 |
static function open_in() {
|
397 |
|
398 |
$open_in = array(
|
399 |
-
'_self' => __( 'Current tab',
|
400 |
-
'_blank' => __( 'New tab',
|
401 |
);
|
402 |
|
403 |
$result = apply_filters( PT_CV_PREFIX_ . 'open_in', $open_in );
|
@@ -445,7 +445,7 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
445 |
}
|
446 |
}
|
447 |
// Add full sizes
|
448 |
-
$result[ 'full' ] = __( 'Original resolution (But resize automatically to fit its container)',
|
449 |
|
450 |
// Sort custom sizes by index (width * height)
|
451 |
krsort( $dimensions_to_sort );
|
@@ -468,10 +468,10 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
468 |
static function tab_position() {
|
469 |
|
470 |
$tab_position = array(
|
471 |
-
'top' => __( 'Top',
|
472 |
-
'left' => __( 'Left',
|
473 |
-
'bottom' => __( 'Bottom',
|
474 |
-
'right' => __( 'Right',
|
475 |
);
|
476 |
|
477 |
$result = apply_filters( PT_CV_PREFIX_ . 'tab_position', $tab_position );
|
@@ -487,8 +487,8 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
|
|
487 |
static function thumbnail_position() {
|
488 |
|
489 |
$thumbnail_position = array(
|
490 |
-
'left' => __( 'Left',
|
491 |
-
'right' => __( 'Right',
|
492 |
);
|
493 |
|
494 |
$result = apply_filters( PT_CV_PREFIX_ . 'thumbnail_position', $thumbnail_position );
|
36 |
if ( in_array( $post_type->name, $excludes ) ) {
|
37 |
continue;
|
38 |
}
|
39 |
+
$result[ $post_type->name ] = __( $post_type->labels->singular_name, PT_CV_TEXTDOMAIN );
|
40 |
}
|
41 |
|
42 |
return $result;
|
77 |
$taxonomies = get_taxonomies( $args, 'objects' );
|
78 |
|
79 |
foreach ( $taxonomies as $taxonomy ) {
|
80 |
+
$result[ $taxonomy->name ] = __( $taxonomy->labels->singular_name, PT_CV_TEXTDOMAIN );
|
81 |
}
|
82 |
|
83 |
return $result;
|
90 |
*/
|
91 |
static function taxonomy_relation() {
|
92 |
return array(
|
93 |
+
'AND' => __( 'AND', PT_CV_TEXTDOMAIN ),
|
94 |
+
'OR' => __( 'OR', PT_CV_TEXTDOMAIN ),
|
95 |
);
|
96 |
}
|
97 |
|
101 |
*/
|
102 |
static function taxonomy_operators() {
|
103 |
return array(
|
104 |
+
'IN' => __( 'IN', PT_CV_TEXTDOMAIN ) . ' — ' . __( 'A post is displayed only if it associated with at least one value in terms list', PT_CV_TEXTDOMAIN ),
|
105 |
+
'NOT IN' => __( 'NOT IN', PT_CV_TEXTDOMAIN ) . ' — ' . __( 'A post is displayed only if it did NOT associated with any values in terms list', PT_CV_TEXTDOMAIN ),
|
106 |
+
'AND' => __( 'AND', PT_CV_TEXTDOMAIN ) . ' — ' . __( 'A post is displayed only if it associated with all values in terms list', PT_CV_TEXTDOMAIN ),
|
107 |
);
|
108 |
}
|
109 |
|
141 |
$result = $data->$info;
|
142 |
} else {
|
143 |
if ( isset( $data->labels->$info ) ) {
|
144 |
+
$result = __( $data->labels->$info, PT_CV_TEXTDOMAIN );
|
145 |
}
|
146 |
}
|
147 |
|
178 |
*/
|
179 |
static function yes_no( $key = '', $value = '' ) {
|
180 |
$result = array(
|
181 |
+
'yes' => __( 'Yes', PT_CV_TEXTDOMAIN ),
|
182 |
+
'no' => __( 'No', PT_CV_TEXTDOMAIN ),
|
183 |
);
|
184 |
if ( !empty( $key ) ) {
|
185 |
return array( $key => empty( $value ) ? $result[ $key ] : $value );
|
195 |
*/
|
196 |
static function show_hide() {
|
197 |
return array(
|
198 |
+
'show' => __( 'Show', PT_CV_TEXTDOMAIN ),
|
199 |
+
'hide' => __( 'Hide', PT_CV_TEXTDOMAIN ),
|
200 |
);
|
201 |
}
|
202 |
|
207 |
*/
|
208 |
static function pagination_types() {
|
209 |
$result = array(
|
210 |
+
'ajax' => __( 'Ajax', PT_CV_TEXTDOMAIN ),
|
211 |
+
'normal' => __( 'Normal', PT_CV_TEXTDOMAIN ),
|
212 |
);
|
213 |
|
214 |
$result = apply_filters( PT_CV_PREFIX_ . 'pagination_types', $result );
|
223 |
*/
|
224 |
static function pagination_styles() {
|
225 |
$result = array(
|
226 |
+
'regular' => __( 'Numbered pagination', PT_CV_TEXTDOMAIN ),
|
227 |
);
|
228 |
|
229 |
$result = apply_filters( PT_CV_PREFIX_ . 'pagination_styles', $result );
|
238 |
*/
|
239 |
static function orders() {
|
240 |
return array(
|
241 |
+
'asc' => __( 'ASC', PT_CV_TEXTDOMAIN ),
|
242 |
+
'desc' => __( 'DESC', PT_CV_TEXTDOMAIN ),
|
243 |
);
|
244 |
}
|
245 |
|
248 |
*/
|
249 |
static function post_statuses() {
|
250 |
return array(
|
251 |
+
'publish' => __( 'Publish', PT_CV_TEXTDOMAIN ),
|
252 |
+
'pending' => __( 'Pending', PT_CV_TEXTDOMAIN ),
|
253 |
+
'draft' => __( 'Draft', PT_CV_TEXTDOMAIN ),
|
254 |
+
'auto-draft' => __( 'Auto draft', PT_CV_TEXTDOMAIN ),
|
255 |
+
'future' => __( 'Future', PT_CV_TEXTDOMAIN ),
|
256 |
+
'private' => __( 'Private', PT_CV_TEXTDOMAIN ),
|
257 |
+
'inherit' => __( 'Inherit', PT_CV_TEXTDOMAIN ),
|
258 |
+
'trash' => __( 'Trash', PT_CV_TEXTDOMAIN ),
|
259 |
);
|
260 |
}
|
261 |
|
267 |
static function advanced_settings() {
|
268 |
return apply_filters(
|
269 |
PT_CV_PREFIX_ . 'advanced_settings', array(
|
270 |
+
'taxonomy' => __( 'Taxonomy (Categories, Tags...)', PT_CV_TEXTDOMAIN ),
|
271 |
+
'status' => __( 'Status', PT_CV_TEXTDOMAIN ),
|
272 |
+
'order' => __( 'Order & Orderby', PT_CV_TEXTDOMAIN ),
|
273 |
+
'search' => __( 'Search', PT_CV_TEXTDOMAIN ),
|
274 |
+
'author' => __( 'Author', PT_CV_TEXTDOMAIN ),
|
275 |
)
|
276 |
);
|
277 |
}
|
285 |
$field_name = PT_CV_PREFIX . $name;
|
286 |
$selected = isset( $data[ $field_name ] ) ? $data[ $field_name ] : '';
|
287 |
|
288 |
+
return wp_dropdown_users( array( 'name' => $field_name, 'selected' => $selected, 'class' => 'form-control', 'show_option_none' => __( '— Select —', PT_CV_TEXTDOMAIN ), 'echo' => false ) );
|
289 |
}
|
290 |
|
291 |
/**
|
320 |
*/
|
321 |
static function post_regular_orderby() {
|
322 |
$regular_orderby = array(
|
323 |
+
'' => __( '— Select —', PT_CV_TEXTDOMAIN ),
|
324 |
+
'ID' => __( 'ID', PT_CV_TEXTDOMAIN ),
|
325 |
+
'title' => __( 'Title', PT_CV_TEXTDOMAIN ),
|
326 |
+
'date' => __( 'Created date', PT_CV_TEXTDOMAIN ),
|
327 |
+
'modified' => __( 'Modified date', PT_CV_TEXTDOMAIN ),
|
328 |
);
|
329 |
|
330 |
$result = apply_filters( PT_CV_PREFIX_ . 'regular_orderby', $regular_orderby );
|
340 |
static function view_type() {
|
341 |
|
342 |
$view_type = array(
|
343 |
+
'grid' => __( 'Grid', PT_CV_TEXTDOMAIN ),
|
344 |
+
'collapsible' => __( 'Collapsible List', PT_CV_TEXTDOMAIN ),
|
345 |
+
'scrollable' => __( 'Scrollable List', PT_CV_TEXTDOMAIN ),
|
346 |
);
|
347 |
|
348 |
$result = apply_filters( PT_CV_PREFIX_ . 'view_type', $view_type );
|
381 |
static function layout_format() {
|
382 |
|
383 |
$result = array(
|
384 |
+
'1-col' => __( '1 column — All fields inside an output item are shown in one column', PT_CV_TEXTDOMAIN ),
|
385 |
+
'2-col' => __( '2 columns — Show thumbnail on the left/right side of other fields', PT_CV_TEXTDOMAIN ),
|
386 |
);
|
387 |
|
388 |
$result = apply_filters( PT_CV_PREFIX_ . 'layout_format', $result );
|
396 |
static function open_in() {
|
397 |
|
398 |
$open_in = array(
|
399 |
+
'_self' => __( 'Current tab', PT_CV_TEXTDOMAIN ),
|
400 |
+
'_blank' => __( 'New tab', PT_CV_TEXTDOMAIN ),
|
401 |
);
|
402 |
|
403 |
$result = apply_filters( PT_CV_PREFIX_ . 'open_in', $open_in );
|
445 |
}
|
446 |
}
|
447 |
// Add full sizes
|
448 |
+
$result[ 'full' ] = __( 'Original resolution (But resize automatically to fit its container)', PT_CV_TEXTDOMAIN );
|
449 |
|
450 |
// Sort custom sizes by index (width * height)
|
451 |
krsort( $dimensions_to_sort );
|
468 |
static function tab_position() {
|
469 |
|
470 |
$tab_position = array(
|
471 |
+
'top' => __( 'Top', PT_CV_TEXTDOMAIN ),
|
472 |
+
'left' => __( 'Left', PT_CV_TEXTDOMAIN ),
|
473 |
+
'bottom' => __( 'Bottom', PT_CV_TEXTDOMAIN ),
|
474 |
+
'right' => __( 'Right', PT_CV_TEXTDOMAIN ),
|
475 |
);
|
476 |
|
477 |
$result = apply_filters( PT_CV_PREFIX_ . 'tab_position', $tab_position );
|
487 |
static function thumbnail_position() {
|
488 |
|
489 |
$thumbnail_position = array(
|
490 |
+
'left' => __( 'Left', PT_CV_TEXTDOMAIN ),
|
491 |
+
'right' => __( 'Right', PT_CV_TEXTDOMAIN ),
|
492 |
);
|
493 |
|
494 |
$result = apply_filters( PT_CV_PREFIX_ . 'thumbnail_position', $thumbnail_position );
|
languages/{content-views.po → content-views-query-and-display-post-page.po}
RENAMED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Content Views\n"
|
4 |
-
"POT-Creation-Date: 2015-05
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: PT Guy <support@contentviewspro.com>\n"
|
8 |
"MIME-Version: 1.0\n"
|
@@ -26,7 +26,7 @@ msgstr ""
|
|
26 |
msgid "Opening a link is prevented in preview box"
|
27 |
msgstr ""
|
28 |
|
29 |
-
#: code/admin/content-views-admin.php:258 code/admin/views/view.php:
|
30 |
msgid "Show Preview"
|
31 |
msgstr ""
|
32 |
|
@@ -38,55 +38,55 @@ msgstr ""
|
|
38 |
msgid "Update Preview"
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: code/admin/content-views-admin.php:
|
42 |
msgid "Content View Settings"
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: code/admin/content-views-admin.php:
|
46 |
msgid "All Content Views"
|
47 |
msgstr ""
|
48 |
|
49 |
-
#: code/admin/content-views-admin.php:
|
50 |
msgid "All Views"
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: code/admin/content-views-admin.php:
|
54 |
msgid "Add New View"
|
55 |
msgstr ""
|
56 |
|
57 |
-
#: code/admin/content-views-admin.php:
|
58 |
msgid "Add New"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: code/admin/content-views-admin.php:
|
62 |
msgid "Settings"
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: code/admin/content-views-admin.php:
|
66 |
msgid "Add View"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: code/admin/content-views-admin.php:
|
70 |
msgid "Edit this item"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: code/admin/content-views-admin.php:
|
74 |
msgid "Edit"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: code/admin/content-views-admin.php:
|
78 |
msgid "Shortcode"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: code/admin/content-views-admin.php:
|
82 |
msgid "Author"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: code/admin/content-views-admin.php:
|
86 |
msgid "Date"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: code/admin/includes/options.php:
|
90 |
msgid "There is no option"
|
91 |
msgstr ""
|
92 |
|
@@ -94,202 +94,202 @@ msgstr ""
|
|
94 |
msgid "Frontend assets"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: code/admin/includes/plugin.php:
|
98 |
msgid "Don't load <b>Bootstrap 3</b> style & script (in frontend of website)"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: code/admin/includes/plugin.php:
|
102 |
msgid ""
|
103 |
-
"Only
|
104 |
"plugins"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: code/admin/views/view.php:
|
108 |
msgid "Edit View"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: code/admin/views/view.php:
|
112 |
msgid "Preview"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: code/admin/views/view.php:
|
116 |
msgid ""
|
117 |
"Click \"Show Preview\" or \"Update Preview\" button to show, \"Hide Preview"
|
118 |
"\" button to hide the output"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: code/admin/views/view.php:
|
122 |
msgid "View title"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: code/admin/views/view.php:
|
126 |
msgid "Enter a name to identify your views easily"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: code/admin/views/view.php:
|
130 |
msgid "Save"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: code/admin/views/view.php:
|
134 |
msgid "Filter Settings"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: code/admin/views/view.php:
|
138 |
msgid "Display Settings"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: code/admin/views/view.php:
|
142 |
msgid "Content type"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: code/admin/views/view.php:
|
146 |
msgid "Filter custom content type (or post type) ?"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: code/admin/views/view.php:
|
150 |
msgid "Please upgrade to Pro"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: code/admin/views/view.php:
|
154 |
msgid "Common filters"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: code/admin/views/view.php:
|
158 |
msgid "In list"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: code/admin/views/view.php:
|
162 |
msgid ""
|
163 |
-
"List of post ids to retrieve (comma-separated values, e.g. 1,2,3)
|
164 |
"is displayed only if its ID is equal to any of the values IN this list"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: code/admin/views/view.php:
|
168 |
msgid "Excludes"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: code/admin/views/view.php:
|
172 |
msgid "List of post ids to exclude (comma-separated values, e.g. 1,2,3)"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: code/admin/views/view.php:
|
176 |
msgid "Parent page"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: code/admin/views/view.php:
|
180 |
msgid "Enter ID of parent page to query child pages"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: code/admin/views/view.php:
|
184 |
msgid "Limit"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: code/admin/views/view.php:
|
188 |
msgid ""
|
189 |
"The number of posts to show. Set empty to show all found posts (which match "
|
190 |
"all filter settings)"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: code/admin/views/view.php:
|
194 |
msgid "Advanced filters"
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: code/admin/views/view.php:
|
198 |
msgid "Taxonomies"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: code/admin/views/view.php:
|
202 |
-
msgid "
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: code/admin/views/view.php:
|
206 |
msgid "Terms"
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: code/admin/views/view.php:
|
210 |
msgid "Relation"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: code/admin/views/view.php:
|
214 |
msgid ""
|
215 |
-
"Select AND to show posts which match ALL settings of selected "
|
216 |
-
"
|
217 |
-
"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: code/admin/views/view.php:
|
221 |
msgid "Order by"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: code/admin/views/view.php:
|
225 |
msgid "Written by"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: code/admin/views/view.php:
|
229 |
msgid "Not written by"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: code/admin/views/view.php:
|
233 |
msgid "Status"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: code/admin/views/view.php:
|
237 |
msgid "Select status of posts"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: code/admin/views/view.php:
|
241 |
msgid "Keyword"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: code/admin/views/view.php:
|
245 |
-
msgid "Enter the keyword to searching for posts"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: code/admin/views/view.php:
|
249 |
-
msgid "View type"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: code/admin/views/view.php:
|
253 |
msgid "View type settings"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: code/admin/views/view.php:
|
257 |
msgid "Layout format"
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: code/admin/views/view.php:
|
261 |
msgid "This is layout format of output for each post"
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: code/admin/views/view.php:
|
265 |
msgid "Fields settings"
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: code/admin/views/view.php:
|
269 |
msgid "Pagination settings"
|
270 |
msgstr ""
|
271 |
|
272 |
-
#: code/admin/views/view.php:
|
273 |
msgid "Other settings"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: code/includes/functions.php:
|
277 |
msgid "View all posts in"
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: code/includes/functions.php:
|
281 |
msgid "(no title)"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: code/includes/functions.php:
|
285 |
msgid "Sorry, your nonce did not verify."
|
286 |
msgstr ""
|
287 |
|
288 |
-
#: code/includes/functions.php:
|
289 |
msgid "Empty settings"
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: code/includes/functions.php:
|
293 |
msgid "No post found"
|
294 |
msgstr ""
|
295 |
|
@@ -301,6 +301,10 @@ msgstr ""
|
|
301 |
msgid "Please set value in : "
|
302 |
msgstr ""
|
303 |
|
|
|
|
|
|
|
|
|
304 |
#: code/includes/hooks.php:80
|
305 |
msgid "Fields display"
|
306 |
msgstr ""
|
@@ -309,63 +313,63 @@ msgstr ""
|
|
309 |
msgid "Items per page"
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: code/includes/hooks.php:97 code/includes/settings.php:
|
313 |
msgid "Items per row"
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: code/includes/html.php:
|
317 |
msgid "Click to toggle"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: code/includes/html.php:
|
321 |
msgid "loading"
|
322 |
msgstr ""
|
323 |
|
324 |
-
#: code/includes/html.php:
|
325 |
msgid "Read More"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: code/includes/html.php:
|
329 |
msgid "in"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: code/includes/html.php:
|
333 |
msgid "Leave a comment"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: code/includes/html.php:
|
337 |
msgid "1 Comment"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: code/includes/html.php:
|
341 |
msgid "% Comments"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: code/includes/html.php:
|
345 |
msgid "by"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: code/includes/html.php:
|
349 |
msgid "Go to first page"
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: code/includes/html.php:
|
353 |
msgid "Go to previous page"
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: code/includes/html.php:
|
357 |
msgid "Go to next page"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: code/includes/html.php:
|
361 |
msgid "Go to last page"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: code/includes/html.php:
|
365 |
msgid "Current page is"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: code/includes/html.php:
|
369 |
msgid "Go to page"
|
370 |
msgstr ""
|
371 |
|
@@ -395,7 +399,7 @@ msgstr ""
|
|
395 |
|
396 |
#: code/includes/settings.php:159
|
397 |
msgid ""
|
398 |
-
"The number of items per page
|
399 |
"(empty), this value should be smaller than \"Limit\" value"
|
400 |
msgstr ""
|
401 |
|
@@ -407,19 +411,19 @@ msgstr ""
|
|
407 |
msgid "Pagination style"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: code/includes/settings.php:
|
411 |
msgid "Open item in"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: code/includes/settings.php:
|
415 |
msgid "How to open an item when click on Title, Thumbnail, Read more button"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: code/includes/settings.php:
|
419 |
msgid "Customize display order of above fields by a simple drag-and-drop ?"
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: code/includes/settings.php:
|
423 |
msgid "Thumbnail settings"
|
424 |
msgstr ""
|
425 |
|
@@ -427,76 +431,71 @@ msgstr ""
|
|
427 |
msgid "Content settings"
|
428 |
msgstr ""
|
429 |
|
430 |
-
#: code/includes/settings.php:
|
431 |
msgid "Show Full Content"
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: code/includes/settings.php:
|
435 |
msgid "Show Excerpt"
|
436 |
msgstr ""
|
437 |
|
438 |
-
#: code/includes/settings.php:
|
439 |
msgid "Excerpt settings"
|
440 |
msgstr ""
|
441 |
|
442 |
-
#: code/includes/settings.php:
|
443 |
msgid "Generating excerpt by selecting the first X words of the content"
|
444 |
msgstr ""
|
445 |
|
446 |
-
#: code/includes/settings.php:
|
447 |
msgid "Allow HTML tags (a, br, strong, em, strike, i, ul, ol, li) in excerpt"
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: code/includes/settings.php:
|
451 |
-
msgid ""
|
452 |
-
"This option can cause broken HTML output. Please be careful when check it"
|
453 |
-
msgstr ""
|
454 |
-
|
455 |
-
#: code/includes/settings.php:398
|
456 |
msgid "Meta fields settings"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: code/includes/settings.php:
|
460 |
msgid "Thumbnail position"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: code/includes/settings.php:
|
464 |
msgid "Show Thumbnail"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: code/includes/settings.php:
|
468 |
msgid "Show Title"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: code/includes/settings.php:
|
472 |
msgid "Show Content"
|
473 |
msgstr ""
|
474 |
|
475 |
-
#: code/includes/settings.php:
|
476 |
msgid "Show Meta Fields (Author, Date, Comment...)"
|
477 |
msgstr ""
|
478 |
|
479 |
-
#: code/includes/settings.php:
|
480 |
msgid "Thumbnail size"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: code/includes/settings.php:
|
484 |
msgid "Show Date"
|
485 |
msgstr ""
|
486 |
|
487 |
-
#: code/includes/settings.php:
|
488 |
msgid "Show Author"
|
489 |
msgstr ""
|
490 |
|
491 |
-
#: code/includes/settings.php:
|
492 |
msgid "Show Taxonomies (categories, tags...)"
|
493 |
msgstr ""
|
494 |
|
495 |
-
#: code/includes/settings.php:
|
496 |
msgid "Show Comment Count"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: code/includes/settings.php:
|
500 |
msgid "The number of items per row of grid"
|
501 |
msgstr ""
|
502 |
|
@@ -681,26 +680,26 @@ msgstr ""
|
|
681 |
msgid "Right"
|
682 |
msgstr ""
|
683 |
|
684 |
-
#: code/public/content-views.php:
|
685 |
msgid "New View"
|
686 |
msgstr ""
|
687 |
|
688 |
-
#: code/public/content-views.php:
|
689 |
msgid "View View"
|
690 |
msgstr ""
|
691 |
|
692 |
-
#: code/public/content-views.php:
|
693 |
msgid "Search Views"
|
694 |
msgstr ""
|
695 |
|
696 |
-
#: code/public/content-views.php:
|
697 |
msgid "Parent Views:"
|
698 |
msgstr ""
|
699 |
|
700 |
-
#: code/public/content-views.php:
|
701 |
msgid "No views found."
|
702 |
msgstr ""
|
703 |
|
704 |
-
#: code/public/content-views.php:
|
705 |
msgid "No views found in Trash."
|
706 |
msgstr ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Content Views\n"
|
4 |
+
"POT-Creation-Date: 2015-10-05 18:05+0700\n"
|
5 |
+
"PO-Revision-Date: 2015-10-06 15:21+0700\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: PT Guy <support@contentviewspro.com>\n"
|
8 |
"MIME-Version: 1.0\n"
|
26 |
msgid "Opening a link is prevented in preview box"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: code/admin/content-views-admin.php:258 code/admin/views/view.php:72
|
30 |
msgid "Show Preview"
|
31 |
msgstr ""
|
32 |
|
38 |
msgid "Update Preview"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: code/admin/content-views-admin.php:303
|
42 |
msgid "Content View Settings"
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: code/admin/content-views-admin.php:307
|
46 |
msgid "All Content Views"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: code/admin/content-views-admin.php:307 code/public/content-views.php:270
|
50 |
msgid "All Views"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: code/admin/content-views-admin.php:311 code/public/content-views.php:266
|
54 |
msgid "Add New View"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: code/admin/content-views-admin.php:311
|
58 |
msgid "Add New"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: code/admin/content-views-admin.php:362 code/admin/includes/options.php:348
|
62 |
msgid "Settings"
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: code/admin/content-views-admin.php:363
|
66 |
msgid "Add View"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: code/admin/content-views-admin.php:397
|
70 |
msgid "Edit this item"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: code/admin/content-views-admin.php:397
|
74 |
msgid "Edit"
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: code/admin/content-views-admin.php:415
|
78 |
msgid "Shortcode"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: code/admin/content-views-admin.php:416 code/includes/values.php:274
|
82 |
msgid "Author"
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: code/admin/content-views-admin.php:417
|
86 |
msgid "Date"
|
87 |
msgstr ""
|
88 |
|
89 |
+
#: code/admin/includes/options.php:276 code/includes/settings.php:791
|
90 |
msgid "There is no option"
|
91 |
msgstr ""
|
92 |
|
94 |
msgid "Frontend assets"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: code/admin/includes/plugin.php:170
|
98 |
msgid "Don't load <b>Bootstrap 3</b> style & script (in frontend of website)"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: code/admin/includes/plugin.php:170
|
102 |
msgid ""
|
103 |
+
"Only tick this option if Bootstrap has been loaded by active theme or other "
|
104 |
"plugins"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: code/admin/views/view.php:39 code/public/content-views.php:268
|
108 |
msgid "Edit View"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: code/admin/views/view.php:55
|
112 |
msgid "Preview"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: code/admin/views/view.php:62
|
116 |
msgid ""
|
117 |
"Click \"Show Preview\" or \"Update Preview\" button to show, \"Hide Preview"
|
118 |
"\" button to hide the output"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: code/admin/views/view.php:96
|
122 |
msgid "View title"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: code/admin/views/view.php:103
|
126 |
msgid "Enter a name to identify your views easily"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: code/admin/views/view.php:113 code/admin/views/view.php:586
|
130 |
msgid "Save"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: code/admin/views/view.php:119 code/includes/hooks.php:52
|
134 |
msgid "Filter Settings"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: code/admin/views/view.php:123 code/includes/hooks.php:53
|
138 |
msgid "Display Settings"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: code/admin/views/view.php:138 code/includes/hooks.php:62
|
142 |
msgid "Content type"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: code/admin/views/view.php:162
|
146 |
msgid "Filter custom content type (or post type) ?"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: code/admin/views/view.php:162 code/includes/settings.php:289
|
150 |
msgid "Please upgrade to Pro"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: code/admin/views/view.php:170
|
154 |
msgid "Common filters"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: code/admin/views/view.php:185
|
158 |
msgid "In list"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: code/admin/views/view.php:192
|
162 |
msgid ""
|
163 |
+
"List of post ids to retrieve (comma-separated values, e.g. 1,2,3).<br>A post "
|
164 |
"is displayed only if its ID is equal to any of the values IN this list"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: code/admin/views/view.php:200
|
168 |
msgid "Excludes"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: code/admin/views/view.php:207
|
172 |
msgid "List of post ids to exclude (comma-separated values, e.g. 1,2,3)"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: code/admin/views/view.php:215
|
176 |
msgid "Parent page"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: code/admin/views/view.php:222
|
180 |
msgid "Enter ID of parent page to query child pages"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: code/admin/views/view.php:231
|
184 |
msgid "Limit"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: code/admin/views/view.php:240
|
188 |
msgid ""
|
189 |
"The number of posts to show. Set empty to show all found posts (which match "
|
190 |
"all filter settings)"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: code/admin/views/view.php:252
|
194 |
msgid "Advanced filters"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: code/admin/views/view.php:307
|
198 |
msgid "Taxonomies"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: code/admin/views/view.php:321
|
202 |
+
msgid "Tick checkbox of taxonomies to filter posts by their terms"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: code/admin/views/view.php:328
|
206 |
msgid "Terms"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: code/admin/views/view.php:349
|
210 |
msgid "Relation"
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: code/admin/views/view.php:358
|
214 |
msgid ""
|
215 |
+
"Select AND to show posts which match ALL settings of selected taxonomies."
|
216 |
+
"<br>Select OR to show posts which match settings of at least one selected "
|
217 |
+
"taxonomy"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: code/admin/views/view.php:368 code/includes/settings.php:90
|
221 |
msgid "Order by"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: code/admin/views/view.php:390
|
225 |
msgid "Written by"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: code/admin/views/view.php:406
|
229 |
msgid "Not written by"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: code/admin/views/view.php:424 code/includes/values.php:271
|
233 |
msgid "Status"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: code/admin/views/view.php:434
|
237 |
msgid "Select status of posts"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: code/admin/views/view.php:443
|
241 |
msgid "Keyword"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: code/admin/views/view.php:450
|
245 |
+
msgid "Enter the keyword to searching for posts."
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: code/admin/views/view.php:473
|
249 |
+
msgid "View type (Layout)"
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: code/admin/views/view.php:487 code/includes/hooks.php:97
|
253 |
msgid "View type settings"
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: code/admin/views/view.php:505 code/includes/hooks.php:75
|
257 |
msgid "Layout format"
|
258 |
msgstr ""
|
259 |
|
260 |
+
#: code/admin/views/view.php:513
|
261 |
msgid "This is layout format of output for each post"
|
262 |
msgstr ""
|
263 |
|
264 |
+
#: code/admin/views/view.php:520 code/includes/hooks.php:80
|
265 |
msgid "Fields settings"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: code/admin/views/view.php:538 code/includes/hooks.php:86
|
269 |
msgid "Pagination settings"
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: code/admin/views/view.php:555
|
273 |
msgid "Other settings"
|
274 |
msgstr ""
|
275 |
|
276 |
+
#: code/includes/functions.php:424
|
277 |
msgid "View all posts in"
|
278 |
msgstr ""
|
279 |
|
280 |
+
#: code/includes/functions.php:483 code/includes/html.php:453
|
281 |
msgid "(no title)"
|
282 |
msgstr ""
|
283 |
|
284 |
+
#: code/includes/functions.php:547
|
285 |
msgid "Sorry, your nonce did not verify."
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: code/includes/functions.php:625
|
289 |
msgid "Empty settings"
|
290 |
msgstr ""
|
291 |
|
292 |
+
#: code/includes/functions.php:823
|
293 |
msgid "No post found"
|
294 |
msgstr ""
|
295 |
|
301 |
msgid "Please set value in : "
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: code/includes/hooks.php:70
|
305 |
+
msgid "View type"
|
306 |
+
msgstr ""
|
307 |
+
|
308 |
#: code/includes/hooks.php:80
|
309 |
msgid "Fields display"
|
310 |
msgstr ""
|
313 |
msgid "Items per page"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: code/includes/hooks.php:97 code/includes/settings.php:716
|
317 |
msgid "Items per row"
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: code/includes/html.php:88
|
321 |
msgid "Click to toggle"
|
322 |
msgstr ""
|
323 |
|
324 |
+
#: code/includes/html.php:127
|
325 |
msgid "loading"
|
326 |
msgstr ""
|
327 |
|
328 |
+
#: code/includes/html.php:502
|
329 |
msgid "Read More"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: code/includes/html.php:674
|
333 |
msgid "in"
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: code/includes/html.php:690
|
337 |
msgid "Leave a comment"
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: code/includes/html.php:690
|
341 |
msgid "1 Comment"
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: code/includes/html.php:690
|
345 |
msgid "% Comments"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: code/includes/html.php:700
|
349 |
msgid "by"
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: code/includes/html.php:917
|
353 |
msgid "Go to first page"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: code/includes/html.php:918
|
357 |
msgid "Go to previous page"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: code/includes/html.php:919
|
361 |
msgid "Go to next page"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: code/includes/html.php:920
|
365 |
msgid "Go to last page"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: code/includes/html.php:921
|
369 |
msgid "Current page is"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: code/includes/html.php:922
|
373 |
msgid "Go to page"
|
374 |
msgstr ""
|
375 |
|
399 |
|
400 |
#: code/includes/settings.php:159
|
401 |
msgid ""
|
402 |
+
"The number of items per page.<br>If value of \"Limit\" option is not blank "
|
403 |
"(empty), this value should be smaller than \"Limit\" value"
|
404 |
msgstr ""
|
405 |
|
411 |
msgid "Pagination style"
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: code/includes/settings.php:230
|
415 |
msgid "Open item in"
|
416 |
msgstr ""
|
417 |
|
418 |
+
#: code/includes/settings.php:238
|
419 |
msgid "How to open an item when click on Title, Thumbnail, Read more button"
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: code/includes/settings.php:289
|
423 |
msgid "Customize display order of above fields by a simple drag-and-drop ?"
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: code/includes/settings.php:298
|
427 |
msgid "Thumbnail settings"
|
428 |
msgstr ""
|
429 |
|
431 |
msgid "Content settings"
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: code/includes/settings.php:329
|
435 |
msgid "Show Full Content"
|
436 |
msgstr ""
|
437 |
|
438 |
+
#: code/includes/settings.php:330
|
439 |
msgid "Show Excerpt"
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: code/includes/settings.php:356
|
443 |
msgid "Excerpt settings"
|
444 |
msgstr ""
|
445 |
|
446 |
+
#: code/includes/settings.php:370
|
447 |
msgid "Generating excerpt by selecting the first X words of the content"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: code/includes/settings.php:389
|
451 |
msgid "Allow HTML tags (a, br, strong, em, strike, i, ul, ol, li) in excerpt"
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: code/includes/settings.php:403
|
|
|
|
|
|
|
|
|
|
|
455 |
msgid "Meta fields settings"
|
456 |
msgstr ""
|
457 |
|
458 |
+
#: code/includes/settings.php:475
|
459 |
msgid "Thumbnail position"
|
460 |
msgstr ""
|
461 |
|
462 |
+
#: code/includes/settings.php:506
|
463 |
msgid "Show Thumbnail"
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: code/includes/settings.php:526
|
467 |
msgid "Show Title"
|
468 |
msgstr ""
|
469 |
|
470 |
+
#: code/includes/settings.php:545
|
471 |
msgid "Show Content"
|
472 |
msgstr ""
|
473 |
|
474 |
+
#: code/includes/settings.php:564
|
475 |
msgid "Show Meta Fields (Author, Date, Comment...)"
|
476 |
msgstr ""
|
477 |
|
478 |
+
#: code/includes/settings.php:589
|
479 |
msgid "Thumbnail size"
|
480 |
msgstr ""
|
481 |
|
482 |
+
#: code/includes/settings.php:632
|
483 |
msgid "Show Date"
|
484 |
msgstr ""
|
485 |
|
486 |
+
#: code/includes/settings.php:651
|
487 |
msgid "Show Author"
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: code/includes/settings.php:670
|
491 |
msgid "Show Taxonomies (categories, tags...)"
|
492 |
msgstr ""
|
493 |
|
494 |
+
#: code/includes/settings.php:690
|
495 |
msgid "Show Comment Count"
|
496 |
msgstr ""
|
497 |
|
498 |
+
#: code/includes/settings.php:724
|
499 |
msgid "The number of items per row of grid"
|
500 |
msgstr ""
|
501 |
|
680 |
msgid "Right"
|
681 |
msgstr ""
|
682 |
|
683 |
+
#: code/public/content-views.php:267
|
684 |
msgid "New View"
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: code/public/content-views.php:269
|
688 |
msgid "View View"
|
689 |
msgstr ""
|
690 |
|
691 |
+
#: code/public/content-views.php:271
|
692 |
msgid "Search Views"
|
693 |
msgstr ""
|
694 |
|
695 |
+
#: code/public/content-views.php:272
|
696 |
msgid "Parent Views:"
|
697 |
msgstr ""
|
698 |
|
699 |
+
#: code/public/content-views.php:273
|
700 |
msgid "No views found."
|
701 |
msgstr ""
|
702 |
|
703 |
+
#: code/public/content-views.php:274
|
704 |
msgid "No views found in Trash."
|
705 |
msgstr ""
|
languages/readme.txt
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
********************************************************
|
2 |
+
|
3 |
+
Content Views I18n
|
4 |
+
============================
|
5 |
+
|
6 |
+
Do not put custom translations here.
|
7 |
+
They will be deleted on Content Views updates.
|
8 |
+
|
9 |
+
Keep custom Content Views translations in one of below directories:
|
10 |
+
- wp-content/languages/content-views/
|
11 |
+
- wp-content/languages/plugins/content-views-query-and-display-post-page/
|
12 |
+
|
13 |
+
You want to translate, help, or improve a translation, please contact us support@contentviewspro.com
|
14 |
+
|
15 |
+
********************************************************
|
public/content-views.php
CHANGED
@@ -239,14 +239,34 @@ class PT_Content_Views {
|
|
239 |
* @since 1.0.0
|
240 |
*/
|
241 |
public function load_plugin_textdomain() {
|
242 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
// WPLANG is no longer needed since 4.0
|
244 |
-
$locale
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
|
246 |
-
// Load mo file from
|
247 |
-
|
248 |
-
|
249 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
}
|
251 |
|
252 |
/**
|
@@ -258,20 +278,20 @@ class PT_Content_Views {
|
|
258 |
* Register custom post type : View
|
259 |
*/
|
260 |
$labels = array(
|
261 |
-
'name' => _x( 'Views', 'post type general name',
|
262 |
-
'singular_name' => _x( 'View', 'post type singular name',
|
263 |
-
'menu_name' => _x( 'Views', 'admin menu',
|
264 |
-
'name_admin_bar' => _x( 'View', 'add new on admin bar',
|
265 |
-
'add_new' => _x( 'Add New', PT_CV_POST_TYPE,
|
266 |
-
'add_new_item' => __( 'Add New View',
|
267 |
-
'new_item' => __( 'New View',
|
268 |
-
'edit_item' => __( 'Edit View',
|
269 |
-
'view_item' => __( 'View View',
|
270 |
-
'all_items' => __( 'All Views',
|
271 |
-
'search_items' => __( 'Search Views',
|
272 |
-
'parent_item_colon' => __( 'Parent Views:',
|
273 |
-
'not_found' => __( 'No views found.',
|
274 |
-
'not_found_in_trash' => __( 'No views found in Trash.',
|
275 |
);
|
276 |
|
277 |
$args = array(
|
239 |
* @since 1.0.0
|
240 |
*/
|
241 |
public function load_plugin_textdomain() {
|
242 |
+
/* In v1.6.8.3, textdomain changed from "content-views" to "content-views-query-and-display-post-page"
|
243 |
+
*
|
244 |
+
* To support existing translation files from before the change, we must look for translation files in several places:
|
245 |
+
*
|
246 |
+
* 1. wp-content/languages/plugins/content-views-query-and-display-post-page (use language packs through translate.wordpress.org)
|
247 |
+
* 2. wp-content/languages/content-views/ (custom folder we have supported since 1.2.4)
|
248 |
+
* 3. wp-content/plugins/content-views-query-and-display-post-page/languages/ (the default language files)
|
249 |
+
*/
|
250 |
+
|
251 |
// WPLANG is no longer needed since 4.0
|
252 |
+
$locale = get_locale();
|
253 |
+
|
254 |
+
// 2. Load mo file from wp-content/languages/content-views/
|
255 |
+
$custom_mofile = WP_LANG_DIR . "/content-views/content-views-{$locale}.mo";
|
256 |
+
|
257 |
+
// 1. Load mo file from wp-content/languages/plugins/content-views-query-and-display-post-page
|
258 |
+
$language_packs_mofile = WP_LANG_DIR . "/plugins/content-views-query-and-display-post-page/content-views-query-and-display-post-page-{$locale}.mo";
|
259 |
|
260 |
+
// 3. Load mo file from /languages directory of this plugin
|
261 |
+
$cv_lang_dir = dirname( plugin_basename( PT_CV_FILE ) ) . '/languages/';
|
262 |
+
|
263 |
+
if ( file_exists( $custom_mofile ) ) {
|
264 |
+
load_textdomain( PT_CV_TEXTDOMAIN, $custom_mofile );
|
265 |
+
} elseif ( file_exists( $language_packs_mofile ) ) {
|
266 |
+
load_textdomain( PT_CV_TEXTDOMAIN, $language_packs_mofile );
|
267 |
+
} else {
|
268 |
+
load_plugin_textdomain( PT_CV_TEXTDOMAIN, FALSE, $cv_lang_dir );
|
269 |
+
}
|
270 |
}
|
271 |
|
272 |
/**
|
278 |
* Register custom post type : View
|
279 |
*/
|
280 |
$labels = array(
|
281 |
+
'name' => _x( 'Views', 'post type general name', PT_CV_TEXTDOMAIN ),
|
282 |
+
'singular_name' => _x( 'View', 'post type singular name', PT_CV_TEXTDOMAIN ),
|
283 |
+
'menu_name' => _x( 'Views', 'admin menu', PT_CV_TEXTDOMAIN ),
|
284 |
+
'name_admin_bar' => _x( 'View', 'add new on admin bar', PT_CV_TEXTDOMAIN ),
|
285 |
+
'add_new' => _x( 'Add New', PT_CV_POST_TYPE, PT_CV_TEXTDOMAIN ),
|
286 |
+
'add_new_item' => __( 'Add New View', PT_CV_TEXTDOMAIN ),
|
287 |
+
'new_item' => __( 'New View', PT_CV_TEXTDOMAIN ),
|
288 |
+
'edit_item' => __( 'Edit View', PT_CV_TEXTDOMAIN ),
|
289 |
+
'view_item' => __( 'View View', PT_CV_TEXTDOMAIN ),
|
290 |
+
'all_items' => __( 'All Views', PT_CV_TEXTDOMAIN ),
|
291 |
+
'search_items' => __( 'Search Views', PT_CV_TEXTDOMAIN ),
|
292 |
+
'parent_item_colon' => __( 'Parent Views:', PT_CV_TEXTDOMAIN ),
|
293 |
+
'not_found' => __( 'No views found.', PT_CV_TEXTDOMAIN ),
|
294 |
+
'not_found_in_trash' => __( 'No views found in Trash.', PT_CV_TEXTDOMAIN ),
|
295 |
);
|
296 |
|
297 |
$args = array(
|