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

Version Description

  • Bug fixed: Style of Panel (.panel) is weird
Download this release

Release Info

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

Code changes from version 1.4.1 to 1.4.2

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: post, posts, page, pages, query, queries, search, display, show, grid, 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.0.1
7
- Stable tag: 1.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -144,6 +144,9 @@ You can create Unlimited Views, in Unlimited websites
144
 
145
  == Changelog ==
146
 
 
 
 
147
  = 1.4.1 =
148
  * Bug fixed: Excerpt show stranger character if content of post contains nothing but a url
149
  * Bug fixed: Height of thumbnail doesn't match the thumbnail size setting if current WordPress theme set CSS 'min-width' property for images
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: 4.0.1
7
+ Stable tag: 1.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
144
 
145
  == Changelog ==
146
 
147
+ = 1.4.2 =
148
+ * Bug fixed: Style of Panel (.panel) is weird
149
+
150
  = 1.4.1 =
151
  * Bug fixed: Excerpt show stranger character if content of post contains nothing but a url
152
  * Bug fixed: Height of thumbnail doesn't match the thumbnail size setting if current WordPress theme set CSS 'min-width' property for images
assets/bootstrap/css/bootstrap.min.css CHANGED
@@ -2242,24 +2242,6 @@ a.thumbnail.active {
2242
  padding: 9px;
2243
  color: #333333;
2244
  }
2245
- /* @Panels-minified */
2246
- .panel {
2247
- margin-bottom: 20px;
2248
- background-color: #ffffff;
2249
- border: 1px solid transparent;
2250
- border-radius: 4px;
2251
- -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
2252
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
2253
- }
2254
-
2255
- .panel-default {
2256
- border-color: #dddddd;
2257
- }
2258
- .panel-default > .panel-heading {
2259
- color: #333333;
2260
- background-color: #f5f5f5;
2261
- border-color: #dddddd;
2262
- }
2263
  /* @JavaScript components */
2264
  /* 242 */
2265
  .img-responsive,
2242
  padding: 9px;
2243
  color: #333333;
2244
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2245
  /* @JavaScript components */
2246
  /* 242 */
2247
  .img-responsive,
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.4.1
14
  * Author: PT Guy
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.4.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.4.2
14
  * Author: PT Guy
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.4.2' );
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
@@ -496,7 +496,8 @@ if ( ! class_exists( 'PT_CV_Functions' ) ) {
496
  $pt_content_type = $content_type = PT_CV_Functions::setting_value( PT_CV_PREFIX . 'content-type', $pt_view_settings );
497
 
498
  // Get view type
499
- $view_type = PT_CV_Functions::setting_value( PT_CV_PREFIX . 'view-type', $pt_view_settings );
 
500
 
501
  // Store display settings
502
  global $dargs, $pt_query_args;
496
  $pt_content_type = $content_type = PT_CV_Functions::setting_value( PT_CV_PREFIX . 'content-type', $pt_view_settings );
497
 
498
  // Get view type
499
+ global $pt_view_type;
500
+ $pt_view_type = $view_type = PT_CV_Functions::setting_value( PT_CV_PREFIX . 'view-type', $pt_view_settings );
501
 
502
  // Store display settings
503
  global $dargs, $pt_query_args;
includes/html-viewtype.php CHANGED
@@ -87,11 +87,9 @@ if ( ! class_exists( 'PT_CV_Html_ViewType' ) ) {
87
 
88
  $list_item = implode( "\n", $row_html );
89
 
 
90
  if ( $pt_cv_enable_filter != 'yes' ) {
91
  $list_item = sprintf( '<div class="%s">%s</div>', esc_attr( $row_class ), $list_item );
92
- } else {
93
- // Add the extra clearfix
94
- $list_item .= '<div class="clearfix visible-xs-block"></div>';
95
  }
96
 
97
  $content[] = balanceTags( $list_item );
87
 
88
  $list_item = implode( "\n", $row_html );
89
 
90
+ // Only wrap in row if shuffle filter is not enable
91
  if ( $pt_cv_enable_filter != 'yes' ) {
92
  $list_item = sprintf( '<div class="%s">%s</div>', esc_attr( $row_class ), $list_item );
 
 
 
93
  }
94
 
95
  $content[] = balanceTags( $list_item );
public/assets/css/public.css CHANGED
@@ -251,4 +251,23 @@
251
  .pt-cv-view .collapse.in {
252
  display: block;
253
  visibility: visible;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  }
251
  .pt-cv-view .collapse.in {
252
  display: block;
253
  visibility: visible;
254
+ }
255
+
256
+ /* @Panels-minified */
257
+ .pt-cv-view .panel {
258
+ margin-bottom: 20px;
259
+ background-color: #ffffff;
260
+ border: 1px solid transparent;
261
+ border-radius: 4px;
262
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
263
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
264
+ }
265
+
266
+ .pt-cv-view .panel-default {
267
+ border-color: #dddddd;
268
+ }
269
+ .pt-cv-view .panel-default > .panel-heading {
270
+ color: #333333;
271
+ background-color: #f5f5f5;
272
+ border-color: #dddddd;
273
  }