Content Views – Post Grid & List for WordPress - Version 1.7.4

Version Description

  • Bug fixed: "Session start" warning
  • Improvement: Rename & restructure Content Views menus in WordPress dashboard
  • Improvement: Remove/Update appended value (for example: 1 6) which can make misunderstand about limitation of some numerical settings
Download this release

Release Info

Developer PT Guy
Plugin Icon 128x128 Content Views – Post Grid & List for WordPress
Version 1.7.4
Comparing to
See all releases

Code changes from version 1.7.3 to 1.7.4

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, display, recent, posts, recent post, 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.7.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -101,15 +101,15 @@ With [Content Views Pro](http://www.contentviewspro.com/?utm_source=wordpress&ut
101
 
102
  = How can I start? =
103
 
104
- In left menu of your Admin dashboard, click 'Content View Settings > Add View'
105
 
106
  = What is 'View'? =
107
 
108
- 'View' is a custom post type which Content Views uses to store all settings to query & display your posts
109
 
110
- = How can I see all my Views? =
111
 
112
- In left menu of your Admin dashboard, click 'Content View Settings > All Views'
113
 
114
  = How can I edit a View? =
115
 
@@ -132,20 +132,7 @@ Otherwise, if you are choosing "Your latest posts" for Front page, you should ad
132
  Please add this code to file **functions.php** of your theme
133
  `
134
  // CVPro - Fix Session error
135
- add_action( 'pt_cv_session_start', 'my_session_start' );
136
-
137
- function my_session_start() {
138
- // Get default path to save session
139
- $session_save_path = ini_get( 'session.save_path' );
140
- if ( empty( $session_save_path ) ) {
141
- $session_save_path = "/tmp";
142
- session_save_path( $session_save_path );
143
- }
144
- // Create it if not exist
145
- if ( !file_exists( $session_save_path ) ) {
146
- mkdir( $session_save_path, 0755, true );
147
- }
148
- }
149
  `
150
 
151
 
@@ -163,6 +150,11 @@ function my_session_start() {
163
 
164
  == Changelog ==
165
 
 
 
 
 
 
166
  = 1.7.3 =
167
  * Bug fixed: Empty date caused by custom hook to WordPress "get_the_date" filter (of another plugin/active theme)
168
  * Bug fixed: Different output between preview and front-end when excludes some posts (caused by Paid Membership Pro plugin)
4
  Tags: post, display, recent, posts, recent post, 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.7.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
101
 
102
  = How can I start? =
103
 
104
+ In WordPress dashboard menu, click Content Views
105
 
106
  = What is 'View'? =
107
 
108
+ 'View' is a custom post type which Content Views plugin uses to store all settings to query & display your posts
109
 
110
+ = How can I see all Views? =
111
 
112
+ In WordPress dashboard menu, click Content Views > All Views
113
 
114
  = How can I edit a View? =
115
 
132
  Please add this code to file **functions.php** of your theme
133
  `
134
  // CVPro - Fix Session error
135
+ add_filter( 'pt_cv_start_session', '__return_false' );
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  `
137
 
138
 
150
 
151
  == Changelog ==
152
 
153
+ = 1.7.4 =
154
+ * Bug fixed: "Session start" warning
155
+ * Improvement: Rename & restructure Content Views menus in WordPress dashboard
156
+ * Improvement: Remove/Update appended value (for example: 1 → 6) which can make misunderstand about limitation of some numerical settings
157
+
158
  = 1.7.3 =
159
  * Bug fixed: Empty date caused by custom hook to WordPress "get_the_date" filter (of another plugin/active theme)
160
  * Bug fixed: Different output between preview and front-end when excludes some posts (caused by Paid Membership Pro plugin)
admin/assets/css/menu.css CHANGED
@@ -9,6 +9,6 @@
9
  */
10
 
11
  #adminmenu #toplevel_page_content-views .menu-icon-generic div.wp-menu-image:before {
12
- background: url(../images/icon.png) no-repeat 0 14px;
13
  content: '' !important;
14
  }
9
  */
10
 
11
  #adminmenu #toplevel_page_content-views .menu-icon-generic div.wp-menu-image:before {
12
+ background: url(../images/icon.png) no-repeat 0 7px;
13
  content: '' !important;
14
  }
admin/content-views-admin.php CHANGED
@@ -300,7 +300,7 @@ 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', 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(
@@ -310,6 +310,18 @@ class PT_Content_Views_Admin {
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
 
315
  /**
@@ -336,13 +348,6 @@ class PT_Content_Views_Admin {
336
  include_once( 'views/admin.php' );
337
  }
338
 
339
- /**
340
- * List all Views page
341
- */
342
- public static function display_sub_page_list() {
343
- include_once( 'views/list.php' );
344
- }
345
-
346
  /**
347
  * Add/Edit View page
348
  */
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 Views Settings', PT_CV_TEXTDOMAIN ), __( 'Content Views', 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(
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
+ $this->plugin_sub_screen_hook_suffix[] = add_submenu_page(
315
+ $this->plugin_slug, __( 'Content Views Settings', PT_CV_TEXTDOMAIN ), __( 'Settings', PT_CV_TEXTDOMAIN ), $user_role, $this->plugin_slug, array( $this, 'display_plugin_admin_page' )
316
+ );
317
+
318
+ global $submenu;
319
+ // Modify URL of "All Views"
320
+ if ( !empty( $submenu[ 'content-views' ][ 1 ][ 2 ] ) ) {
321
+ $submenu[ 'content-views' ][ 1 ][ 2 ] = 'edit.php?post_type=pt_view';
322
+ }
323
+ // Remove first submenu which is similar to parent menu
324
+ unset( $submenu[ 'content-views' ][ 0 ] );
325
  }
326
 
327
  /**
348
  include_once( 'views/admin.php' );
349
  }
350
 
 
 
 
 
 
 
 
351
  /**
352
  * Add/Edit View page
353
  */
admin/views/list.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * List all Content Views
5
- *
6
- * @package PT_Content_Views_Admin
7
- * @author PT Guy <palaceofthemes@gmail.com>
8
- * @license GPL-2.0+
9
- * @link http://www.contentviewspro.com/
10
- * @copyright 2014 PT Guy
11
- */
12
- // Redirect to edit.php page of Content Views post type
13
- wp_redirect( admin_url( 'edit.php?post_type=' . PT_CV_POST_TYPE ) );
14
- exit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/views/view.php CHANGED
@@ -223,17 +223,16 @@ PT_CV_Functions::view_submit();
223
  ),
224
  'params' => array(
225
  array(
226
- 'type' => 'number',
227
- 'name' => 'limit',
228
- 'std' => '10',
229
- 'min' => '1',
230
- 'append_text' => '1 &rarr; 999',
231
- 'desc' => __( 'The number of posts to show. Set empty to show all found posts (which match all filter settings)', PT_CV_TEXTDOMAIN ),
232
  ),
233
  ),
234
  ),
235
  // Upgrade to Pro: Offset
236
- apply_filters( PT_CV_PREFIX_ . 'after_limit_option', PT_CV_Settings::get_cvpro( __( 'Skip initial post(s)?', PT_CV_TEXTDOMAIN ), 12 ) ),
237
  ),
238
  ),
239
  ),
@@ -314,6 +313,8 @@ PT_CV_Functions::view_submit();
314
  ),
315
  ),
316
  ),
 
 
317
  // Terms list
318
  array(
319
  'label' => array(
223
  ),
224
  'params' => array(
225
  array(
226
+ 'type' => 'number',
227
+ 'name' => 'limit',
228
+ 'std' => '10',
229
+ 'min' => '1',
230
+ 'desc' => __( 'The number of posts to show. Set empty to show all found posts (which match all filter settings)', PT_CV_TEXTDOMAIN ),
 
231
  ),
232
  ),
233
  ),
234
  // Upgrade to Pro: Offset
235
+ apply_filters( PT_CV_PREFIX_ . 'after_limit_option', PT_CV_Settings::get_cvpro( __( 'Skip some posts ?', PT_CV_TEXTDOMAIN ), 12 ) ),
236
  ),
237
  ),
238
  ),
313
  ),
314
  ),
315
  ),
316
+ // Upgrade to Pro: Custom taxonomy
317
+ !get_option( 'pt_cv_version_pro' ) ? PT_CV_Settings::get_cvpro( __( 'Filter by custom taxonomies ?', PT_CV_TEXTDOMAIN ), 10 ) : '',
318
  // Terms list
319
  array(
320
  'label' => array(
content-views.php CHANGED
@@ -11,7 +11,7 @@
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.7.3
15
  * Author: PT Guy
16
  * Author URI: http://profiles.wordpress.org/pt-guy
17
  * Text Domain: content-views-query-and-display-post-page
@@ -27,7 +27,7 @@ if ( !defined( 'WPINC' ) ) {
27
  /*
28
  * Define Constant
29
  */
30
- define( 'PT_CV_VERSION', '1.7.3' );
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.7.4
15
  * Author: PT Guy
16
  * Author URI: http://profiles.wordpress.org/pt-guy
17
  * Text Domain: content-views-query-and-display-post-page
27
  /*
28
  * Define Constant
29
  */
30
+ define( 'PT_CV_VERSION', '1.7.4' );
31
  define( 'PT_CV_FILE', __FILE__ );
32
  $pt_cv_path = plugin_dir_path( __FILE__ );
33
  include_once( $pt_cv_path . 'includes/defines.php' );
includes/functions.php CHANGED
@@ -326,7 +326,11 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
326
  * @param array $array_to_get Array to get values of wanted setting
327
  * @param mixed|null $assign The value to assign if setting is not found
328
  */
329
- static function setting_value( $field, $array_to_get, $assign = NULL ) {
 
 
 
 
330
  return isset( $array_to_get[ $field ] ) ? $array_to_get[ $field ] : $assign;
331
  }
332
 
326
  * @param array $array_to_get Array to get values of wanted setting
327
  * @param mixed|null $assign The value to assign if setting is not found
328
  */
329
+ static function setting_value( $field, $array_to_get = NULL, $assign = NULL ) {
330
+ if ( empty( $array_to_get ) ) {
331
+ $array_to_get = PT_CV_Functions::get_global_variable( 'view_settings' );
332
+ }
333
+
334
  return isset( $array_to_get[ $field ] ) ? $array_to_get[ $field ] : $assign;
335
  }
336
 
includes/settings.php CHANGED
@@ -144,20 +144,24 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
144
  ),
145
  // Items per page
146
  array(
147
- 'label' => array(
148
  'text' => __( 'Items per page', PT_CV_TEXTDOMAIN ),
149
  ),
150
- 'params' => array(
 
 
 
 
 
151
  array(
152
  'type' => 'number',
153
  'name' => $prefix . 'items-per-page',
154
  'std' => '5',
155
  'placeholder' => 'e.g. 5',
156
- 'append_text' => '1 &rarr; 100',
157
  'desc' => __( 'The number of items per page.<br>If value of <code>Limit</code> setting is not blank (empty), this value should be smaller than <code>Limit</code> value', PT_CV_TEXTDOMAIN ),
158
  ),
159
  ),
160
- 'dependence' => array( 'enable-pagination', 'yes' ),
161
  ),
162
  // Pagination Type
163
  array(
@@ -272,7 +276,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
272
  ),
273
  ),
274
  // Upgrade to Pro: Drag & Drop
275
- !get_option( 'pt_cv_version_pro' ) ? PT_CV_Settings::get_cvpro( __( 'Display Title above Thumbnail?', PT_CV_TEXTDOMAIN ), 12, 'margin-top: -15px; margin-bottom: 5px;' ) : '',
276
  // Title settings
277
  apply_filters( PT_CV_PREFIX_ . 'settings_title_display', array(), $prefix, $prefix2 ),
278
  // Thumbnail settings
@@ -355,7 +359,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
355
  ),
356
  ),
357
  // Upgrade to Pro: Manual excerpt
358
- !get_option( 'pt_cv_version_pro' ) ? PT_CV_Settings::get_cvpro( __( 'Use manual excerpt?', PT_CV_TEXTDOMAIN ), 9 ) : '',
359
  // Allow HTML tags
360
  array(
361
  'label' => array(
@@ -705,7 +709,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
705
  'type' => 'number',
706
  'name' => $prefix . 'number-columns',
707
  'std' => '2',
708
- 'append_text' => '1 &rarr; 4',
709
  'desc' => __( 'The number of columns in layout', PT_CV_TEXTDOMAIN ),
710
  ),
711
  ),
144
  ),
145
  // Items per page
146
  array(
147
+ 'label' => array(
148
  'text' => __( 'Items per page', PT_CV_TEXTDOMAIN ),
149
  ),
150
+ 'extra_setting' => array(
151
+ 'params' => array(
152
+ 'wrap-class' => PT_CV_PREFIX . 'w200',
153
+ ),
154
+ ),
155
+ 'params' => array(
156
  array(
157
  'type' => 'number',
158
  'name' => $prefix . 'items-per-page',
159
  'std' => '5',
160
  'placeholder' => 'e.g. 5',
 
161
  'desc' => __( 'The number of items per page.<br>If value of <code>Limit</code> setting is not blank (empty), this value should be smaller than <code>Limit</code> value', PT_CV_TEXTDOMAIN ),
162
  ),
163
  ),
164
+ 'dependence' => array( 'enable-pagination', 'yes' ),
165
  ),
166
  // Pagination Type
167
  array(
276
  ),
277
  ),
278
  // Upgrade to Pro: Drag & Drop
279
+ !get_option( 'pt_cv_version_pro' ) ? PT_CV_Settings::get_cvpro( __( 'Display Title above Thumbnail ?', PT_CV_TEXTDOMAIN ), 12, 'margin-top: -15px; margin-bottom: 5px;' ) : '',
280
  // Title settings
281
  apply_filters( PT_CV_PREFIX_ . 'settings_title_display', array(), $prefix, $prefix2 ),
282
  // Thumbnail settings
359
  ),
360
  ),
361
  // Upgrade to Pro: Manual excerpt
362
+ !get_option( 'pt_cv_version_pro' ) ? PT_CV_Settings::get_cvpro( __( 'Use manual excerpt, change "Read More" text ?', PT_CV_TEXTDOMAIN ), 9 ) : '',
363
  // Allow HTML tags
364
  array(
365
  'label' => array(
709
  'type' => 'number',
710
  'name' => $prefix . 'number-columns',
711
  'std' => '2',
712
+ 'append_text' => '1 &rarr; 12',
713
  'desc' => __( 'The number of columns in layout', PT_CV_TEXTDOMAIN ),
714
  ),
715
  ),
includes/values.php CHANGED
@@ -239,8 +239,8 @@ if ( !class_exists( 'PT_CV_Values' ) ) {
239
  */
240
  static function orders() {
241
  return array(
242
- 'asc' => __( 'ASC', PT_CV_TEXTDOMAIN ),
243
- 'desc' => __( 'DESC', PT_CV_TEXTDOMAIN ),
244
  );
245
  }
246
 
239
  */
240
  static function orders() {
241
  return array(
242
+ 'asc' => __( 'Ascending', PT_CV_TEXTDOMAIN ),
243
+ 'desc' => __( 'Descending', PT_CV_TEXTDOMAIN ),
244
  );
245
  }
246
 
languages/content-views-query-and-display-post-page.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Content Views\n"
4
- "POT-Creation-Date: 2015-11-17 23:10+0700\n"
5
- "PO-Revision-Date: 2015-11-17 23:10+0700\n"
6
  "Last-Translator: \n"
7
  "Language-Team: PT Guy <support@contentviewspro.com>\n"
8
  "MIME-Version: 1.0\n"
@@ -39,7 +39,12 @@ 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
@@ -58,35 +63,36 @@ msgstr ""
58
  msgid "Add New"
59
  msgstr ""
60
 
61
- #: code/admin/content-views-admin.php:362 code/admin/includes/options.php:345
 
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:275
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:275 code/includes/settings.php:776
90
  msgid "There is no option"
91
  msgstr ""
92
 
@@ -105,7 +111,7 @@ msgid ""
105
  msgstr ""
106
 
107
  #: code/admin/includes/templates/settings-section-one.php:8
108
- #: code/includes/settings.php:789
109
  msgid "Get CVPro now!"
110
  msgstr ""
111
 
@@ -131,19 +137,19 @@ msgstr ""
131
  msgid "Enter a name to identify your views easily"
132
  msgstr ""
133
 
134
- #: code/admin/views/view.php:119 code/admin/views/view.php:577
135
  msgid "Save"
136
  msgstr ""
137
 
138
- #: code/admin/views/view.php:125 code/includes/hooks.php:52
139
  msgid "Filter Settings"
140
  msgstr ""
141
 
142
- #: code/admin/views/view.php:129 code/includes/hooks.php:53
143
  msgid "Display Settings"
144
  msgstr ""
145
 
146
- #: code/admin/views/view.php:144 code/includes/hooks.php:62
147
  msgid "Content type"
148
  msgstr ""
149
 
@@ -156,19 +162,19 @@ msgid "Common filters"
156
  msgstr ""
157
 
158
  #: code/admin/views/view.php:176
159
- msgid "In list"
160
  msgstr ""
161
 
162
  #: code/admin/views/view.php:183
163
- msgid "List of post ids to include (comma-separated values, e.g. 1,2,3)"
164
  msgstr ""
165
 
166
  #: code/admin/views/view.php:191
167
- msgid "Excludes"
168
  msgstr ""
169
 
170
  #: code/admin/views/view.php:198
171
- msgid "List of post ids to exclude (comma-separated values, e.g. 1,2,3)"
172
  msgstr ""
173
 
174
  #: code/admin/views/view.php:206
@@ -183,140 +189,144 @@ msgstr ""
183
  msgid "Limit"
184
  msgstr ""
185
 
186
- #: code/admin/views/view.php:231
187
  msgid ""
188
  "The number of posts to show. Set empty to show all found posts (which match "
189
  "all filter settings)"
190
  msgstr ""
191
 
192
- #: code/admin/views/view.php:236
193
- msgid "Skip initial post(s)?"
194
  msgstr ""
195
 
196
- #: code/admin/views/view.php:244
197
  msgid "Advanced filters"
198
  msgstr ""
199
 
200
- #: code/admin/views/view.php:299
201
  msgid "Taxonomies"
202
  msgstr ""
203
 
204
- #: code/admin/views/view.php:313
205
  msgid "Tick checkbox of taxonomies to filter posts by their terms"
206
  msgstr ""
207
 
208
- #: code/admin/views/view.php:320
 
 
 
 
209
  msgid "Terms"
210
  msgstr ""
211
 
212
- #: code/admin/views/view.php:341
213
  msgid "Relation"
214
  msgstr ""
215
 
216
- #: code/admin/views/view.php:350
217
  msgid ""
218
  "Select AND to show posts which match ALL settings of selected taxonomies."
219
  "<br>Select OR to show posts which match settings of at least one selected "
220
  "taxonomy"
221
  msgstr ""
222
 
223
- #: code/admin/views/view.php:360 code/includes/settings.php:88
224
  msgid "Order by"
225
  msgstr ""
226
 
227
- #: code/admin/views/view.php:382
228
  msgid "Written by"
229
  msgstr ""
230
 
231
- #: code/admin/views/view.php:398
232
  msgid "Not written by"
233
  msgstr ""
234
 
235
- #: code/admin/views/view.php:416 code/includes/values.php:272
236
  msgid "Status"
237
  msgstr ""
238
 
239
- #: code/admin/views/view.php:426
240
  msgid "Select status of posts"
241
  msgstr ""
242
 
243
- #: code/admin/views/view.php:435
244
  msgid "Keyword"
245
  msgstr ""
246
 
247
- #: code/admin/views/view.php:442
248
  msgid "Enter the keyword to searching for posts."
249
  msgstr ""
250
 
251
- #: code/admin/views/view.php:465
252
  msgid "View type (Layout)"
253
  msgstr ""
254
 
255
- #: code/admin/views/view.php:479 code/includes/hooks.php:97
256
  msgid "View type settings"
257
  msgstr ""
258
 
259
- #: code/admin/views/view.php:496 code/includes/hooks.php:75
260
  msgid "Layout format"
261
  msgstr ""
262
 
263
- #: code/admin/views/view.php:504
264
  msgid "This is layout format of output for each post"
265
  msgstr ""
266
 
267
- #: code/admin/views/view.php:511 code/includes/hooks.php:80
268
  msgid "Fields settings"
269
  msgstr ""
270
 
271
- #: code/admin/views/view.php:529 code/includes/hooks.php:86
272
  msgid "Pagination settings"
273
  msgstr ""
274
 
275
- #: code/admin/views/view.php:546
276
  msgid "Other settings"
277
  msgstr ""
278
 
279
- #: code/includes/functions.php:428
280
  msgid "View all posts in"
281
  msgstr ""
282
 
283
- #: code/includes/functions.php:489 code/includes/html.php:439
284
  msgid "(no title)"
285
  msgstr ""
286
 
287
- #: code/includes/functions.php:553
288
  msgid "Sorry, your nonce did not verify."
289
  msgstr ""
290
 
291
- #: code/includes/functions.php:631
292
  msgid "Empty settings"
293
  msgstr ""
294
 
295
- #: code/includes/functions.php:835
296
  msgid "No post found"
297
  msgstr ""
298
 
299
- #: code/includes/hooks.php:48
300
  msgid "Please select an option in : "
301
  msgstr ""
302
 
303
- #: code/includes/hooks.php:49
304
  msgid "Please set value in : "
305
  msgstr ""
306
 
307
- #: code/includes/hooks.php:70
308
  msgid "View type"
309
  msgstr ""
310
 
311
- #: code/includes/hooks.php:80
312
  msgid "Fields display"
313
  msgstr ""
314
 
315
- #: code/includes/hooks.php:86 code/includes/settings.php:148
316
  msgid "Items per page"
317
  msgstr ""
318
 
319
- #: code/includes/hooks.php:97 code/includes/settings.php:701
320
  msgid "Items per row"
321
  msgstr ""
322
 
@@ -328,51 +338,51 @@ msgstr ""
328
  msgid "loading"
329
  msgstr ""
330
 
331
- #: code/includes/html.php:488
332
  msgid "Read More"
333
  msgstr ""
334
 
335
- #: code/includes/html.php:663
336
  msgid "in"
337
  msgstr ""
338
 
339
- #: code/includes/html.php:679
340
- msgid "Leave a comment"
341
  msgstr ""
342
 
343
- #: code/includes/html.php:679
344
  msgid "1 Comment"
345
  msgstr ""
346
 
347
- #: code/includes/html.php:679
348
  msgid "% Comments"
349
  msgstr ""
350
 
351
- #: code/includes/html.php:689
352
  msgid "by"
353
  msgstr ""
354
 
355
- #: code/includes/html.php:872
356
  msgid "Go to first page"
357
  msgstr ""
358
 
359
- #: code/includes/html.php:873
360
  msgid "Go to previous page"
361
  msgstr ""
362
 
363
- #: code/includes/html.php:874
364
  msgid "Go to next page"
365
  msgstr ""
366
 
367
- #: code/includes/html.php:875
368
  msgid "Go to last page"
369
  msgstr ""
370
 
371
- #: code/includes/html.php:876
372
  msgid "Current page is"
373
  msgstr ""
374
 
375
- #: code/includes/html.php:877
376
  msgid "Go to page"
377
  msgstr ""
378
 
@@ -400,109 +410,109 @@ msgstr ""
400
  msgid "Enable"
401
  msgstr ""
402
 
403
- #: code/includes/settings.php:157
404
  msgid ""
405
  "The number of items per page.<br>If value of <code>Limit</code> setting is "
406
  "not blank (empty), this value should be smaller than <code>Limit</code> value"
407
  msgstr ""
408
 
409
- #: code/includes/settings.php:165
410
  msgid "Pagination type"
411
  msgstr ""
412
 
413
- #: code/includes/settings.php:193
414
  msgid "Pagination style"
415
  msgstr ""
416
 
417
- #: code/includes/settings.php:228
418
  msgid "Open item in"
419
  msgstr ""
420
 
421
- #: code/includes/settings.php:236
422
  msgid "How to open an item when click on Title, Thumbnail, Read more button"
423
  msgstr ""
424
 
425
- #: code/includes/settings.php:275
426
- msgid "Display Title above Thumbnail?"
427
  msgstr ""
428
 
429
- #: code/includes/settings.php:281
430
  msgid "Thumbnail settings"
431
  msgstr ""
432
 
433
- #: code/includes/settings.php:300
434
  msgid "Content settings"
435
  msgstr ""
436
 
437
- #: code/includes/settings.php:312
438
  msgid "Show Full Content"
439
  msgstr ""
440
 
441
- #: code/includes/settings.php:313
442
  msgid "Show Excerpt"
443
  msgstr ""
444
 
445
- #: code/includes/settings.php:339
446
  msgid "Excerpt settings"
447
  msgstr ""
448
 
449
- #: code/includes/settings.php:353
450
  msgid "Generating excerpt by selecting the first X words of the content"
451
  msgstr ""
452
 
453
- #: code/includes/settings.php:358
454
- msgid "Use manual excerpt?"
455
  msgstr ""
456
 
457
- #: code/includes/settings.php:374
458
  msgid "Allow HTML tags (a, br, strong, em, strike, i, ul, ol, li) in excerpt"
459
  msgstr ""
460
 
461
- #: code/includes/settings.php:388
462
  msgid "Meta fields settings"
463
  msgstr ""
464
 
465
- #: code/includes/settings.php:460
466
  msgid "Thumbnail position"
467
  msgstr ""
468
 
469
- #: code/includes/settings.php:491
470
  msgid "Show Thumbnail"
471
  msgstr ""
472
 
473
- #: code/includes/settings.php:511
474
  msgid "Show Title"
475
  msgstr ""
476
 
477
- #: code/includes/settings.php:530
478
  msgid "Show Content"
479
  msgstr ""
480
 
481
- #: code/includes/settings.php:549
482
  msgid "Show Meta Fields (Author, Date, Comment...)"
483
  msgstr ""
484
 
485
- #: code/includes/settings.php:574
486
  msgid "Thumbnail size"
487
  msgstr ""
488
 
489
- #: code/includes/settings.php:617
490
  msgid "Show Date"
491
  msgstr ""
492
 
493
- #: code/includes/settings.php:636
494
  msgid "Show Author"
495
  msgstr ""
496
 
497
- #: code/includes/settings.php:655
498
  msgid "Show Taxonomies (categories, tags...)"
499
  msgstr ""
500
 
501
- #: code/includes/settings.php:675
502
  msgid "Show Comment Count"
503
  msgstr ""
504
 
505
- #: code/includes/settings.php:709
506
  msgid "The number of columns in layout"
507
  msgstr ""
508
 
@@ -567,11 +577,11 @@ msgid "Numbered pagination"
567
  msgstr ""
568
 
569
  #: code/includes/values.php:242
570
- msgid "ASC"
571
  msgstr ""
572
 
573
  #: code/includes/values.php:243
574
- msgid "DESC"
575
  msgstr ""
576
 
577
  #: code/includes/values.php:252
@@ -651,8 +661,7 @@ msgid "Scrollable List"
651
  msgstr ""
652
 
653
  #: code/includes/values.php:385
654
- msgid ""
655
- "1 column &#8212; Show all fields in one column"
656
  msgstr ""
657
 
658
  #: code/includes/values.php:386
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Content Views\n"
4
+ "POT-Creation-Date: 2015-12-05 00:13+0700\n"
5
+ "PO-Revision-Date: 2015-12-05 00:13+0700\n"
6
  "Last-Translator: \n"
7
  "Language-Team: PT Guy <support@contentviewspro.com>\n"
8
  "MIME-Version: 1.0\n"
39
  msgstr ""
40
 
41
  #: code/admin/content-views-admin.php:303
42
+ #: code/admin/content-views-admin.php:315
43
+ msgid "Content Views Settings"
44
+ msgstr ""
45
+
46
+ #: code/admin/content-views-admin.php:303
47
+ msgid "Content Views"
48
  msgstr ""
49
 
50
  #: code/admin/content-views-admin.php:307
63
  msgid "Add New"
64
  msgstr ""
65
 
66
+ #: code/admin/content-views-admin.php:315
67
+ #: code/admin/content-views-admin.php:367 code/admin/includes/options.php:349
68
  msgid "Settings"
69
  msgstr ""
70
 
71
+ #: code/admin/content-views-admin.php:368
72
  msgid "Add View"
73
  msgstr ""
74
 
75
+ #: code/admin/content-views-admin.php:402
76
  msgid "Edit this item"
77
  msgstr ""
78
 
79
+ #: code/admin/content-views-admin.php:402
80
  msgid "Edit"
81
  msgstr ""
82
 
83
+ #: code/admin/content-views-admin.php:420
84
  msgid "Shortcode"
85
  msgstr ""
86
 
87
+ #: code/admin/content-views-admin.php:421 code/includes/values.php:275
88
  msgid "Author"
89
  msgstr ""
90
 
91
+ #: code/admin/content-views-admin.php:422
92
  msgid "Date"
93
  msgstr ""
94
 
95
+ #: code/admin/includes/options.php:279 code/includes/settings.php:780
96
  msgid "There is no option"
97
  msgstr ""
98
 
111
  msgstr ""
112
 
113
  #: code/admin/includes/templates/settings-section-one.php:8
114
+ #: code/includes/settings.php:793
115
  msgid "Get CVPro now!"
116
  msgstr ""
117
 
137
  msgid "Enter a name to identify your views easily"
138
  msgstr ""
139
 
140
+ #: code/admin/views/view.php:119 code/admin/views/view.php:578
141
  msgid "Save"
142
  msgstr ""
143
 
144
+ #: code/admin/views/view.php:125 code/includes/hooks.php:53
145
  msgid "Filter Settings"
146
  msgstr ""
147
 
148
+ #: code/admin/views/view.php:129 code/includes/hooks.php:54
149
  msgid "Display Settings"
150
  msgstr ""
151
 
152
+ #: code/admin/views/view.php:144 code/includes/hooks.php:63
153
  msgid "Content type"
154
  msgstr ""
155
 
162
  msgstr ""
163
 
164
  #: code/admin/views/view.php:176
165
+ msgid "Include only"
166
  msgstr ""
167
 
168
  #: code/admin/views/view.php:183
169
+ msgid "List of post IDs to display (comma-separated values, e.g. 1,2,3)"
170
  msgstr ""
171
 
172
  #: code/admin/views/view.php:191
173
+ msgid "Exclude"
174
  msgstr ""
175
 
176
  #: code/admin/views/view.php:198
177
+ msgid "List of post IDs to exclude (comma-separated values, e.g. 1,2,3)"
178
  msgstr ""
179
 
180
  #: code/admin/views/view.php:206
189
  msgid "Limit"
190
  msgstr ""
191
 
192
+ #: code/admin/views/view.php:230
193
  msgid ""
194
  "The number of posts to show. Set empty to show all found posts (which match "
195
  "all filter settings)"
196
  msgstr ""
197
 
198
+ #: code/admin/views/view.php:235
199
+ msgid "Skip some posts ?"
200
  msgstr ""
201
 
202
+ #: code/admin/views/view.php:243
203
  msgid "Advanced filters"
204
  msgstr ""
205
 
206
+ #: code/admin/views/view.php:298
207
  msgid "Taxonomies"
208
  msgstr ""
209
 
210
+ #: code/admin/views/view.php:312
211
  msgid "Tick checkbox of taxonomies to filter posts by their terms"
212
  msgstr ""
213
 
214
+ #: code/admin/views/view.php:317
215
+ msgid "Filter by custom taxonomies ?"
216
+ msgstr ""
217
+
218
+ #: code/admin/views/view.php:321
219
  msgid "Terms"
220
  msgstr ""
221
 
222
+ #: code/admin/views/view.php:342
223
  msgid "Relation"
224
  msgstr ""
225
 
226
+ #: code/admin/views/view.php:351
227
  msgid ""
228
  "Select AND to show posts which match ALL settings of selected taxonomies."
229
  "<br>Select OR to show posts which match settings of at least one selected "
230
  "taxonomy"
231
  msgstr ""
232
 
233
+ #: code/admin/views/view.php:361 code/includes/settings.php:88
234
  msgid "Order by"
235
  msgstr ""
236
 
237
+ #: code/admin/views/view.php:383
238
  msgid "Written by"
239
  msgstr ""
240
 
241
+ #: code/admin/views/view.php:399
242
  msgid "Not written by"
243
  msgstr ""
244
 
245
+ #: code/admin/views/view.php:417 code/includes/values.php:272
246
  msgid "Status"
247
  msgstr ""
248
 
249
+ #: code/admin/views/view.php:427
250
  msgid "Select status of posts"
251
  msgstr ""
252
 
253
+ #: code/admin/views/view.php:436
254
  msgid "Keyword"
255
  msgstr ""
256
 
257
+ #: code/admin/views/view.php:443
258
  msgid "Enter the keyword to searching for posts."
259
  msgstr ""
260
 
261
+ #: code/admin/views/view.php:466
262
  msgid "View type (Layout)"
263
  msgstr ""
264
 
265
+ #: code/admin/views/view.php:480 code/includes/hooks.php:98
266
  msgid "View type settings"
267
  msgstr ""
268
 
269
+ #: code/admin/views/view.php:497 code/includes/hooks.php:76
270
  msgid "Layout format"
271
  msgstr ""
272
 
273
+ #: code/admin/views/view.php:505
274
  msgid "This is layout format of output for each post"
275
  msgstr ""
276
 
277
+ #: code/admin/views/view.php:512 code/includes/hooks.php:81
278
  msgid "Fields settings"
279
  msgstr ""
280
 
281
+ #: code/admin/views/view.php:530 code/includes/hooks.php:87
282
  msgid "Pagination settings"
283
  msgstr ""
284
 
285
+ #: code/admin/views/view.php:547
286
  msgid "Other settings"
287
  msgstr ""
288
 
289
+ #: code/includes/functions.php:432
290
  msgid "View all posts in"
291
  msgstr ""
292
 
293
+ #: code/includes/functions.php:493 code/includes/html.php:434
294
  msgid "(no title)"
295
  msgstr ""
296
 
297
+ #: code/includes/functions.php:557
298
  msgid "Sorry, your nonce did not verify."
299
  msgstr ""
300
 
301
+ #: code/includes/functions.php:635
302
  msgid "Empty settings"
303
  msgstr ""
304
 
305
+ #: code/includes/functions.php:837
306
  msgid "No post found"
307
  msgstr ""
308
 
309
+ #: code/includes/hooks.php:49
310
  msgid "Please select an option in : "
311
  msgstr ""
312
 
313
+ #: code/includes/hooks.php:50
314
  msgid "Please set value in : "
315
  msgstr ""
316
 
317
+ #: code/includes/hooks.php:71
318
  msgid "View type"
319
  msgstr ""
320
 
321
+ #: code/includes/hooks.php:81
322
  msgid "Fields display"
323
  msgstr ""
324
 
325
+ #: code/includes/hooks.php:87 code/includes/settings.php:148
326
  msgid "Items per page"
327
  msgstr ""
328
 
329
+ #: code/includes/hooks.php:98 code/includes/settings.php:705
330
  msgid "Items per row"
331
  msgstr ""
332
 
338
  msgid "loading"
339
  msgstr ""
340
 
341
+ #: code/includes/html.php:483
342
  msgid "Read More"
343
  msgstr ""
344
 
345
+ #: code/includes/html.php:654
346
  msgid "in"
347
  msgstr ""
348
 
349
+ #: code/includes/html.php:670
350
+ msgid "0 Comment"
351
  msgstr ""
352
 
353
+ #: code/includes/html.php:670
354
  msgid "1 Comment"
355
  msgstr ""
356
 
357
+ #: code/includes/html.php:670
358
  msgid "% Comments"
359
  msgstr ""
360
 
361
+ #: code/includes/html.php:680
362
  msgid "by"
363
  msgstr ""
364
 
365
+ #: code/includes/html.php:863
366
  msgid "Go to first page"
367
  msgstr ""
368
 
369
+ #: code/includes/html.php:864
370
  msgid "Go to previous page"
371
  msgstr ""
372
 
373
+ #: code/includes/html.php:865
374
  msgid "Go to next page"
375
  msgstr ""
376
 
377
+ #: code/includes/html.php:866
378
  msgid "Go to last page"
379
  msgstr ""
380
 
381
+ #: code/includes/html.php:867
382
  msgid "Current page is"
383
  msgstr ""
384
 
385
+ #: code/includes/html.php:868
386
  msgid "Go to page"
387
  msgstr ""
388
 
410
  msgid "Enable"
411
  msgstr ""
412
 
413
+ #: code/includes/settings.php:161
414
  msgid ""
415
  "The number of items per page.<br>If value of <code>Limit</code> setting is "
416
  "not blank (empty), this value should be smaller than <code>Limit</code> value"
417
  msgstr ""
418
 
419
+ #: code/includes/settings.php:169
420
  msgid "Pagination type"
421
  msgstr ""
422
 
423
+ #: code/includes/settings.php:197
424
  msgid "Pagination style"
425
  msgstr ""
426
 
427
+ #: code/includes/settings.php:232
428
  msgid "Open item in"
429
  msgstr ""
430
 
431
+ #: code/includes/settings.php:240
432
  msgid "How to open an item when click on Title, Thumbnail, Read more button"
433
  msgstr ""
434
 
435
+ #: code/includes/settings.php:279
436
+ msgid "Display Title above Thumbnail ?"
437
  msgstr ""
438
 
439
+ #: code/includes/settings.php:285
440
  msgid "Thumbnail settings"
441
  msgstr ""
442
 
443
+ #: code/includes/settings.php:304
444
  msgid "Content settings"
445
  msgstr ""
446
 
447
+ #: code/includes/settings.php:316
448
  msgid "Show Full Content"
449
  msgstr ""
450
 
451
+ #: code/includes/settings.php:317
452
  msgid "Show Excerpt"
453
  msgstr ""
454
 
455
+ #: code/includes/settings.php:343
456
  msgid "Excerpt settings"
457
  msgstr ""
458
 
459
+ #: code/includes/settings.php:357
460
  msgid "Generating excerpt by selecting the first X words of the content"
461
  msgstr ""
462
 
463
+ #: code/includes/settings.php:362
464
+ msgid "Use manual excerpt, change \"Read More\" text ?"
465
  msgstr ""
466
 
467
+ #: code/includes/settings.php:378
468
  msgid "Allow HTML tags (a, br, strong, em, strike, i, ul, ol, li) in excerpt"
469
  msgstr ""
470
 
471
+ #: code/includes/settings.php:392
472
  msgid "Meta fields settings"
473
  msgstr ""
474
 
475
+ #: code/includes/settings.php:464
476
  msgid "Thumbnail position"
477
  msgstr ""
478
 
479
+ #: code/includes/settings.php:495
480
  msgid "Show Thumbnail"
481
  msgstr ""
482
 
483
+ #: code/includes/settings.php:515
484
  msgid "Show Title"
485
  msgstr ""
486
 
487
+ #: code/includes/settings.php:534
488
  msgid "Show Content"
489
  msgstr ""
490
 
491
+ #: code/includes/settings.php:553
492
  msgid "Show Meta Fields (Author, Date, Comment...)"
493
  msgstr ""
494
 
495
+ #: code/includes/settings.php:578
496
  msgid "Thumbnail size"
497
  msgstr ""
498
 
499
+ #: code/includes/settings.php:621
500
  msgid "Show Date"
501
  msgstr ""
502
 
503
+ #: code/includes/settings.php:640
504
  msgid "Show Author"
505
  msgstr ""
506
 
507
+ #: code/includes/settings.php:659
508
  msgid "Show Taxonomies (categories, tags...)"
509
  msgstr ""
510
 
511
+ #: code/includes/settings.php:679
512
  msgid "Show Comment Count"
513
  msgstr ""
514
 
515
+ #: code/includes/settings.php:713
516
  msgid "The number of columns in layout"
517
  msgstr ""
518
 
577
  msgstr ""
578
 
579
  #: code/includes/values.php:242
580
+ msgid "Ascending"
581
  msgstr ""
582
 
583
  #: code/includes/values.php:243
584
+ msgid "Descending"
585
  msgstr ""
586
 
587
  #: code/includes/values.php:252
661
  msgstr ""
662
 
663
  #: code/includes/values.php:385
664
+ msgid "1 column &#8212; Show all fields in one column"
 
665
  msgstr ""
666
 
667
  #: code/includes/values.php:386
public/content-views.php CHANGED
@@ -230,7 +230,7 @@ class PT_Content_Views {
230
  * Start SESSION
231
  */
232
  public function register_session() {
233
- if ( !session_id() ) {
234
  do_action( PT_CV_PREFIX_ . 'session_start' );
235
  session_start();
236
  }
230
  * Start SESSION
231
  */
232
  public function register_session() {
233
+ if ( !session_id() && !headers_sent() && apply_filters( PT_CV_PREFIX_ . 'start_session', true ) ) {
234
  do_action( PT_CV_PREFIX_ . 'session_start' );
235
  session_start();
236
  }
public/templates/collapsible/html/main.php CHANGED
@@ -45,6 +45,7 @@ switch ( $layout ) {
45
  $random_id = PT_CV_Functions::string_random();
46
  ?>
47
  <div class="panel panel-default pt-cv-content-item">
 
48
  <div class="panel-heading">
49
  <a class="panel-title" data-toggle="collapse" data-parent="#<?php echo esc_attr( PT_CV_PREFIX_UPPER . 'ID' ); ?>" href="#<?php echo esc_attr( $random_id ); ?>">
50
  <?php echo strip_tags( $heading ); ?>
45
  $random_id = PT_CV_Functions::string_random();
46
  ?>
47
  <div class="panel panel-default pt-cv-content-item">
48
+ <?php echo apply_filters( PT_CV_PREFIX_ . 'collapsible_before_heading', '' ); ?>
49
  <div class="panel-heading">
50
  <a class="panel-title" data-toggle="collapse" data-parent="#<?php echo esc_attr( PT_CV_PREFIX_UPPER . 'ID' ); ?>" href="#<?php echo esc_attr( $random_id ); ?>">
51
  <?php echo strip_tags( $heading ); ?>