Version Description
- 2017/09/25 =
- Compatible Fix: "Sort by" feature always returns a same order, when the "Intuitive Custom Post Order" plugin is in used
- Compatible Fix: Resolve conflict with Slider Revolution plugin
Download this release
Release Info
Developer | PT Guy |
Plugin | Content Views – Post Grid & List for WordPress |
Version | 1.9.9.3 |
Comparing to | |
See all releases |
Code changes from version 1.9.9.2 to 1.9.9.3
- README.txt +8 -4
- admin/assets/js/admin.js +2 -0
- admin/views/view.php +2 -2
- content-views.php +3 -3
- includes/compatibility.php +55 -6
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: pt-guy
|
|
3 |
Donate link: https://www.contentviewspro.com/?utm_source=wporg&utm_medium=link&utm_campaign=donate
|
4 |
Tags: post grid, grid plugin, grid, latest post, display post, post, page, category, responsive, list, thumbnail
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 4.8.
|
7 |
-
Stable tag: 1.9.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -163,6 +163,10 @@ If you are using "Your latest posts" as home page, you should paste this code `<
|
|
163 |
|
164 |
== Changelog ==
|
165 |
|
|
|
|
|
|
|
|
|
166 |
= 1.9.9.2 - 2017/08/19 =
|
167 |
* Fix: Text is invisible in some cases when select "Do not wrap text around image" setting
|
168 |
* Improvement: Update pages list of ajax pagination more dynamically
|
@@ -188,7 +192,7 @@ If you are using "Your latest posts" as home page, you should paste this code `<
|
|
188 |
|
189 |
= 1.9.8 - 2017/04/17 =
|
190 |
* Update: Remove default font-size of Title
|
191 |
-
* Fix: Sort by
|
192 |
* Fix: View output doesn't appear correctly in page created by OptimizePress plugin
|
193 |
|
194 |
= 1.9.7 - 2017/03/28 =
|
@@ -199,7 +203,7 @@ If you are using "Your latest posts" as home page, you should paste this code `<
|
|
199 |
|
200 |
= 1.9.6 - 2017/03/08 =
|
201 |
* Fix: Shortcode of "Visual Composer" plugin is visible in content of posts loaded by Ajax pagination
|
202 |
-
* Fix:
|
203 |
* Update: Add Romania translation, thanks to "Dan Caragea"
|
204 |
* Update: Add Dutch translation, thanks to "At Voogt"
|
205 |
* Update: Add Chinese translation, thanks to "JIGE-HNM (iojpe dot com)"
|
3 |
Donate link: https://www.contentviewspro.com/?utm_source=wporg&utm_medium=link&utm_campaign=donate
|
4 |
Tags: post grid, grid plugin, grid, latest post, display post, post, page, category, responsive, list, thumbnail
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 4.8.2
|
7 |
+
Stable tag: 1.9.9.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
163 |
|
164 |
== Changelog ==
|
165 |
|
166 |
+
= 1.9.9.3 - 2017/09/25 =
|
167 |
+
* Compatible Fix: "Sort by" feature always returns a same order, when the "Intuitive Custom Post Order" plugin is in used
|
168 |
+
* Compatible Fix: Resolve conflict with Slider Revolution plugin
|
169 |
+
|
170 |
= 1.9.9.2 - 2017/08/19 =
|
171 |
* Fix: Text is invisible in some cases when select "Do not wrap text around image" setting
|
172 |
* Improvement: Update pages list of ajax pagination more dynamically
|
192 |
|
193 |
= 1.9.8 - 2017/04/17 =
|
194 |
* Update: Remove default font-size of Title
|
195 |
+
* Fix: "Sort by" feature always returns a same order, when the "Simple Custom Post Order" plugin is in used
|
196 |
* Fix: View output doesn't appear correctly in page created by OptimizePress plugin
|
197 |
|
198 |
= 1.9.7 - 2017/03/28 =
|
203 |
|
204 |
= 1.9.6 - 2017/03/08 =
|
205 |
* Fix: Shortcode of "Visual Composer" plugin is visible in content of posts loaded by Ajax pagination
|
206 |
+
* Fix: "Sort by" feature always returns a same order, when the "Post Types Order" plugin is in used
|
207 |
* Update: Add Romania translation, thanks to "Dan Caragea"
|
208 |
* Update: Add Dutch translation, thanks to "At Voogt"
|
209 |
* Update: Add Chinese translation, thanks to "JIGE-HNM (iojpe dot com)"
|
admin/assets/js/admin.js
CHANGED
@@ -324,6 +324,8 @@
|
|
324 |
} else {
|
325 |
$( '#' + PT_CV_ADMIN._group_prefix + $this.val() ).addClass( 'hidden' );
|
326 |
}
|
|
|
|
|
327 |
},
|
328 |
/**
|
329 |
* Custom function for 'Content Type'
|
324 |
} else {
|
325 |
$( '#' + PT_CV_ADMIN._group_prefix + $this.val() ).addClass( 'hidden' );
|
326 |
}
|
327 |
+
|
328 |
+
$( '.pt-wrap' ).trigger( 'finish-toggle-group' );
|
329 |
},
|
330 |
/**
|
331 |
* Custom function for 'Content Type'
|
admin/views/view.php
CHANGED
@@ -553,7 +553,7 @@ PT_CV_Functions::view_submit();
|
|
553 |
'params' => array(
|
554 |
array(
|
555 |
'type' => 'group',
|
556 |
-
'params' => array(
|
557 |
array(
|
558 |
'label' => array(
|
559 |
'text' => '',
|
@@ -610,7 +610,7 @@ PT_CV_Functions::view_submit();
|
|
610 |
),
|
611 |
'dependence' => array( 'layout-format', '2-col' ),
|
612 |
),
|
613 |
-
),
|
614 |
),
|
615 |
),
|
616 |
),
|
553 |
'params' => array(
|
554 |
array(
|
555 |
'type' => 'group',
|
556 |
+
'params' => apply_filters( PT_CV_PREFIX_ . 'format_settings', array(
|
557 |
array(
|
558 |
'label' => array(
|
559 |
'text' => '',
|
610 |
),
|
611 |
'dependence' => array( 'layout-format', '2-col' ),
|
612 |
),
|
613 |
+
) ),
|
614 |
),
|
615 |
),
|
616 |
),
|
content-views.php
CHANGED
@@ -10,8 +10,8 @@
|
|
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.9.9.
|
14 |
-
* Author: CVSOFT
|
15 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
16 |
* Text Domain: content-views-query-and-display-post-page
|
17 |
* License: GPL-2.0+
|
@@ -25,7 +25,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
25 |
}
|
26 |
|
27 |
// Define Constant
|
28 |
-
define( 'PT_CV_VERSION', '1.9.9.
|
29 |
define( 'PT_CV_FILE', __FILE__ );
|
30 |
define( 'PT_CV_PATH', plugin_dir_path( __FILE__ ) );
|
31 |
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.9.9.3
|
14 |
+
* Author: CVSOFT LLC
|
15 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
16 |
* Text Domain: content-views-query-and-display-post-page
|
17 |
* License: GPL-2.0+
|
25 |
}
|
26 |
|
27 |
// Define Constant
|
28 |
+
define( 'PT_CV_VERSION', '1.9.9.3' );
|
29 |
define( 'PT_CV_FILE', __FILE__ );
|
30 |
define( 'PT_CV_PATH', plugin_dir_path( __FILE__ ) );
|
31 |
include_once( PT_CV_PATH . 'includes/defines.php' );
|
includes/compatibility.php
CHANGED
@@ -8,6 +8,39 @@
|
|
8 |
* @link http://www.contentviewspro.com/
|
9 |
* @copyright 2016 PT Guy
|
10 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
/**
|
12 |
* Autoptimize
|
13 |
* Disable "Force JavaScript in <head>"
|
@@ -115,15 +148,25 @@ function cv_comp_wrong_sortby( $query ) {
|
|
115 |
* "Post Types Order" plugin
|
116 |
* @since 1.9.6
|
117 |
*/
|
118 |
-
|
|
|
|
|
119 |
|
120 |
/**
|
121 |
* "Simple Custom Post Order" plugin
|
122 |
* @since 1.9.8
|
123 |
*/
|
124 |
-
if (
|
125 |
add_filter( 'option_scporder_options', '__return_false', 10, 2 );
|
126 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
}
|
128 |
|
129 |
return $query;
|
@@ -189,20 +232,26 @@ function cv_comp_pagination_settings( $action, $view_settings ) {
|
|
189 |
*/
|
190 |
add_action( 'pt_cv_add_global_variables', 'cv_comp_plugin_lazyload_break_loading' );
|
191 |
function cv_comp_plugin_lazyload_break_loading() {
|
192 |
-
if (
|
193 |
remove_filter( 'the_content', array( 'LazyLoad_Images', 'add_image_placeholders' ), 99 );
|
194 |
}
|
195 |
}
|
196 |
|
197 |
/**
|
198 |
-
*
|
199 |
*/
|
200 |
-
add_filter( 'pt_cv_skip_do_shortcode', '
|
201 |
-
function
|
|
|
202 |
$theme = wp_get_theme();
|
203 |
if ( $theme->get( 'Name' ) === 'OptimizePress' ) {
|
204 |
$args = true;
|
205 |
}
|
206 |
|
|
|
|
|
|
|
|
|
|
|
207 |
return $args;
|
208 |
}
|
8 |
* @link http://www.contentviewspro.com/
|
9 |
* @copyright 2016 PT Guy
|
10 |
*/
|
11 |
+
/**
|
12 |
+
* Check if a plugin is active
|
13 |
+
* @since 1.9.9.3
|
14 |
+
*/
|
15 |
+
$cv_active_plugins_list = array();
|
16 |
+
function cv_is_active_plugin( $plugin ) {
|
17 |
+
global $cv_active_plugins_list;
|
18 |
+
if ( empty( $cv_active_plugins_list ) ) {
|
19 |
+
// get blog active plugins
|
20 |
+
$plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
|
21 |
+
|
22 |
+
if ( is_multisite() ) {
|
23 |
+
// get active plugins for the network
|
24 |
+
$network_plugins = get_site_option( 'active_sitewide_plugins' );
|
25 |
+
if ( $network_plugins ) {
|
26 |
+
$network_plugins = array_keys( $network_plugins );
|
27 |
+
$plugins = array_merge( $plugins, $network_plugins );
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
if ( is_array( $plugins ) ) {
|
32 |
+
foreach ( $plugins as $string ) {
|
33 |
+
$parts = explode( '/', $string );
|
34 |
+
if ( !empty( $parts[ 0 ] ) ) {
|
35 |
+
$cv_active_plugins_list[] = $parts[ 0 ];
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
+
return in_array( $plugin, $cv_active_plugins_list );
|
42 |
+
}
|
43 |
+
|
44 |
/**
|
45 |
* Autoptimize
|
46 |
* Disable "Force JavaScript in <head>"
|
148 |
* "Post Types Order" plugin
|
149 |
* @since 1.9.6
|
150 |
*/
|
151 |
+
if ( cv_is_active_plugin( 'post-types-order' ) ) {
|
152 |
+
$query->set( 'ignore_custom_sort', true );
|
153 |
+
}
|
154 |
|
155 |
/**
|
156 |
* "Simple Custom Post Order" plugin
|
157 |
* @since 1.9.8
|
158 |
*/
|
159 |
+
if ( cv_is_active_plugin( 'simple-custom-post-order' ) ) {
|
160 |
add_filter( 'option_scporder_options', '__return_false', 10, 2 );
|
161 |
}
|
162 |
+
|
163 |
+
/**
|
164 |
+
* "Intuitive Custom Post Order" plugin
|
165 |
+
* @since 1.9.9.3
|
166 |
+
*/
|
167 |
+
if ( cv_is_active_plugin( 'intuitive-custom-post-order' ) ) {
|
168 |
+
add_filter( 'option_hicpo_options', '__return_false', 10, 2 );
|
169 |
+
}
|
170 |
}
|
171 |
|
172 |
return $query;
|
232 |
*/
|
233 |
add_action( 'pt_cv_add_global_variables', 'cv_comp_plugin_lazyload_break_loading' );
|
234 |
function cv_comp_plugin_lazyload_break_loading() {
|
235 |
+
if ( cv_is_active_plugin( 'lazy-load' ) ) {
|
236 |
remove_filter( 'the_content', array( 'LazyLoad_Images', 'add_image_placeholders' ), 99 );
|
237 |
}
|
238 |
}
|
239 |
|
240 |
/**
|
241 |
+
* Do shortcode in the_content might cause theme or plugin issue
|
242 |
*/
|
243 |
+
add_filter( 'pt_cv_skip_do_shortcode', 'cv_comp_skip_do_shortcode_content' );
|
244 |
+
function cv_comp_skip_do_shortcode_content( $args ) {
|
245 |
+
// OptimizePress theme: the frontend editor doesn't work
|
246 |
$theme = wp_get_theme();
|
247 |
if ( $theme->get( 'Name' ) === 'OptimizePress' ) {
|
248 |
$args = true;
|
249 |
}
|
250 |
|
251 |
+
// Slider Revolution plugin (tested until v5.4.5.1) doesn't work
|
252 |
+
if ( cv_is_active_plugin( 'revslider' ) ) {
|
253 |
+
$args = true;
|
254 |
+
}
|
255 |
+
|
256 |
return $args;
|
257 |
}
|