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

Version Description

  • Bug fixed: Thumbnail dimensions are empty
  • Improvement: CSS code refinement
Download this release

Release Info

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

Code changes from version 1.3.1 to 1.3.1.1

README.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Query posts and display posts in responsive grid layout without coding - Content Views ===
2
  Contributors: pt-guy
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JGUF974QBRKQE
4
- Tags: post, posts, page, pages, query, queries, search, display, show, shortcode, thumbnail, title, content, excerpt, meta, date, author, term, taxonomy, pagination, grid, scrollable, slider, collapsible, list, slide, layout, ui
5
  Requires at least: 3.3
6
  Tested up to: 3.9.1
7
- Stable tag: 1.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -144,6 +144,10 @@ You can create Unlimited Views, in Unlimited websites
144
 
145
  == Changelog ==
146
 
 
 
 
 
147
  = 1.3.1 =
148
  * Update: Important update about caching mechanism
149
  * Update: Update translation file
@@ -237,6 +241,9 @@ You can create Unlimited Views, in Unlimited websites
237
 
238
  == Upgrade Notice ==
239
 
 
 
 
240
  = 1.3.1 =
241
  Update: Important update about caching mechanism. Update: Update translation file
242
 
1
  === Query posts and display posts in responsive grid layout without coding - Content Views ===
2
  Contributors: pt-guy
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JGUF974QBRKQE
4
+ Tags: post, posts, page, pages, query, queries, search, display, show, grid, 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: 3.9.1
7
+ Stable tag: 1.3.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
144
 
145
  == Changelog ==
146
 
147
+ = 1.3.1.1 =
148
+ * Bug fixed: Thumbnail dimensions are empty
149
+ * Improvement: CSS code refinement
150
+
151
  = 1.3.1 =
152
  * Update: Important update about caching mechanism
153
  * Update: Update translation file
241
 
242
  == Upgrade Notice ==
243
 
244
+ = 1.3.1.1 =
245
+ Bug fixed: Thumbnail dimensions are empty. Improvement: CSS code refinement
246
+
247
  = 1.3.1 =
248
  Update: Important update about caching mechanism. Update: Update translation file
249
 
admin/assets/css/admin.css CHANGED
@@ -18,16 +18,6 @@ html {
18
  background: none;
19
  }
20
 
21
- .wp-color-result {
22
- height: 24px;
23
- }
24
-
25
- .pt-wrap .font-color .input-group {
26
- width: 100px;
27
- float: left;
28
- margin-right: 20px;
29
- }
30
-
31
  .pt-wrap select {
32
  height: 34px !important;
33
  }
18
  background: none;
19
  }
20
 
 
 
 
 
 
 
 
 
 
 
21
  .pt-wrap select {
22
  height: 34px !important;
23
  }
admin/includes/options.php CHANGED
@@ -187,7 +187,7 @@ if ( ! class_exists( 'PT_Options_Framework' ) ) {
187
  $name = ! empty( $param['name'] ) ? PT_CV_PREFIX . esc_attr( $param['name'] ) : '';
188
  $id = ! empty( $param['id'] ) ? "id='" . PT_CV_PREFIX . esc_attr( $param['id'] ) . "'" : '';
189
  $value = self::field_value( $data, $param, $name );
190
- $description = isset( $param['desc'] ) ? esc_html__( $param['desc'], PT_CV_DOMAIN ) : '';
191
 
192
  // Add extra information of option type
193
  switch ( $type ) {
@@ -301,7 +301,6 @@ if ( ! class_exists( 'PT_Options_Framework' ) ) {
301
  break;
302
  }
303
 
304
- $description = str_replace( '[--br--]', '<br>', $description );
305
  $description = apply_filters( PT_CV_PREFIX_ . 'options_description', $description, $param );
306
 
307
  if ( ! empty( $description ) ) {
187
  $name = ! empty( $param['name'] ) ? PT_CV_PREFIX . esc_attr( $param['name'] ) : '';
188
  $id = ! empty( $param['id'] ) ? "id='" . PT_CV_PREFIX . esc_attr( $param['id'] ) . "'" : '';
189
  $value = self::field_value( $data, $param, $name );
190
+ $description = isset( $param['desc'] ) ? balanceTags( $param['desc'] ) : '';
191
 
192
  // Add extra information of option type
193
  switch ( $type ) {
301
  break;
302
  }
303
 
 
304
  $description = apply_filters( PT_CV_PREFIX_ . 'options_description', $description, $param );
305
 
306
  if ( ! empty( $description ) ) {
admin/views/view.php CHANGED
@@ -341,7 +341,7 @@ $options = array(
341
  'options' => PT_CV_Values::taxonomy_relation(),
342
  'std' => PT_CV_Functions::array_get_first_key( PT_CV_Values::taxonomy_relation() ),
343
  'class' => 'taxonomy-relation',
344
- '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_DOMAIN ),
345
  ),
346
  ),
347
  ),
@@ -513,6 +513,7 @@ echo balanceTags( PT_Options_Framework::do_settings( $options, $settings ) );
513
  'extra_setting' => array(
514
  'params' => array(
515
  'wrap-class' => PT_CV_Html::html_group_class(),
 
516
  ),
517
  ),
518
  'params' => array(
341
  'options' => PT_CV_Values::taxonomy_relation(),
342
  'std' => PT_CV_Functions::array_get_first_key( PT_CV_Values::taxonomy_relation() ),
343
  'class' => 'taxonomy-relation',
344
+ '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_DOMAIN ),
345
  ),
346
  ),
347
  ),
513
  'extra_setting' => array(
514
  'params' => array(
515
  'wrap-class' => PT_CV_Html::html_group_class(),
516
+ 'wrap-id' => PT_CV_Html::html_group_id( 'field-settings' ),
517
  ),
518
  ),
519
  'params' => array(
content-views.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: Content Views
11
  * Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
12
  * Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
13
- * Version: 1.3.1
14
  * Author: Palace Of Themes
15
  * Author URI: http://profiles.wordpress.org/pt-guy
16
  * Text Domain: content-views
@@ -27,7 +27,7 @@ if ( ! defined( 'WPINC' ) ) {
27
  /*
28
  * Define Constant
29
  */
30
- define( 'PT_CV_VERSION', '1.3.1' );
31
  define( 'PT_CV_FILE', __FILE__ );
32
  $pt_cv_path = plugin_dir_path( __FILE__ );
33
  include_once( $pt_cv_path . 'includes/defines.php' );
10
  * Plugin Name: Content Views
11
  * Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
12
  * Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
13
+ * Version: 1.3.1.1
14
  * Author: Palace Of Themes
15
  * Author URI: http://profiles.wordpress.org/pt-guy
16
  * Text Domain: content-views
27
  /*
28
  * Define Constant
29
  */
30
+ define( 'PT_CV_VERSION', '1.3.1.1' );
31
  define( 'PT_CV_FILE', __FILE__ );
32
  $pt_cv_path = plugin_dir_path( __FILE__ );
33
  include_once( $pt_cv_path . 'includes/defines.php' );
includes/html.php CHANGED
@@ -528,12 +528,12 @@ if ( ! class_exists( 'PT_CV_Html' ) ) {
528
 
529
  // Get thumbnail dimensions
530
  $dimensions = PT_CV_Functions::field_thumbnail_dimensions( $fargs );
531
-
 
532
  // Check if has thumbnail ( has_post_thumbnail doesn't works )
533
  $has_thumbnail = get_the_post_thumbnail( $post_id );
534
  if ( ! empty( $has_thumbnail ) ) {
535
- $thumbnail_size = (array) apply_filters( PT_CV_PREFIX_ . 'field_thumbnail_dimension_output', $dimensions, $fargs );
536
- $thumbnail_size = count( $thumbnail_size ) > 1 ? $thumbnail_size : $thumbnail_size[0];
537
  $html = get_the_post_thumbnail( $post_id, $thumbnail_size, $gargs );
538
  } else {
539
  $html = apply_filters( PT_CV_PREFIX_ . 'field_thumbnail_not_found', $html, $post, $dimensions, $gargs );
528
 
529
  // Get thumbnail dimensions
530
  $dimensions = PT_CV_Functions::field_thumbnail_dimensions( $fargs );
531
+ $dimensions = (array) apply_filters( PT_CV_PREFIX_ . 'field_thumbnail_dimension_output', $dimensions, $fargs );
532
+
533
  // Check if has thumbnail ( has_post_thumbnail doesn't works )
534
  $has_thumbnail = get_the_post_thumbnail( $post_id );
535
  if ( ! empty( $has_thumbnail ) ) {
536
+ $thumbnail_size = count( $dimensions ) > 1 ? $dimensions : $dimensions[0];
 
537
  $html = get_the_post_thumbnail( $post_id, $thumbnail_size, $gargs );
538
  } else {
539
  $html = apply_filters( PT_CV_PREFIX_ . 'field_thumbnail_not_found', $html, $post, $dimensions, $gargs );
includes/settings.php CHANGED
@@ -180,7 +180,7 @@ if ( ! class_exists( 'PT_CV_Settings' ) ) {
180
  'std' => '5',
181
  'placeholder' => 'e.g. 5',
182
  'append_text' => '1 &rarr; 100',
183
- '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_DOMAIN ),
184
  ),
185
  ),
186
  'dependence' => array( 'enable-pagination', 'yes' ),
@@ -485,8 +485,6 @@ if ( ! class_exists( 'PT_CV_Settings' ) ) {
485
  ),
486
  ),
487
 
488
- apply_filters( PT_CV_PREFIX_ . 'field_display_option', array(), $prefix ),
489
-
490
  // Show Content
491
  array(
492
  'label' => array(
@@ -522,14 +520,14 @@ if ( ! class_exists( 'PT_CV_Settings' ) ) {
522
  'type' => 'checkbox',
523
  'name' => $prefix . 'meta-fields',
524
  'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Meta Fields: Author, Date, Comment...', PT_CV_DOMAIN ) ),
525
- 'std' => 'yes',
526
  ),
527
  ),
528
  ),
529
  );
530
 
531
  // Add/remove params
532
- $result = apply_filters( PT_CV_PREFIX_ . 'field_display', $result );
533
 
534
  // Sort array of params by saved order
535
  $result = apply_filters( PT_CV_PREFIX_ . 'settings_sort', $result, PT_CV_PREFIX . $prefix );
180
  'std' => '5',
181
  'placeholder' => 'e.g. 5',
182
  'append_text' => '1 &rarr; 100',
183
+ '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_DOMAIN ),
184
  ),
185
  ),
186
  'dependence' => array( 'enable-pagination', 'yes' ),
485
  ),
486
  ),
487
 
 
 
488
  // Show Content
489
  array(
490
  'label' => array(
520
  'type' => 'checkbox',
521
  'name' => $prefix . 'meta-fields',
522
  'options' => PT_CV_Values::yes_no( 'yes', __( 'Show Meta Fields: Author, Date, Comment...', PT_CV_DOMAIN ) ),
523
+ 'std' => '',
524
  ),
525
  ),
526
  ),
527
  );
528
 
529
  // Add/remove params
530
+ $result = apply_filters( PT_CV_PREFIX_ . 'field_display', $result, $prefix );
531
 
532
  // Sort array of params by saved order
533
  $result = apply_filters( PT_CV_PREFIX_ . 'settings_sort', $result, PT_CV_PREFIX . $prefix );