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

Version Description

  • February 06 2016 =
  • Improvement: [supports qTranslate-X plugin] Generate valid excerpt of post in current language
  • Fixed: Some bugs of pagination in special cases
  • Update: Drop support for "vpage" parameter in (Ajax) Numbered pagination to prevent ambiguous logic
  • Tested up to: 4.4.2
Download this release

Release Info

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

Code changes from version 1.7.7 to 1.7.8

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: pt-guy
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JGUF974QBRKQE
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.4.1
7
- Stable tag: 1.7.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -150,6 +150,12 @@ add_filter( 'pt_cv_start_session', '__return_false' );
150
 
151
  == Changelog ==
152
 
 
 
 
 
 
 
153
  = 1.7.7 - January 12 2016 =
154
  * Bug fixed: Content floats after View output
155
  * Tweak: Code relates to grid system
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JGUF974QBRKQE
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.4.2
7
+ Stable tag: 1.7.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
150
 
151
  == Changelog ==
152
 
153
+ = 1.7.8 - February 06 2016 =
154
+ * Improvement: [supports qTranslate-X plugin] Generate valid excerpt of post in current language
155
+ * Fixed: Some bugs of pagination in special cases
156
+ * Update: Drop support for "vpage" parameter in (Ajax) Numbered pagination to prevent ambiguous logic
157
+ * Tested up to: 4.4.2
158
+
159
  = 1.7.7 - January 12 2016 =
160
  * Bug fixed: Content floats after View output
161
  * Tweak: Code relates to grid system
admin/assets/css/admin.css CHANGED
@@ -65,6 +65,15 @@ html {
65
  display: none;
66
  }
67
 
 
 
 
 
 
 
 
 
 
68
  #pt-cv-form-view .tab-content {
69
  display: block !important;
70
  }
65
  display: none;
66
  }
67
 
68
+ /* Fix style bug */
69
+ #pt-cv-form-view .nav {
70
+ position: relative !important;
71
+ }
72
+ #pt-cv-form-view .btn-cvp-action {
73
+ position: relative;
74
+ z-index: 10;
75
+ }
76
+
77
  #pt-cv-form-view .tab-content {
78
  display: block !important;
79
  }
admin/assets/js/admin.js CHANGED
@@ -377,6 +377,8 @@
377
  e.stopPropagation();
378
  e.preventDefault();
379
 
 
 
380
  var $this_btn = $( this );
381
 
382
  // Get Preview box
377
  e.stopPropagation();
378
  e.preventDefault();
379
 
380
+ $( 'body' ).trigger( _prefix + 'admin-preview-start' );
381
+
382
  var $this_btn = $( this );
383
 
384
  // Get Preview box
admin/views/view.php CHANGED
@@ -116,8 +116,10 @@ PT_CV_Functions::view_submit();
116
  <br>
117
 
118
  <!-- Save -->
119
- <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 ); ?>">
120
- <?php do_action( PT_CV_PREFIX_ . 'admin_more_buttons' ); ?>
 
 
121
 
122
  <!-- Nav tabs -->
123
  <ul class="nav nav-tabs">
116
  <br>
117
 
118
  <!-- Save -->
119
+ <div class="btn-cvp-action">
120
+ <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 ); ?>">
121
+ <?php do_action( PT_CV_PREFIX_ . 'admin_more_buttons' ); ?>
122
+ </div>
123
 
124
  <!-- Nav tabs -->
125
  <ul class="nav nav-tabs">
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.7
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.7' );
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.8
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.8' );
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
@@ -55,7 +55,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
55
  }
56
 
57
  /**
58
- * qTranslate family (qTranslate, mqTranslate, qTranslate-X)
59
  * @since 1.5.3
60
  */
61
  global $q_config;
@@ -83,7 +83,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
83
  }
84
 
85
  /**
86
- * qTranslate family (qTranslate, mqTranslate, qTranslate-X)
87
  * @since 1.5.3
88
  */
89
  global $q_config;
@@ -264,9 +264,6 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
264
  * @return string
265
  */
266
  static function pt_strip_tags( $string ) {
267
- // Remove language tag of qTranslateX 3.4.4
268
- $string = preg_replace( '/\[:[a-z]{0,2}\]/', '', $string );
269
-
270
  // Changes double line-breaks in the text into HTML paragraphs (<p>, <br>)
271
  if ( apply_filters( PT_CV_PREFIX_ . 'wpautop', 0 ) ) {
272
  $string = wpautop( $string );
@@ -300,7 +297,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
300
  */
301
  static function term_slug_sanitize( $slug, $sanitize = false ) {
302
  if ( $sanitize && preg_match( '/%[0-9a-f][0-9a-f]/', $slug ) ) {
303
- $slug = str_replace( '%', '', $slug );
304
  }
305
 
306
  return $slug;
@@ -681,7 +678,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
681
  $content_items = $pt_query = $empty_result = null;
682
 
683
  // Page number
684
- $current_page = self::get_current_page( $pargs );
685
  $pt_cv_glb[ $pt_cv_id ][ 'current_page' ] = $current_page;
686
 
687
  // What kind of content to display
@@ -704,15 +701,16 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
704
  $html = PT_CV_Html::content_items_wrap( $content_items, $current_page, $args[ 'posts_per_page' ], $view_id );
705
 
706
  // Show pagination
707
- if ( $pt_query && $args[ 'posts_per_page' ] > 0 && PT_CV_Functions::nonpaging_or_firstpage( $dargs, $current_page ) ) {
708
  // Total post founds
709
- $found_posts = apply_filters( PT_CV_PREFIX_ . 'found_posts', $pt_query->found_posts );
710
 
711
  // Total number of items
712
  $total_items = ( $args[ 'limit' ] > 0 && $found_posts > $args[ 'limit' ] ) ? $args[ 'limit' ] : $found_posts;
713
 
714
  // Total number of pages
715
- $max_num_pages = ceil( $total_items / $args[ 'posts_per_page' ] );
 
716
 
717
  // Output pagination
718
  if ( (int) $max_num_pages > 0 ) {
@@ -764,7 +762,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
764
  do_action( PT_CV_PREFIX_ . 'after_process_item' );
765
  } else {
766
  // Get no post found class
767
- $_class = apply_filters( PT_CV_PREFIX_ . 'content_no_post_found_class', 'alert alert-warning' );
768
 
769
  // Get no post found text
770
  $_text = apply_filters( PT_CV_PREFIX_ . 'content_no_post_found_text', __( 'No post found', PT_CV_TEXTDOMAIN ) );
@@ -1107,6 +1105,14 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
1107
  $field_setting = PT_CV_Functions::settings_values_by_prefix( $prefix );
1108
 
1109
  $dargs[ 'pagination-settings' ] = apply_filters( PT_CV_PREFIX_ . 'pagination_settings', $field_setting, $prefix );
 
 
 
 
 
 
 
 
1110
 
1111
  // If Items per page is set, get its value
1112
  $posts_per_page = isset( $dargs[ 'pagination-settings' ][ 'items-per-page' ] ) ? (int) $dargs[ 'pagination-settings' ][ 'items-per-page' ] : $limit;
@@ -1119,7 +1125,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
1119
  $args[ 'posts_per_page' ] = $posts_per_page;
1120
 
1121
  // Get offset
1122
- $paged = self::get_current_page( $pargs );
1123
 
1124
  $offset = $posts_per_page * ( (int) $paged - 1 );
1125
 
@@ -1286,6 +1292,8 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
1286
  // Validate request
1287
  check_ajax_referer( PT_CV_PREFIX_ . 'ajax_nonce', 'ajax_nonce' );
1288
 
 
 
1289
  // Session id
1290
  $session_id = empty( $_POST[ 'sid' ] ) ? '' : esc_sql( $_POST[ 'sid' ] );
1291
 
@@ -1402,14 +1410,14 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
1402
  /**
1403
  * Get current page number
1404
  */
1405
- static function get_current_page( $pargs ) {
1406
  $paged = 1;
1407
 
1408
  if ( !empty( $pargs[ 'page' ] ) ) {
1409
  $paged = intval( $pargs[ 'page' ] );
1410
  }
1411
 
1412
- if ( !empty( $_GET[ 'vpage' ] ) ) {
1413
  $paged = intval( $_GET[ 'vpage' ] );
1414
  }
1415
 
@@ -1417,20 +1425,24 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
1417
  }
1418
 
1419
  /**
1420
- * If has pagination
1421
  *
1422
  * @param array $dargs
1423
  * @param int $current_page
1424
  * @return bool
1425
  */
1426
- static function nonpaging_or_firstpage( $dargs, $current_page ) {
1427
- // Get ajax type
1428
- $type = isset( $dargs[ 'pagination-settings' ][ 'type' ] ) ? $dargs[ 'pagination-settings' ][ 'type' ] : 'ajax';
1429
-
1430
- // Get page number of non-ajax pagination
1431
- $vpage = (int) self::url_extract_param( 'vpage', 1 );
1432
 
1433
- return $type == 'normal' || ( $type == 'ajax' && ( $current_page === 1 || !empty( $_GET[ 'vpage' ] ) ) && !( $current_page === 1 && $vpage > 1 ) );
 
 
 
 
 
 
1434
  }
1435
 
1436
  /**
@@ -1462,8 +1474,8 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
1462
  *
1463
  * @global array $pt_cv_glb
1464
  * @global string $pt_cv_id
1465
- * @param string $variable
1466
- * @return mixed
1467
  */
1468
  static function set_global_variable( $variable, $value ) {
1469
  global $pt_cv_glb, $pt_cv_id;
55
  }
56
 
57
  /**
58
+ * qTranslate-X (and qTranslate, mqTranslate)
59
  * @since 1.5.3
60
  */
61
  global $q_config;
83
  }
84
 
85
  /**
86
+ * qTranslate-X (and qTranslate, mqTranslate)
87
  * @since 1.5.3
88
  */
89
  global $q_config;
264
  * @return string
265
  */
266
  static function pt_strip_tags( $string ) {
 
 
 
267
  // Changes double line-breaks in the text into HTML paragraphs (<p>, <br>)
268
  if ( apply_filters( PT_CV_PREFIX_ . 'wpautop', 0 ) ) {
269
  $string = wpautop( $string );
297
  */
298
  static function term_slug_sanitize( $slug, $sanitize = false ) {
299
  if ( $sanitize && preg_match( '/%[0-9a-f][0-9a-f]/', $slug ) ) {
300
+ $slug = str_replace( '%', '@', $slug );
301
  }
302
 
303
  return $slug;
678
  $content_items = $pt_query = $empty_result = null;
679
 
680
  // Page number
681
+ $current_page = self::get_current_page( $pargs, $dargs );
682
  $pt_cv_glb[ $pt_cv_id ][ 'current_page' ] = $current_page;
683
 
684
  // What kind of content to display
701
  $html = PT_CV_Html::content_items_wrap( $content_items, $current_page, $args[ 'posts_per_page' ], $view_id );
702
 
703
  // Show pagination
704
+ if ( $pt_query && PT_CV_Functions::nonajax_or_firstpage( $dargs, $current_page ) ) {
705
  // Total post founds
706
+ $found_posts = (int) apply_filters( PT_CV_PREFIX_ . 'found_posts', $pt_query->found_posts );
707
 
708
  // Total number of items
709
  $total_items = ( $args[ 'limit' ] > 0 && $found_posts > $args[ 'limit' ] ) ? $args[ 'limit' ] : $found_posts;
710
 
711
  // Total number of pages
712
+ $items_per_page = (int) PT_CV_Functions::setting_value( PT_CV_PREFIX . 'pagination-items-per-page', $view_settings );
713
+ $max_num_pages = ceil( $total_items / $items_per_page );
714
 
715
  // Output pagination
716
  if ( (int) $max_num_pages > 0 ) {
762
  do_action( PT_CV_PREFIX_ . 'after_process_item' );
763
  } else {
764
  // Get no post found class
765
+ $_class = apply_filters( PT_CV_PREFIX_ . 'content_no_post_found_class', 'alert alert-warning ' . PT_CV_PREFIX . 'no-post' );
766
 
767
  // Get no post found text
768
  $_text = apply_filters( PT_CV_PREFIX_ . 'content_no_post_found_text', __( 'No post found', PT_CV_TEXTDOMAIN ) );
1105
  $field_setting = PT_CV_Functions::settings_values_by_prefix( $prefix );
1106
 
1107
  $dargs[ 'pagination-settings' ] = apply_filters( PT_CV_PREFIX_ . 'pagination_settings', $field_setting, $prefix );
1108
+ if ( !isset( $dargs[ 'pagination-settings' ][ 'type' ] ) ) {
1109
+ $dargs[ 'pagination-settings' ][ 'type' ] = 'ajax';
1110
+ }
1111
+
1112
+ // Fix grid bug for CVP < 3.5.6
1113
+ if ( $dargs[ 'pagination-settings' ][ 'type' ] === 'normal' ) {
1114
+ $dargs[ 'pagination-settings' ][ 'style' ] = '';
1115
+ }
1116
 
1117
  // If Items per page is set, get its value
1118
  $posts_per_page = isset( $dargs[ 'pagination-settings' ][ 'items-per-page' ] ) ? (int) $dargs[ 'pagination-settings' ][ 'items-per-page' ] : $limit;
1125
  $args[ 'posts_per_page' ] = $posts_per_page;
1126
 
1127
  // Get offset
1128
+ $paged = self::get_current_page( $pargs, $dargs );
1129
 
1130
  $offset = $posts_per_page * ( (int) $paged - 1 );
1131
 
1292
  // Validate request
1293
  check_ajax_referer( PT_CV_PREFIX_ . 'ajax_nonce', 'ajax_nonce' );
1294
 
1295
+ define( 'PT_CV_DOING_PAGINATION', true );
1296
+
1297
  // Session id
1298
  $session_id = empty( $_POST[ 'sid' ] ) ? '' : esc_sql( $_POST[ 'sid' ] );
1299
 
1410
  /**
1411
  * Get current page number
1412
  */
1413
+ static function get_current_page( $pargs, $dargs ) {
1414
  $paged = 1;
1415
 
1416
  if ( !empty( $pargs[ 'page' ] ) ) {
1417
  $paged = intval( $pargs[ 'page' ] );
1418
  }
1419
 
1420
+ if ( !empty( $_GET[ 'vpage' ] ) && $dargs[ 'pagination-settings' ][ 'type' ] === 'normal' ) {
1421
  $paged = intval( $_GET[ 'vpage' ] );
1422
  }
1423
 
1425
  }
1426
 
1427
  /**
1428
+ * Check if using pagination: Non-ajax or First page (of Ajax pagination)
1429
  *
1430
  * @param array $dargs
1431
  * @param int $current_page
1432
  * @return bool
1433
  */
1434
+ static function nonajax_or_firstpage( $dargs, $current_page ) {
1435
+ if ( !PT_CV_Functions::setting_value( PT_CV_PREFIX . 'enable-pagination' ) ) {
1436
+ return false;
1437
+ }
 
 
1438
 
1439
+ if ( $dargs[ 'pagination-settings' ][ 'type' ] === 'normal' ) {
1440
+ return true;
1441
+ } else if ( $current_page === 1 ) {
1442
+ return true;
1443
+ } else {
1444
+ return false;
1445
+ }
1446
  }
1447
 
1448
  /**
1474
  *
1475
  * @global array $pt_cv_glb
1476
  * @global string $pt_cv_id
1477
+ * @param type $variable
1478
+ * @param type $value
1479
  */
1480
  static function set_global_variable( $variable, $value ) {
1481
  global $pt_cv_glb, $pt_cv_id;
includes/hooks.php CHANGED
@@ -20,8 +20,8 @@ if ( !class_exists( 'PT_CV_Hooks' ) ) {
20
  * Add custom filters/actions
21
  */
22
  static function init() {
23
- // Filter Output
24
  add_filter( PT_CV_PREFIX_ . 'validate_settings', array( __CLASS__, 'filter_validate_settings' ), 10, 2 );
 
25
 
26
  /**
27
  * @since 1.7.5
@@ -42,7 +42,6 @@ if ( !class_exists( 'PT_CV_Hooks' ) ) {
42
  * @param array $args The Query parameters array
43
  */
44
  public static function filter_validate_settings( $errors, $args ) {
45
-
46
  $dargs = PT_CV_Functions::get_global_variable( 'dargs' );
47
 
48
  // echo "<pre>";
@@ -112,9 +111,29 @@ if ( !class_exists( 'PT_CV_Hooks' ) ) {
112
  return array_filter( $errors );
113
  }
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  // Disable WP 4.4 responsive image
116
  public static function filter_disable_wp_responsive_image( $args ) {
117
-
118
  if ( PT_CV_Functions::setting_value( PT_CV_PREFIX . 'field-thumbnail-nowprpi' ) ) {
119
  if ( isset( $args[ 'sizes' ] ) )
120
  unset( $args[ 'sizes' ] );
20
  * Add custom filters/actions
21
  */
22
  static function init() {
 
23
  add_filter( PT_CV_PREFIX_ . 'validate_settings', array( __CLASS__, 'filter_validate_settings' ), 10, 2 );
24
+ add_filter( PT_CV_PREFIX_ . 'field_content_excerpt', array( __CLASS__, 'filter_field_content_excerpt' ), 9, 3 );
25
 
26
  /**
27
  * @since 1.7.5
42
  * @param array $args The Query parameters array
43
  */
44
  public static function filter_validate_settings( $errors, $args ) {
 
45
  $dargs = PT_CV_Functions::get_global_variable( 'dargs' );
46
 
47
  // echo "<pre>";
111
  return array_filter( $errors );
112
  }
113
 
114
+ /**
115
+ * Filter content before generating excerpt
116
+ *
117
+ * @param type $args
118
+ * @param type $fargs
119
+ * @param type $post
120
+ */
121
+ public static function filter_field_content_excerpt( $args, $fargs, $post ) {
122
+ /**
123
+ * Get content of current language
124
+ * qTranslate-X (and qTranslate, mqTranslate)
125
+ * @since 1.7.8
126
+ */
127
+ if ( function_exists( 'qtranxf_use' ) ) {
128
+ global $q_config;
129
+ $args = qtranxf_use( $q_config[ 'language' ], $args );
130
+ }
131
+
132
+ return $args;
133
+ }
134
+
135
  // Disable WP 4.4 responsive image
136
  public static function filter_disable_wp_responsive_image( $args ) {
 
137
  if ( PT_CV_Functions::setting_value( PT_CV_PREFIX . 'field-thumbnail-nowprpi' ) ) {
138
  if ( isset( $args[ 'sizes' ] ) )
139
  unset( $args[ 'sizes' ] );
includes/html-viewtype.php CHANGED
@@ -88,7 +88,7 @@ if ( !class_exists( 'PT_CV_Html_ViewType' ) ) {
88
 
89
  $list_item = implode( "\n", $row_html );
90
 
91
- $content[] = $list_item;
92
  }
93
  }
94
 
88
 
89
  $list_item = implode( "\n", $row_html );
90
 
91
+ $content[] = apply_filters( PT_CV_PREFIX_ . 'row_wrap', $list_item );
92
  }
93
  }
94
 
includes/html.php CHANGED
@@ -268,10 +268,10 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
268
  // Assign as global variable
269
  PT_CV_Functions::set_global_variable( 'content_items', $content_items );
270
 
271
- $nonpaging_or_firstpage = PT_CV_Functions::nonpaging_or_firstpage( $dargs, $current_page );
272
 
273
  // 1. Before output
274
- $before_output = $nonpaging_or_firstpage ? apply_filters( PT_CV_PREFIX_ . 'before_output_html', '' ) : '';
275
 
276
  // 2. Output content
277
  $content = array();
@@ -312,28 +312,22 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
312
  // Join content
313
  $content_list = implode( "\n", $content );
314
 
315
- // Custom attribute of a page
316
- $col_count = sprintf( 'data-cvc="%s"', (int) $dargs[ 'number-columns' ] );
317
- $page_attr_ = apply_filters( PT_CV_PREFIX_ . 'page_attr', $col_count, $view_type, $content_items );
318
- $page_attr = strip_tags( $page_attr_ );
319
-
320
  if ( apply_filters( PT_CV_PREFIX_ . 'wrap_in_page', true ) ) {
321
- // Wrap items in 'page' wrapper
322
- $html = sprintf( '<div id="%s" class="%s" %s>%s</div>', esc_attr( PT_CV_PREFIX . 'page' . '-' . $current_page ), esc_attr( PT_CV_PREFIX . 'page' ), $page_attr, $content_list );
323
- // Remove page attribute value
324
- $page_attr = '';
325
  } else {
326
  $html = $content_list;
327
  }
328
 
329
- if ( $nonpaging_or_firstpage ) {
330
- // Get wrapper class of View
331
- $extra_class = PT_CV_Functions::get_global_variable( 'use_grid', true );
332
- $view_class = apply_filters( PT_CV_PREFIX_ . 'view_class', array( PT_CV_PREFIX . 'view', PT_CV_PREFIX . $view_type, $extra_class ? PT_CV_PREFIX . 'colsys' : '' ) );
 
 
333
 
334
- // ID for the wrapper
335
- $view_id = PT_CV_PREFIX . 'view-' . $id;
336
- $output = sprintf( '<div class="%s" id="%s" %s>%s</div>', esc_attr( implode( ' ', array_filter( $view_class ) ) ), esc_attr( $view_id ), $page_attr, $html );
337
  // Keep this action for CVP < 3.5
338
  do_action( PT_CV_PREFIX_ . 'store_view_data', $view_id );
339
  } else {
268
  // Assign as global variable
269
  PT_CV_Functions::set_global_variable( 'content_items', $content_items );
270
 
271
+ $full_output = !defined( 'PT_CV_DOING_PAGINATION' );
272
 
273
  // 1. Before output
274
+ $before_output = $full_output ? apply_filters( PT_CV_PREFIX_ . 'before_output_html', '' ) : '';
275
 
276
  // 2. Output content
277
  $content = array();
312
  // Join content
313
  $content_list = implode( "\n", $content );
314
 
315
+ // Wrap in Page
 
 
 
 
316
  if ( apply_filters( PT_CV_PREFIX_ . 'wrap_in_page', true ) ) {
317
+ $cols = sprintf( 'data-cvc="%s"', (int) $dargs[ 'number-columns' ] );
318
+ $page_attr = apply_filters( PT_CV_PREFIX_ . 'page_attr', $cols, $view_type, $content_items );
319
+ $html = sprintf( '<div id="%s" class="%s" %s>%s</div>', PT_CV_PREFIX . 'page' . '-' . $current_page, PT_CV_PREFIX . 'page', $page_attr, $content_list );
 
320
  } else {
321
  $html = $content_list;
322
  }
323
 
324
+ // Wrap in View
325
+ if ( $full_output ) {
326
+ $use_grid = PT_CV_Functions::get_global_variable( 'use_grid', true );
327
+ $view_class = apply_filters( PT_CV_PREFIX_ . 'view_class', array( PT_CV_PREFIX . 'view', PT_CV_PREFIX . $view_type, $use_grid ? PT_CV_PREFIX . 'colsys' : '' ) );
328
+ $view_id = PT_CV_PREFIX . 'view-' . $id;
329
+ $output = sprintf( '<div class="%s" id="%s">%s</div>', esc_attr( implode( ' ', array_filter( $view_class ) ) ), $view_id, $html );
330
 
 
 
 
331
  // Keep this action for CVP < 3.5
332
  do_action( PT_CV_PREFIX_ . 'store_view_data', $view_id );
333
  } else {
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-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"
@@ -64,35 +64,35 @@ 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
 
@@ -106,13 +106,8 @@ msgstr ""
106
 
107
  #: code/admin/includes/plugin.php:169
108
  msgid ""
109
- "Only tick this option if Bootstrap has been loaded by active theme or other "
110
- "plugins"
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
 
118
  #: code/admin/views/view.php:39 code/public/content-views.php:291
@@ -125,8 +120,9 @@ msgstr ""
125
 
126
  #: code/admin/views/view.php:68
127
  msgid ""
128
- "Click <strong>Show Preview</strong> or <strong>Update Preview</strong> "
129
- "button to show, <strong>Hide Preview</strong> button to hide the output"
 
130
  msgstr ""
131
 
132
  #: code/admin/views/view.php:102
@@ -137,19 +133,19 @@ msgstr ""
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
 
@@ -166,7 +162,7 @@ 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
@@ -174,63 +170,55 @@ 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
181
  msgid "Parent page"
182
  msgstr ""
183
 
184
- #: code/admin/views/view.php:213
185
- msgid "Enter ID of parent page to query child pages"
186
  msgstr ""
187
 
188
- #: code/admin/views/view.php:222
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
 
@@ -246,87 +234,83 @@ msgstr ""
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,51 +322,51 @@ msgstr ""
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
 
@@ -394,11 +378,7 @@ msgstr ""
394
  msgid "Operator"
395
  msgstr ""
396
 
397
- #: code/includes/settings.php:96
398
- msgid "Select a criteria to sort by"
399
- msgstr ""
400
-
401
- #: code/includes/settings.php:103
402
  msgid "Order"
403
  msgstr ""
404
 
@@ -412,16 +392,16 @@ 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
@@ -429,11 +409,11 @@ 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
@@ -456,82 +436,96 @@ msgstr ""
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
 
519
  #: code/includes/values.php:95 code/includes/values.php:108
520
  msgid "AND"
521
  msgstr ""
522
 
 
 
 
 
523
  #: code/includes/values.php:96
524
  msgid "OR"
525
  msgstr ""
526
 
 
 
 
 
527
  #: code/includes/values.php:106
528
  msgid "IN"
529
  msgstr ""
530
 
531
  #: code/includes/values.php:106
532
- msgid ""
533
- "A post is displayed only if it associated with at least one value in terms "
534
- "list"
535
  msgstr ""
536
 
537
  #: code/includes/values.php:107
@@ -539,13 +533,11 @@ msgid "NOT IN"
539
  msgstr ""
540
 
541
  #: code/includes/values.php:107
542
- msgid ""
543
- "A post is displayed only if it did NOT associated with any values in terms "
544
- "list"
545
  msgstr ""
546
 
547
  #: code/includes/values.php:108
548
- msgid "A post is displayed only if it associated with all values in terms list"
549
  msgstr ""
550
 
551
  #: code/includes/values.php:182
@@ -620,16 +612,12 @@ msgstr ""
620
  msgid "Taxonomy (Categories, Tags...)"
621
  msgstr ""
622
 
623
- #: code/includes/values.php:273
624
- msgid "Order & Orderby"
625
- msgstr ""
626
-
627
  #: code/includes/values.php:274
628
  msgid "Search"
629
  msgstr ""
630
 
631
  #: code/includes/values.php:289 code/includes/values.php:324
632
- msgid "&mdash; Select &mdash;"
633
  msgstr ""
634
 
635
  #: code/includes/values.php:325
@@ -661,11 +649,11 @@ msgid "Scrollable List"
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
668
- msgid "2 columns &#8212; Show thumbnail on the left/right side of other fields"
669
  msgstr ""
670
 
671
  #: code/includes/values.php:400
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Content Views\n"
4
+ "POT-Creation-Date: 2016-01-16 00:56+0700\n"
5
+ "PO-Revision-Date: 2016-01-16 00:57+0700\n"
6
  "Last-Translator: \n"
7
  "Language-Team: PT Guy <support@contentviewspro.com>\n"
8
  "MIME-Version: 1.0\n"
64
  msgstr ""
65
 
66
  #: code/admin/content-views-admin.php:315
67
+ #: code/admin/content-views-admin.php:368 code/admin/includes/options.php:359
68
  msgid "Settings"
69
  msgstr ""
70
 
71
+ #: code/admin/content-views-admin.php:369
72
  msgid "Add View"
73
  msgstr ""
74
 
75
+ #: code/admin/content-views-admin.php:403
76
  msgid "Edit this item"
77
  msgstr ""
78
 
79
+ #: code/admin/content-views-admin.php:403
80
  msgid "Edit"
81
  msgstr ""
82
 
83
+ #: code/admin/content-views-admin.php:421
84
  msgid "Shortcode"
85
  msgstr ""
86
 
87
+ #: code/admin/content-views-admin.php:422 code/includes/values.php:275
88
  msgid "Author"
89
  msgstr ""
90
 
91
+ #: code/admin/content-views-admin.php:423
92
  msgid "Date"
93
  msgstr ""
94
 
95
+ #: code/admin/includes/options.php:288 code/includes/settings.php:784
96
  msgid "There is no option"
97
  msgstr ""
98
 
106
 
107
  #: code/admin/includes/plugin.php:169
108
  msgid ""
109
+ "Only check this option if Bootstrap has been loaded by active theme or "
110
+ "another plugin"
 
 
 
 
 
111
  msgstr ""
112
 
113
  #: code/admin/views/view.php:39 code/public/content-views.php:291
120
 
121
  #: code/admin/views/view.php:68
122
  msgid ""
123
+ "To show output, please click <code>Show Preview</code> or <code>Update "
124
+ "Preview</code> button. Otherwise, please click <code>Hide Preview</code> "
125
+ "button"
126
  msgstr ""
127
 
128
  #: code/admin/views/view.php:102
133
  msgid "Enter a name to identify your views easily"
134
  msgstr ""
135
 
136
+ #: code/admin/views/view.php:119 code/admin/views/view.php:617
137
  msgid "Save"
138
  msgstr ""
139
 
140
+ #: code/admin/views/view.php:125 code/includes/hooks.php:61
141
  msgid "Filter Settings"
142
  msgstr ""
143
 
144
+ #: code/admin/views/view.php:129 code/includes/hooks.php:62
145
  msgid "Display Settings"
146
  msgstr ""
147
 
148
+ #: code/admin/views/view.php:144 code/includes/hooks.php:71
149
  msgid "Content type"
150
  msgstr ""
151
 
162
  msgstr ""
163
 
164
  #: code/admin/views/view.php:183
165
+ msgid "List of post IDs to show (comma-separated values, for example: 1,2,3)"
166
  msgstr ""
167
 
168
  #: code/admin/views/view.php:191
170
  msgstr ""
171
 
172
  #: code/admin/views/view.php:198
173
+ msgid ""
174
+ "List of post IDs to exclude (comma-separated values, for example: 1,2,3)"
175
  msgstr ""
176
 
177
+ #: code/admin/views/view.php:207
178
  msgid "Parent page"
179
  msgstr ""
180
 
181
+ #: code/admin/views/view.php:214
182
+ msgid "Enter ID of parent page to get child pages"
183
  msgstr ""
184
 
185
+ #: code/admin/views/view.php:223
186
  msgid "Limit"
187
  msgstr ""
188
 
189
+ #: code/admin/views/view.php:231
190
+ msgid "The number of posts to show. Set empty to show all found posts"
 
 
191
  msgstr ""
192
 
193
+ #: code/admin/views/view.php:236
194
  msgid "Skip some posts ?"
195
  msgstr ""
196
 
197
+ #: code/admin/views/view.php:244
198
  msgid "Advanced filters"
199
  msgstr ""
200
 
201
+ #: code/admin/views/view.php:299
202
  msgid "Taxonomies"
203
  msgstr ""
204
 
205
+ #: code/admin/views/view.php:313
206
+ msgid "Check the boxes to show settings"
207
  msgstr ""
208
 
209
+ #: code/admin/views/view.php:318
210
  msgid "Filter by custom taxonomies ?"
211
  msgstr ""
212
 
213
+ #: code/admin/views/view.php:322
214
  msgid "Terms"
215
  msgstr ""
216
 
217
+ #: code/admin/views/view.php:343
218
  msgid "Relation"
219
  msgstr ""
220
 
221
+ #: code/admin/views/view.php:361 code/includes/settings.php:89
 
 
 
 
 
 
 
222
  msgid "Order by"
223
  msgstr ""
224
 
234
  msgid "Status"
235
  msgstr ""
236
 
237
+ #: code/admin/views/view.php:435
 
 
 
 
238
  msgid "Keyword"
239
  msgstr ""
240
 
241
+ #: code/admin/views/view.php:442
242
  msgid "Enter the keyword to searching for posts."
243
  msgstr ""
244
 
245
+ #: code/admin/views/view.php:465
246
  msgid "View type (Layout)"
247
  msgstr ""
248
 
249
+ #: code/admin/views/view.php:479 code/includes/hooks.php:106
250
  msgid "View type settings"
251
  msgstr ""
252
 
253
+ #: code/admin/views/view.php:496 code/includes/hooks.php:84
254
  msgid "Layout format"
255
  msgstr ""
256
 
257
+ #: code/admin/views/view.php:538
258
+ msgid "Disable 2 columns format on mobile devices & extra small screens"
259
  msgstr ""
260
 
261
+ #: code/admin/views/view.php:551 code/includes/hooks.php:89
262
  msgid "Fields settings"
263
  msgstr ""
264
 
265
+ #: code/admin/views/view.php:569 code/includes/hooks.php:95
266
  msgid "Pagination settings"
267
  msgstr ""
268
 
269
+ #: code/admin/views/view.php:586
270
  msgid "Other settings"
271
  msgstr ""
272
 
273
+ #: code/includes/functions.php:433
274
  msgid "View all posts in"
275
  msgstr ""
276
 
277
+ #: code/includes/functions.php:494 code/includes/html.php:435
278
  msgid "(no title)"
279
  msgstr ""
280
 
281
+ #: code/includes/functions.php:558
282
  msgid "Sorry, your nonce did not verify."
283
  msgstr ""
284
 
285
+ #: code/includes/functions.php:596
286
  msgid "Empty settings"
287
  msgstr ""
288
 
289
+ #: code/includes/functions.php:770
290
  msgid "No post found"
291
  msgstr ""
292
 
293
+ #: code/includes/hooks.php:57
294
  msgid "Please select an option in : "
295
  msgstr ""
296
 
297
+ #: code/includes/hooks.php:58
298
  msgid "Please set value in : "
299
  msgstr ""
300
 
301
+ #: code/includes/hooks.php:79
302
  msgid "View type"
303
  msgstr ""
304
 
305
+ #: code/includes/hooks.php:89
306
  msgid "Fields display"
307
  msgstr ""
308
 
309
+ #: code/includes/hooks.php:95 code/includes/settings.php:148
310
  msgid "Items per page"
311
  msgstr ""
312
 
313
+ #: code/includes/hooks.php:106 code/includes/settings.php:710
314
  msgid "Items per row"
315
  msgstr ""
316
 
322
  msgid "loading"
323
  msgstr ""
324
 
325
+ #: code/includes/html.php:484
326
  msgid "Read More"
327
  msgstr ""
328
 
329
+ #: code/includes/html.php:664
330
  msgid "in"
331
  msgstr ""
332
 
333
+ #: code/includes/html.php:680
334
  msgid "0 Comment"
335
  msgstr ""
336
 
337
+ #: code/includes/html.php:680
338
  msgid "1 Comment"
339
  msgstr ""
340
 
341
+ #: code/includes/html.php:680
342
  msgid "% Comments"
343
  msgstr ""
344
 
345
+ #: code/includes/html.php:690
346
  msgid "by"
347
  msgstr ""
348
 
349
+ #: code/includes/html.php:873
350
  msgid "Go to first page"
351
  msgstr ""
352
 
353
+ #: code/includes/html.php:874
354
  msgid "Go to previous page"
355
  msgstr ""
356
 
357
+ #: code/includes/html.php:875
358
  msgid "Go to next page"
359
  msgstr ""
360
 
361
+ #: code/includes/html.php:876
362
  msgid "Go to last page"
363
  msgstr ""
364
 
365
+ #: code/includes/html.php:877
366
  msgid "Current page is"
367
  msgstr ""
368
 
369
+ #: code/includes/html.php:878
370
  msgid "Go to page"
371
  msgstr ""
372
 
378
  msgid "Operator"
379
  msgstr ""
380
 
381
+ #: code/includes/settings.php:103 code/includes/values.php:273
 
 
 
 
382
  msgid "Order"
383
  msgstr ""
384
 
392
 
393
  #: code/includes/settings.php:161
394
  msgid ""
395
+ "If value of <code>Limit</code> setting is not blank (empty), this value "
396
+ "should be smaller than <code>Limit</code> value"
397
  msgstr ""
398
 
399
  #: code/includes/settings.php:169
400
+ msgid "Type"
401
  msgstr ""
402
 
403
  #: code/includes/settings.php:197
404
+ msgid "Style"
405
  msgstr ""
406
 
407
  #: code/includes/settings.php:232
409
  msgstr ""
410
 
411
  #: code/includes/settings.php:240
412
+ msgid "How to open item when click on Title, Thumbnail, Read-more button"
413
  msgstr ""
414
 
415
  #: code/includes/settings.php:279
416
+ msgid "Show Title above Thumbnail ?"
417
  msgstr ""
418
 
419
  #: code/includes/settings.php:285
436
  msgid "Excerpt settings"
437
  msgstr ""
438
 
439
+ #: code/includes/settings.php:352
440
+ msgid "Generate excerpt by selecting the first X words of post content"
441
  msgstr ""
442
 
443
+ #: code/includes/settings.php:357
444
+ msgid "Use manual excerpt, change <code>Read More</code> text ?"
445
  msgstr ""
446
 
447
+ #: code/includes/settings.php:367
448
  msgid "Allow HTML tags (a, br, strong, em, strike, i, ul, ol, li) in excerpt"
449
  msgstr ""
450
 
451
+ #: code/includes/settings.php:381
452
  msgid "Meta fields settings"
453
  msgstr ""
454
 
455
+ #: code/includes/settings.php:453
456
  msgid "Thumbnail position"
457
  msgstr ""
458
 
459
+ #: code/includes/settings.php:484
460
  msgid "Show Thumbnail"
461
  msgstr ""
462
 
463
+ #: code/includes/settings.php:504
464
  msgid "Show Title"
465
  msgstr ""
466
 
467
+ #: code/includes/settings.php:523
468
  msgid "Show Content"
469
  msgstr ""
470
 
471
+ #: code/includes/settings.php:542
472
+ msgid "Show Meta Fields (author, date, taxonomy, comment)"
473
+ msgstr ""
474
+
475
+ #: code/includes/settings.php:567
476
+ msgid "Size"
477
  msgstr ""
478
 
479
+ #: code/includes/settings.php:593
480
+ msgid "Disable responsive image of WordPress 4.4"
481
  msgstr ""
482
 
483
+ #: code/includes/settings.php:595
484
+ msgid "Check this option if thumbnail looks blurry"
485
+ msgstr ""
486
+
487
+ #: code/includes/settings.php:626
488
  msgid "Show Date"
489
  msgstr ""
490
 
491
+ #: code/includes/settings.php:645
492
  msgid "Show Author"
493
  msgstr ""
494
 
495
+ #: code/includes/settings.php:664
496
  msgid "Show Taxonomies (categories, tags...)"
497
  msgstr ""
498
 
499
+ #: code/includes/settings.php:684
500
  msgid "Show Comment Count"
501
  msgstr ""
502
 
503
+ #: code/includes/settings.php:797
504
+ msgid "Get CVPro now!"
505
  msgstr ""
506
 
507
  #: code/includes/values.php:95 code/includes/values.php:108
508
  msgid "AND"
509
  msgstr ""
510
 
511
+ #: code/includes/values.php:95
512
+ msgid "show posts which match all settings"
513
+ msgstr ""
514
+
515
  #: code/includes/values.php:96
516
  msgid "OR"
517
  msgstr ""
518
 
519
+ #: code/includes/values.php:96
520
+ msgid "show posts which match one or more settings"
521
+ msgstr ""
522
+
523
  #: code/includes/values.php:106
524
  msgid "IN"
525
  msgstr ""
526
 
527
  #: code/includes/values.php:106
528
+ msgid "show posts which associate with one or more of selected terms"
 
 
529
  msgstr ""
530
 
531
  #: code/includes/values.php:107
533
  msgstr ""
534
 
535
  #: code/includes/values.php:107
536
+ msgid "show posts which do not associate with any of selected terms"
 
 
537
  msgstr ""
538
 
539
  #: code/includes/values.php:108
540
+ msgid "show posts which associate with all of selected terms"
541
  msgstr ""
542
 
543
  #: code/includes/values.php:182
612
  msgid "Taxonomy (Categories, Tags...)"
613
  msgstr ""
614
 
 
 
 
 
615
  #: code/includes/values.php:274
616
  msgid "Search"
617
  msgstr ""
618
 
619
  #: code/includes/values.php:289 code/includes/values.php:324
620
+ msgid "- Select -"
621
  msgstr ""
622
 
623
  #: code/includes/values.php:325
649
  msgstr ""
650
 
651
  #: code/includes/values.php:385
652
+ msgid "1 column &#8212; show all fields in one column"
653
  msgstr ""
654
 
655
  #: code/includes/values.php:386
656
+ msgid "2 columns &#8212; show thumbnail on the left/right side of other fields"
657
  msgstr ""
658
 
659
  #: code/includes/values.php:400
public/assets/css/public.css CHANGED
@@ -73,6 +73,7 @@
73
  .pt-cv-readmore {
74
  color: #fff;
75
  margin: 10px 0;
 
76
  }
77
 
78
  /* An Item */
73
  .pt-cv-readmore {
74
  color: #fff;
75
  margin: 10px 0;
76
+ max-width: 100%;
77
  }
78
 
79
  /* An Item */
public/assets/js/public.js CHANGED
@@ -29,18 +29,13 @@
29
  var $self = this;
30
  var _prefix = PT_CV_PUBLIC._prefix;
31
 
32
- // Get current page
33
- var query_string = window.location.search;
34
- var vpage = query_string.split( /vpage=/ );
35
- var current_page = ( vpage[1] !== null && vpage[1] !== undefined ) ? parseInt( vpage[1] ) : 1;
36
-
37
  // Bootstrap paginator
38
  $( '.' + _prefix + 'pagination.' + _prefix + 'ajax' ).each( function () {
39
  var this_ = $( this );
40
  var total_pages = $( this ).attr( 'data-totalpages' );
41
  $( this ).bootstrapPaginator( {
42
  bootstrapMajorVersion: 3,
43
- currentPage: current_page,
44
  totalPages: total_pages,
45
  numberOfPages: PT_CV_PUBLIC.page_to_show,
46
  shouldShowPage: function ( type, page, current ) {
@@ -166,7 +161,9 @@
166
  spinner.removeClass( 'active' );
167
 
168
  // Update content of Preview box
169
- pages_holder.append( response );
 
 
170
 
171
  // Active current page
172
  $self._active_page( selected_page, pages_holder, callback );
@@ -177,7 +174,7 @@
177
  }
178
 
179
  // Trigger action on finish pagination
180
- $( 'body' ).trigger( _prefix + 'pagination-finished' );
181
  } );
182
  },
183
  /**
29
  var $self = this;
30
  var _prefix = PT_CV_PUBLIC._prefix;
31
 
 
 
 
 
 
32
  // Bootstrap paginator
33
  $( '.' + _prefix + 'pagination.' + _prefix + 'ajax' ).each( function () {
34
  var this_ = $( this );
35
  var total_pages = $( this ).attr( 'data-totalpages' );
36
  $( this ).bootstrapPaginator( {
37
  bootstrapMajorVersion: 3,
38
+ currentPage: 1,
39
  totalPages: total_pages,
40
  numberOfPages: PT_CV_PUBLIC.page_to_show,
41
  shouldShowPage: function ( type, page, current ) {
161
  spinner.removeClass( 'active' );
162
 
163
  // Update content of Preview box
164
+ if ( response.indexOf( _prefix + 'no-post' ) < 0 ) {
165
+ pages_holder.append( response );
166
+ }
167
 
168
  // Active current page
169
  $self._active_page( selected_page, pages_holder, callback );
174
  }
175
 
176
  // Trigger action on finish pagination
177
+ $( 'body' ).trigger( _prefix + 'pagination-finished', [ pages_holder, $( response ) ] );
178
  } );
179
  },
180
  /**