Version Description
- Bug fixed: Menu bar is disappeared
Download this release
Release Info
Developer | PT Guy |
Plugin | Content Views – Post Grid & List for WordPress |
Version | 1.3.9 |
Comparing to | |
See all releases |
Code changes from version 1.3.8 to 1.3.9
- README.txt +4 -1
- admin/includes/plugin.php +1 -1
- admin/views/view.php +1 -1
- assets/bootstrap/css/bootstrap.min.css +56 -56
- content-views.php +2 -2
- includes/html.php +2 -1
- includes/settings.php +7 -7
- public/assets/css/public.css +10 -0
- public/assets/js/public.js +15 -0
- 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, grid, layout, author, blog, categories, category, comment, content, custom, editor, filter, Formatting, image, list, meta, plugin, responsive, shortcode, excerpt, title, tag, term, Taxonomy, thumbnail, pagination, date, scrollable, slider, collapsible
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -144,6 +144,9 @@ You can create Unlimited Views, in Unlimited websites
|
|
144 |
|
145 |
== Changelog ==
|
146 |
|
|
|
|
|
|
|
147 |
= 1.3.8 =
|
148 |
* Bug fixed: Admin bar is hidden on pages which do not use View
|
149 |
* Bug fixed: Fix warning message in Dashboard
|
4 |
Tags: post, posts, page, pages, query, queries, search, display, show, grid, layout, author, blog, categories, category, comment, content, custom, editor, filter, Formatting, image, list, meta, plugin, responsive, shortcode, excerpt, title, tag, term, Taxonomy, thumbnail, pagination, date, scrollable, slider, collapsible
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 1.3.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
144 |
|
145 |
== Changelog ==
|
146 |
|
147 |
+
= 1.3.9 =
|
148 |
+
* Bug fixed: Menu bar is disappeared
|
149 |
+
|
150 |
= 1.3.8 =
|
151 |
* Bug fixed: Admin bar is hidden on pages which do not use View
|
152 |
* Bug fixed: Fix warning message in Dashboard
|
admin/includes/plugin.php
CHANGED
@@ -95,7 +95,7 @@ if ( ! class_exists( 'PT_CV_Plugin' ) ) {
|
|
95 |
$this_section = 'setting_frontend_assets';
|
96 |
add_settings_section(
|
97 |
$this_section, // ID
|
98 |
-
|
99 |
array( __CLASS__, 'section_callback_setting_frontend_assets' ), // Callback
|
100 |
PT_CV_DOMAIN // Page
|
101 |
);
|
95 |
$this_section = 'setting_frontend_assets';
|
96 |
add_settings_section(
|
97 |
$this_section, // ID
|
98 |
+
'', // Title
|
99 |
array( __CLASS__, 'section_callback_setting_frontend_assets' ), // Callback
|
100 |
PT_CV_DOMAIN // Page
|
101 |
);
|
admin/views/view.php
CHANGED
@@ -251,7 +251,7 @@ $options = array(
|
|
251 |
'params' => array(
|
252 |
array(
|
253 |
'label' => array(
|
254 |
-
'text' =>
|
255 |
),
|
256 |
'extra_setting' => array(
|
257 |
'params' => array(
|
251 |
'params' => array(
|
252 |
array(
|
253 |
'label' => array(
|
254 |
+
'text' => '',
|
255 |
),
|
256 |
'extra_setting' => array(
|
257 |
'params' => array(
|
assets/bootstrap/css/bootstrap.min.css
CHANGED
@@ -190,7 +190,7 @@ th {
|
|
190 |
padding: 0;
|
191 |
}
|
192 |
/* @Customizer-1 start */
|
193 |
-
/* @Glyphicons
|
194 |
@font-face {
|
195 |
font-family: 'Glyphicons Halflings';
|
196 |
src: url('../fonts/glyphicons-halflings-regular.eot');
|
@@ -1009,29 +1009,29 @@ hr {
|
|
1009 |
.text-nowrap {
|
1010 |
white-space: nowrap;
|
1011 |
}
|
1012 |
-
/* @Grid system-
|
1013 |
-
.container {
|
1014 |
margin-right: auto;
|
1015 |
margin-left: auto;
|
1016 |
padding-left: 15px;
|
1017 |
padding-right: 15px;
|
1018 |
}
|
1019 |
@media (min-width: 768px) {
|
1020 |
-
.container {
|
1021 |
width: 750px;
|
1022 |
}
|
1023 |
}
|
1024 |
@media (min-width: 992px) {
|
1025 |
-
.container {
|
1026 |
width: 970px;
|
1027 |
}
|
1028 |
}
|
1029 |
@media (min-width: 1200px) {
|
1030 |
-
.container {
|
1031 |
width: 1170px;
|
1032 |
}
|
1033 |
}
|
1034 |
-
.container-fluid {
|
1035 |
margin-right: auto;
|
1036 |
margin-left: auto;
|
1037 |
padding-left: 15px;
|
@@ -1679,18 +1679,18 @@ hr {
|
|
1679 |
}
|
1680 |
.clearfix:before,
|
1681 |
.clearfix:after,
|
1682 |
-
.container:before,
|
1683 |
-
.container:after,
|
1684 |
-
.container-fluid:before,
|
1685 |
-
.container-fluid:after,
|
1686 |
.row:before,
|
1687 |
.row:after {
|
1688 |
content: " ";
|
1689 |
display: table;
|
1690 |
}
|
1691 |
.clearfix:after,
|
1692 |
-
.container:after,
|
1693 |
-
.container-fluid:after,
|
1694 |
.row:after {
|
1695 |
clear: both;
|
1696 |
}
|
@@ -1984,121 +1984,127 @@ fieldset[disabled] .btn {
|
|
1984 |
.btn-group-vertical > .btn-group:after {
|
1985 |
clear: both;
|
1986 |
}
|
1987 |
-
/* @Navs-
|
1988 |
-
.
|
1989 |
margin-bottom: 0;
|
1990 |
padding-left: 0;
|
1991 |
list-style: none;
|
1992 |
}
|
1993 |
-
.
|
1994 |
position: relative;
|
1995 |
display: block;
|
1996 |
}
|
1997 |
-
.
|
1998 |
position: relative;
|
1999 |
display: block;
|
2000 |
padding: 10px 15px;
|
2001 |
}
|
2002 |
-
.
|
2003 |
-
.
|
2004 |
text-decoration: none;
|
2005 |
background-color: #eeeeee;
|
2006 |
}
|
2007 |
-
.
|
2008 |
color: #777777;
|
2009 |
}
|
2010 |
-
.
|
2011 |
-
.
|
2012 |
color: #777777;
|
2013 |
text-decoration: none;
|
2014 |
background-color: transparent;
|
2015 |
cursor: not-allowed;
|
2016 |
}
|
2017 |
-
.
|
2018 |
-
.
|
2019 |
-
.
|
2020 |
background-color: #eeeeee;
|
2021 |
border-color: #428bca;
|
2022 |
}
|
2023 |
-
.
|
2024 |
height: 1px;
|
2025 |
margin: 9px 0;
|
2026 |
overflow: hidden;
|
2027 |
background-color: #e5e5e5;
|
2028 |
}
|
2029 |
-
.
|
2030 |
max-width: none;
|
2031 |
}
|
2032 |
-
.
|
2033 |
border-bottom: 1px solid #dddddd;
|
2034 |
}
|
2035 |
-
.
|
2036 |
float: left;
|
2037 |
margin-bottom: -1px;
|
2038 |
}
|
2039 |
-
.
|
2040 |
margin-right: 2px;
|
2041 |
line-height: 1.42857143;
|
2042 |
border: 1px solid transparent;
|
2043 |
border-radius: 4px 4px 0 0;
|
2044 |
}
|
2045 |
-
.
|
2046 |
border-color: #eeeeee #eeeeee #dddddd;
|
2047 |
}
|
2048 |
-
.
|
2049 |
-
.
|
2050 |
-
.
|
2051 |
color: #555555;
|
2052 |
background-color: #ffffff;
|
2053 |
border: 1px solid #dddddd;
|
2054 |
border-bottom-color: transparent;
|
2055 |
cursor: default;
|
2056 |
}
|
2057 |
-
.
|
2058 |
width: 100%;
|
2059 |
border-bottom: 0;
|
2060 |
}
|
2061 |
-
.
|
2062 |
float: none;
|
2063 |
}
|
2064 |
-
.
|
2065 |
text-align: center;
|
2066 |
margin-bottom: 5px;
|
2067 |
}
|
2068 |
-
.
|
2069 |
top: auto;
|
2070 |
left: auto;
|
2071 |
}
|
2072 |
@media (min-width: 768px) {
|
2073 |
-
.
|
2074 |
display: table-cell;
|
2075 |
width: 1%;
|
2076 |
}
|
2077 |
-
.
|
2078 |
margin-bottom: 0;
|
2079 |
}
|
2080 |
}
|
2081 |
-
.
|
2082 |
margin-right: 0;
|
2083 |
border-radius: 4px;
|
2084 |
}
|
2085 |
-
.
|
2086 |
-
.
|
2087 |
-
.
|
2088 |
border: 1px solid #dddddd;
|
2089 |
}
|
2090 |
@media (min-width: 768px) {
|
2091 |
-
.
|
2092 |
border-bottom: 1px solid #dddddd;
|
2093 |
border-radius: 4px 4px 0 0;
|
2094 |
}
|
2095 |
-
.
|
2096 |
-
.
|
2097 |
-
.
|
2098 |
border-bottom-color: #ffffff;
|
2099 |
}
|
2100 |
}
|
2101 |
/* + */
|
|
|
|
|
|
|
|
|
|
|
|
|
2102 |
.tab-content > .tab-pane {
|
2103 |
display: none;
|
2104 |
visibility: hidden;
|
@@ -2107,12 +2113,6 @@ fieldset[disabled] .btn {
|
|
2107 |
display: block;
|
2108 |
visibility: visible;
|
2109 |
}
|
2110 |
-
/* + Customized */
|
2111 |
-
.pt-cv-client-tab:before, .pt-cv-client-tab:after {
|
2112 |
-
clear: both;
|
2113 |
-
content: " ";
|
2114 |
-
display: table;
|
2115 |
-
}
|
2116 |
/* @Pagination */
|
2117 |
.pagination {
|
2118 |
display: inline-block;
|
@@ -2278,14 +2278,14 @@ a.thumbnail.active {
|
|
2278 |
.fade.in {
|
2279 |
opacity: 1;
|
2280 |
}
|
2281 |
-
|
2282 |
display: none;
|
2283 |
visibility: hidden;
|
2284 |
}
|
2285 |
.collapse.in {
|
2286 |
display: block;
|
2287 |
visibility: visible;
|
2288 |
-
}
|
2289 |
tr.collapse.in {
|
2290 |
display: table-row;
|
2291 |
}
|
190 |
padding: 0;
|
191 |
}
|
192 |
/* @Customizer-1 start */
|
193 |
+
/* @Glyphicons */
|
194 |
@font-face {
|
195 |
font-family: 'Glyphicons Halflings';
|
196 |
src: url('../fonts/glyphicons-halflings-regular.eot');
|
1009 |
.text-nowrap {
|
1010 |
white-space: nowrap;
|
1011 |
}
|
1012 |
+
/* @Grid system-customized: Replace .container = .pt-cv-container (.container is not required) */
|
1013 |
+
.pt-cv-container {
|
1014 |
margin-right: auto;
|
1015 |
margin-left: auto;
|
1016 |
padding-left: 15px;
|
1017 |
padding-right: 15px;
|
1018 |
}
|
1019 |
@media (min-width: 768px) {
|
1020 |
+
.pt-cv-container {
|
1021 |
width: 750px;
|
1022 |
}
|
1023 |
}
|
1024 |
@media (min-width: 992px) {
|
1025 |
+
.pt-cv-container {
|
1026 |
width: 970px;
|
1027 |
}
|
1028 |
}
|
1029 |
@media (min-width: 1200px) {
|
1030 |
+
.pt-cv-container {
|
1031 |
width: 1170px;
|
1032 |
}
|
1033 |
}
|
1034 |
+
.pt-cv-container-fluid {
|
1035 |
margin-right: auto;
|
1036 |
margin-left: auto;
|
1037 |
padding-left: 15px;
|
1679 |
}
|
1680 |
.clearfix:before,
|
1681 |
.clearfix:after,
|
1682 |
+
.pt-cv-container:before,
|
1683 |
+
.pt-cv-container:after,
|
1684 |
+
.pt-cv-container-fluid:before,
|
1685 |
+
.pt-cv-container-fluid:after,
|
1686 |
.row:before,
|
1687 |
.row:after {
|
1688 |
content: " ";
|
1689 |
display: table;
|
1690 |
}
|
1691 |
.clearfix:after,
|
1692 |
+
.pt-cv-container:after,
|
1693 |
+
.pt-cv-container-fluid:after,
|
1694 |
.row:after {
|
1695 |
clear: both;
|
1696 |
}
|
1984 |
.btn-group-vertical > .btn-group:after {
|
1985 |
clear: both;
|
1986 |
}
|
1987 |
+
/* @Navs-minified */
|
1988 |
+
.nav {
|
1989 |
margin-bottom: 0;
|
1990 |
padding-left: 0;
|
1991 |
list-style: none;
|
1992 |
}
|
1993 |
+
.nav > li {
|
1994 |
position: relative;
|
1995 |
display: block;
|
1996 |
}
|
1997 |
+
.nav > li > a {
|
1998 |
position: relative;
|
1999 |
display: block;
|
2000 |
padding: 10px 15px;
|
2001 |
}
|
2002 |
+
.nav > li > a:hover,
|
2003 |
+
.nav > li > a:focus {
|
2004 |
text-decoration: none;
|
2005 |
background-color: #eeeeee;
|
2006 |
}
|
2007 |
+
.nav > li.disabled > a {
|
2008 |
color: #777777;
|
2009 |
}
|
2010 |
+
.nav > li.disabled > a:hover,
|
2011 |
+
.nav > li.disabled > a:focus {
|
2012 |
color: #777777;
|
2013 |
text-decoration: none;
|
2014 |
background-color: transparent;
|
2015 |
cursor: not-allowed;
|
2016 |
}
|
2017 |
+
.nav .open > a,
|
2018 |
+
.nav .open > a:hover,
|
2019 |
+
.nav .open > a:focus {
|
2020 |
background-color: #eeeeee;
|
2021 |
border-color: #428bca;
|
2022 |
}
|
2023 |
+
.nav .nav-divider {
|
2024 |
height: 1px;
|
2025 |
margin: 9px 0;
|
2026 |
overflow: hidden;
|
2027 |
background-color: #e5e5e5;
|
2028 |
}
|
2029 |
+
.nav > li > a > img {
|
2030 |
max-width: none;
|
2031 |
}
|
2032 |
+
.nav-tabs {
|
2033 |
border-bottom: 1px solid #dddddd;
|
2034 |
}
|
2035 |
+
.nav-tabs > li {
|
2036 |
float: left;
|
2037 |
margin-bottom: -1px;
|
2038 |
}
|
2039 |
+
.nav-tabs > li > a {
|
2040 |
margin-right: 2px;
|
2041 |
line-height: 1.42857143;
|
2042 |
border: 1px solid transparent;
|
2043 |
border-radius: 4px 4px 0 0;
|
2044 |
}
|
2045 |
+
.nav-tabs > li > a:hover {
|
2046 |
border-color: #eeeeee #eeeeee #dddddd;
|
2047 |
}
|
2048 |
+
.nav-tabs > li.active > a,
|
2049 |
+
.nav-tabs > li.active > a:hover,
|
2050 |
+
.nav-tabs > li.active > a:focus {
|
2051 |
color: #555555;
|
2052 |
background-color: #ffffff;
|
2053 |
border: 1px solid #dddddd;
|
2054 |
border-bottom-color: transparent;
|
2055 |
cursor: default;
|
2056 |
}
|
2057 |
+
.nav-tabs.nav-justified {
|
2058 |
width: 100%;
|
2059 |
border-bottom: 0;
|
2060 |
}
|
2061 |
+
.nav-tabs.nav-justified > li {
|
2062 |
float: none;
|
2063 |
}
|
2064 |
+
.nav-tabs.nav-justified > li > a {
|
2065 |
text-align: center;
|
2066 |
margin-bottom: 5px;
|
2067 |
}
|
2068 |
+
.nav-tabs.nav-justified > .dropdown .dropdown-menu {
|
2069 |
top: auto;
|
2070 |
left: auto;
|
2071 |
}
|
2072 |
@media (min-width: 768px) {
|
2073 |
+
.nav-tabs.nav-justified > li {
|
2074 |
display: table-cell;
|
2075 |
width: 1%;
|
2076 |
}
|
2077 |
+
.nav-tabs.nav-justified > li > a {
|
2078 |
margin-bottom: 0;
|
2079 |
}
|
2080 |
}
|
2081 |
+
.nav-tabs.nav-justified > li > a {
|
2082 |
margin-right: 0;
|
2083 |
border-radius: 4px;
|
2084 |
}
|
2085 |
+
.nav-tabs.nav-justified > .active > a,
|
2086 |
+
.nav-tabs.nav-justified > .active > a:hover,
|
2087 |
+
.nav-tabs.nav-justified > .active > a:focus {
|
2088 |
border: 1px solid #dddddd;
|
2089 |
}
|
2090 |
@media (min-width: 768px) {
|
2091 |
+
.nav-tabs.nav-justified > li > a {
|
2092 |
border-bottom: 1px solid #dddddd;
|
2093 |
border-radius: 4px 4px 0 0;
|
2094 |
}
|
2095 |
+
.nav-tabs.nav-justified > .active > a,
|
2096 |
+
.nav-tabs.nav-justified > .active > a:hover,
|
2097 |
+
.nav-tabs.nav-justified > .active > a:focus {
|
2098 |
border-bottom-color: #ffffff;
|
2099 |
}
|
2100 |
}
|
2101 |
/* + */
|
2102 |
+
.nav-tabs:before, .nav-tabs:after {
|
2103 |
+
clear: both;
|
2104 |
+
content: " ";
|
2105 |
+
display: table;
|
2106 |
+
}
|
2107 |
+
/* + Tab-panel */
|
2108 |
.tab-content > .tab-pane {
|
2109 |
display: none;
|
2110 |
visibility: hidden;
|
2113 |
display: block;
|
2114 |
visibility: visible;
|
2115 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2116 |
/* @Pagination */
|
2117 |
.pagination {
|
2118 |
display: inline-block;
|
2278 |
.fade.in {
|
2279 |
opacity: 1;
|
2280 |
}
|
2281 |
+
/*.collapse {
|
2282 |
display: none;
|
2283 |
visibility: hidden;
|
2284 |
}
|
2285 |
.collapse.in {
|
2286 |
display: block;
|
2287 |
visibility: visible;
|
2288 |
+
}*/
|
2289 |
tr.collapse.in {
|
2290 |
display: table-row;
|
2291 |
}
|
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.3.
|
14 |
* Author: PT Guy
|
15 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
16 |
* Text Domain: content-views
|
@@ -27,7 +27,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
27 |
/*
|
28 |
* Define Constant
|
29 |
*/
|
30 |
-
define( 'PT_CV_VERSION', '1.3.
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
$pt_cv_path = plugin_dir_path( __FILE__ );
|
33 |
include_once( $pt_cv_path . 'includes/defines.php' );
|
10 |
* Plugin Name: Content Views
|
11 |
* Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
|
12 |
* Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
|
13 |
+
* Version: 1.3.9
|
14 |
* Author: PT Guy
|
15 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
16 |
* Text Domain: content-views
|
27 |
/*
|
28 |
* Define Constant
|
29 |
*/
|
30 |
+
define( 'PT_CV_VERSION', '1.3.9' );
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
$pt_cv_path = plugin_dir_path( __FILE__ );
|
33 |
include_once( $pt_cv_path . 'includes/defines.php' );
|
includes/html.php
CHANGED
@@ -629,7 +629,8 @@ if ( ! class_exists( 'PT_CV_Html' ) ) {
|
|
629 |
|
630 |
$terms = PT_CV_Functions::post_terms( $post );
|
631 |
if ( ! empty( $terms ) ) {
|
632 |
-
$
|
|
|
633 |
}
|
634 |
break;
|
635 |
|
629 |
|
630 |
$terms = PT_CV_Functions::post_terms( $post );
|
631 |
if ( ! empty( $terms ) ) {
|
632 |
+
$term_html = sprintf( '<span class="%s">%s %s</span>', esc_attr( $term_class ), balanceTags( $prefix_text ), balanceTags( $terms ) );
|
633 |
+
$html['taxonomy'] = apply_filters( PT_CV_PREFIX_ . 'field_term_html', $term_html, $terms );
|
634 |
}
|
635 |
break;
|
636 |
|
includes/settings.php
CHANGED
@@ -310,7 +310,7 @@ if ( ! class_exists( 'PT_CV_Settings' ) ) {
|
|
310 |
// Excerpt settings
|
311 |
array(
|
312 |
'label' => array(
|
313 |
-
'text' =>
|
314 |
),
|
315 |
'extra_setting' => array(
|
316 |
'params' => array(
|
@@ -368,7 +368,7 @@ if ( ! class_exists( 'PT_CV_Settings' ) ) {
|
|
368 |
$field_display_settings = array(
|
369 |
array(
|
370 |
'label' => array(
|
371 |
-
'text' =>
|
372 |
),
|
373 |
'extra_setting' => array(
|
374 |
'params' => array(
|
@@ -427,7 +427,7 @@ if ( ! class_exists( 'PT_CV_Settings' ) ) {
|
|
427 |
// Show Thumbnail
|
428 |
array(
|
429 |
'label' => array(
|
430 |
-
'text' =>
|
431 |
),
|
432 |
'extra_setting' => array(
|
433 |
'params' => array(
|
@@ -448,7 +448,7 @@ if ( ! class_exists( 'PT_CV_Settings' ) ) {
|
|
448 |
// Show Title
|
449 |
array(
|
450 |
'label' => array(
|
451 |
-
'text' =>
|
452 |
),
|
453 |
'extra_setting' => array(
|
454 |
'params' => array(
|
@@ -468,7 +468,7 @@ if ( ! class_exists( 'PT_CV_Settings' ) ) {
|
|
468 |
// Show Content
|
469 |
array(
|
470 |
'label' => array(
|
471 |
-
'text' =>
|
472 |
),
|
473 |
'extra_setting' => array(
|
474 |
'params' => array(
|
@@ -488,7 +488,7 @@ if ( ! class_exists( 'PT_CV_Settings' ) ) {
|
|
488 |
// Show Meta fields
|
489 |
array(
|
490 |
'label' => array(
|
491 |
-
'text' =>
|
492 |
),
|
493 |
'extra_setting' => array(
|
494 |
'params' => array(
|
@@ -721,7 +721,7 @@ if ( ! class_exists( 'PT_CV_Settings' ) ) {
|
|
721 |
|
722 |
return array(
|
723 |
'label' => array(
|
724 |
-
'text' =>
|
725 |
),
|
726 |
'extra_setting' => array(
|
727 |
'params' => array(
|
310 |
// Excerpt settings
|
311 |
array(
|
312 |
'label' => array(
|
313 |
+
'text' => '',
|
314 |
),
|
315 |
'extra_setting' => array(
|
316 |
'params' => array(
|
368 |
$field_display_settings = array(
|
369 |
array(
|
370 |
'label' => array(
|
371 |
+
'text' => '',
|
372 |
),
|
373 |
'extra_setting' => array(
|
374 |
'params' => array(
|
427 |
// Show Thumbnail
|
428 |
array(
|
429 |
'label' => array(
|
430 |
+
'text' => '',
|
431 |
),
|
432 |
'extra_setting' => array(
|
433 |
'params' => array(
|
448 |
// Show Title
|
449 |
array(
|
450 |
'label' => array(
|
451 |
+
'text' => '',
|
452 |
),
|
453 |
'extra_setting' => array(
|
454 |
'params' => array(
|
468 |
// Show Content
|
469 |
array(
|
470 |
'label' => array(
|
471 |
+
'text' => '',
|
472 |
),
|
473 |
'extra_setting' => array(
|
474 |
'params' => array(
|
488 |
// Show Meta fields
|
489 |
array(
|
490 |
'label' => array(
|
491 |
+
'text' => '',
|
492 |
),
|
493 |
'extra_setting' => array(
|
494 |
'params' => array(
|
721 |
|
722 |
return array(
|
723 |
'label' => array(
|
724 |
+
'text' => '',
|
725 |
),
|
726 |
'extra_setting' => array(
|
727 |
'params' => array(
|
public/assets/css/public.css
CHANGED
@@ -240,4 +240,14 @@
|
|
240 |
/* Layout */
|
241 |
.pt-cv-2-col .pt-cv-title {
|
242 |
clear: none !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
}
|
240 |
/* Layout */
|
241 |
.pt-cv-2-col .pt-cv-title {
|
242 |
clear: none !important;
|
243 |
+
}
|
244 |
+
|
245 |
+
/* Collapsible layout */
|
246 |
+
.pt-cv-view .collapse {
|
247 |
+
display: none;
|
248 |
+
visibility: hidden;
|
249 |
+
}
|
250 |
+
.pt-cv-view .collapse.in {
|
251 |
+
display: block;
|
252 |
+
visibility: visible;
|
253 |
}
|
public/assets/js/public.js
CHANGED
@@ -20,6 +20,7 @@
|
|
20 |
|
21 |
// Autoload all registered functions
|
22 |
if (this.options._autoload !== 0) {
|
|
|
23 |
this.pagination();
|
24 |
this.openin_window();
|
25 |
}
|
@@ -27,6 +28,20 @@
|
|
27 |
|
28 |
$.PT_CV_Public.prototype = {
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
/**
|
31 |
* Bootstrap pagination
|
32 |
* @returns {undefined}
|
20 |
|
21 |
// Autoload all registered functions
|
22 |
if (this.options._autoload !== 0) {
|
23 |
+
this.move_bootstrap_to_top();
|
24 |
this.pagination();
|
25 |
this.openin_window();
|
26 |
}
|
28 |
|
29 |
$.PT_CV_Public.prototype = {
|
30 |
|
31 |
+
/**
|
32 |
+
* Manually move Bootstrap to top of all styles
|
33 |
+
*
|
34 |
+
* @returns {undefined}
|
35 |
+
*/
|
36 |
+
move_bootstrap_to_top: function () {
|
37 |
+
var _prefix = PT_CV_PUBLIC._prefix;
|
38 |
+
|
39 |
+
var selector = _prefix + 'bootstrap-style-css';
|
40 |
+
var bootstrap_css = $('#' + selector);
|
41 |
+
bootstrap_css.remove();
|
42 |
+
$('head').find('title').after( "<!-- Manually move Bootstrap to top of all styles --><link rel='stylesheet' id='" + selector + "' href='" + bootstrap_css.attr('href') + "' type='text/css' media='all' />" );
|
43 |
+
},
|
44 |
+
|
45 |
/**
|
46 |
* Bootstrap pagination
|
47 |
* @returns {undefined}
|
public/content-views.php
CHANGED
@@ -49,7 +49,7 @@ class PT_Content_Views {
|
|
49 |
add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
|
50 |
|
51 |
// Load public-facing style sheet and JavaScript.
|
52 |
-
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ) );
|
53 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
54 |
|
55 |
// Update view count of post
|
49 |
add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
|
50 |
|
51 |
// Load public-facing style sheet and JavaScript.
|
52 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ), 0 );
|
53 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
54 |
|
55 |
// Update view count of post
|