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

Version Description

  • March 02 2016 =
  • Tweak: Update Notice message at front-end (when Javascript error occurs) to avoid misunderstand
Download this release

Release Info

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

Code changes from version 1.8.0 to 1.8.0.1

Files changed (3) hide show
  1. README.txt +5 -2
  2. content-views.php +2 -2
  3. includes/hooks.php +6 -7
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, post grid, 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.8.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -136,7 +136,10 @@ If you are using "Your latest posts" as home page, you should paste this code `<
136
 
137
  == Changelog ==
138
 
139
- = 1.8.0 - March 01 2016 =
 
 
 
140
  * Improvement: Detect Javascript errors (which can stop Content Views from working properly), show guide to try to solve it automatically
141
  * Improvement: Prevent error "Permission denied" by session_start() in some hostings
142
  * Improvement: Prevent conflicts with dropdown Menu in theme
4
  Tags: post, post grid, 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.8.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
136
 
137
  == Changelog ==
138
 
139
+ = 1.8.0.1 - March 02 2016 =
140
+ * Tweak: Update Notice message at front-end (when Javascript error occurs) to avoid misunderstand
141
+
142
+ = 1.8.0.0 - March 01 2016 =
143
  * Improvement: Detect Javascript errors (which can stop Content Views from working properly), show guide to try to solve it automatically
144
  * Improvement: Prevent error "Permission denied" by session_start() in some hostings
145
  * Improvement: Prevent conflicts with dropdown Menu in theme
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.8.0
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.8.0' );
31
  define( 'PT_CV_FILE', __FILE__ );
32
 
33
  $pt_cv_path = plugin_dir_path( __FILE__ );
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.8.0.1
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.8.0.1' );
31
  define( 'PT_CV_FILE', __FILE__ );
32
 
33
  $pt_cv_path = plugin_dir_path( __FILE__ );
includes/hooks.php CHANGED
@@ -193,17 +193,16 @@ if ( !class_exists( 'PT_CV_Hooks' ) ) {
193
  $current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
194
  $style = "style='font-weight:600;color:red'";
195
 
196
- $action1 = add_query_arg( array( PT_CV_HIDE_SCRIPT_ERROR => '1', ), $current_url );
197
- $hideit = sprintf( "<br><a href='%s'>&laquo;%s&raquo;</a>", $action1, __( 'Hide this message', PT_CV_TEXTDOMAIN ) );
198
-
199
  if ( get_option( PT_CV_SOLVE_SCRIPT_ERROR ) ) {
200
- $error_js = sprintf( __( "If it doesn't solve problem yet, please %s contact us %s!", PT_CV_TEXTDOMAIN ), "<a href='http://www.contentviewspro.com/contact/?utm_source=frontend_error' target='_blank' $style>", '</a>' ) . $hideit;
 
 
201
  } else {
202
  $action2 = add_query_arg( array( PT_CV_SOLVE_SCRIPT_ERROR => '1', ), $current_url );
203
  $solveit = sprintf( "<a href='%s' $style>here</a>", $action2 );
204
- $closein = sprintf( "<br><span id='cv-close-1'>&laquo;%s&raquo;</span>", __( 'Closing in <code>10</code> seconds', PT_CV_TEXTDOMAIN ) );
205
  // it must be caused by Javascript error(s) on this page
206
- $error_js = sprintf( __( "There is Javascript error on this page.<br>If View doesn't work as well as it did in Preview, please click %s to try to solve it.", PT_CV_TEXTDOMAIN ), $solveit ) . $closein;
207
  }
208
 
209
  $prepend = sprintf( "<span $style>%s</span> ", __( 'Notice:', PT_CV_TEXTDOMAIN ) );
@@ -220,7 +219,7 @@ if ( !class_exists( 'PT_CV_Hooks' ) ) {
220
  jQuery( '<?php echo $view_selector; ?>' ).first().before( "<?php echo $error_html; ?>" );
221
 
222
  jQuery( '#<?php echo $alert_id; ?> code' ).each( function () {
223
- var $this = jQuery( this ), t = 9, clsit = window.setInterval( function () {
224
  $this.html( t );
225
  if ( t === 0 ) {
226
  clearInterval( clsit );
193
  $current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
194
  $style = "style='font-weight:600;color:red'";
195
 
 
 
 
196
  if ( get_option( PT_CV_SOLVE_SCRIPT_ERROR ) ) {
197
+ $action1 = add_query_arg( array( PT_CV_HIDE_SCRIPT_ERROR => '1', ), $current_url );
198
+ $hideit = sprintf( "<a href='%s' $style>here</a>", $action1 );
199
+ $error_js = sprintf( __( "If Content Views still doesn't work well, please %s contact us %s. Otherwise, please click %s to hide this message.", PT_CV_TEXTDOMAIN ), "<a href='http://www.contentviewspro.com/contact/?utm_source=frontend_error' target='_blank' $style>", '</a>', $hideit );
200
  } else {
201
  $action2 = add_query_arg( array( PT_CV_SOLVE_SCRIPT_ERROR => '1', ), $current_url );
202
  $solveit = sprintf( "<a href='%s' $style>here</a>", $action2 );
203
+ $closein = sprintf( "<br><span id='cv-close-1'>&laquo;%s&raquo;</span>", __( 'Closing in <code>20</code> seconds', PT_CV_TEXTDOMAIN ) );
204
  // it must be caused by Javascript error(s) on this page
205
+ $error_js = sprintf( __( "There is Javascript error (of theme/another plugin) which can stop Content Views features (ajax pagination, scrollable list, collapsible list...) from working properly. Please click %s to eliminate influence of this error to Content Views.", PT_CV_TEXTDOMAIN ), $solveit ) . $closein;
206
  }
207
 
208
  $prepend = sprintf( "<span $style>%s</span> ", __( 'Notice:', PT_CV_TEXTDOMAIN ) );
219
  jQuery( '<?php echo $view_selector; ?>' ).first().before( "<?php echo $error_html; ?>" );
220
 
221
  jQuery( '#<?php echo $alert_id; ?> code' ).each( function () {
222
+ var $this = jQuery( this ), t = 19, clsit = window.setInterval( function () {
223
  $this.html( t );
224
  if ( t === 0 ) {
225
  clearInterval( clsit );