Version Description
- April 01 2016 =
- Update: Remove default font-size 14 pixels for post content in View
- Tweak: Show post id as data for item (facilitate to customize individual post style)
- Tweak: Add some filters to customizing View elements by PHP code
Download this release
Release Info
Developer | PT Guy |
Plugin | Content Views – Post Grid & List for WordPress |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- README.txt +6 -1
- admin/includes/options.php +1 -1
- admin/views/view.php +3 -3
- assets/bootstrap/js/bootstrap.custom.min.js +1 -1
- content-views.php +2 -2
- includes/functions.php +21 -10
- includes/html-viewtype.php +7 -9
- includes/html.php +14 -9
- includes/settings.php +6 -3
- languages/content-views-query-and-display-post-page.po +151 -143
- public/assets/css/public.css +19 -11
- public/templates/collapsible/html/main.php +2 -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, 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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -136,6 +136,11 @@ If you are using "Your latest posts" as home page, you should paste this code `<
|
|
136 |
|
137 |
== Changelog ==
|
138 |
|
|
|
|
|
|
|
|
|
|
|
139 |
= 1.8.1 - March 21 2016 =
|
140 |
* Improvement: Equal column width in grid of 5,7,8,9,10,11 columns (in prior versions, last column was biggest)
|
141 |
* Fix: Conflict with theme/plugin which uses Bootstrap library
|
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.2
|
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.2 - April 01 2016 =
|
140 |
+
* Update: Remove default font-size 14 pixels for post content in View
|
141 |
+
* Tweak: Show post id as data for item (facilitate to customize individual post style)
|
142 |
+
* Tweak: Add some filters to customizing View elements by PHP code
|
143 |
+
|
144 |
= 1.8.1 - March 21 2016 =
|
145 |
* Improvement: Equal column width in grid of 5,7,8,9,10,11 columns (in prior versions, last column was biggest)
|
146 |
* Fix: Conflict with theme/plugin which uses Bootstrap library
|
admin/includes/options.php
CHANGED
@@ -285,7 +285,7 @@ if ( !class_exists( 'PT_Options_Framework' ) ) {
|
|
285 |
$options .= "<option value='$key' $selected $option_class>$text</option>";
|
286 |
}
|
287 |
if ( empty( $options ) ) {
|
288 |
-
$html .=
|
289 |
} else {
|
290 |
$multiple = '';
|
291 |
if ( ( isset( $param[ 'multiple' ] ) && $param[ 'multiple' ] == '1' ) || $value == 'all' ) {
|
285 |
$options .= "<option value='$key' $selected $option_class>$text</option>";
|
286 |
}
|
287 |
if ( empty( $options ) ) {
|
288 |
+
$html .= PT_CV_Settings::setting_no_option( true );
|
289 |
} else {
|
290 |
$multiple = '';
|
291 |
if ( ( isset( $param[ 'multiple' ] ) && $param[ 'multiple' ] == '1' ) || $value == 'all' ) {
|
admin/views/view.php
CHANGED
@@ -210,7 +210,7 @@ PT_CV_Functions::view_submit();
|
|
210 |
'type' => 'number',
|
211 |
'name' => 'post_parent',
|
212 |
'std' => '',
|
213 |
-
'desc' => __( 'Enter ID of parent page to
|
214 |
),
|
215 |
),
|
216 |
'dependence' => array( 'content-type', 'page' ),
|
@@ -439,7 +439,7 @@ PT_CV_Functions::view_submit();
|
|
439 |
'type' => 'text',
|
440 |
'name' => 's',
|
441 |
'std' => '',
|
442 |
-
'desc' => __( 'Enter the keyword to searching for posts
|
443 |
),
|
444 |
),
|
445 |
),
|
@@ -535,7 +535,7 @@ PT_CV_Functions::view_submit();
|
|
535 |
array(
|
536 |
'type' => 'checkbox',
|
537 |
'name' => 'lf-mobile-disable',
|
538 |
-
'options' => PT_CV_Values::yes_no( 'yes', __( 'Disable
|
539 |
'std' => '',
|
540 |
),
|
541 |
),
|
210 |
'type' => 'number',
|
211 |
'name' => 'post_parent',
|
212 |
'std' => '',
|
213 |
+
'desc' => apply_filters( PT_CV_PREFIX_ . 'setting_parent_page', __( 'Enter ID of parent page to show its children', PT_CV_TEXTDOMAIN ) ),
|
214 |
),
|
215 |
),
|
216 |
'dependence' => array( 'content-type', 'page' ),
|
439 |
'type' => 'text',
|
440 |
'name' => 's',
|
441 |
'std' => '',
|
442 |
+
'desc' => __( 'Enter the keyword to searching for posts', PT_CV_TEXTDOMAIN ) . apply_filters( PT_CV_PREFIX_ . 'searchby_keyword_desc', '' ),
|
443 |
),
|
444 |
),
|
445 |
),
|
535 |
array(
|
536 |
'type' => 'checkbox',
|
537 |
'name' => 'lf-mobile-disable',
|
538 |
+
'options' => PT_CV_Values::yes_no( 'yes', __( 'Disable this format on mobile devices & extra small screens', PT_CV_TEXTDOMAIN ) ),
|
539 |
'std' => '',
|
540 |
),
|
541 |
),
|
assets/bootstrap/js/bootstrap.custom.min.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Copyright 2011-2015 Twitter, Inc.
|
5 |
* Licensed under the MIT license
|
6 |
*/
|
7 |
-
if(typeof jQuery==="undefined"){throw new Error("Bootstrap's JavaScript requires jQuery")}+function(b){function a(){var e=document.createElement("bootstrap");var d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in d){if(e.style[c]!==undefined){return{end:d[c]}}}return false}b.fn.emulateTransitionEnd=function(e){var d=false;var c=this;b(this).one("bsTransitionEnd",function(){d=true});var f=function(){if(!d){b(c).trigger(b.support.transition.end)}};setTimeout(f,e);return this};b(function(){b.support.transition=a();if(!b.support.transition){return}b.event.special.bsTransitionEnd={bindType:b.support.transition.end,delegateType:b.support.transition.end,handle:function(c){if(b(c.target).is(this)){return c.handleObj.handler.apply(this,arguments)}}}})}(jQuery);+function(c){var d=function(g,f){this.$element=c(g);this.$indicators=this.$element.find(".pt-cv-carousel-indicators");this.options=f;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",c.proxy(this.keydown,this));this.options.pause=="hover"&&!("ontouchstart" in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",c.proxy(this.pause,this)).on("mouseleave.bs.carousel",c.proxy(this.cycle,this))};d.VERSION="3.3.5";d.TRANSITION_DURATION=600;d.DEFAULTS={interval:5000,pause:"hover",wrap:true,keyboard:true};d.prototype.keydown=function(f){if(/input|textarea/i.test(f.target.tagName)){return}switch(f.which){case 37:this.prev();break;case 39:this.next();break;default:return}f.preventDefault()};d.prototype.cycle=function(f){f||(this.paused=false);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval));return this};d.prototype.getItemIndex=function(f){this.$items=f.parent().children(".item");return this.$items.index(f||this.$active)};d.prototype.getItemForDirection=function(j,i){var f=this.getItemIndex(i);var g=(j=="prev"&&f===0)||(j=="next"&&f==(this.$items.length-1));if(g&&!this.options.wrap){return i}var k=j=="prev"?-1:1;var h=(f+k)%this.$items.length;return this.$items.eq(h)};d.prototype.to=function(h){var g=this;var f=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(h>(this.$items.length-1)||h<0){return}if(this.sliding){return this.$element.one("slid.bs.carousel",function(){g.to(h)})}if(f==h){return this.pause().cycle()}return this.slide(h>f?"next":"prev",this.$items.eq(h))};d.prototype.pause=function(f){f||(this.paused=true);if(this.$element.find(".next, .prev").length&&c.support.transition){this.$element.trigger(c.support.transition.end);this.cycle(true)}this.interval=clearInterval(this.interval);return this};d.prototype.next=function(){if(this.sliding){return}return this.slide("next")};d.prototype.prev=function(){if(this.sliding){return}return this.slide("prev")};d.prototype.slide=function(m,i){var p=this.$element.find(".item.active");var g=i||this.getItemForDirection(m,p);var k=this.interval;var n=m=="next"?"left":"right";var j=this;if(g.hasClass("active")){return(this.sliding=false)}var l=g[0];var f=c.Event("slide.bs.carousel",{relatedTarget:l,direction:n});this.$element.trigger(f);if(f.isDefaultPrevented()){return}this.sliding=true;k&&this.pause();if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=c(this.$indicators.children()[this.getItemIndex(g)]);h&&h.addClass("active")}var o=c.Event("slid.bs.carousel",{relatedTarget:l,direction:n});if(c.support.transition&&this.$element.hasClass("slide")){g.addClass(m);g[0].offsetWidth;p.addClass(n);g.addClass(n);p.one("bsTransitionEnd",function(){g.removeClass([m,n].join(" ")).addClass("active");p.removeClass(["active",n].join(" "));j.sliding=false;setTimeout(function(){j.$element.trigger(o)},0)}).emulateTransitionEnd(d.TRANSITION_DURATION)}else{p.removeClass("active");g.addClass("active");this.sliding=false;this.$element.trigger(o)}k&&this.cycle();return this};function b(f){return this.each(function(){var j=c(this);var i=j.data("bs.carousel");var g=c.extend({},d.DEFAULTS,j.data(),typeof f=="object"&&f);var h=typeof f=="string"?f:g.slide;if(!i){j.data("bs.carousel",(i=new d(this,g)))}if(typeof f=="number"){i.to(f)}else{if(h){i[h]()}else{if(g.interval){i.pause().cycle()}}}})}var a=c.fn.carousel;if(!a){c.fn.carousel=b;c.fn.carousel.Constructor=d}c.fn.carousel.noConflict=function(){c.fn.carousel=a;return this};var e=function(k){var g;var j=c(this);var f=c(j.attr("data-target")||(g=j.attr("href"))&&g.replace(/.*(?=#[^\s]+$)/,""));if(!f.hasClass("carousel")){return}var h=c.extend({},f.data(),j.data());var i=j.attr("data-slide-to");if(i){h.interval=false}b.call(f,h);if(i){f.data("bs.carousel").to(i)}k.preventDefault()};c(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e);c(window).on("load",function(){c('[data-ride="carousel"]').each(function(){var f=c(this);b.call(f,f.data())})})}(jQuery);+function(d){var e=function(g,f){this.$element=d(g);this.options=d.extend({},e.DEFAULTS,f);this.$trigger=d('[data-toggle="collapse"][href="#'+g.id+'"],[data-toggle="collapse"][data-target="#'+g.id+'"]');this.transitioning=null;if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)}if(this.options.toggle){this.toggle()}};e.VERSION="3.3.5";e.TRANSITION_DURATION=350;e.DEFAULTS={toggle:true};e.prototype.dimension=function(){var f=this.$element.hasClass("width");return f?"width":"height"};e.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in")){return}var h;var j=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(j&&j.length){h=j.data("bs.collapse");if(h&&h.transitioning){return}}var g=d.Event("show.bs.collapse");this.$element.trigger(g);if(g.isDefaultPrevented()){return}if(j&&j.length){b.call(j,"hide");h||j.data("bs.collapse",null)}var k=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[k](0).attr("aria-expanded",true);this.$trigger.removeClass("collapsed").attr("aria-expanded",true);this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[k]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")};if(!d.support.transition){return f.call(this)}var i=d.camelCase(["scroll",k].join("-"));this.$element.one("bsTransitionEnd",d.proxy(f,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[k](this.$element[0][i])};e.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in")){return}var g=d.Event("hide.bs.collapse");this.$element.trigger(g);if(g.isDefaultPrevented()){return}var h=this.dimension();this.$element[h](this.$element[h]())[0].offsetHeight;this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",false);this.$trigger.addClass("collapsed").attr("aria-expanded",false);this.transitioning=1;var f=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!d.support.transition){return f.call(this)}this.$element[h](0).one("bsTransitionEnd",d.proxy(f,this)).emulateTransitionEnd(e.TRANSITION_DURATION)};e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};e.prototype.getParent=function(){return d(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(d.proxy(function(h,g){var f=d(g);this.addAriaAndCollapsedClass(c(f),f)},this)).end()};e.prototype.addAriaAndCollapsedClass=function(g,f){var h=g.hasClass("in");g.attr("aria-expanded",h);f.toggleClass("collapsed",!h).attr("aria-expanded",h)};function c(f){var g;var h=f.attr("data-target")||(g=f.attr("href"))&&g.replace(/.*(?=#[^\s]+$)/,"");return d(h)}function b(f){return this.each(function(){var i=d(this);var h=i.data("bs.collapse");var g=d.extend({},e.DEFAULTS,i.data(),typeof f=="object"&&f);if(!h&&g.toggle&&/show|hide/.test(f)){g.toggle=false}if(!h){i.data("bs.collapse",(h=new e(this,g)))}if(typeof f=="string"){h[f]()}})}var a=d.fn.collapse;if(!a){d.fn.collapse=b;d.fn.collapse.Constructor=e}d.fn.collapse.noConflict=function(){d.fn.collapse=a;return this};d(document).ready(function(){d(".pt-cv-wrapper").on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(j){var i=d(this);if(!i.attr("data-target")){j.preventDefault()}var f=c(i);var h=f.data("bs.collapse");var g=h?"toggle":i.data();b.call(f,g)})})}(jQuery);+function(h){var e=".dropdown-backdrop";var b='[data-toggle="dropdown"]';var a=function(i){h(i).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.5";function f(k){var i=k.attr("data-target");if(!i){i=k.attr("href");i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")}var j=i&&h(i);return j&&j.length?j:k.parent()}function d(i){if(i&&i.which===3){return}h(e).remove();h(b).each(function(){var l=h(this);var k=f(l);var j={relatedTarget:this};if(!k.hasClass("open")){return}if(i&&i.type=="click"&&/input|textarea/i.test(i.target.tagName)&&h.contains(k[0],i.target)){return}k.trigger(i=h.Event("hide.bs.dropdown",j));if(i.isDefaultPrevented()){return}l.attr("aria-expanded","false");k.removeClass("open").trigger("hidden.bs.dropdown",j)})}a.prototype.toggle=function(m){var l=h(this);if(l.is(".disabled, :disabled")){return}var k=f(l);var j=k.hasClass("open");d();if(!j){if("ontouchstart" in document.documentElement&&!k.closest(".navbar-nav").length){h(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(h(this)).on("click",d)}var i={relatedTarget:this};k.trigger(m=h.Event("show.bs.dropdown",i));if(m.isDefaultPrevented()){return}l.trigger("focus").attr("aria-expanded","true");k.toggleClass("open").trigger("shown.bs.dropdown",i)}return false};a.prototype.keydown=function(m){if(!/(38|40|27|32)/.test(m.which)||/input|textarea/i.test(m.target.tagName)){return}var l=h(this);m.preventDefault();m.stopPropagation();if(l.is(".disabled, :disabled")){return}var k=f(l);var j=k.hasClass("open");if(!j&&m.which!=27||j&&m.which==27){if(m.which==27){k.find(b).trigger("focus")}return l.trigger("click")}var n=" li:not(.disabled):visible a";var o=k.find(".dropdown-menu"+n);if(!o.length){return}var i=o.index(m.target);if(m.which==38&&i>0){i--}if(m.which==40&&i<o.length-1){i++}if(!~i){i=0}o.eq(i).trigger("focus")};function g(i){return this.each(function(){var k=h(this);var j=k.data("bs.dropdown");if(!j){k.data("bs.dropdown",(j=new a(this)))}if(typeof i=="string"){j[i].call(k)}})}var c=h.fn.dropdown;if(!c){h.fn.dropdown=g;h.fn.dropdown.Constructor=a}h.fn.dropdown.noConflict=function(){h.fn.dropdown=c;return this};h(document).ready(function(){h(".pt-cv-wrapper").on("click.bs.dropdown.data-api",d).on("click.bs.dropdown.data-api",".dropdown form",function(i){i.stopPropagation()}).on("click.bs.dropdown.data-api",b,a.prototype.toggle).on("keydown.bs.dropdown.data-api",b,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)})}(jQuery);+function(d){var b=function(f){this.element=d(f)};b.VERSION="3.3.5";b.TRANSITION_DURATION=150;b.prototype.show=function(){var l=this.element;var h=l.closest("ul:not(.dropdown-menu)");var g=l.data("target");if(!g){g=l.attr("href");g=g&&g.replace(/.*(?=#[^\s]*$)/,"")}if(l.parent("li").hasClass("active")){return}var j=h.find(".active:last a");var k=d.Event("hide.bs.tab",{relatedTarget:l[0]});var i=d.Event("show.bs.tab",{relatedTarget:j[0]});j.trigger(k);l.trigger(i);if(i.isDefaultPrevented()||k.isDefaultPrevented()){return}var f=d(g);this.activate(l.closest("li"),h);this.activate(f,f.parent(),function(){j.trigger({type:"hidden.bs.tab",relatedTarget:l[0]});l.trigger({type:"shown.bs.tab",relatedTarget:j[0]})})};b.prototype.activate=function(h,g,k){var f=g.find("> .active");var j=k&&d.support.transition&&(f.length&&f.hasClass("fade")||!!g.find("> .fade").length);function i(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",false);h.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",true);if(j){h[0].offsetWidth;h.addClass("in")}else{h.removeClass("fade")}if(h.parent(".dropdown-menu").length){h.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",true)}k&&k()}f.length&&j?f.one("bsTransitionEnd",i).emulateTransitionEnd(b.TRANSITION_DURATION):i();f.removeClass("in")};function c(f){return this.each(function(){var h=d(this);var g=h.data("bs.tab");if(!g){h.data("bs.tab",(g=new b(this)))}if(typeof f=="string"){g[f]()}})}var a=d.fn.tab;if(!a){d.fn.tab=c;d.fn.tab.Constructor=b}d.fn.tab.noConflict=function(){d.fn.tab=a;return this};var e=function(f){f.preventDefault();c.call(d(this),"show")};d(document).ready(function(){d(".pt-cv-wrapper").on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)})}(jQuery);
|
8 |
|
9 |
|
10 |
/**
|
4 |
* Copyright 2011-2015 Twitter, Inc.
|
5 |
* Licensed under the MIT license
|
6 |
*/
|
7 |
+
if(typeof jQuery==="undefined"){throw new Error("Bootstrap's JavaScript requires jQuery")}+function(b){function a(){var e=document.createElement("bootstrap");var d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in d){if(e.style[c]!==undefined){return{end:d[c]}}}return false}b.fn.emulateTransitionEnd=function(e){var d=false;var c=this;b(this).one("bsTransitionEnd",function(){d=true});var f=function(){if(!d){b(c).trigger(b.support.transition.end)}};setTimeout(f,e);return this};b(function(){b.support.transition=a();if(!b.support.transition){return}b.event.special.bsTransitionEnd={bindType:b.support.transition.end,delegateType:b.support.transition.end,handle:function(c){if(b(c.target).is(this)){return c.handleObj.handler.apply(this,arguments)}}}})}(jQuery);+function(c){var d=function(g,f){this.$element=c(g);this.$indicators=this.$element.find(".pt-cv-carousel-indicators");this.options=f;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",c.proxy(this.keydown,this));this.options.pause=="hover"&&!("ontouchstart" in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",c.proxy(this.pause,this)).on("mouseleave.bs.carousel",c.proxy(this.cycle,this))};d.VERSION="3.3.5";d.TRANSITION_DURATION=600;d.DEFAULTS={interval:5000,pause:"hover",wrap:true,keyboard:true};d.prototype.keydown=function(f){if(/input|textarea/i.test(f.target.tagName)){return}switch(f.which){case 37:this.prev();break;case 39:this.next();break;default:return}f.preventDefault()};d.prototype.cycle=function(f){f||(this.paused=false);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval));return this};d.prototype.getItemIndex=function(f){this.$items=f.parent().children(".item");return this.$items.index(f||this.$active)};d.prototype.getItemForDirection=function(j,i){var f=this.getItemIndex(i);var g=(j=="prev"&&f===0)||(j=="next"&&f==(this.$items.length-1));if(g&&!this.options.wrap){return i}var k=j=="prev"?-1:1;var h=(f+k)%this.$items.length;return this.$items.eq(h)};d.prototype.to=function(h){var g=this;var f=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(h>(this.$items.length-1)||h<0){return}if(this.sliding){return this.$element.one("slid.bs.carousel",function(){g.to(h)})}if(f==h){return this.pause().cycle()}return this.slide(h>f?"next":"prev",this.$items.eq(h))};d.prototype.pause=function(f){f||(this.paused=true);if(this.$element.find(".next, .prev").length&&c.support.transition){this.$element.trigger(c.support.transition.end);this.cycle(true)}this.interval=clearInterval(this.interval);return this};d.prototype.next=function(){if(this.sliding){return}return this.slide("next")};d.prototype.prev=function(){if(this.sliding){return}return this.slide("prev")};d.prototype.slide=function(m,i){var p=this.$element.find(".item.active");var g=i||this.getItemForDirection(m,p);var k=this.interval;var n=m=="next"?"left":"right";var j=this;if(g.hasClass("active")){return(this.sliding=false)}var l=g[0];var f=c.Event("slide.bs.carousel",{relatedTarget:l,direction:n});this.$element.trigger(f);if(f.isDefaultPrevented()){return}this.sliding=true;k&&this.pause();if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=c(this.$indicators.children()[this.getItemIndex(g)]);h&&h.addClass("active")}var o=c.Event("slid.bs.carousel",{relatedTarget:l,direction:n});if(c.support.transition&&this.$element.hasClass("slide")){g.addClass(m);g[0].offsetWidth;p.addClass(n);g.addClass(n);p.one("bsTransitionEnd",function(){g.removeClass([m,n].join(" ")).addClass("active");p.removeClass(["active",n].join(" "));j.sliding=false;setTimeout(function(){j.$element.trigger(o)},0)}).emulateTransitionEnd(d.TRANSITION_DURATION)}else{p.removeClass("active");g.addClass("active");this.sliding=false;this.$element.trigger(o)}k&&this.cycle();return this};function b(f){return this.each(function(){var j=c(this);var i=j.data("bs.carousel");var g=c.extend({},d.DEFAULTS,j.data(),typeof f=="object"&&f);var h=typeof f=="string"?f:g.slide;if(!i){j.data("bs.carousel",(i=new d(this,g)))}if(typeof f=="number"){i.to(f)}else{if(h){i[h]()}else{if(g.interval){i.pause().cycle()}}}})}var a=c.fn.carousel;if(!a){c.fn.carousel=b;c.fn.carousel.Constructor=d}else{c(document).trigger("cvp-off-events")}var e=function(k){var g;var j=c(this);var f=c(j.attr("data-target")||(g=j.attr("href"))&&g.replace(/.*(?=#[^\s]+$)/,""));if(!f.hasClass("carousel")){return}var h=c.extend({},f.data(),j.data());var i=j.attr("data-slide-to");if(i){h.interval=false}b.call(f,h);if(i){f.data("bs.carousel").to(i)}k.preventDefault()};c(document).ready(function(){c(".pt-cv-wrapper").on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e)});c(window).on("load",function(){c('[data-ride="carousel"]',".pt-cv-wrapper").each(function(){var f=c(this);b.call(f,f.data())})})}(jQuery);+function(d){var e=function(g,f){this.$element=d(g);this.options=d.extend({},e.DEFAULTS,f);this.$trigger=d('[data-toggle="collapse"][href="#'+g.id+'"],[data-toggle="collapse"][data-target="#'+g.id+'"]');this.transitioning=null;if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)}if(this.options.toggle){this.toggle()}};e.VERSION="3.3.5";e.TRANSITION_DURATION=350;e.DEFAULTS={toggle:true};e.prototype.dimension=function(){var f=this.$element.hasClass("width");return f?"width":"height"};e.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in")){return}var h;var j=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(j&&j.length){h=j.data("bs.collapse");if(h&&h.transitioning){return}}var g=d.Event("show.bs.collapse");this.$element.trigger(g);if(g.isDefaultPrevented()){return}if(j&&j.length){b.call(j,"hide");h||j.data("bs.collapse",null)}var k=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[k](0).attr("aria-expanded",true);this.$trigger.removeClass("collapsed").attr("aria-expanded",true);this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[k]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")};if(!d.support.transition){return f.call(this)}var i=d.camelCase(["scroll",k].join("-"));this.$element.one("bsTransitionEnd",d.proxy(f,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[k](this.$element[0][i])};e.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in")){return}var g=d.Event("hide.bs.collapse");this.$element.trigger(g);if(g.isDefaultPrevented()){return}var h=this.dimension();this.$element[h](this.$element[h]())[0].offsetHeight;this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",false);this.$trigger.addClass("collapsed").attr("aria-expanded",false);this.transitioning=1;var f=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!d.support.transition){return f.call(this)}this.$element[h](0).one("bsTransitionEnd",d.proxy(f,this)).emulateTransitionEnd(e.TRANSITION_DURATION)};e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};e.prototype.getParent=function(){return d(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(d.proxy(function(h,g){var f=d(g);this.addAriaAndCollapsedClass(c(f),f)},this)).end()};e.prototype.addAriaAndCollapsedClass=function(g,f){var h=g.hasClass("in");g.attr("aria-expanded",h);f.toggleClass("collapsed",!h).attr("aria-expanded",h)};function c(f){var g;var h=f.attr("data-target")||(g=f.attr("href"))&&g.replace(/.*(?=#[^\s]+$)/,"");return d(h)}function b(f){return this.each(function(){var i=d(this);var h=i.data("bs.collapse");var g=d.extend({},e.DEFAULTS,i.data(),typeof f=="object"&&f);if(!h&&g.toggle&&/show|hide/.test(f)){g.toggle=false}if(!h){i.data("bs.collapse",(h=new e(this,g)))}if(typeof f=="string"){h[f]()}})}var a=d.fn.collapse;if(!a){d.fn.collapse=b;d.fn.collapse.Constructor=e}else{d(document).trigger("cvp-off-events")}d(document).ready(function(){d(".pt-cv-wrapper").on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(j){var i=d(this);if(!i.attr("data-target")){j.preventDefault()}var f=c(i);var h=f.data("bs.collapse");var g=h?"toggle":i.data();b.call(f,g)})})}(jQuery);+function(h){var e=".dropdown-backdrop";var b='[data-toggle="dropdown"]';var a=function(i){h(i).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.5";function f(k){var i=k.attr("data-target");if(!i){i=k.attr("href");i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")}var j=i&&h(i);return j&&j.length?j:k.parent()}function d(i){if(i&&i.which===3){return}h(e).remove();h(b).each(function(){var l=h(this);var k=f(l);var j={relatedTarget:this};if(!k.hasClass("open")){return}if(i&&i.type=="click"&&/input|textarea/i.test(i.target.tagName)&&h.contains(k[0],i.target)){return}k.trigger(i=h.Event("hide.bs.dropdown",j));if(i.isDefaultPrevented()){return}l.attr("aria-expanded","false");k.removeClass("open").trigger("hidden.bs.dropdown",j)})}a.prototype.toggle=function(m){var l=h(this);if(l.is(".disabled, :disabled")){return}var k=f(l);var j=k.hasClass("open");d();if(!j){if("ontouchstart" in document.documentElement&&!k.closest(".navbar-nav").length){h(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(h(this)).on("click",d)}var i={relatedTarget:this};k.trigger(m=h.Event("show.bs.dropdown",i));if(m.isDefaultPrevented()){return}l.trigger("focus").attr("aria-expanded","true");k.toggleClass("open").trigger("shown.bs.dropdown",i)}return false};a.prototype.keydown=function(m){if(!/(38|40|27|32)/.test(m.which)||/input|textarea/i.test(m.target.tagName)){return}var l=h(this);m.preventDefault();m.stopPropagation();if(l.is(".disabled, :disabled")){return}var k=f(l);var j=k.hasClass("open");if(!j&&m.which!=27||j&&m.which==27){if(m.which==27){k.find(b).trigger("focus")}return l.trigger("click")}var n=" li:not(.disabled):visible a";var o=k.find(".dropdown-menu"+n);if(!o.length){return}var i=o.index(m.target);if(m.which==38&&i>0){i--}if(m.which==40&&i<o.length-1){i++}if(!~i){i=0}o.eq(i).trigger("focus")};function g(i){return this.each(function(){var k=h(this);var j=k.data("bs.dropdown");if(!j){k.data("bs.dropdown",(j=new a(this)))}if(typeof i=="string"){j[i].call(k)}})}var c=h.fn.dropdown;if(!c){h.fn.dropdown=g;h.fn.dropdown.Constructor=a}else{h(document).trigger("cvp-off-events")}h(document).ready(function(){h(".pt-cv-wrapper").on("click.bs.dropdown.data-api",d).on("click.bs.dropdown.data-api",".dropdown form",function(i){i.stopPropagation()}).on("click.bs.dropdown.data-api",b,a.prototype.toggle).on("keydown.bs.dropdown.data-api",b,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)})}(jQuery);+function(d){var b=function(f){this.element=d(f)};b.VERSION="3.3.5";b.TRANSITION_DURATION=150;b.prototype.show=function(){var l=this.element;var h=l.closest("ul:not(.dropdown-menu)");var g=l.data("target");if(!g){g=l.attr("href");g=g&&g.replace(/.*(?=#[^\s]*$)/,"")}if(l.parent("li").hasClass("active")){return}var j=h.find(".active:last a");var k=d.Event("hide.bs.tab",{relatedTarget:l[0]});var i=d.Event("show.bs.tab",{relatedTarget:j[0]});j.trigger(k);l.trigger(i);if(i.isDefaultPrevented()||k.isDefaultPrevented()){return}var f=d(g);this.activate(l.closest("li"),h);this.activate(f,f.parent(),function(){j.trigger({type:"hidden.bs.tab",relatedTarget:l[0]});l.trigger({type:"shown.bs.tab",relatedTarget:j[0]})})};b.prototype.activate=function(h,g,k){var f=g.find("> .active");var j=k&&d.support.transition&&(f.length&&f.hasClass("fade")||!!g.find("> .fade").length);function i(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",false);h.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",true);if(j){h[0].offsetWidth;h.addClass("in")}else{h.removeClass("fade")}if(h.parent(".dropdown-menu").length){h.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",true)}k&&k()}f.length&&j?f.one("bsTransitionEnd",i).emulateTransitionEnd(b.TRANSITION_DURATION):i();f.removeClass("in")};function c(f){return this.each(function(){var h=d(this);var g=h.data("bs.tab");if(!g){h.data("bs.tab",(g=new b(this)))}if(typeof f=="string"){g[f]()}})}var a=d.fn.tab;if(!a){d.fn.tab=c;d.fn.tab.Constructor=b}else{d(document).trigger("cvp-off-events")}var e=function(f){f.preventDefault();c.call(d(this),"show")};d(document).ready(function(){d(".pt-cv-wrapper").on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)})}(jQuery);
|
8 |
|
9 |
|
10 |
/**
|
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.
|
15 |
* Author: PT Guy
|
16 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
17 |
* Text Domain: content-views-query-and-display-post-page
|
@@ -26,7 +26,7 @@ if ( !defined( 'WPINC' ) ) {
|
|
26 |
}
|
27 |
|
28 |
// Define Constant
|
29 |
-
define( 'PT_CV_VERSION', '1.8.
|
30 |
define( 'PT_CV_FILE', __FILE__ );
|
31 |
define( 'PT_CV_PATH', plugin_dir_path( __FILE__ ) );
|
32 |
include_once( PT_CV_PATH . 'includes/defines.php' );
|
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.2
|
15 |
* Author: PT Guy
|
16 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
17 |
* Text Domain: content-views-query-and-display-post-page
|
26 |
}
|
27 |
|
28 |
// Define Constant
|
29 |
+
define( 'PT_CV_VERSION', '1.8.2' );
|
30 |
define( 'PT_CV_FILE', __FILE__ );
|
31 |
define( 'PT_CV_PATH', plugin_dir_path( __FILE__ ) );
|
32 |
include_once( PT_CV_PATH . 'includes/defines.php' );
|
includes/functions.php
CHANGED
@@ -1347,10 +1347,11 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
1347 |
|
1348 |
// Define labels
|
1349 |
$labels = apply_filters( PT_CV_PREFIX_ . 'pagination_label', array(
|
1350 |
-
'prev'
|
1351 |
-
'next'
|
1352 |
-
'first'
|
1353 |
-
'last'
|
|
|
1354 |
) );
|
1355 |
|
1356 |
$start = ( ( $current_page - $pages_to_show ) > 0 ) ? $current_page - $pages_to_show : 1;
|
@@ -1359,17 +1360,24 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
1359 |
$html = '';
|
1360 |
|
1361 |
$compared_page = 1;
|
|
|
1362 |
// First
|
1363 |
-
if (
|
1364 |
-
|
|
|
|
|
1365 |
}
|
|
|
1366 |
// Prev
|
1367 |
if ( $current_page > $compared_page ) {
|
1368 |
$html .= self::pagination_generate_link( '', $current_page - 1, $labels[ 'prev' ] );
|
1369 |
}
|
1370 |
|
1371 |
-
|
1372 |
-
|
|
|
|
|
|
|
1373 |
}
|
1374 |
|
1375 |
$compared_page = $total_pages;
|
@@ -1377,9 +1385,12 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
1377 |
if ( $current_page < $total_pages ) {
|
1378 |
$html .= self::pagination_generate_link( '', $current_page + 1, $labels[ 'next' ] );
|
1379 |
}
|
|
|
1380 |
// Last
|
1381 |
-
if (
|
1382 |
-
|
|
|
|
|
1383 |
}
|
1384 |
|
1385 |
return $html;
|
1347 |
|
1348 |
// Define labels
|
1349 |
$labels = apply_filters( PT_CV_PREFIX_ . 'pagination_label', array(
|
1350 |
+
'prev' => '‹',
|
1351 |
+
'next' => '›',
|
1352 |
+
'first' => '«',
|
1353 |
+
'last' => '»',
|
1354 |
+
'only_nextprev' => false,
|
1355 |
) );
|
1356 |
|
1357 |
$start = ( ( $current_page - $pages_to_show ) > 0 ) ? $current_page - $pages_to_show : 1;
|
1360 |
$html = '';
|
1361 |
|
1362 |
$compared_page = 1;
|
1363 |
+
|
1364 |
// First
|
1365 |
+
if ( !$labels[ 'only_nextprev' ] ) {
|
1366 |
+
if ( $start > $compared_page ) {
|
1367 |
+
$html .= self::pagination_generate_link( '', $compared_page, $labels[ 'first' ] );
|
1368 |
+
}
|
1369 |
}
|
1370 |
+
|
1371 |
// Prev
|
1372 |
if ( $current_page > $compared_page ) {
|
1373 |
$html .= self::pagination_generate_link( '', $current_page - 1, $labels[ 'prev' ] );
|
1374 |
}
|
1375 |
|
1376 |
+
// Show number
|
1377 |
+
if ( !$labels[ 'only_nextprev' ] ) {
|
1378 |
+
for ( $i = $start; $i <= $end; $i++ ) {
|
1379 |
+
$html .= self::pagination_generate_link( ( $current_page == $i ) ? 'active' : '', $i );
|
1380 |
+
}
|
1381 |
}
|
1382 |
|
1383 |
$compared_page = $total_pages;
|
1385 |
if ( $current_page < $total_pages ) {
|
1386 |
$html .= self::pagination_generate_link( '', $current_page + 1, $labels[ 'next' ] );
|
1387 |
}
|
1388 |
+
|
1389 |
// Last
|
1390 |
+
if ( !$labels[ 'only_nextprev' ] ) {
|
1391 |
+
if ( $end < $compared_page ) {
|
1392 |
+
$html .= self::pagination_generate_link( '', $compared_page, $labels[ 'last' ] );
|
1393 |
+
}
|
1394 |
}
|
1395 |
|
1396 |
return $html;
|
includes/html-viewtype.php
CHANGED
@@ -16,7 +16,6 @@ if ( !class_exists( 'PT_CV_Html_ViewType' ) ) {
|
|
16 |
* @todo List of functions relates to View type output
|
17 |
*/
|
18 |
class PT_CV_Html_ViewType {
|
19 |
-
|
20 |
/**
|
21 |
* Generate class for columns
|
22 |
*
|
@@ -67,7 +66,7 @@ if ( !class_exists( 'PT_CV_Html_ViewType' ) ) {
|
|
67 |
list( $columns, $span_width_last, $span_width, $span_class ) = self::process_column_width( $column );
|
68 |
|
69 |
// Split items to rows
|
70 |
-
$columns_item
|
71 |
|
72 |
// Get HTML of each row
|
73 |
foreach ( $columns_item as $items_per_row ) {
|
@@ -147,11 +146,8 @@ if ( !class_exists( 'PT_CV_Html_ViewType' ) ) {
|
|
147 |
$count_slides = $scrollable_content_data[ 'count_slides' ];
|
148 |
$scrollable_content = $scrollable_content_data[ 'scrollable_content' ];
|
149 |
|
150 |
-
//
|
151 |
-
$interval
|
152 |
-
$js = "$('#$wrapper_id').carousel({ interval : $interval })";
|
153 |
-
|
154 |
-
$scrollable_html[] = PT_CV_Html::inline_script( $js );
|
155 |
|
156 |
// Default value off setting options
|
157 |
$enable = apply_filters( PT_CV_PREFIX_ . 'scrollable_fields_enable', 1 );
|
@@ -169,7 +165,7 @@ if ( !class_exists( 'PT_CV_Html_ViewType' ) ) {
|
|
169 |
|
170 |
// Get wrapper class scrollable
|
171 |
$scrollable_class = apply_filters( PT_CV_PREFIX_ . 'scrollable_class', 'carousel slide' );
|
172 |
-
$content[] = sprintf( '<div id="%s" class="%s" data-ride="carousel">%s</div>', esc_attr( $wrapper_id ), esc_attr( $scrollable_class ), implode( "\n", $scrollable_html ) );
|
173 |
}
|
174 |
|
175 |
/**
|
@@ -195,6 +191,8 @@ if ( !class_exists( 'PT_CV_Html_ViewType' ) ) {
|
|
195 |
|
196 |
// Split items to slide
|
197 |
$slides_item = array_chunk( $content_items, $columns * $rows );
|
|
|
|
|
198 |
|
199 |
foreach ( $slides_item as $s_idx => $slide ) {
|
200 |
// Store content of a slide
|
@@ -214,7 +212,7 @@ if ( !class_exists( 'PT_CV_Html_ViewType' ) ) {
|
|
214 |
// Wrap content of item
|
215 |
$item_classes = apply_filters( PT_CV_PREFIX_ . 'item_col_class', array( $span_class . $_span_width ), $_span_width );
|
216 |
$item_class = implode( ' ', array_filter( $item_classes ) );
|
217 |
-
$row_html[] = PT_CV_Html::content_item_wrap( $content_item, $item_class );
|
218 |
}
|
219 |
|
220 |
$slide_html[] = implode( "\n", $row_html );
|
16 |
* @todo List of functions relates to View type output
|
17 |
*/
|
18 |
class PT_CV_Html_ViewType {
|
|
|
19 |
/**
|
20 |
* Generate class for columns
|
21 |
*
|
66 |
list( $columns, $span_width_last, $span_width, $span_class ) = self::process_column_width( $column );
|
67 |
|
68 |
// Split items to rows
|
69 |
+
$columns_item = array_chunk( $content_items, $columns, true );
|
70 |
|
71 |
// Get HTML of each row
|
72 |
foreach ( $columns_item as $items_per_row ) {
|
146 |
$count_slides = $scrollable_content_data[ 'count_slides' ];
|
147 |
$scrollable_content = $scrollable_content_data[ 'scrollable_content' ];
|
148 |
|
149 |
+
// Interval time
|
150 |
+
$interval = apply_filters( PT_CV_PREFIX_ . 'scrollable_interval', 'false' );
|
|
|
|
|
|
|
151 |
|
152 |
// Default value off setting options
|
153 |
$enable = apply_filters( PT_CV_PREFIX_ . 'scrollable_fields_enable', 1 );
|
165 |
|
166 |
// Get wrapper class scrollable
|
167 |
$scrollable_class = apply_filters( PT_CV_PREFIX_ . 'scrollable_class', 'carousel slide' );
|
168 |
+
$content[] = sprintf( '<div id="%s" class="%s" data-ride="carousel" data-interval=%s>%s</div>', esc_attr( $wrapper_id ), esc_attr( $scrollable_class ), $interval, implode( "\n", $scrollable_html ) );
|
169 |
}
|
170 |
|
171 |
/**
|
191 |
|
192 |
// Split items to slide
|
193 |
$slides_item = array_chunk( $content_items, $columns * $rows );
|
194 |
+
$pids = array_keys( $content_items );
|
195 |
+
$pidx = 0;
|
196 |
|
197 |
foreach ( $slides_item as $s_idx => $slide ) {
|
198 |
// Store content of a slide
|
212 |
// Wrap content of item
|
213 |
$item_classes = apply_filters( PT_CV_PREFIX_ . 'item_col_class', array( $span_class . $_span_width ), $_span_width );
|
214 |
$item_class = implode( ' ', array_filter( $item_classes ) );
|
215 |
+
$row_html[] = PT_CV_Html::content_item_wrap( $content_item, $item_class, $pids[ $pidx++ ] );
|
216 |
}
|
217 |
|
218 |
$slide_html[] = implode( "\n", $row_html );
|
includes/html.php
CHANGED
@@ -115,11 +115,15 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
|
|
115 |
* @return type
|
116 |
*/
|
117 |
static function html_loading_img( $dimension = 15, $class = '' ) {
|
118 |
-
$img = sprintf( '<img width="%1$s" height="%1$s" class="%2$s" alt="%3$s" src="%4$s" /><div class="clear %5$s"></div>', esc_attr( $dimension ), esc_attr( $class ), __( 'loading', PT_CV_TEXTDOMAIN ),
|
119 |
|
120 |
return apply_filters( PT_CV_PREFIX_ . 'loading_image', $img );
|
121 |
}
|
122 |
|
|
|
|
|
|
|
|
|
123 |
/**
|
124 |
* Html output for button
|
125 |
*
|
@@ -839,14 +843,15 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
|
|
839 |
// Localize for Public script
|
840 |
PT_CV_Asset::localize_script(
|
841 |
'public', PT_CV_PREFIX_UPPER . 'PUBLIC', array(
|
842 |
-
'_prefix'
|
843 |
-
'page_to_show'
|
844 |
-
'_nonce'
|
845 |
-
'is_admin'
|
846 |
-
'is_mobile'
|
847 |
-
'ajaxurl'
|
848 |
-
'lang'
|
849 |
-
)
|
|
|
850 |
);
|
851 |
|
852 |
// Localize for Pagination script
|
115 |
* @return type
|
116 |
*/
|
117 |
static function html_loading_img( $dimension = 15, $class = '' ) {
|
118 |
+
$img = sprintf( '<img width="%1$s" height="%1$s" class="%2$s" alt="%3$s" src="%4$s" /><div class="clear %5$s"></div>', esc_attr( $dimension ), esc_attr( $class ), __( 'loading', PT_CV_TEXTDOMAIN ), self::loading_img_src(), PT_CV_PREFIX . 'clear-pagination' );
|
119 |
|
120 |
return apply_filters( PT_CV_PREFIX_ . 'loading_image', $img );
|
121 |
}
|
122 |
|
123 |
+
static function loading_img_src() {
|
124 |
+
return apply_filters( PT_CV_PREFIX_ . 'loading_image_url', 'data:image/gif;base64,R0lGODlhDwAPALMPAMrKygwMDJOTkz09PZWVla+vr3p6euTk5M7OzuXl5TMzMwAAAJmZmWZmZszMzP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAPACwAAAAADwAPAAAEQvDJaZaZOIcV8iQK8VRX4iTYoAwZ4iCYoAjZ4RxejhVNoT+mRGP4cyF4Pp0N98sBGIBMEMOotl6YZ3S61Bmbkm4mAgAh+QQFCgAPACwAAAAADQANAAAENPDJSRSZeA418itN8QiK8BiLITVsFiyBBIoYqnoewAD4xPw9iY4XLGYSjkQR4UAUD45DLwIAIfkEBQoADwAsAAAAAA8ACQAABC/wyVlamTi3nSdgwFNdhEJgTJoNyoB9ISYoQmdjiZPcj7EYCAeCF1gEDo4Dz2eIAAAh+QQFCgAPACwCAAAADQANAAAEM/DJBxiYeLKdX3IJZT1FU0iIg2RNKx3OkZVnZ98ToRD4MyiDnkAh6BkNC0MvsAj0kMpHBAAh+QQFCgAPACwGAAAACQAPAAAEMDC59KpFDll73HkAA2wVY5KgiK5b0RRoI6MuzG6EQqCDMlSGheEhUAgqgUUAFRySIgAh+QQFCgAPACwCAAIADQANAAAEM/DJKZNLND/kkKaHc3xk+QAMYDKsiaqmZCxGVjSFFCxB1vwy2oOgIDxuucxAMTAJFAJNBAAh+QQFCgAPACwAAAYADwAJAAAEMNAs86q1yaWwwv2Ig0jUZx3OYa4XoRAfwADXoAwfo1+CIjyFRuEho60aSNYlOPxEAAAh+QQFCgAPACwAAAIADQANAAAENPA9s4y8+IUVcqaWJ4qEQozSoAzoIyhCK2NFU2SJk0hNnyEOhKR2AzAAj4Pj4GE4W0bkJQIAOw==' );
|
125 |
+
}
|
126 |
+
|
127 |
/**
|
128 |
* Html output for button
|
129 |
*
|
843 |
// Localize for Public script
|
844 |
PT_CV_Asset::localize_script(
|
845 |
'public', PT_CV_PREFIX_UPPER . 'PUBLIC', array(
|
846 |
+
'_prefix' => PT_CV_PREFIX,
|
847 |
+
'page_to_show' => apply_filters( PT_CV_PREFIX_ . 'pages_to_show', 5 ),
|
848 |
+
'_nonce' => wp_create_nonce( PT_CV_PREFIX_ . 'ajax_nonce' ),
|
849 |
+
'is_admin' => is_admin(),
|
850 |
+
'is_mobile' => apply_filters( PT_CV_PREFIX_ . 'is_mobile', wp_is_mobile() ),
|
851 |
+
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
852 |
+
'lang' => PT_CV_Functions::get_language(), #Get current language of site
|
853 |
+
'loading_image_src' => PT_CV_Html::loading_img_src(),
|
854 |
+
) + apply_filters( PT_CV_PREFIX_ . 'public_localize_script_extra', array() )
|
855 |
);
|
856 |
|
857 |
// Localize for Pagination script
|
includes/settings.php
CHANGED
@@ -768,9 +768,12 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
768 |
*
|
769 |
* @return array
|
770 |
*/
|
771 |
-
static function setting_no_option() {
|
|
|
|
|
|
|
772 |
|
773 |
-
return array(
|
774 |
'label' => array(
|
775 |
'text' => '',
|
776 |
),
|
@@ -782,7 +785,7 @@ if ( !class_exists( 'PT_CV_Settings' ) ) {
|
|
782 |
'params' => array(
|
783 |
array(
|
784 |
'type' => 'html',
|
785 |
-
'content' =>
|
786 |
),
|
787 |
),
|
788 |
);
|
768 |
*
|
769 |
* @return array
|
770 |
*/
|
771 |
+
static function setting_no_option( $only_text = false ) {
|
772 |
+
$msg = !get_option( 'pt_cv_version_pro' ) ? '« ' . __( 'Pro features', PT_CV_TEXTDOMAIN ) . ' »' : __( 'There is no option', PT_CV_TEXTDOMAIN );
|
773 |
+
$class = PT_CV_PREFIX . 'text';
|
774 |
+
$text = "<div class='$class' style='color:#999'>$msg</div>";
|
775 |
|
776 |
+
return $only_text ? $text : array(
|
777 |
'label' => array(
|
778 |
'text' => '',
|
779 |
),
|
785 |
'params' => array(
|
786 |
array(
|
787 |
'type' => 'html',
|
788 |
+
'content' => $text,
|
789 |
),
|
790 |
),
|
791 |
);
|
languages/content-views-query-and-display-post-page.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Content Views\n"
|
4 |
-
"POT-Creation-Date: 2016-01
|
5 |
-
"PO-Revision-Date: 2016-01
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: PT Guy <support@contentviewspro.com>\n"
|
8 |
"MIME-Version: 1.0\n"
|
@@ -14,211 +14,200 @@ msgstr ""
|
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"X-Poedit-SearchPath-0: code\n"
|
16 |
|
17 |
-
#: code/admin/content-views-admin.php:
|
18 |
msgid "There is no taxonomy for selected content type"
|
19 |
msgstr ""
|
20 |
|
21 |
-
#: code/admin/content-views-admin.php:
|
22 |
msgid "Pagination is disabled when Limit = -1"
|
23 |
msgstr ""
|
24 |
|
25 |
-
#: code/admin/content-views-admin.php:
|
26 |
msgid "Opening a link is prevented in preview box"
|
27 |
msgstr ""
|
28 |
|
29 |
-
#: code/admin/content-views-admin.php:
|
30 |
msgid "Show Preview"
|
31 |
msgstr ""
|
32 |
|
33 |
-
#: code/admin/content-views-admin.php:
|
34 |
msgid "Hide Preview"
|
35 |
msgstr ""
|
36 |
|
37 |
-
#: code/admin/content-views-admin.php:
|
38 |
msgid "Update Preview"
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: code/admin/content-views-admin.php:
|
42 |
-
#: code/admin/content-views-admin.php:
|
43 |
msgid "Content Views Settings"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: code/admin/content-views-admin.php:
|
47 |
msgid "Content Views"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: code/admin/content-views-admin.php:
|
51 |
msgid "All Content Views"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: code/admin/content-views-admin.php:
|
55 |
msgid "All Views"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: code/admin/content-views-admin.php:
|
59 |
msgid "Add New View"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: code/admin/content-views-admin.php:
|
63 |
msgid "Add New"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: code/admin/content-views-admin.php:
|
67 |
-
#: code/admin/content-views-admin.php:
|
68 |
msgid "Settings"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: code/admin/content-views-admin.php:
|
72 |
msgid "Add View"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: code/admin/content-views-admin.php:
|
76 |
msgid "Edit this item"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: code/admin/content-views-admin.php:
|
80 |
msgid "Edit"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: code/admin/content-views-admin.php:
|
84 |
msgid "Shortcode"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: code/admin/content-views-admin.php:
|
88 |
msgid "Author"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: code/admin/content-views-admin.php:
|
92 |
msgid "Date"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: code/admin/
|
96 |
-
msgid "There is no option"
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: code/admin/includes/plugin.php:106
|
100 |
-
msgid "Frontend assets"
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: code/admin/includes/plugin.php:169
|
104 |
-
msgid "Don't load <b>Bootstrap 3</b> style & script (in frontend of website)"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: code/admin/includes/plugin.php:169
|
108 |
-
msgid ""
|
109 |
-
"Only check this option if Bootstrap has been loaded by active theme or "
|
110 |
-
"another plugin"
|
111 |
-
msgstr ""
|
112 |
-
|
113 |
-
#: code/admin/views/view.php:39 code/public/content-views.php:291
|
114 |
msgid "Edit View"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: code/admin/views/view.php:
|
118 |
msgid "Preview"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: code/admin/views/view.php:
|
122 |
msgid ""
|
123 |
"To show output, please click <code>Show Preview</code> or <code>Update "
|
124 |
"Preview</code> button. Otherwise, please click <code>Hide Preview</code> "
|
125 |
"button"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: code/admin/views/view.php:
|
129 |
msgid "View title"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: code/admin/views/view.php:
|
133 |
msgid "Enter a name to identify your views easily"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: code/admin/views/view.php:
|
137 |
msgid "Save"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: code/admin/views/view.php:
|
141 |
msgid "Filter Settings"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: code/admin/views/view.php:
|
145 |
msgid "Display Settings"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: code/admin/views/view.php:
|
149 |
msgid "Content type"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: code/admin/views/view.php:
|
153 |
-
msgid "Filter custom post type (product, event...)
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: code/admin/views/view.php:
|
157 |
msgid "Common filters"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: code/admin/views/view.php:
|
161 |
msgid "Include only"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: code/admin/views/view.php:
|
165 |
msgid "List of post IDs to show (comma-separated values, for example: 1,2,3)"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: code/admin/views/view.php:
|
169 |
msgid "Exclude"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: code/admin/views/view.php:
|
173 |
msgid ""
|
174 |
"List of post IDs to exclude (comma-separated values, for example: 1,2,3)"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: code/admin/views/view.php:
|
178 |
msgid "Parent page"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: code/admin/views/view.php:
|
182 |
-
msgid "Enter ID of parent page to
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: code/admin/views/view.php:
|
186 |
msgid "Limit"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: code/admin/views/view.php:
|
190 |
msgid "The number of posts to show. Set empty to show all found posts"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: code/admin/views/view.php:
|
194 |
-
msgid "Skip some posts
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: code/admin/views/view.php:
|
198 |
msgid "Advanced filters"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: code/admin/views/view.php:
|
202 |
msgid "Taxonomies"
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: code/admin/views/view.php:
|
206 |
msgid "Check the boxes to show settings"
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: code/admin/views/view.php:
|
210 |
-
msgid "Filter by custom taxonomies
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: code/admin/views/view.php:
|
214 |
msgid "Terms"
|
215 |
msgstr ""
|
216 |
|
217 |
-
#: code/admin/views/view.php:
|
218 |
msgid "Relation"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: code/admin/views/view.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
msgid "Order by"
|
223 |
msgstr ""
|
224 |
|
@@ -239,30 +228,30 @@ msgid "Keyword"
|
|
239 |
msgstr ""
|
240 |
|
241 |
#: code/admin/views/view.php:442
|
242 |
-
msgid "Enter the keyword to searching for posts
|
243 |
msgstr ""
|
244 |
|
245 |
#: code/admin/views/view.php:465
|
246 |
msgid "View type (Layout)"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: code/admin/views/view.php:479 code/includes/hooks.php:
|
250 |
msgid "View type settings"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: code/admin/views/view.php:496 code/includes/hooks.php:
|
254 |
msgid "Layout format"
|
255 |
msgstr ""
|
256 |
|
257 |
#: code/admin/views/view.php:538
|
258 |
-
msgid "Disable
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: code/admin/views/view.php:551 code/includes/hooks.php:
|
262 |
msgid "Fields settings"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: code/admin/views/view.php:569 code/includes/hooks.php:
|
266 |
msgid "Pagination settings"
|
267 |
msgstr ""
|
268 |
|
@@ -270,47 +259,47 @@ msgstr ""
|
|
270 |
msgid "Other settings"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: code/includes/functions.php:
|
274 |
msgid "View all posts in"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: code/includes/functions.php:
|
278 |
msgid "(no title)"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: code/includes/functions.php:
|
282 |
msgid "Sorry, your nonce did not verify."
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: code/includes/functions.php:
|
286 |
msgid "Empty settings"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: code/includes/functions.php:
|
290 |
msgid "No post found"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: code/includes/hooks.php:
|
294 |
msgid "Please select an option in : "
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: code/includes/hooks.php:
|
298 |
msgid "Please set value in : "
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: code/includes/hooks.php:
|
302 |
msgid "View type"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: code/includes/hooks.php:
|
306 |
msgid "Fields display"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: code/includes/hooks.php:
|
310 |
msgid "Items per page"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: code/includes/hooks.php:
|
314 |
msgid "Items per row"
|
315 |
msgstr ""
|
316 |
|
@@ -322,186 +311,205 @@ msgstr ""
|
|
322 |
msgid "loading"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: code/includes/html.php:
|
326 |
msgid "Read More"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: code/includes/html.php:
|
330 |
msgid "in"
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: code/includes/html.php:
|
334 |
msgid "0 Comment"
|
335 |
msgstr ""
|
336 |
|
337 |
-
#: code/includes/html.php:
|
338 |
msgid "1 Comment"
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: code/includes/html.php:
|
342 |
msgid "% Comments"
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: code/includes/html.php:
|
346 |
msgid "by"
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: code/includes/html.php:
|
350 |
msgid "Go to first page"
|
351 |
msgstr ""
|
352 |
|
353 |
-
#: code/includes/html.php:
|
354 |
msgid "Go to previous page"
|
355 |
msgstr ""
|
356 |
|
357 |
-
#: code/includes/html.php:
|
358 |
msgid "Go to next page"
|
359 |
msgstr ""
|
360 |
|
361 |
-
#: code/includes/html.php:
|
362 |
msgid "Go to last page"
|
363 |
msgstr ""
|
364 |
|
365 |
-
#: code/includes/html.php:
|
366 |
msgid "Current page is"
|
367 |
msgstr ""
|
368 |
|
369 |
-
#: code/includes/html.php:
|
370 |
msgid "Go to page"
|
371 |
msgstr ""
|
372 |
|
373 |
-
#: code/includes/settings.php:
|
374 |
msgid "Select terms"
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: code/includes/settings.php:
|
378 |
msgid "Operator"
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: code/includes/settings.php:
|
382 |
msgid "Order"
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: code/includes/settings.php:
|
386 |
msgid "Pagination"
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: code/includes/settings.php:
|
390 |
msgid "Enable"
|
391 |
msgstr ""
|
392 |
|
393 |
-
#: code/includes/settings.php:
|
394 |
msgid ""
|
395 |
"If value of <code>Limit</code> setting is not blank (empty), this value "
|
396 |
"should be smaller than <code>Limit</code> value"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: code/includes/settings.php:
|
400 |
msgid "Type"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: code/includes/settings.php:
|
404 |
msgid "Style"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: code/includes/settings.php:
|
408 |
msgid "Open item in"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: code/includes/settings.php:
|
412 |
msgid "How to open item when click on Title, Thumbnail, Read-more button"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: code/includes/settings.php:
|
416 |
-
msgid "
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: code/includes/settings.php:
|
420 |
msgid "Thumbnail settings"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: code/includes/settings.php:
|
424 |
msgid "Content settings"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: code/includes/settings.php:
|
428 |
msgid "Show Full Content"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: code/includes/settings.php:
|
432 |
msgid "Show Excerpt"
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: code/includes/settings.php:
|
436 |
msgid "Excerpt settings"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: code/includes/settings.php:
|
440 |
msgid "Generate excerpt by selecting the first X words of post content"
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: code/includes/settings.php:
|
444 |
-
msgid "Use manual excerpt, change <code>Read More</code> text
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: code/includes/settings.php:
|
448 |
msgid "Allow HTML tags (a, br, strong, em, strike, i, ul, ol, li) in excerpt"
|
449 |
msgstr ""
|
450 |
|
451 |
-
#: code/includes/settings.php:
|
452 |
msgid "Meta fields settings"
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: code/includes/settings.php:
|
456 |
msgid "Thumbnail position"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: code/includes/settings.php:
|
460 |
msgid "Show Thumbnail"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: code/includes/settings.php:
|
464 |
msgid "Show Title"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: code/includes/settings.php:
|
468 |
msgid "Show Content"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: code/includes/settings.php:
|
472 |
msgid "Show Meta Fields (author, date, taxonomy, comment)"
|
473 |
msgstr ""
|
474 |
|
475 |
-
#: code/includes/settings.php:
|
476 |
msgid "Size"
|
477 |
msgstr ""
|
478 |
|
479 |
-
#: code/includes/settings.php:
|
480 |
msgid "Disable responsive image of WordPress 4.4"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: code/includes/settings.php:
|
484 |
msgid "Check this option if thumbnail looks blurry"
|
485 |
msgstr ""
|
486 |
|
487 |
-
#: code/includes/settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
488 |
msgid "Show Date"
|
489 |
msgstr ""
|
490 |
|
491 |
-
#: code/includes/settings.php:
|
492 |
msgid "Show Author"
|
493 |
msgstr ""
|
494 |
|
495 |
-
#: code/includes/settings.php:
|
496 |
msgid "Show Taxonomies (categories, tags...)"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: code/includes/settings.php:
|
500 |
msgid "Show Comment Count"
|
501 |
msgstr ""
|
502 |
|
503 |
-
#: code/includes/settings.php:
|
504 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
msgstr ""
|
506 |
|
507 |
#: code/includes/values.php:95 code/includes/values.php:108
|
@@ -684,26 +692,26 @@ msgstr ""
|
|
684 |
msgid "Right"
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: code/public/content-views.php:
|
688 |
msgid "New View"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: code/public/content-views.php:
|
692 |
msgid "View View"
|
693 |
msgstr ""
|
694 |
|
695 |
-
#: code/public/content-views.php:
|
696 |
msgid "Search Views"
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: code/public/content-views.php:
|
700 |
msgid "Parent Views:"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: code/public/content-views.php:
|
704 |
msgid "No views found."
|
705 |
msgstr ""
|
706 |
|
707 |
-
#: code/public/content-views.php:
|
708 |
msgid "No views found in Trash."
|
709 |
msgstr ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Content Views\n"
|
4 |
+
"POT-Creation-Date: 2016-04-01 00:46+0700\n"
|
5 |
+
"PO-Revision-Date: 2016-04-01 00:46+0700\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: PT Guy <support@contentviewspro.com>\n"
|
8 |
"MIME-Version: 1.0\n"
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"X-Poedit-SearchPath-0: code\n"
|
16 |
|
17 |
+
#: code/admin/content-views-admin.php:219
|
18 |
msgid "There is no taxonomy for selected content type"
|
19 |
msgstr ""
|
20 |
|
21 |
+
#: code/admin/content-views-admin.php:220
|
22 |
msgid "Pagination is disabled when Limit = -1"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: code/admin/content-views-admin.php:221
|
26 |
msgid "Opening a link is prevented in preview box"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: code/admin/content-views-admin.php:225 code/admin/views/view.php:74
|
30 |
msgid "Show Preview"
|
31 |
msgstr ""
|
32 |
|
33 |
+
#: code/admin/content-views-admin.php:226
|
34 |
msgid "Hide Preview"
|
35 |
msgstr ""
|
36 |
|
37 |
+
#: code/admin/content-views-admin.php:227
|
38 |
msgid "Update Preview"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: code/admin/content-views-admin.php:277
|
42 |
+
#: code/admin/content-views-admin.php:289
|
43 |
msgid "Content Views Settings"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: code/admin/content-views-admin.php:277
|
47 |
msgid "Content Views"
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: code/admin/content-views-admin.php:281
|
51 |
msgid "All Content Views"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: code/admin/content-views-admin.php:281 code/public/content-views.php:292
|
55 |
msgid "All Views"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: code/admin/content-views-admin.php:285 code/public/content-views.php:288
|
59 |
msgid "Add New View"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: code/admin/content-views-admin.php:285
|
63 |
msgid "Add New"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: code/admin/content-views-admin.php:289
|
67 |
+
#: code/admin/content-views-admin.php:342 code/admin/includes/options.php:359
|
68 |
msgid "Settings"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: code/admin/content-views-admin.php:343
|
72 |
msgid "Add View"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: code/admin/content-views-admin.php:377
|
76 |
msgid "Edit this item"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: code/admin/content-views-admin.php:377
|
80 |
msgid "Edit"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: code/admin/content-views-admin.php:395
|
84 |
msgid "Shortcode"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: code/admin/content-views-admin.php:396 code/includes/values.php:275
|
88 |
msgid "Author"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: code/admin/content-views-admin.php:397
|
92 |
msgid "Date"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: code/admin/views/view.php:36 code/public/content-views.php:290
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
msgid "Edit View"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: code/admin/views/view.php:57
|
100 |
msgid "Preview"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: code/admin/views/view.php:64
|
104 |
msgid ""
|
105 |
"To show output, please click <code>Show Preview</code> or <code>Update "
|
106 |
"Preview</code> button. Otherwise, please click <code>Hide Preview</code> "
|
107 |
"button"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: code/admin/views/view.php:99
|
111 |
msgid "View title"
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: code/admin/views/view.php:106
|
115 |
msgid "Enter a name to identify your views easily"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: code/admin/views/view.php:117 code/admin/views/view.php:617
|
119 |
msgid "Save"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: code/admin/views/view.php:124 code/includes/hooks.php:62
|
123 |
msgid "Filter Settings"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: code/admin/views/view.php:128 code/includes/hooks.php:63
|
127 |
msgid "Display Settings"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: code/admin/views/view.php:143 code/includes/hooks.php:72
|
131 |
msgid "Content type"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: code/admin/views/view.php:155
|
135 |
+
msgid "Filter custom post type (product, event...)"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: code/admin/views/view.php:160
|
139 |
msgid "Common filters"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: code/admin/views/view.php:175
|
143 |
msgid "Include only"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: code/admin/views/view.php:182
|
147 |
msgid "List of post IDs to show (comma-separated values, for example: 1,2,3)"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: code/admin/views/view.php:190
|
151 |
msgid "Exclude"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: code/admin/views/view.php:197
|
155 |
msgid ""
|
156 |
"List of post IDs to exclude (comma-separated values, for example: 1,2,3)"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: code/admin/views/view.php:206
|
160 |
msgid "Parent page"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: code/admin/views/view.php:213
|
164 |
+
msgid "Enter ID of parent page to show its children"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: code/admin/views/view.php:222
|
168 |
msgid "Limit"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: code/admin/views/view.php:230
|
172 |
msgid "The number of posts to show. Set empty to show all found posts"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: code/admin/views/view.php:235
|
176 |
+
msgid "Skip some posts"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: code/admin/views/view.php:243
|
180 |
msgid "Advanced filters"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: code/admin/views/view.php:298
|
184 |
msgid "Taxonomies"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: code/admin/views/view.php:312
|
188 |
msgid "Check the boxes to show settings"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: code/admin/views/view.php:317
|
192 |
+
msgid "Filter by custom taxonomies"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: code/admin/views/view.php:321
|
196 |
msgid "Terms"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: code/admin/views/view.php:342
|
200 |
msgid "Relation"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: code/admin/views/view.php:354
|
204 |
+
#, php-format
|
205 |
+
msgid ""
|
206 |
+
"When you select any term above, it will not replace posts layout in term "
|
207 |
+
"page (for example: %s) with layout of this View"
|
208 |
+
msgstr ""
|
209 |
+
|
210 |
+
#: code/admin/views/view.php:361 code/includes/settings.php:88
|
211 |
msgid "Order by"
|
212 |
msgstr ""
|
213 |
|
228 |
msgstr ""
|
229 |
|
230 |
#: code/admin/views/view.php:442
|
231 |
+
msgid "Enter the keyword to searching for posts"
|
232 |
msgstr ""
|
233 |
|
234 |
#: code/admin/views/view.php:465
|
235 |
msgid "View type (Layout)"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: code/admin/views/view.php:479 code/includes/hooks.php:107
|
239 |
msgid "View type settings"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: code/admin/views/view.php:496 code/includes/hooks.php:85
|
243 |
msgid "Layout format"
|
244 |
msgstr ""
|
245 |
|
246 |
#: code/admin/views/view.php:538
|
247 |
+
msgid "Disable this format on mobile devices & extra small screens"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: code/admin/views/view.php:551 code/includes/hooks.php:90
|
251 |
msgid "Fields settings"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: code/admin/views/view.php:569 code/includes/hooks.php:96
|
255 |
msgid "Pagination settings"
|
256 |
msgstr ""
|
257 |
|
259 |
msgid "Other settings"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: code/includes/functions.php:430
|
263 |
msgid "View all posts in"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: code/includes/functions.php:491 code/includes/html.php:433
|
267 |
msgid "(no title)"
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: code/includes/functions.php:555
|
271 |
msgid "Sorry, your nonce did not verify."
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: code/includes/functions.php:593
|
275 |
msgid "Empty settings"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: code/includes/functions.php:758
|
279 |
msgid "No post found"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: code/includes/hooks.php:58
|
283 |
msgid "Please select an option in : "
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: code/includes/hooks.php:59
|
287 |
msgid "Please set value in : "
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: code/includes/hooks.php:80
|
291 |
msgid "View type"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: code/includes/hooks.php:90
|
295 |
msgid "Fields display"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: code/includes/hooks.php:96 code/includes/settings.php:147
|
299 |
msgid "Items per page"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: code/includes/hooks.php:107 code/includes/settings.php:711
|
303 |
msgid "Items per row"
|
304 |
msgstr ""
|
305 |
|
311 |
msgid "loading"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: code/includes/html.php:482
|
315 |
msgid "Read More"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: code/includes/html.php:661
|
319 |
msgid "in"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: code/includes/html.php:677
|
323 |
msgid "0 Comment"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: code/includes/html.php:677
|
327 |
msgid "1 Comment"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: code/includes/html.php:677
|
331 |
msgid "% Comments"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: code/includes/html.php:687
|
335 |
msgid "by"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: code/includes/html.php:864
|
339 |
msgid "Go to first page"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: code/includes/html.php:865
|
343 |
msgid "Go to previous page"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: code/includes/html.php:866
|
347 |
msgid "Go to next page"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: code/includes/html.php:867
|
351 |
msgid "Go to last page"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: code/includes/html.php:868
|
355 |
msgid "Current page is"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: code/includes/html.php:869
|
359 |
msgid "Go to page"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: code/includes/settings.php:42
|
363 |
msgid "Select terms"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: code/includes/settings.php:58
|
367 |
msgid "Operator"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: code/includes/settings.php:102 code/includes/values.php:273
|
371 |
msgid "Order"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: code/includes/settings.php:133
|
375 |
msgid "Pagination"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: code/includes/settings.php:139
|
379 |
msgid "Enable"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: code/includes/settings.php:160
|
383 |
msgid ""
|
384 |
"If value of <code>Limit</code> setting is not blank (empty), this value "
|
385 |
"should be smaller than <code>Limit</code> value"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: code/includes/settings.php:168
|
389 |
msgid "Type"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: code/includes/settings.php:196
|
393 |
msgid "Style"
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: code/includes/settings.php:231
|
397 |
msgid "Open item in"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: code/includes/settings.php:239
|
401 |
msgid "How to open item when click on Title, Thumbnail, Read-more button"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: code/includes/settings.php:278
|
405 |
+
msgid "Change display order (for example: show Title above Thumbnail)"
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: code/includes/settings.php:284
|
409 |
msgid "Thumbnail settings"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: code/includes/settings.php:303
|
413 |
msgid "Content settings"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: code/includes/settings.php:315
|
417 |
msgid "Show Full Content"
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: code/includes/settings.php:316
|
421 |
msgid "Show Excerpt"
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: code/includes/settings.php:342
|
425 |
msgid "Excerpt settings"
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: code/includes/settings.php:351
|
429 |
msgid "Generate excerpt by selecting the first X words of post content"
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: code/includes/settings.php:356
|
433 |
+
msgid "Use manual excerpt, change <code>Read More</code> text"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: code/includes/settings.php:366
|
437 |
msgid "Allow HTML tags (a, br, strong, em, strike, i, ul, ol, li) in excerpt"
|
438 |
msgstr ""
|
439 |
|
440 |
+
#: code/includes/settings.php:380
|
441 |
msgid "Meta fields settings"
|
442 |
msgstr ""
|
443 |
|
444 |
+
#: code/includes/settings.php:452
|
445 |
msgid "Thumbnail position"
|
446 |
msgstr ""
|
447 |
|
448 |
+
#: code/includes/settings.php:483
|
449 |
msgid "Show Thumbnail"
|
450 |
msgstr ""
|
451 |
|
452 |
+
#: code/includes/settings.php:503
|
453 |
msgid "Show Title"
|
454 |
msgstr ""
|
455 |
|
456 |
+
#: code/includes/settings.php:522
|
457 |
msgid "Show Content"
|
458 |
msgstr ""
|
459 |
|
460 |
+
#: code/includes/settings.php:541
|
461 |
msgid "Show Meta Fields (author, date, taxonomy, comment)"
|
462 |
msgstr ""
|
463 |
|
464 |
+
#: code/includes/settings.php:566
|
465 |
msgid "Size"
|
466 |
msgstr ""
|
467 |
|
468 |
+
#: code/includes/settings.php:592
|
469 |
msgid "Disable responsive image of WordPress 4.4"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: code/includes/settings.php:594
|
473 |
msgid "Check this option if thumbnail looks blurry"
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: code/includes/settings.php:599
|
477 |
+
#, php-format
|
478 |
+
msgid ""
|
479 |
+
"In this lite version, Thumbnail is only shown if %s Featured Image %s was "
|
480 |
+
"chosen"
|
481 |
+
msgstr ""
|
482 |
+
|
483 |
+
#: code/includes/settings.php:627
|
484 |
msgid "Show Date"
|
485 |
msgstr ""
|
486 |
|
487 |
+
#: code/includes/settings.php:646
|
488 |
msgid "Show Author"
|
489 |
msgstr ""
|
490 |
|
491 |
+
#: code/includes/settings.php:665
|
492 |
msgid "Show Taxonomies (categories, tags...)"
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: code/includes/settings.php:685
|
496 |
msgid "Show Comment Count"
|
497 |
msgstr ""
|
498 |
|
499 |
+
#: code/includes/settings.php:772
|
500 |
+
msgid "Pro features"
|
501 |
+
msgstr ""
|
502 |
+
|
503 |
+
#: code/includes/settings.php:772
|
504 |
+
msgid "There is no option"
|
505 |
+
msgstr ""
|
506 |
+
|
507 |
+
#: code/includes/settings.php:804
|
508 |
+
msgid "Get CVPro"
|
509 |
+
msgstr ""
|
510 |
+
|
511 |
+
#: code/includes/settings.php:819
|
512 |
+
msgid "Notice"
|
513 |
msgstr ""
|
514 |
|
515 |
#: code/includes/values.php:95 code/includes/values.php:108
|
692 |
msgid "Right"
|
693 |
msgstr ""
|
694 |
|
695 |
+
#: code/public/content-views.php:289
|
696 |
msgid "New View"
|
697 |
msgstr ""
|
698 |
|
699 |
+
#: code/public/content-views.php:291
|
700 |
msgid "View View"
|
701 |
msgstr ""
|
702 |
|
703 |
+
#: code/public/content-views.php:293
|
704 |
msgid "Search Views"
|
705 |
msgstr ""
|
706 |
|
707 |
+
#: code/public/content-views.php:294
|
708 |
msgid "Parent Views:"
|
709 |
msgstr ""
|
710 |
|
711 |
+
#: code/public/content-views.php:295
|
712 |
msgid "No views found."
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: code/public/content-views.php:296
|
716 |
msgid "No views found in Trash."
|
717 |
msgstr ""
|
public/assets/css/public.css
CHANGED
@@ -147,12 +147,6 @@
|
|
147 |
/** Content **/
|
148 |
.pt-cv-content, .pt-cv-content * {
|
149 |
font-weight: 400;
|
150 |
-
zoom: 1;
|
151 |
-
}
|
152 |
-
/* Able to use default font-size if add class "pt-cv-nfs" */
|
153 |
-
.pt-cv-content:not(.pt-cv-nfs), .pt-cv-content:not(.pt-cv-nfs) * {
|
154 |
-
font-size: 14px;
|
155 |
-
line-height: 1.6em;
|
156 |
}
|
157 |
|
158 |
/* Meta fields */
|
@@ -281,14 +275,29 @@
|
|
281 |
text-shadow: none;
|
282 |
}
|
283 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
/* Caption with image */
|
285 |
-
.pt-cv-cap-w-img {
|
286 |
background: rgba(0, 0, 0, 0.6);
|
287 |
text-shadow: 0px 1px 1px #000;
|
288 |
left: 15px !important;
|
289 |
-
padding
|
290 |
-
padding-bottom: 0;
|
291 |
-
padding-top: 10px;
|
292 |
}
|
293 |
|
294 |
.pt-cv-cap-w-img * {
|
@@ -315,7 +324,6 @@
|
|
315 |
/* Control */
|
316 |
.pt-cv-view .carousel-control {
|
317 |
background-image: none !important;
|
318 |
-
z-index: 1000;
|
319 |
height: 30px;
|
320 |
width: 40px;
|
321 |
bottom: 0;
|
147 |
/** Content **/
|
148 |
.pt-cv-content, .pt-cv-content * {
|
149 |
font-weight: 400;
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
}
|
151 |
|
152 |
/* Meta fields */
|
275 |
text-shadow: none;
|
276 |
}
|
277 |
|
278 |
+
.pt-cv-scrollable .pt-cv-title {
|
279 |
+
padding-bottom: 0;
|
280 |
+
}
|
281 |
+
|
282 |
+
.pt-cv-scrollable .pt-cv-carousel-caption {
|
283 |
+
margin-bottom: 10px !important;
|
284 |
+
}
|
285 |
+
|
286 |
+
/* Prevent weird layout caused by theme style */
|
287 |
+
.pt-cv-scrollable .carousel .item {
|
288 |
+
height: auto;
|
289 |
+
margin: auto;
|
290 |
+
min-height: 0;
|
291 |
+
max-height: none;
|
292 |
+
line-height: normal;
|
293 |
+
}
|
294 |
+
|
295 |
/* Caption with image */
|
296 |
+
.pt-cv-carousel-caption.pt-cv-cap-w-img {
|
297 |
background: rgba(0, 0, 0, 0.6);
|
298 |
text-shadow: 0px 1px 1px #000;
|
299 |
left: 15px !important;
|
300 |
+
padding: 10px;
|
|
|
|
|
301 |
}
|
302 |
|
303 |
.pt-cv-cap-w-img * {
|
324 |
/* Control */
|
325 |
.pt-cv-view .carousel-control {
|
326 |
background-image: none !important;
|
|
|
327 |
height: 30px;
|
328 |
width: 40px;
|
329 |
bottom: 0;
|
public/templates/collapsible/html/main.php
CHANGED
@@ -43,8 +43,9 @@ switch ( $layout ) {
|
|
43 |
}
|
44 |
|
45 |
$random_id = PT_CV_Functions::string_random();
|
|
|
46 |
?>
|
47 |
-
<div class="panel panel-default <?php echo PT_CV_PREFIX ?>content-item">
|
48 |
<?php echo apply_filters( PT_CV_PREFIX_ . 'collapsible_before_heading', '' ); ?>
|
49 |
<div class="panel-heading">
|
50 |
<a class="panel-title" data-toggle="collapse" data-parent="#<?php echo esc_attr( PT_CV_PREFIX_UPPER . 'ID' ); ?>" href="#<?php echo esc_attr( $random_id ); ?>">
|
43 |
}
|
44 |
|
45 |
$random_id = PT_CV_Functions::string_random();
|
46 |
+
global $post;
|
47 |
?>
|
48 |
+
<div class="panel panel-default <?php echo PT_CV_PREFIX ?>content-item" data-pid="<?php echo $post->ID; ?>">
|
49 |
<?php echo apply_filters( PT_CV_PREFIX_ . 'collapsible_before_heading', '' ); ?>
|
50 |
<div class="panel-heading">
|
51 |
<a class="panel-title" data-toggle="collapse" data-parent="#<?php echo esc_attr( PT_CV_PREFIX_UPPER . 'ID' ); ?>" href="#<?php echo esc_attr( $random_id ); ?>">
|