Version Description
- Tweak: Added Classic/Cards skin option in Blog widget.
- Tweak: Added
Padding/Margin
options for content in Blog widget. - Fixed: Vertical Scroll widget console error on Google Chrome.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 3.4.4 |
Comparing to | |
See all releases |
Code changes from version 3.4.3 to 3.4.4
- admin/includes/version-control.php +1 -1
- assets/css/premium-addons.css +36 -8
- assets/js/premium-vscroll.js +2 -2
- premium-addons-for-elementor.php +3 -3
- readme.txt +7 -1
- widgets/premium-blog.php +152 -41
admin/includes/version-control.php
CHANGED
@@ -91,7 +91,7 @@ class Version_Control {
|
|
91 |
<tr class="pa-roll-row">
|
92 |
<th><?php echo __('Rollback Version', 'premium-addons-for-elementor'); ?></th>
|
93 |
<td>
|
94 |
-
<div><?php echo sprintf( '<a target="_blank" href="%1$s" class="button pa-btn pa-rollback-button elementor-button-spinner">%2$s</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ), __('Reinstall Version 3.4.
|
95 |
<p class="pa-roll-desc">
|
96 |
<span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
|
97 |
</p>
|
91 |
<tr class="pa-roll-row">
|
92 |
<th><?php echo __('Rollback Version', 'premium-addons-for-elementor'); ?></th>
|
93 |
<td>
|
94 |
+
<div><?php echo sprintf( '<a target="_blank" href="%1$s" class="button pa-btn pa-rollback-button elementor-button-spinner">%2$s</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ), __('Reinstall Version 3.4.3', 'premium-addons-for-elementor') ); ?></div>
|
95 |
<p class="pa-roll-desc">
|
96 |
<span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
|
97 |
</p>
|
assets/css/premium-addons.css
CHANGED
@@ -1888,14 +1888,16 @@ button.premium-modal-box-modal-close {
|
|
1888 |
}
|
1889 |
/*Content Wrapper*/
|
1890 |
.premium-blog-content-wrapper {
|
1891 |
-
|
1892 |
-
z-index: 2;
|
1893 |
-
top: -50px;
|
1894 |
-
margin: 0px 30px 20px;
|
1895 |
clear: both;
|
1896 |
padding: 30px;
|
1897 |
background: #ddd;
|
1898 |
}
|
|
|
|
|
|
|
|
|
|
|
1899 |
.premium-blog-content-wrapper.empty-thumb {
|
1900 |
top: 0;
|
1901 |
}
|
@@ -1956,15 +1958,40 @@ button.premium-modal-box-modal-close {
|
|
1956 |
-o-transition: all 0.3s ease-in-out;
|
1957 |
transition: all 0.3s ease-in-out;
|
1958 |
}
|
1959 |
-
/*Post Meta Data Container*/
|
1960 |
.premium-blog-meta-data {
|
1961 |
margin-right : 8px;
|
1962 |
}
|
1963 |
-
|
1964 |
-
|
1965 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1966 |
padding-top: 14px;
|
1967 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1968 |
.premium-blog-post-content {
|
1969 |
margin-top: 0;
|
1970 |
margin-left: 75px;
|
@@ -3389,6 +3416,7 @@ button.premium-modal-box-modal-close {
|
|
3389 |
.premium-img-gallery-metro .pa-gallery-image {
|
3390 |
min-height: 100%;
|
3391 |
width: 100%;
|
|
|
3392 |
}
|
3393 |
.premium-gallery-load-more.premium-gallery-btn-hidden {
|
3394 |
display: none;
|
1888 |
}
|
1889 |
/*Content Wrapper*/
|
1890 |
.premium-blog-content-wrapper {
|
1891 |
+
margin: 0px 10px 20px;
|
|
|
|
|
|
|
1892 |
clear: both;
|
1893 |
padding: 30px;
|
1894 |
background: #ddd;
|
1895 |
}
|
1896 |
+
.premium-blog-post-container.classic .premium-blog-content-wrapper {
|
1897 |
+
position: relative;
|
1898 |
+
z-index: 2;
|
1899 |
+
top: -50px;
|
1900 |
+
}
|
1901 |
.premium-blog-content-wrapper.empty-thumb {
|
1902 |
top: 0;
|
1903 |
}
|
1958 |
-o-transition: all 0.3s ease-in-out;
|
1959 |
transition: all 0.3s ease-in-out;
|
1960 |
}
|
|
|
1961 |
.premium-blog-meta-data {
|
1962 |
margin-right : 8px;
|
1963 |
}
|
1964 |
+
.premium-blog-post-content {
|
1965 |
+
padding: 14px 0;
|
1966 |
+
}
|
1967 |
+
.premium-blog-post-container.classic .premium-blog-post-content {
|
1968 |
+
border-top: 1px solid #eaeaea;
|
1969 |
+
}
|
1970 |
+
.premium-blog-post-container.cards .premium-blog-post-content {
|
1971 |
+
border-bottom: 1px solid #eaeaea;
|
1972 |
+
}
|
1973 |
+
.premium-blog-post-container.cards .premium-blog-post-content {
|
1974 |
+
border-bottom: 1px solid #eaeaea;
|
1975 |
+
}
|
1976 |
+
.premium-blog-post-container.cards .premium-blog-entry-meta {
|
1977 |
padding-top: 14px;
|
1978 |
}
|
1979 |
+
.premium-blog-author-thumbnail {
|
1980 |
+
position: relative;
|
1981 |
+
padding: 0 30px;
|
1982 |
+
width: 100%;
|
1983 |
+
top: -10px;
|
1984 |
+
height: 0;
|
1985 |
+
pointer-events: none;
|
1986 |
+
}
|
1987 |
+
.premium-blog-author-thumbnail img {
|
1988 |
+
border-radius: 50%;
|
1989 |
+
width: 60px;
|
1990 |
+
pointer-events: all;
|
1991 |
+
-webkit-transform: translateY(-50%);
|
1992 |
+
-ms-transform: translateY(-50%);
|
1993 |
+
transform: translateY(-50%);
|
1994 |
+
}
|
1995 |
.premium-blog-post-content {
|
1996 |
margin-top: 0;
|
1997 |
margin-left: 75px;
|
3416 |
.premium-img-gallery-metro .pa-gallery-image {
|
3417 |
min-height: 100%;
|
3418 |
width: 100%;
|
3419 |
+
object-fit: fill;
|
3420 |
}
|
3421 |
.premium-gallery-load-more.premium-gallery-btn-hidden {
|
3422 |
display: none;
|
assets/js/premium-vscroll.js
CHANGED
@@ -552,7 +552,7 @@
|
|
552 |
|
553 |
self.onWheel = function(event) {
|
554 |
if (isScrolling) {
|
555 |
-
event.preventDefault();
|
556 |
return false;
|
557 |
}
|
558 |
|
@@ -623,7 +623,7 @@
|
|
623 |
$(".premium-vscroll-dots, .premium-vscroll-nav-menu").removeClass(
|
624 |
"premium-vscroll-dots-hide"
|
625 |
);
|
626 |
-
event.preventDefault();
|
627 |
offset = sections[newSectionId].offset - settings.offset;
|
628 |
currentSection = newSectionId;
|
629 |
$itemsList.removeClass("active");
|
552 |
|
553 |
self.onWheel = function(event) {
|
554 |
if (isScrolling) {
|
555 |
+
// event.preventDefault();
|
556 |
return false;
|
557 |
}
|
558 |
|
623 |
$(".premium-vscroll-dots, .premium-vscroll-nav-menu").removeClass(
|
624 |
"premium-vscroll-dots-hide"
|
625 |
);
|
626 |
+
// event.preventDefault();
|
627 |
offset = sections[newSectionId].offset - settings.offset;
|
628 |
currentSection = newSectionId;
|
629 |
$itemsList.removeClass("active");
|
premium-addons-for-elementor.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
-
Version: 3.4.
|
7 |
Author: Leap13
|
8 |
Author URI: https://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
@@ -14,12 +14,12 @@ License: GNU General Public License v3.0
|
|
14 |
if ( ! defined('ABSPATH') ) exit; // No access of directly access
|
15 |
|
16 |
// Define Constants
|
17 |
-
define('PREMIUM_ADDONS_VERSION', '3.4.
|
18 |
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
|
19 |
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
|
20 |
define('PREMIUM_ADDONS_FILE', __FILE__);
|
21 |
define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
|
22 |
-
define('PREMIUM_ADDONS_STABLE_VERSION', '3.4.
|
23 |
|
24 |
if( ! class_exists('Premium_Addons_Elementor') ) {
|
25 |
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
+
Version: 3.4.4
|
7 |
Author: Leap13
|
8 |
Author URI: https://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
14 |
if ( ! defined('ABSPATH') ) exit; // No access of directly access
|
15 |
|
16 |
// Define Constants
|
17 |
+
define('PREMIUM_ADDONS_VERSION', '3.4.4');
|
18 |
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
|
19 |
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
|
20 |
define('PREMIUM_ADDONS_FILE', __FILE__);
|
21 |
define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
|
22 |
+
define('PREMIUM_ADDONS_STABLE_VERSION', '3.4.3');
|
23 |
|
24 |
if( ! class_exists('Premium_Addons_Elementor') ) {
|
25 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 3.4.
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
@@ -139,6 +139,12 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
= 3.4.3 =
|
143 |
|
144 |
- Tweak: Load widgets CSS file only on pages including Premium elements.
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 3.4.4
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
139 |
|
140 |
== Changelog ==
|
141 |
|
142 |
+
= 3.4.4 =
|
143 |
+
|
144 |
+
- Tweak: Added Classic/Cards skin option in Blog widget.
|
145 |
+
- Tweak: Added `Padding/Margin` options for content in Blog widget.
|
146 |
+
- Fixed: Vertical Scroll widget console error on Google Chrome.
|
147 |
+
|
148 |
= 3.4.3 =
|
149 |
|
150 |
- Tweak: Load widgets CSS file only on pages including Premium elements.
|
widgets/premium-blog.php
CHANGED
@@ -105,6 +105,19 @@ class Premium_Blog extends Widget_Base {
|
|
105 |
]
|
106 |
);
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
$this->add_control('premium_blog_title_tag',
|
109 |
[
|
110 |
'label' => __( 'Title HTML Tag', 'premium-addons-for-elementor' ),
|
@@ -849,6 +862,28 @@ class Premium_Blog extends Widget_Base {
|
|
849 |
'selector' => '{{WRAPPER}} .premium-blog-content-wrapper',
|
850 |
]
|
851 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
852 |
|
853 |
$this->end_controls_section();
|
854 |
|
@@ -1232,12 +1267,16 @@ class Premium_Blog extends Widget_Base {
|
|
1232 |
]
|
1233 |
);
|
1234 |
|
1235 |
-
|
1236 |
-
|
1237 |
$this->end_controls_section();
|
1238 |
|
1239 |
}
|
1240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1241 |
protected function get_post_content() {
|
1242 |
|
1243 |
$settings = $this->get_settings();
|
@@ -1246,14 +1285,23 @@ class Premium_Blog extends Widget_Base {
|
|
1246 |
$excerpt_text = $settings['premium_blog_excerpt_text'];
|
1247 |
$excerpt_src = $settings['premium_blog_excerpt_box'];
|
1248 |
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
|
|
|
|
|
|
|
|
1254 |
}
|
1255 |
|
1256 |
-
|
|
|
|
|
|
|
|
|
|
|
1257 |
protected function get_post_format_icon() {
|
1258 |
|
1259 |
$post_format = get_post_format();
|
@@ -1287,8 +1335,61 @@ class Premium_Blog extends Widget_Base {
|
|
1287 |
<i class="premium-blog-format-icon fa fa-<?php echo $post_format; ?>"></i>
|
1288 |
<?php
|
1289 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1290 |
|
1291 |
-
|
|
|
|
|
|
|
|
|
|
|
1292 |
protected function get_post_layout() {
|
1293 |
|
1294 |
$settings = $this->get_settings();
|
@@ -1303,13 +1404,23 @@ class Premium_Blog extends Widget_Base {
|
|
1303 |
$target = '_self';
|
1304 |
}
|
1305 |
|
1306 |
-
$
|
1307 |
|
1308 |
-
$this->add_render_attribute( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1309 |
|
1310 |
?>
|
1311 |
|
1312 |
-
<div
|
1313 |
<div class="premium-blog-thumb-effect-wrapper">
|
1314 |
<div class="premium-blog-thumbnail-container <?php echo 'premium-blog-' . $image_effect . '-effect';?>">
|
1315 |
<a href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $target ); ?>"><?php the_post_thumbnail('full'); ?></a>
|
@@ -1317,13 +1428,18 @@ class Premium_Blog extends Widget_Base {
|
|
1317 |
<div class="premium-blog-effect-container <?php echo 'premium-blog-'. $post_effect . '-effect'; ?>">
|
1318 |
<a class="premium-blog-post-link" href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $target ); ?>"></a>
|
1319 |
<?php if( $settings['premium_blog_hover_color_effect'] === 'bordered' ) : ?>
|
1320 |
-
|
1321 |
<?php elseif( $settings['premium_blog_hover_color_effect'] === 'squares' ) : ?>
|
1322 |
-
|
1323 |
<?php endif; ?>
|
1324 |
</div>
|
1325 |
</div>
|
1326 |
-
|
|
|
|
|
|
|
|
|
|
|
1327 |
<div class="premium-blog-inner-container">
|
1328 |
<?php if( $settings['premium_blog_post_format_icon'] === 'yes' ) : ?>
|
1329 |
<div class="premium-blog-format-container">
|
@@ -1331,34 +1447,29 @@ class Premium_Blog extends Widget_Base {
|
|
1331 |
</div>
|
1332 |
<?php endif; ?>
|
1333 |
<div class="premium-blog-entry-container">
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
<?php if( $settings['premium_blog_categories_meta'] === 'yes' ) : ?>
|
1343 |
-
<span class="premium-blog-post-categories premium-blog-meta-data"><i class="fa fa-align-left fa-fw"></i><?php the_category(', '); ?></span>
|
1344 |
-
<?php endif; ?>
|
1345 |
-
<?php if( $settings['premium_blog_comments_meta'] === 'yes' ) : ?>
|
1346 |
-
<span class="premium-blog-post-comments premium-blog-meta-data"><i class="fa fa-comments-o fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php comments_number('0 Comments', '1', '%'); ?> </a></span>
|
1347 |
-
<?php endif; ?>
|
1348 |
-
<?php if( $settings['premium_blog_edit_post'] === 'yes' ) : ?>
|
1349 |
-
<span class="premium-blog-post-edit premium-blog-meta-data"><i class="fa fa-pencil fa-fw"></i><?php edit_post_link(); ?></span>
|
1350 |
-
<?php endif; ?>
|
1351 |
-
</div>
|
1352 |
</div>
|
1353 |
</div>
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
|
|
|
|
|
|
|
|
|
|
1362 |
</div>
|
1363 |
</div>
|
1364 |
|
105 |
]
|
106 |
);
|
107 |
|
108 |
+
$this->add_control('premium_blog_skin',
|
109 |
+
[
|
110 |
+
'label' => __('Skin', 'premium-addons-for-elementor'),
|
111 |
+
'type' => Controls_Manager::SELECT,
|
112 |
+
'options' => [
|
113 |
+
'classic' => __('Classic', 'premium-addons-for-elementor'),
|
114 |
+
'cards' => __('Cards', 'premium-addons-for-elementor'),
|
115 |
+
],
|
116 |
+
'default' => 'classic',
|
117 |
+
'label_block' => true
|
118 |
+
]
|
119 |
+
);
|
120 |
+
|
121 |
$this->add_control('premium_blog_title_tag',
|
122 |
[
|
123 |
'label' => __( 'Title HTML Tag', 'premium-addons-for-elementor' ),
|
862 |
'selector' => '{{WRAPPER}} .premium-blog-content-wrapper',
|
863 |
]
|
864 |
);
|
865 |
+
|
866 |
+
$this->add_responsive_control('prmeium_blog_content_margin',
|
867 |
+
[
|
868 |
+
'label' => __('Margin', 'premium-addons-for-elementor'),
|
869 |
+
'type' => Controls_Manager::DIMENSIONS,
|
870 |
+
'size_units' => ['px', 'em', '%'],
|
871 |
+
'selectors' => [
|
872 |
+
'{{WRAPPER}} .premium-blog-content-wrapper' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
|
873 |
+
]
|
874 |
+
]
|
875 |
+
);
|
876 |
+
|
877 |
+
$this->add_responsive_control('prmeium_blog_content_padding',
|
878 |
+
[
|
879 |
+
'label' => __('Padding', 'premium-addons-for-elementor'),
|
880 |
+
'type' => Controls_Manager::DIMENSIONS,
|
881 |
+
'size_units' => ['px', 'em', '%'],
|
882 |
+
'selectors' => [
|
883 |
+
'{{WRAPPER}} .premium-blog-content-wrapper' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
|
884 |
+
]
|
885 |
+
]
|
886 |
+
);
|
887 |
|
888 |
$this->end_controls_section();
|
889 |
|
1267 |
]
|
1268 |
);
|
1269 |
|
|
|
|
|
1270 |
$this->end_controls_section();
|
1271 |
|
1272 |
}
|
1273 |
|
1274 |
+
/*
|
1275 |
+
* Renders post content
|
1276 |
+
*
|
1277 |
+
* @since 3.0.5
|
1278 |
+
* @access protected
|
1279 |
+
*/
|
1280 |
protected function get_post_content() {
|
1281 |
|
1282 |
$settings = $this->get_settings();
|
1285 |
$excerpt_text = $settings['premium_blog_excerpt_text'];
|
1286 |
$excerpt_src = $settings['premium_blog_excerpt_box'];
|
1287 |
|
1288 |
+
?>
|
1289 |
+
<div class="premium-blog-post-content" style="<?php if ( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px;'; endif; ?>">
|
1290 |
+
<?php if ( $settings['premium_blog_excerpt'] === 'yes' ) {
|
1291 |
+
echo premium_addons_get_excerpt_by_id( get_the_ID(), $settings['premium_blog_excerpt_length'], $excerpt_type, $excerpt_text, $excerpt_src );
|
1292 |
+
} else {
|
1293 |
+
the_content();
|
1294 |
+
} ?>
|
1295 |
+
</div>
|
1296 |
+
<?php
|
1297 |
}
|
1298 |
|
1299 |
+
/*
|
1300 |
+
* Renders post format icon
|
1301 |
+
*
|
1302 |
+
* @since 3.0.5
|
1303 |
+
* @access protected
|
1304 |
+
*/
|
1305 |
protected function get_post_format_icon() {
|
1306 |
|
1307 |
$post_format = get_post_format();
|
1335 |
<i class="premium-blog-format-icon fa fa-<?php echo $post_format; ?>"></i>
|
1336 |
<?php
|
1337 |
}
|
1338 |
+
|
1339 |
+
/*
|
1340 |
+
* Render post title
|
1341 |
+
*
|
1342 |
+
* @since 3.4.4
|
1343 |
+
* @access protected
|
1344 |
+
*/
|
1345 |
+
protected function get_post_title( $link_target ) {
|
1346 |
+
|
1347 |
+
$settings = $this->get_settings_for_display();
|
1348 |
+
|
1349 |
+
$this->add_render_attribute( 'title', 'class', 'premium-blog-entry-title' );
|
1350 |
+
|
1351 |
+
?>
|
1352 |
+
|
1353 |
+
<<?php echo $settings['premium_blog_title_tag'] . ' ' . $this->get_render_attribute_string('title'); ?>><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $link_target ); ?>"><?php the_title(); ?></a></<?php echo $settings['premium_blog_title_tag']; ?>>
|
1354 |
+
|
1355 |
+
<?php
|
1356 |
+
}
|
1357 |
+
|
1358 |
+
protected function get_post_meta( $link_target ) {
|
1359 |
+
|
1360 |
+
$settings = $this->get_settings();
|
1361 |
+
|
1362 |
+
$date_format = get_option('date_format');
|
1363 |
+
|
1364 |
+
?>
|
1365 |
+
|
1366 |
+
<div class="premium-blog-entry-meta" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px'; endif; ?>">
|
1367 |
+
<?php if( $settings['premium_blog_author_meta'] === 'yes' ) : ?>
|
1368 |
+
<span class="premium-blog-post-author premium-blog-meta-data"><i class="fa fa-user fa-fw"></i><?php the_author_posts_link();?></span>
|
1369 |
+
<?php endif; ?>
|
1370 |
+
<?php if( $settings['premium_blog_date_meta'] === 'yes' ) : ?>
|
1371 |
+
<span class="premium-blog-post-time premium-blog-meta-data"><i class="fa fa-calendar fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($link_target); ?>"><?php the_time($date_format); ?></a></span>
|
1372 |
+
<?php endif; ?>
|
1373 |
+
<?php if( $settings['premium_blog_categories_meta'] === 'yes' ) : ?>
|
1374 |
+
<span class="premium-blog-post-categories premium-blog-meta-data"><i class="fa fa-align-left fa-fw"></i><?php the_category(', '); ?></span>
|
1375 |
+
<?php endif; ?>
|
1376 |
+
<?php if( $settings['premium_blog_comments_meta'] === 'yes' ) : ?>
|
1377 |
+
<span class="premium-blog-post-comments premium-blog-meta-data"><i class="fa fa-comments-o fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($link_target); ?>"><?php comments_number('0 Comments', '1', '%'); ?> </a></span>
|
1378 |
+
<?php endif; ?>
|
1379 |
+
<?php if( $settings['premium_blog_edit_post'] === 'yes' ) : ?>
|
1380 |
+
<span class="premium-blog-post-edit premium-blog-meta-data"><i class="fa fa-pencil fa-fw"></i><?php edit_post_link(); ?></span>
|
1381 |
+
<?php endif; ?>
|
1382 |
+
</div>
|
1383 |
+
|
1384 |
+
<?php
|
1385 |
+
}
|
1386 |
|
1387 |
+
/*
|
1388 |
+
* Renders post skin
|
1389 |
+
*
|
1390 |
+
* @since 3.0.5
|
1391 |
+
* @access protected
|
1392 |
+
*/
|
1393 |
protected function get_post_layout() {
|
1394 |
|
1395 |
$settings = $this->get_settings();
|
1404 |
$target = '_self';
|
1405 |
}
|
1406 |
|
1407 |
+
$skin = $settings['premium_blog_skin'];
|
1408 |
|
1409 |
+
$this->add_render_attribute( 'post', 'class', [
|
1410 |
+
'premium-blog-post-container',
|
1411 |
+
$skin,
|
1412 |
+
] );
|
1413 |
+
|
1414 |
+
$thumb = ( ! has_post_thumbnail() ) ? 'empty-thumb' : '';
|
1415 |
+
|
1416 |
+
$this->add_render_attribute( 'content', 'class', [
|
1417 |
+
'premium-blog-content-wrapper',
|
1418 |
+
$thumb,
|
1419 |
+
] );
|
1420 |
|
1421 |
?>
|
1422 |
|
1423 |
+
<div <?php echo $this->get_render_attribute_string('post'); ?>>
|
1424 |
<div class="premium-blog-thumb-effect-wrapper">
|
1425 |
<div class="premium-blog-thumbnail-container <?php echo 'premium-blog-' . $image_effect . '-effect';?>">
|
1426 |
<a href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $target ); ?>"><?php the_post_thumbnail('full'); ?></a>
|
1428 |
<div class="premium-blog-effect-container <?php echo 'premium-blog-'. $post_effect . '-effect'; ?>">
|
1429 |
<a class="premium-blog-post-link" href="<?php the_permalink(); ?>" target="<?php echo esc_attr( $target ); ?>"></a>
|
1430 |
<?php if( $settings['premium_blog_hover_color_effect'] === 'bordered' ) : ?>
|
1431 |
+
<div class="premium-blog-bordered-border-container"></div>
|
1432 |
<?php elseif( $settings['premium_blog_hover_color_effect'] === 'squares' ) : ?>
|
1433 |
+
<div class="premium-blog-squares-square-container"></div>
|
1434 |
<?php endif; ?>
|
1435 |
</div>
|
1436 |
</div>
|
1437 |
+
<?php if( 'cards' === $skin ) : ?>
|
1438 |
+
<div class="premium-blog-author-thumbnail">
|
1439 |
+
<?php echo get_avatar( get_the_author_meta( 'ID' ), 128, '', get_the_author_meta( 'display_name' ) ); ?>
|
1440 |
+
</div>
|
1441 |
+
<?php endif; ?>
|
1442 |
+
<div <?php echo $this->get_render_attribute_string('content'); ?>>
|
1443 |
<div class="premium-blog-inner-container">
|
1444 |
<?php if( $settings['premium_blog_post_format_icon'] === 'yes' ) : ?>
|
1445 |
<div class="premium-blog-format-container">
|
1447 |
</div>
|
1448 |
<?php endif; ?>
|
1449 |
<div class="premium-blog-entry-container">
|
1450 |
+
<?php
|
1451 |
+
$this->get_post_title( $target );
|
1452 |
+
if ( 'classic' === $skin ) {
|
1453 |
+
$this->get_post_meta( $target );
|
1454 |
+
}
|
1455 |
+
|
1456 |
+
?>
|
1457 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1458 |
</div>
|
1459 |
</div>
|
1460 |
+
|
1461 |
+
<?php
|
1462 |
+
$this->get_post_content();
|
1463 |
+
if ( 'cards' === $skin ) {
|
1464 |
+
$this->get_post_meta( $target );
|
1465 |
+
}
|
1466 |
+
?>
|
1467 |
+
|
1468 |
+
<?php if( $settings['premium_blog_tags_meta'] === 'yes' && the_tags() != '' ) : ?>
|
1469 |
+
<div class="premium-blog-post-tags-container" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px;'; endif; ?>">
|
1470 |
+
<span class="premium-blog-post-tags"><i class="fa fa-tags fa-fw"></i><?php the_tags(' ', ', '); ?></span>
|
1471 |
+
</div>
|
1472 |
+
<?php endif; ?>
|
1473 |
</div>
|
1474 |
</div>
|
1475 |
|