Version Description
- Fix bug: doesn't save Layout format value when select '2 columns' option
- Fix notice about constant value
Download this release
Release Info
Developer | PT Guy |
Plugin | Content Views – Post Grid & List for WordPress |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
- README.txt +8 -1
- admin/assets/js/admin.js +4 -71
- admin/views/view.php +6 -1
- content-views.php +2 -2
- public/content-views.php +1 -1
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, shortcode, thumbnail, title, content, excerpt, meta, date, author, term, taxonomy, pagination, grid, scrollable, collapsible, list, slide, layout, ui
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -148,6 +148,10 @@ You can create Unlimited Views, in Unlimited websites
|
|
148 |
|
149 |
== Changelog ==
|
150 |
|
|
|
|
|
|
|
|
|
151 |
= 1.2.4 =
|
152 |
* Update translation feature: load translation file from /wp-content/languages/content-views/
|
153 |
* Fix pagination bug
|
@@ -215,6 +219,9 @@ You can create Unlimited Views, in Unlimited websites
|
|
215 |
|
216 |
== Upgrade Notice ==
|
217 |
|
|
|
|
|
|
|
218 |
= 1.2.4 =
|
219 |
Update translation feature: load translation file from /wp-content/languages/content-views/. Fix pagination bug
|
220 |
|
4 |
Tags: post, posts, page, pages, query, queries, search, display, show, shortcode, thumbnail, title, content, excerpt, meta, date, author, term, taxonomy, pagination, grid, scrollable, collapsible, list, slide, layout, ui
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 1.2.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
148 |
|
149 |
== Changelog ==
|
150 |
|
151 |
+
= 1.2.5 =
|
152 |
+
* Fix bug: doesn't save Layout format value when select '2 columns' option
|
153 |
+
* Fix notice about constant value
|
154 |
+
|
155 |
= 1.2.4 =
|
156 |
* Update translation feature: load translation file from /wp-content/languages/content-views/
|
157 |
* Fix pagination bug
|
219 |
|
220 |
== Upgrade Notice ==
|
221 |
|
222 |
+
= 1.2.5 =
|
223 |
+
Fix bug: doesn't save Layout format value when select '2 columns' option. Fix constant notice
|
224 |
+
|
225 |
= 1.2.4 =
|
226 |
Update translation feature: load translation file from /wp-content/languages/content-views/. Fix pagination bug
|
227 |
|
admin/assets/js/admin.js
CHANGED
@@ -535,10 +535,9 @@
|
|
535 |
* Toggle 'Thumbnail settings' when change 'View type'
|
536 |
*/
|
537 |
|
538 |
-
var
|
539 |
var expect_val = [ 'scrollable', 'pinterest', 'timeline' ];
|
540 |
|
541 |
-
// 'View type' = Pinterest | Timeline
|
542 |
if ($.inArray(this_val, expect_val) >= 0) {
|
543 |
// Trigger select 1-col
|
544 |
$(layout_format + '[value="1-col"]').trigger('click');
|
@@ -553,51 +552,17 @@
|
|
553 |
var view_type = '[name="' + _prefix + 'view-type' + '"]';
|
554 |
|
555 |
// Run on page load
|
556 |
-
|
557 |
|
558 |
// Run on change
|
559 |
$(view_type).change(function () {
|
560 |
-
|
561 |
});
|
562 |
},
|
563 |
/**
|
564 |
-
*
|
565 |
-
*
|
566 |
-
* @param string _prefix
|
567 |
* @returns {undefined}
|
568 |
*/
|
569 |
-
_pagination_disable : function () {
|
570 |
-
var _prefix = this.options._prefix;
|
571 |
-
|
572 |
-
var fn_selector = function (this_val) {
|
573 |
-
var layout_format_el = '[name="' + _prefix + 'layout-format' + '"]';
|
574 |
-
|
575 |
-
var expect_val = ['grid', 'collapsible'];
|
576 |
-
if ($.inArray(this_val, expect_val) < 0) {
|
577 |
-
// Disable "2 columns" option
|
578 |
-
$(layout_format_el + '[value="2-col"]').attr('disabled', true);
|
579 |
-
$(layout_format_el + '[value="2-col"]').attr('checked', false);
|
580 |
-
|
581 |
-
// Auto select "1 column" option
|
582 |
-
$(layout_format_el + '[value="1-col"]').attr('checked', true);
|
583 |
-
} else {
|
584 |
-
// Enable "2 columns" option
|
585 |
-
$(layout_format_el + '[value="2-col"]').removeAttr('disabled');
|
586 |
-
$(layout_format_el + '[value="2-col"]').removeAttr('checked');
|
587 |
-
}
|
588 |
-
};
|
589 |
-
|
590 |
-
var selector = '[name="' + _prefix + 'view-type' + '"]';
|
591 |
-
|
592 |
-
// Run on page load
|
593 |
-
fn_selector($(selector + ':checked').val());
|
594 |
-
|
595 |
-
// Run on change
|
596 |
-
$(selector).change(function () {
|
597 |
-
fn_selector($(selector + ':checked').val());
|
598 |
-
});
|
599 |
-
},
|
600 |
-
|
601 |
_preview_btn_toggle : function(){
|
602 |
|
603 |
var $self = this;
|
@@ -660,42 +625,10 @@
|
|
660 |
$('.' + _prefix + 'bg-none').parent().css({'background-color': '#fff', 'padding-bottom': '10px'});
|
661 |
$('.' + _prefix + 'bg-none').parent().addClass('unsortable');
|
662 |
|
663 |
-
// Disable pagination
|
664 |
-
$self._pagination_disable();
|
665 |
-
|
666 |
// Prevent click on Links but title
|
667 |
$('#pt-cv-preview-box').on('click', 'a', function (e) {
|
668 |
e.preventDefault();
|
669 |
-
|
670 |
-
// alert(PT_CV_ADMIN.text.prevent_click);
|
671 |
});
|
672 |
},
|
673 |
-
|
674 |
-
/**
|
675 |
-
* Do handy toggle for Excerpt settings
|
676 |
-
*
|
677 |
-
* @returns {undefined}
|
678 |
-
*/
|
679 |
-
handy_toggle_excerpt_settings: function () {
|
680 |
-
var _prefix = this.options._prefix;
|
681 |
-
|
682 |
-
var _this_toggle = function (show_content) {
|
683 |
-
if (!show_content) {
|
684 |
-
$('#' + _prefix + 'group-excerpt-settings').addClass('hidden');
|
685 |
-
} else {
|
686 |
-
$('#' + _prefix + 'group-excerpt-settings').removeClass('hidden');
|
687 |
-
}
|
688 |
-
};
|
689 |
-
|
690 |
-
var selector = '[name="' + _prefix + 'show-field-content' + '"]';
|
691 |
-
|
692 |
-
// Run on page load
|
693 |
-
_this_toggle($(selector).is(':checked'));
|
694 |
-
|
695 |
-
// Run on change
|
696 |
-
$(selector).change(function () {
|
697 |
-
_this_toggle($(selector).is(':checked'));
|
698 |
-
});
|
699 |
-
}
|
700 |
};
|
701 |
}(jQuery) );
|
535 |
* Toggle 'Thumbnail settings' when change 'View type'
|
536 |
*/
|
537 |
|
538 |
+
var fn_layout_format = function (this_val, layout_format) {
|
539 |
var expect_val = [ 'scrollable', 'pinterest', 'timeline' ];
|
540 |
|
|
|
541 |
if ($.inArray(this_val, expect_val) >= 0) {
|
542 |
// Trigger select 1-col
|
543 |
$(layout_format + '[value="1-col"]').trigger('click');
|
552 |
var view_type = '[name="' + _prefix + 'view-type' + '"]';
|
553 |
|
554 |
// Run on page load
|
555 |
+
fn_layout_format($(view_type + ':checked').val(), layout_format);
|
556 |
|
557 |
// Run on change
|
558 |
$(view_type).change(function () {
|
559 |
+
fn_layout_format($(view_type + ':checked').val(), layout_format);
|
560 |
});
|
561 |
},
|
562 |
/**
|
563 |
+
* Toggle text of Preview button
|
|
|
|
|
564 |
* @returns {undefined}
|
565 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
_preview_btn_toggle : function(){
|
567 |
|
568 |
var $self = this;
|
625 |
$('.' + _prefix + 'bg-none').parent().css({'background-color': '#fff', 'padding-bottom': '10px'});
|
626 |
$('.' + _prefix + 'bg-none').parent().addClass('unsortable');
|
627 |
|
|
|
|
|
|
|
628 |
// Prevent click on Links but title
|
629 |
$('#pt-cv-preview-box').on('click', 'a', function (e) {
|
630 |
e.preventDefault();
|
|
|
|
|
631 |
});
|
632 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
633 |
};
|
634 |
}(jQuery) );
|
admin/views/view.php
CHANGED
@@ -121,6 +121,7 @@ echo balanceTags( PT_Options_Framework::do_settings( $options, $settings ) );
|
|
121 |
<li>
|
122 |
<a href="#<?php echo esc_attr( PT_CV_PREFIX ); ?>display-settings" data-toggle="tab"><?php _e( 'Display Settings', PT_CV_DOMAIN ); ?></a>
|
123 |
</li>
|
|
|
124 |
</ul>
|
125 |
|
126 |
<!-- Tab panes -->
|
@@ -555,13 +556,17 @@ echo balanceTags( PT_Options_Framework::do_settings( $options, $settings ) );
|
|
555 |
),
|
556 |
|
557 |
);
|
558 |
-
|
559 |
$options = apply_filters( PT_CV_PREFIX_ . 'display_settings', $options );
|
560 |
echo balanceTags( PT_Options_Framework::do_settings( $options, $settings ) );
|
561 |
?>
|
562 |
</div>
|
563 |
<!-- end Display Settings -->
|
564 |
|
|
|
|
|
|
|
|
|
565 |
</div>
|
566 |
|
567 |
<div class="clearfix"></div>
|
121 |
<li>
|
122 |
<a href="#<?php echo esc_attr( PT_CV_PREFIX ); ?>display-settings" data-toggle="tab"><?php _e( 'Display Settings', PT_CV_DOMAIN ); ?></a>
|
123 |
</li>
|
124 |
+
<?php do_action( PT_CV_PREFIX_ . 'setting_tabs_header', $settings ); ?>
|
125 |
</ul>
|
126 |
|
127 |
<!-- Tab panes -->
|
556 |
),
|
557 |
|
558 |
);
|
559 |
+
|
560 |
$options = apply_filters( PT_CV_PREFIX_ . 'display_settings', $options );
|
561 |
echo balanceTags( PT_Options_Framework::do_settings( $options, $settings ) );
|
562 |
?>
|
563 |
</div>
|
564 |
<!-- end Display Settings -->
|
565 |
|
566 |
+
<?php
|
567 |
+
do_action( PT_CV_PREFIX_ . 'setting_tabs_content', $settings );
|
568 |
+
?>
|
569 |
+
|
570 |
</div>
|
571 |
|
572 |
<div class="clearfix"></div>
|
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.2.
|
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.2.
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
include_once( plugin_dir_path( __FILE__ ) . 'includes/defines.php' );
|
33 |
|
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.2.5
|
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.2.5' );
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
include_once( plugin_dir_path( __FILE__ ) . 'includes/defines.php' );
|
33 |
|
public/content-views.php
CHANGED
@@ -231,7 +231,7 @@ class PT_Content_Views {
|
|
231 |
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
|
232 |
|
233 |
load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
|
234 |
-
load_plugin_textdomain( $domain, FALSE, dirname( plugin_basename(
|
235 |
}
|
236 |
|
237 |
/**
|
231 |
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
|
232 |
|
233 |
load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
|
234 |
+
load_plugin_textdomain( $domain, FALSE, dirname( plugin_basename( PT_CV_FILE ) ) . '/languages/' );
|
235 |
}
|
236 |
|
237 |
/**
|