Version Description
- 2022-03-08 - fix - More Escaping issue fixed.
Download this release
Release Info
Developer | pickplugins |
Plugin | Post Grid |
Version | 2.1.17 |
Comparing to | |
See all releases |
Code changes from version 2.1.16 to 2.1.17
- includes/classes/class-admin-notices.php +13 -11
- includes/classes/class-meta-boxes.php +1 -1
- includes/classes/class-settings-tabs.php +30 -30
- includes/data-update/class-post-grid-data-update.php +1 -1
- includes/functions.php +1 -1
- includes/layout-elements/kk-star-ratings/layout-elements.php +1 -1
- includes/layout-elements/likebtn-like-button/layout-elements.php +1 -1
- includes/layout-elements/multi-rating/layout-elements.php +4 -4
- includes/layout-elements/rate-my-post/layout-elements.php +105 -113
- includes/layout-elements/rating-widget/layout-elements.php +1 -1
- includes/layout-elements/site-reviews/layout-elements.php +1 -1
- includes/layout-elements/wck-custom-fields-and-custom-post-types-creator/layout-elements.php +48 -48
- includes/layout-elements/yith-woocommerce-wishlist/layout-elements.php +1 -1
- includes/menu/addons.php +3 -3
- includes/menu/data-update.php +1 -1
- includes/menu/import-layouts.php +4 -4
- includes/menu/settings-old.php +2 -2
- includes/menu/settings.php +1 -1
- includes/metabox-post-grid-hook.php +8 -8
- includes/metabox-post-grid-layout-hook.php +1 -1
- includes/post-grid-layout-elements.php +22 -23
- includes/settings-hook.php +1 -1
- post-grid.php +2 -2
- readme.txt +5 -2
- templates/post-grid-hook.php +18 -18
includes/classes/class-admin-notices.php
CHANGED
@@ -1,15 +1,18 @@
|
|
1 |
<?php
|
2 |
-
if (
|
3 |
|
4 |
-
class class_post_grid_notices
|
|
|
5 |
|
6 |
-
public function __construct()
|
|
|
7 |
|
8 |
//add_action('admin_notices', array( $this, 'import_layouts' ));
|
9 |
|
10 |
}
|
11 |
|
12 |
-
public function import_layouts()
|
|
|
13 |
|
14 |
$post_grid_info = get_option('post_grid_info');
|
15 |
$import_layouts = isset($post_grid_info['import_layouts']) ? $post_grid_info['import_layouts'] : '';
|
@@ -19,20 +22,19 @@ class class_post_grid_notices{
|
|
19 |
|
20 |
ob_start();
|
21 |
|
22 |
-
if($import_layouts != 'done'):
|
23 |
-
|
24 |
<div class="update-nag">
|
25 |
<?php
|
26 |
-
echo sprintf(__('Post grid require import free layouts, please <a href="%s">click here</a> to go import page', 'post-grid-pro'),
|
27 |
?>
|
28 |
</div>
|
29 |
-
|
30 |
endif;
|
31 |
|
32 |
|
33 |
-
echo ob_get_clean();
|
34 |
}
|
35 |
-
|
36 |
}
|
37 |
|
38 |
-
new class_post_grid_notices();
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) exit; // if direct access
|
3 |
|
4 |
+
class class_post_grid_notices
|
5 |
+
{
|
6 |
|
7 |
+
public function __construct()
|
8 |
+
{
|
9 |
|
10 |
//add_action('admin_notices', array( $this, 'import_layouts' ));
|
11 |
|
12 |
}
|
13 |
|
14 |
+
public function import_layouts()
|
15 |
+
{
|
16 |
|
17 |
$post_grid_info = get_option('post_grid_info');
|
18 |
$import_layouts = isset($post_grid_info['import_layouts']) ? $post_grid_info['import_layouts'] : '';
|
22 |
|
23 |
ob_start();
|
24 |
|
25 |
+
if ($import_layouts != 'done') :
|
26 |
+
?>
|
27 |
<div class="update-nag">
|
28 |
<?php
|
29 |
+
echo esc_html(sprintf(__('Post grid require import free layouts, please <a href="%s">click here</a> to go import page', 'post-grid-pro'), esc_url(admin_url() . 'edit.php?post_type=post_grid&page=post-grid-settings&tab=help_support')))
|
30 |
?>
|
31 |
</div>
|
32 |
+
<?php
|
33 |
endif;
|
34 |
|
35 |
|
36 |
+
echo esc_html(ob_get_clean());
|
37 |
}
|
|
|
38 |
}
|
39 |
|
40 |
+
new class_post_grid_notices();
|
includes/classes/class-meta-boxes.php
CHANGED
@@ -470,7 +470,7 @@ class post_grid_meta_boxs{
|
|
470 |
|
471 |
?>
|
472 |
<li keywords="<?php echo esc_attr($keywords); ?>" class="item">
|
473 |
-
<a target="_blank" href="<?php echo
|
474 |
|
475 |
</li>
|
476 |
<?php
|
470 |
|
471 |
?>
|
472 |
<li keywords="<?php echo esc_attr($keywords); ?>" class="item">
|
473 |
+
<a target="_blank" href="<?php echo esc_url($url); ?>"><i class="far fa-dot-circle"></i> <?php echo esc_html($title); ?></a>
|
474 |
|
475 |
</li>
|
476 |
<?php
|
includes/classes/class-settings-tabs.php
CHANGED
@@ -335,7 +335,7 @@ class settings_tabs_field{
|
|
335 |
|
336 |
$input_html = ob_get_clean();
|
337 |
|
338 |
-
echo sprintf($field_template, $title, $input_html, $group_details);
|
339 |
|
340 |
|
341 |
}
|
@@ -406,7 +406,7 @@ class settings_tabs_field{
|
|
406 |
|
407 |
$input_html = ob_get_clean();
|
408 |
|
409 |
-
echo sprintf($field_template, $title, $input_html, $group_details);
|
410 |
|
411 |
|
412 |
}
|
@@ -476,12 +476,12 @@ class settings_tabs_field{
|
|
476 |
"image/ico" == $media_type
|
477 |
){
|
478 |
?>
|
479 |
-
<img class="media-preview" src="<?php echo
|
480 |
<div class="media-title"><?php echo esc_html($media_title); ?></div>
|
481 |
<?php
|
482 |
}else {
|
483 |
?>
|
484 |
-
<img class="media-preview" src="<?php echo
|
485 |
<div class="media-title"><?php echo esc_html($media_title); ?></div>
|
486 |
|
487 |
<?php
|
@@ -499,7 +499,7 @@ class settings_tabs_field{
|
|
499 |
|
500 |
$input_html = ob_get_clean();
|
501 |
|
502 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
503 |
|
504 |
}
|
505 |
|
@@ -559,14 +559,14 @@ class settings_tabs_field{
|
|
559 |
"images/gif" == $media_type ||
|
560 |
"images/ico" == $media_type){
|
561 |
?>
|
562 |
-
<img class="media-preview" src="<?php echo
|
563 |
|
564 |
<?php
|
565 |
}
|
566 |
|
567 |
else {
|
568 |
?>
|
569 |
-
<img class="media-preview" src="<?php echo
|
570 |
|
571 |
<?php
|
572 |
}
|
@@ -583,7 +583,7 @@ class settings_tabs_field{
|
|
583 |
|
584 |
$input_html = ob_get_clean();
|
585 |
|
586 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
587 |
|
588 |
}
|
589 |
|
@@ -749,7 +749,7 @@ class settings_tabs_field{
|
|
749 |
|
750 |
$input_html = ob_get_clean();
|
751 |
|
752 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
753 |
|
754 |
|
755 |
|
@@ -831,7 +831,7 @@ class settings_tabs_field{
|
|
831 |
|
832 |
$input_html = ob_get_clean();
|
833 |
|
834 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
835 |
|
836 |
|
837 |
}
|
@@ -899,7 +899,7 @@ class settings_tabs_field{
|
|
899 |
|
900 |
$input_html = ob_get_clean();
|
901 |
|
902 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
903 |
|
904 |
|
905 |
|
@@ -986,7 +986,7 @@ class settings_tabs_field{
|
|
986 |
<span class="button sort"><i class="fas fa-arrows-alt"></i></span>
|
987 |
<?php endif; ?>
|
988 |
|
989 |
-
<span class="button remove" onclick="jQuery(this).parent().remove()"><?php echo $remove_text; ?></span>
|
990 |
</div>
|
991 |
<?php
|
992 |
|
@@ -1002,7 +1002,7 @@ class settings_tabs_field{
|
|
1002 |
|
1003 |
$input_html = ob_get_clean();
|
1004 |
|
1005 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1006 |
|
1007 |
}
|
1008 |
|
@@ -1038,7 +1038,7 @@ class settings_tabs_field{
|
|
1038 |
|
1039 |
$input_html = ob_get_clean();
|
1040 |
|
1041 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1042 |
|
1043 |
}
|
1044 |
|
@@ -1075,7 +1075,7 @@ class settings_tabs_field{
|
|
1075 |
|
1076 |
$input_html = ob_get_clean();
|
1077 |
|
1078 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1079 |
|
1080 |
}
|
1081 |
|
@@ -1127,7 +1127,7 @@ class settings_tabs_field{
|
|
1127 |
|
1128 |
$input_html = ob_get_clean();
|
1129 |
|
1130 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1131 |
|
1132 |
}
|
1133 |
|
@@ -1192,7 +1192,7 @@ class settings_tabs_field{
|
|
1192 |
|
1193 |
$input_html = ob_get_clean();
|
1194 |
|
1195 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1196 |
|
1197 |
}
|
1198 |
|
@@ -1254,7 +1254,7 @@ class settings_tabs_field{
|
|
1254 |
<?php
|
1255 |
|
1256 |
$input_html = ob_get_clean();
|
1257 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1258 |
}
|
1259 |
|
1260 |
|
@@ -1290,7 +1290,7 @@ class settings_tabs_field{
|
|
1290 |
|
1291 |
$input_html = ob_get_clean();
|
1292 |
|
1293 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1294 |
|
1295 |
}
|
1296 |
|
@@ -1327,7 +1327,7 @@ class settings_tabs_field{
|
|
1327 |
|
1328 |
$input_html = ob_get_clean();
|
1329 |
|
1330 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1331 |
|
1332 |
}
|
1333 |
|
@@ -1369,7 +1369,7 @@ class settings_tabs_field{
|
|
1369 |
|
1370 |
$input_html = ob_get_clean();
|
1371 |
|
1372 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1373 |
|
1374 |
|
1375 |
|
@@ -1424,7 +1424,7 @@ class settings_tabs_field{
|
|
1424 |
|
1425 |
$input_html = ob_get_clean();
|
1426 |
|
1427 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1428 |
|
1429 |
}
|
1430 |
|
@@ -1485,7 +1485,7 @@ class settings_tabs_field{
|
|
1485 |
endforeach;
|
1486 |
|
1487 |
?>
|
1488 |
-
<p class="description"><?php if(!empty($details)) echo $details; ?></p>
|
1489 |
</div>
|
1490 |
</div>
|
1491 |
<?php
|
@@ -1530,7 +1530,7 @@ class settings_tabs_field{
|
|
1530 |
|
1531 |
$input_html = ob_get_clean();
|
1532 |
|
1533 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1534 |
|
1535 |
|
1536 |
}
|
@@ -1589,7 +1589,7 @@ class settings_tabs_field{
|
|
1589 |
if(!empty($thumb)):
|
1590 |
|
1591 |
?>
|
1592 |
-
<img class="lazy" alt="<?php echo esc_attr($name); ?>" data-src="<?php echo
|
1593 |
<div style="padding: 5px;" class="name"><?php echo esc_html($name); ?></div>
|
1594 |
|
1595 |
<?php
|
@@ -1602,7 +1602,7 @@ class settings_tabs_field{
|
|
1602 |
<span class="pro-msg"><?php echo esc_html($pro_msg); ?></span>
|
1603 |
<?php endif; ?>
|
1604 |
<?php if(!empty($link)):?>
|
1605 |
-
<a target="_blank" class="link" href="<?php echo
|
1606 |
<?php endif; ?>
|
1607 |
|
1608 |
</label>
|
@@ -1674,7 +1674,7 @@ class settings_tabs_field{
|
|
1674 |
|
1675 |
$input_html = ob_get_clean();
|
1676 |
|
1677 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1678 |
|
1679 |
|
1680 |
}
|
@@ -1712,7 +1712,7 @@ class settings_tabs_field{
|
|
1712 |
|
1713 |
$input_html = ob_get_clean();
|
1714 |
|
1715 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1716 |
}
|
1717 |
|
1718 |
|
@@ -1744,7 +1744,7 @@ class settings_tabs_field{
|
|
1744 |
|
1745 |
$input_html = ob_get_clean();
|
1746 |
|
1747 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1748 |
}
|
1749 |
|
1750 |
|
@@ -1797,7 +1797,7 @@ class settings_tabs_field{
|
|
1797 |
|
1798 |
$input_html = ob_get_clean();
|
1799 |
|
1800 |
-
echo sprintf($field_template, $title, $input_html, $details);
|
1801 |
}
|
1802 |
|
1803 |
|
335 |
|
336 |
$input_html = ob_get_clean();
|
337 |
|
338 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $group_details));
|
339 |
|
340 |
|
341 |
}
|
406 |
|
407 |
$input_html = ob_get_clean();
|
408 |
|
409 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $group_details));
|
410 |
|
411 |
|
412 |
}
|
476 |
"image/ico" == $media_type
|
477 |
){
|
478 |
?>
|
479 |
+
<img class="media-preview" src="<?php echo esc_url($media_url); ?>" style="width:100%"/>
|
480 |
<div class="media-title"><?php echo esc_html($media_title); ?></div>
|
481 |
<?php
|
482 |
}else {
|
483 |
?>
|
484 |
+
<img class="media-preview" src="<?php echo esc_url($media_url); ?>" style="width:100%"/>
|
485 |
<div class="media-title"><?php echo esc_html($media_title); ?></div>
|
486 |
|
487 |
<?php
|
499 |
|
500 |
$input_html = ob_get_clean();
|
501 |
|
502 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
503 |
|
504 |
}
|
505 |
|
559 |
"images/gif" == $media_type ||
|
560 |
"images/ico" == $media_type){
|
561 |
?>
|
562 |
+
<img class="media-preview" src="<?php echo esc_url($media_url); ?>" style="width:100%"/>
|
563 |
|
564 |
<?php
|
565 |
}
|
566 |
|
567 |
else {
|
568 |
?>
|
569 |
+
<img class="media-preview" src="<?php echo esc_url($media_url); ?>" style="width:100%"/>
|
570 |
|
571 |
<?php
|
572 |
}
|
583 |
|
584 |
$input_html = ob_get_clean();
|
585 |
|
586 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
587 |
|
588 |
}
|
589 |
|
749 |
|
750 |
$input_html = ob_get_clean();
|
751 |
|
752 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
753 |
|
754 |
|
755 |
|
831 |
|
832 |
$input_html = ob_get_clean();
|
833 |
|
834 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
835 |
|
836 |
|
837 |
}
|
899 |
|
900 |
$input_html = ob_get_clean();
|
901 |
|
902 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
903 |
|
904 |
|
905 |
|
986 |
<span class="button sort"><i class="fas fa-arrows-alt"></i></span>
|
987 |
<?php endif; ?>
|
988 |
|
989 |
+
<span class="button remove" onclick="jQuery(this).parent().remove()"><?php echo esc_html($remove_text); ?></span>
|
990 |
</div>
|
991 |
<?php
|
992 |
|
1002 |
|
1003 |
$input_html = ob_get_clean();
|
1004 |
|
1005 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1006 |
|
1007 |
}
|
1008 |
|
1038 |
|
1039 |
$input_html = ob_get_clean();
|
1040 |
|
1041 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1042 |
|
1043 |
}
|
1044 |
|
1075 |
|
1076 |
$input_html = ob_get_clean();
|
1077 |
|
1078 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1079 |
|
1080 |
}
|
1081 |
|
1127 |
|
1128 |
$input_html = ob_get_clean();
|
1129 |
|
1130 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1131 |
|
1132 |
}
|
1133 |
|
1192 |
|
1193 |
$input_html = ob_get_clean();
|
1194 |
|
1195 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1196 |
|
1197 |
}
|
1198 |
|
1254 |
<?php
|
1255 |
|
1256 |
$input_html = ob_get_clean();
|
1257 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1258 |
}
|
1259 |
|
1260 |
|
1290 |
|
1291 |
$input_html = ob_get_clean();
|
1292 |
|
1293 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1294 |
|
1295 |
}
|
1296 |
|
1327 |
|
1328 |
$input_html = ob_get_clean();
|
1329 |
|
1330 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1331 |
|
1332 |
}
|
1333 |
|
1369 |
|
1370 |
$input_html = ob_get_clean();
|
1371 |
|
1372 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1373 |
|
1374 |
|
1375 |
|
1424 |
|
1425 |
$input_html = ob_get_clean();
|
1426 |
|
1427 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1428 |
|
1429 |
}
|
1430 |
|
1485 |
endforeach;
|
1486 |
|
1487 |
?>
|
1488 |
+
<p class="description"><?php if(!empty($details)) echo esc_html($details); ?></p>
|
1489 |
</div>
|
1490 |
</div>
|
1491 |
<?php
|
1530 |
|
1531 |
$input_html = ob_get_clean();
|
1532 |
|
1533 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1534 |
|
1535 |
|
1536 |
}
|
1589 |
if(!empty($thumb)):
|
1590 |
|
1591 |
?>
|
1592 |
+
<img class="lazy" alt="<?php echo esc_attr($name); ?>" data-src="<?php echo esc_url($thumb); ?>" src="<?php echo esc_url($lazy_load_img); ?>">
|
1593 |
<div style="padding: 5px;" class="name"><?php echo esc_html($name); ?></div>
|
1594 |
|
1595 |
<?php
|
1602 |
<span class="pro-msg"><?php echo esc_html($pro_msg); ?></span>
|
1603 |
<?php endif; ?>
|
1604 |
<?php if(!empty($link)):?>
|
1605 |
+
<a target="_blank" class="link" href="<?php echo esc_url($link); ?>"><?php echo esc_html($link_text); ?></a>
|
1606 |
<?php endif; ?>
|
1607 |
|
1608 |
</label>
|
1674 |
|
1675 |
$input_html = ob_get_clean();
|
1676 |
|
1677 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1678 |
|
1679 |
|
1680 |
}
|
1712 |
|
1713 |
$input_html = ob_get_clean();
|
1714 |
|
1715 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1716 |
}
|
1717 |
|
1718 |
|
1744 |
|
1745 |
$input_html = ob_get_clean();
|
1746 |
|
1747 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1748 |
}
|
1749 |
|
1750 |
|
1797 |
|
1798 |
$input_html = ob_get_clean();
|
1799 |
|
1800 |
+
echo esc_html(sprintf($field_template, $title, $input_html, $details));
|
1801 |
}
|
1802 |
|
1803 |
|
includes/data-update/class-post-grid-data-update.php
CHANGED
@@ -40,7 +40,7 @@ class class_post_grid_data_update{
|
|
40 |
endif;
|
41 |
|
42 |
|
43 |
-
echo ob_get_clean();
|
44 |
}
|
45 |
}
|
46 |
|
40 |
endif;
|
41 |
|
42 |
|
43 |
+
echo esc_html(ob_get_clean());
|
44 |
}
|
45 |
}
|
46 |
|
includes/functions.php
CHANGED
@@ -760,7 +760,7 @@ function post_grid_layout_content_ajax(){
|
|
760 |
if($item_key=='thumb'){
|
761 |
|
762 |
?>
|
763 |
-
<img src="<?php echo
|
764 |
<?php
|
765 |
}
|
766 |
|
760 |
if($item_key=='thumb'){
|
761 |
|
762 |
?>
|
763 |
+
<img src="<?php echo esc_url(post_grid_plugin_url.'assets/admin/images/thumb.png'); ?>" />
|
764 |
<?php
|
765 |
}
|
766 |
|
includes/layout-elements/kk-star-ratings/layout-elements.php
CHANGED
@@ -194,7 +194,7 @@ function post_grid_layout_element_kk_star_ratings($args){
|
|
194 |
|
195 |
?>
|
196 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> kk_star_ratings ">
|
197 |
-
<?php echo do_shortcode("[kkratings size
|
198 |
</div>
|
199 |
<?php
|
200 |
// endif;
|
194 |
|
195 |
?>
|
196 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> kk_star_ratings ">
|
197 |
+
<?php echo do_shortcode("[kkratings size='".esc_attr($size)."' id='".esc_attr($post_id)."']"); ?>
|
198 |
</div>
|
199 |
<?php
|
200 |
// endif;
|
includes/layout-elements/likebtn-like-button/layout-elements.php
CHANGED
@@ -181,7 +181,7 @@ function post_grid_layout_element_likebtn_like_button($args){
|
|
181 |
|
182 |
?>
|
183 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> likebtn_like_button ">
|
184 |
-
<?php echo do_shortcode("[likebtn]"); ?>
|
185 |
</div>
|
186 |
<?php
|
187 |
// endif;
|
181 |
|
182 |
?>
|
183 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> likebtn_like_button ">
|
184 |
+
<?php echo esc_html(do_shortcode("[likebtn]")); ?>
|
185 |
</div>
|
186 |
<?php
|
187 |
// endif;
|
includes/layout-elements/multi-rating/layout-elements.php
CHANGED
@@ -211,14 +211,14 @@ function post_grid_layout_element_multi_rating($args){
|
|
211 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> multi_rating ">
|
212 |
<?php
|
213 |
if($display_item =='result'){
|
214 |
-
echo do_shortcode("[mr_rating_result post_id='"
|
215 |
|
216 |
}elseif ($display_item =='rating_button'){
|
217 |
-
echo do_shortcode("[mr_rating_form post_id
|
218 |
|
219 |
}elseif ($display_item =='both'){
|
220 |
-
echo do_shortcode("[mr_rating_result post_id='"
|
221 |
-
echo do_shortcode("[mr_rating_form post_id
|
222 |
}
|
223 |
|
224 |
?>
|
211 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> multi_rating ">
|
212 |
<?php
|
213 |
if($display_item =='result'){
|
214 |
+
echo do_shortcode("[mr_rating_result post_id='".esc_attr($post_id)."' no_rating_results_text='".esc_attr($no_rating_results_text)."']");
|
215 |
|
216 |
}elseif ($display_item =='rating_button'){
|
217 |
+
echo do_shortcode("[mr_rating_form post_id='".esc_attr($post_id)."]");
|
218 |
|
219 |
}elseif ($display_item =='both'){
|
220 |
+
echo do_shortcode("[mr_rating_result post_id='".esc_attr($post_id)."' no_rating_results_text='".esc_attr($no_rating_results_text)."']");
|
221 |
+
echo do_shortcode("[mr_rating_form post_id='".esc_attr($post_id)."']");
|
222 |
}
|
223 |
|
224 |
?>
|
includes/layout-elements/rate-my-post/layout-elements.php
CHANGED
@@ -1,19 +1,21 @@
|
|
1 |
<?php
|
2 |
-
if (
|
3 |
|
4 |
|
5 |
-
add_filter('post_grid_layout_elements','post_grid_pro_rate_my_post_layout_elements');
|
6 |
|
7 |
-
function post_grid_pro_rate_my_post_layout_elements($elements_group)
|
|
|
8 |
|
9 |
-
$elements_group['star_rating']['items']['rate_my_post'] = array('name' =>__('Rate my Post','post-grid'));
|
10 |
|
11 |
return $elements_group;
|
12 |
}
|
13 |
|
14 |
|
15 |
-
add_action('post_grid_layout_element_option_rate_my_post','post_grid_layout_element_option_rate_my_post');
|
16 |
-
function post_grid_layout_element_option_rate_my_post($parameters)
|
|
|
17 |
|
18 |
$settings_tabs_field = new settings_tabs_field();
|
19 |
|
@@ -33,28 +35,28 @@ function post_grid_layout_element_option_rate_my_post($parameters){
|
|
33 |
|
34 |
|
35 |
|
36 |
-
|
37 |
<div class="item">
|
38 |
<div class="element-title header ">
|
39 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
40 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
41 |
|
42 |
-
<span class="expand"><?php echo __('Rate my Post','post-grid'); ?></span>
|
43 |
</div>
|
44 |
<div class="element-options options">
|
45 |
|
46 |
<?php
|
47 |
|
48 |
$args = array(
|
49 |
-
'id'
|
50 |
-
'css_id'
|
51 |
-
'parent' => $input_name.'[rate_my_post]',
|
52 |
-
'title'
|
53 |
-
'details'
|
54 |
-
'type'
|
55 |
-
'value'
|
56 |
-
'default'
|
57 |
-
'args'
|
58 |
);
|
59 |
|
60 |
$settings_tabs_field->generate_field($args);
|
@@ -62,28 +64,28 @@ function post_grid_layout_element_option_rate_my_post($parameters){
|
|
62 |
|
63 |
|
64 |
$args = array(
|
65 |
-
'id'
|
66 |
-
'css_id'
|
67 |
-
'parent' => $input_name.'[rate_my_post]',
|
68 |
-
'title'
|
69 |
-
'details'
|
70 |
-
'type'
|
71 |
-
'value'
|
72 |
-
'default'
|
73 |
);
|
74 |
|
75 |
$settings_tabs_field->generate_field($args);
|
76 |
|
77 |
$args = array(
|
78 |
-
'id'
|
79 |
-
'css_id'
|
80 |
-
'parent' => $input_name.'[rate_my_post]',
|
81 |
-
'title'
|
82 |
-
'details'
|
83 |
-
'type'
|
84 |
-
'value'
|
85 |
-
'default'
|
86 |
-
'placeholder'
|
87 |
);
|
88 |
|
89 |
$settings_tabs_field->generate_field($args);
|
@@ -91,59 +93,59 @@ function post_grid_layout_element_option_rate_my_post($parameters){
|
|
91 |
|
92 |
|
93 |
$args = array(
|
94 |
-
'id'
|
95 |
-
'css_id'
|
96 |
-
'parent' => $input_name.'[rate_my_post]',
|
97 |
-
'title'
|
98 |
-
'details'
|
99 |
-
'type'
|
100 |
-
'value'
|
101 |
-
'default'
|
102 |
-
'placeholder'
|
103 |
);
|
104 |
|
105 |
$settings_tabs_field->generate_field($args);
|
106 |
|
107 |
|
108 |
$args = array(
|
109 |
-
'id'
|
110 |
-
'css_id'
|
111 |
-
'parent' => $input_name.'[rate_my_post]',
|
112 |
-
'title'
|
113 |
-
'details'
|
114 |
-
'type'
|
115 |
-
'value'
|
116 |
-
'default'
|
117 |
-
'args'
|
118 |
);
|
119 |
|
120 |
$settings_tabs_field->generate_field($args);
|
121 |
|
122 |
|
123 |
$args = array(
|
124 |
-
'id'
|
125 |
-
'css_id'
|
126 |
-
'parent' => $input_name.'[rate_my_post]',
|
127 |
-
'title'
|
128 |
-
'details'
|
129 |
-
'type'
|
130 |
-
'value'
|
131 |
-
'default'
|
132 |
-
'placeholder'
|
133 |
);
|
134 |
|
135 |
$settings_tabs_field->generate_field($args);
|
136 |
|
137 |
$args = array(
|
138 |
-
'id'
|
139 |
-
'css_id'
|
140 |
-
'parent' => $input_name.'[rate_my_post]',
|
141 |
-
'title'
|
142 |
-
'details'
|
143 |
-
'type'
|
144 |
-
'value'
|
145 |
-
'default'
|
146 |
-
'placeholder'
|
147 |
);
|
148 |
|
149 |
$settings_tabs_field->generate_field($args);
|
@@ -151,17 +153,17 @@ function post_grid_layout_element_option_rate_my_post($parameters){
|
|
151 |
|
152 |
ob_start();
|
153 |
?>
|
154 |
-
<textarea readonly type="text"
|
155 |
<?php
|
156 |
|
157 |
$html = ob_get_clean();
|
158 |
|
159 |
$args = array(
|
160 |
-
'id'
|
161 |
-
'title'
|
162 |
-
'details'
|
163 |
-
'type'
|
164 |
-
'html'
|
165 |
|
166 |
);
|
167 |
|
@@ -171,20 +173,21 @@ function post_grid_layout_element_option_rate_my_post($parameters){
|
|
171 |
|
172 |
</div>
|
173 |
</div>
|
174 |
-
|
175 |
|
176 |
}
|
177 |
|
178 |
|
179 |
|
180 |
add_action('post_grid_layout_element_rate_my_post', 'post_grid_layout_element_rate_my_post');
|
181 |
-
function post_grid_layout_element_rate_my_post($args)
|
|
|
182 |
|
183 |
$element = isset($args['element']) ? $args['element'] : array();
|
184 |
$elementIndex = isset($args['index']) ? $args['index'] : '';
|
185 |
$post_id = isset($args['post_id']) ? $args['post_id'] : '';
|
186 |
|
187 |
-
if(empty($post_id)) return;
|
188 |
|
189 |
$title = get_the_title($post_id);
|
190 |
|
@@ -194,24 +197,22 @@ function post_grid_layout_element_rate_my_post($args){
|
|
194 |
|
195 |
// if(!empty($acf_value)):
|
196 |
|
197 |
-
|
198 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> rate_my_post ">
|
199 |
<?php
|
200 |
-
if($display_item == 'result'){
|
201 |
-
echo do_shortcode("[ratemypost-result id
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
echo do_shortcode("[ratemypost-result id=$post_id]");
|
208 |
-
echo do_shortcode("[ratemypost id=$post_id]");
|
209 |
}
|
210 |
|
211 |
|
212 |
?>
|
213 |
</div>
|
214 |
-
|
215 |
// endif;
|
216 |
|
217 |
}
|
@@ -219,7 +220,8 @@ function post_grid_layout_element_rate_my_post($args){
|
|
219 |
|
220 |
|
221 |
add_action('post_grid_layout_element_css_rate_my_post', 'post_grid_layout_element_css_rate_my_post', 10);
|
222 |
-
function post_grid_layout_element_css_rate_my_post($args)
|
|
|
223 |
|
224 |
|
225 |
$index = isset($args['index']) ? $args['index'] : '';
|
@@ -234,31 +236,21 @@ function post_grid_layout_element_css_rate_my_post($args){
|
|
234 |
$css = isset($element['css']) ? $element['css'] : '';
|
235 |
$css_hover = isset($element['css_hover']) ? $element['css_hover'] : '';
|
236 |
|
237 |
-
|
238 |
<style type="text/css">
|
239 |
-
.layout-<?php echo esc_attr($layout_id);
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
<?php endif; ?>
|
246 |
-
|
247 |
-
<?php if(!empty($margin)): ?>
|
248 |
-
margin: <?php echo esc_attr($margin); ?>;
|
249 |
-
<?php endif; ?>
|
250 |
-
<?php if(!empty($text_align)): ?>
|
251 |
-
text-align: <?php echo esc_attr($text_align); ?>;
|
252 |
-
<?php endif; ?>
|
253 |
-
<?php if(!empty($css)): ?>
|
254 |
-
<?php echo esc_attr($css); ?>
|
255 |
-
<?php endif; ?>
|
256 |
}
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
}
|
|
|
261 |
<?php endif; ?>
|
262 |
</style>
|
263 |
-
|
264 |
}
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) exit; // if direct access
|
3 |
|
4 |
|
5 |
+
add_filter('post_grid_layout_elements', 'post_grid_pro_rate_my_post_layout_elements');
|
6 |
|
7 |
+
function post_grid_pro_rate_my_post_layout_elements($elements_group)
|
8 |
+
{
|
9 |
|
10 |
+
$elements_group['star_rating']['items']['rate_my_post'] = array('name' => __('Rate my Post', 'post-grid'));
|
11 |
|
12 |
return $elements_group;
|
13 |
}
|
14 |
|
15 |
|
16 |
+
add_action('post_grid_layout_element_option_rate_my_post', 'post_grid_layout_element_option_rate_my_post');
|
17 |
+
function post_grid_layout_element_option_rate_my_post($parameters)
|
18 |
+
{
|
19 |
|
20 |
$settings_tabs_field = new settings_tabs_field();
|
21 |
|
35 |
|
36 |
|
37 |
|
38 |
+
?>
|
39 |
<div class="item">
|
40 |
<div class="element-title header ">
|
41 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
42 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
43 |
|
44 |
+
<span class="expand"><?php echo __('Rate my Post', 'post-grid'); ?></span>
|
45 |
</div>
|
46 |
<div class="element-options options">
|
47 |
|
48 |
<?php
|
49 |
|
50 |
$args = array(
|
51 |
+
'id' => 'display_item',
|
52 |
+
'css_id' => $element_index . '_text_align',
|
53 |
+
'parent' => $input_name . '[rate_my_post]',
|
54 |
+
'title' => __('Display', 'post-grid'),
|
55 |
+
'details' => __('Choose display.', 'post-grid'),
|
56 |
+
'type' => 'select',
|
57 |
+
'value' => $display_item,
|
58 |
+
'default' => 'result',
|
59 |
+
'args' => array('result' => __('Result', 'post-grid'), 'rating_widget' => __('Rating widget', 'post-grid'), 'both' => __('Both', 'post-grid')),
|
60 |
);
|
61 |
|
62 |
$settings_tabs_field->generate_field($args);
|
64 |
|
65 |
|
66 |
$args = array(
|
67 |
+
'id' => 'color',
|
68 |
+
'css_id' => $element_index . '_rate_my_post',
|
69 |
+
'parent' => $input_name . '[rate_my_post]',
|
70 |
+
'title' => __('Color', 'post-grid'),
|
71 |
+
'details' => __('Title text color.', 'post-grid'),
|
72 |
+
'type' => 'colorpicker',
|
73 |
+
'value' => $color,
|
74 |
+
'default' => '',
|
75 |
);
|
76 |
|
77 |
$settings_tabs_field->generate_field($args);
|
78 |
|
79 |
$args = array(
|
80 |
+
'id' => 'font_size',
|
81 |
+
'css_id' => $element_index . '_font_size',
|
82 |
+
'parent' => $input_name . '[rate_my_post]',
|
83 |
+
'title' => __('Font size', 'post-grid'),
|
84 |
+
'details' => __('Set font size.', 'post-grid'),
|
85 |
+
'type' => 'text',
|
86 |
+
'value' => $font_size,
|
87 |
+
'default' => '',
|
88 |
+
'placeholder' => '14px',
|
89 |
);
|
90 |
|
91 |
$settings_tabs_field->generate_field($args);
|
93 |
|
94 |
|
95 |
$args = array(
|
96 |
+
'id' => 'margin',
|
97 |
+
'css_id' => $element_index . '_margin',
|
98 |
+
'parent' => $input_name . '[rate_my_post]',
|
99 |
+
'title' => __('Margin', 'post-grid'),
|
100 |
+
'details' => __('Set margin.', 'post-grid'),
|
101 |
+
'type' => 'text',
|
102 |
+
'value' => $margin,
|
103 |
+
'default' => '',
|
104 |
+
'placeholder' => '5px 0',
|
105 |
);
|
106 |
|
107 |
$settings_tabs_field->generate_field($args);
|
108 |
|
109 |
|
110 |
$args = array(
|
111 |
+
'id' => 'text_align',
|
112 |
+
'css_id' => $element_index . '_text_align',
|
113 |
+
'parent' => $input_name . '[rate_my_post]',
|
114 |
+
'title' => __('Text align', 'post-grid'),
|
115 |
+
'details' => __('Choose text align.', 'post-grid'),
|
116 |
+
'type' => 'select',
|
117 |
+
'value' => $text_align,
|
118 |
+
'default' => 'left',
|
119 |
+
'args' => array('left' => __('Left', 'post-grid'), 'right' => __('Right', 'post-grid'), 'center' => __('Center', 'post-grid')),
|
120 |
);
|
121 |
|
122 |
$settings_tabs_field->generate_field($args);
|
123 |
|
124 |
|
125 |
$args = array(
|
126 |
+
'id' => 'css',
|
127 |
+
'css_id' => $element_index . '_css',
|
128 |
+
'parent' => $input_name . '[rate_my_post]',
|
129 |
+
'title' => __('Custom CSS', 'post-grid'),
|
130 |
+
'details' => __('Set csutom CSS.', 'post-grid'),
|
131 |
+
'type' => 'textarea',
|
132 |
+
'value' => $css,
|
133 |
+
'default' => '',
|
134 |
+
'placeholder' => '',
|
135 |
);
|
136 |
|
137 |
$settings_tabs_field->generate_field($args);
|
138 |
|
139 |
$args = array(
|
140 |
+
'id' => 'css_hover',
|
141 |
+
'css_id' => $element_index . '_css_hover',
|
142 |
+
'parent' => $input_name . '[rate_my_post]',
|
143 |
+
'title' => __('Hover CSS', 'post-grid'),
|
144 |
+
'details' => __('Set hover custom CSS.', 'post-grid'),
|
145 |
+
'type' => 'textarea',
|
146 |
+
'value' => $css_hover,
|
147 |
+
'default' => '',
|
148 |
+
'placeholder' => '',
|
149 |
);
|
150 |
|
151 |
$settings_tabs_field->generate_field($args);
|
153 |
|
154 |
ob_start();
|
155 |
?>
|
156 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
157 |
<?php
|
158 |
|
159 |
$html = ob_get_clean();
|
160 |
|
161 |
$args = array(
|
162 |
+
'id' => 'use_css',
|
163 |
+
'title' => __('Use of CSS', 'post-grid'),
|
164 |
+
'details' => __('Use following class selector to add custom CSS for this element.', 'post-grid'),
|
165 |
+
'type' => 'custom_html',
|
166 |
+
'html' => $html,
|
167 |
|
168 |
);
|
169 |
|
173 |
|
174 |
</div>
|
175 |
</div>
|
176 |
+
<?php
|
177 |
|
178 |
}
|
179 |
|
180 |
|
181 |
|
182 |
add_action('post_grid_layout_element_rate_my_post', 'post_grid_layout_element_rate_my_post');
|
183 |
+
function post_grid_layout_element_rate_my_post($args)
|
184 |
+
{
|
185 |
|
186 |
$element = isset($args['element']) ? $args['element'] : array();
|
187 |
$elementIndex = isset($args['index']) ? $args['index'] : '';
|
188 |
$post_id = isset($args['post_id']) ? $args['post_id'] : '';
|
189 |
|
190 |
+
if (empty($post_id)) return;
|
191 |
|
192 |
$title = get_the_title($post_id);
|
193 |
|
197 |
|
198 |
// if(!empty($acf_value)):
|
199 |
|
200 |
+
?>
|
201 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> rate_my_post ">
|
202 |
<?php
|
203 |
+
if ($display_item == 'result') {
|
204 |
+
echo do_shortcode("[ratemypost-result id='" . esc_attr($post_id) . "']");
|
205 |
+
} elseif ($display_item == 'rating_widget') {
|
206 |
+
echo do_shortcode("[ratemypost id='" . esc_attr($post_id) . "']");
|
207 |
+
} elseif ($display_item == 'both') {
|
208 |
+
echo do_shortcode("[ratemypost-result id='" . esc_attr($post_id) . "']");
|
209 |
+
echo do_shortcode("[ratemypost id='" . esc_attr($post_id) . "']");
|
|
|
|
|
210 |
}
|
211 |
|
212 |
|
213 |
?>
|
214 |
</div>
|
215 |
+
<?php
|
216 |
// endif;
|
217 |
|
218 |
}
|
220 |
|
221 |
|
222 |
add_action('post_grid_layout_element_css_rate_my_post', 'post_grid_layout_element_css_rate_my_post', 10);
|
223 |
+
function post_grid_layout_element_css_rate_my_post($args)
|
224 |
+
{
|
225 |
|
226 |
|
227 |
$index = isset($args['index']) ? $args['index'] : '';
|
236 |
$css = isset($element['css']) ? $element['css'] : '';
|
237 |
$css_hover = isset($element['css_hover']) ? $element['css_hover'] : '';
|
238 |
|
239 |
+
?>
|
240 |
<style type="text/css">
|
241 |
+
.layout-<?php echo esc_attr($layout_id); ?>.element_<?php echo esc_attr($index); ?> {
|
242 |
+
<?php if (!empty($color)) : ?>color: <?php echo esc_attr($color); ?>;
|
243 |
+
<?php endif; ?><?php if (!empty($font_size)) : ?>font-size: <?php echo esc_attr($font_size); ?>;
|
244 |
+
<?php endif; ?><?php if (!empty($margin)) : ?>margin: <?php echo esc_attr($margin); ?>;
|
245 |
+
<?php endif; ?><?php if (!empty($text_align)) : ?>text-align: <?php echo esc_attr($text_align); ?>;
|
246 |
+
<?php endif; ?><?php if (!empty($css)) : ?><?php echo esc_attr($css); ?><?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
}
|
248 |
+
|
249 |
+
<?php if (!empty($css_hover)) : ?>.layout-<?php echo esc_attr($layout_id); ?>.element_<?php echo esc_attr($index); ?>:hover {
|
250 |
+
<?php echo esc_attr($css_hover); ?>
|
251 |
}
|
252 |
+
|
253 |
<?php endif; ?>
|
254 |
</style>
|
255 |
+
<?php
|
256 |
}
|
includes/layout-elements/rating-widget/layout-elements.php
CHANGED
@@ -180,7 +180,7 @@ function post_grid_layout_element_rating_widget($args){
|
|
180 |
|
181 |
?>
|
182 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> rating_widget ">
|
183 |
-
<?php echo do_shortcode("[ratingwidget post_id
|
184 |
</div>
|
185 |
<?php
|
186 |
// endif;
|
180 |
|
181 |
?>
|
182 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> rating_widget ">
|
183 |
+
<?php echo do_shortcode("[ratingwidget post_id='".esc_attr($post_id)."']"); ?>
|
184 |
</div>
|
185 |
<?php
|
186 |
// endif;
|
includes/layout-elements/site-reviews/layout-elements.php
CHANGED
@@ -211,7 +211,7 @@ function post_grid_layout_element_site_reviews_summary($args){
|
|
211 |
|
212 |
?>
|
213 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> site_reviews_summary ">
|
214 |
-
<?php echo do_shortcode("[site_reviews_summary hide='"
|
215 |
</div>
|
216 |
<?php
|
217 |
// endif;
|
211 |
|
212 |
?>
|
213 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> site_reviews_summary ">
|
214 |
+
<?php echo do_shortcode("[site_reviews_summary hide='".esc_attr($hide)."' class='".esc_attr($class)."' assigned_to='post_id' ]"); ?>
|
215 |
</div>
|
216 |
<?php
|
217 |
// endif;
|
includes/layout-elements/wck-custom-fields-and-custom-post-types-creator/layout-elements.php
CHANGED
@@ -79,7 +79,7 @@ function post_grid_layout_element_option_wck_text($parameters){
|
|
79 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
80 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
81 |
|
82 |
-
<span class="expand"><?php echo __('WCK Text','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
83 |
</div>
|
84 |
<div class="element-options options">
|
85 |
|
@@ -342,7 +342,7 @@ function post_grid_layout_element_option_wck_textarea($parameters){
|
|
342 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
343 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
344 |
|
345 |
-
<span class="expand"><?php echo __('WCK Textarea','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
346 |
</div>
|
347 |
<div class="element-options options">
|
348 |
|
@@ -516,7 +516,7 @@ function post_grid_layout_element_wck_textarea($args){
|
|
516 |
|
517 |
?>
|
518 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_textarea ">
|
519 |
-
<?php echo ($wck_value); ?>
|
520 |
</div>
|
521 |
<?php
|
522 |
endif;
|
@@ -605,7 +605,7 @@ function post_grid_layout_element_option_wck_number($parameters){
|
|
605 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
606 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
607 |
|
608 |
-
<span class="expand"><?php echo __('WCK Number','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
609 |
</div>
|
610 |
<div class="element-options options">
|
611 |
|
@@ -867,7 +867,7 @@ function post_grid_layout_element_option_wck_email($parameters){
|
|
867 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
868 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
869 |
|
870 |
-
<span class="expand"><?php echo __('WCK Email','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
871 |
</div>
|
872 |
<div class="element-options options">
|
873 |
|
@@ -1058,7 +1058,7 @@ function post_grid_layout_element_wck_email($args){
|
|
1058 |
|
1059 |
?>
|
1060 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_email ">
|
1061 |
-
<?php echo ($wck_value); ?>
|
1062 |
</div>
|
1063 |
<?php
|
1064 |
endif;
|
@@ -1145,7 +1145,7 @@ function post_grid_layout_element_option_wck_url($parameters){
|
|
1145 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
1146 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
1147 |
|
1148 |
-
<span class="expand"><?php echo __('WCK URL','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
1149 |
</div>
|
1150 |
<div class="element-options options">
|
1151 |
|
@@ -1337,7 +1337,7 @@ function post_grid_layout_element_wck_url($args){
|
|
1337 |
$wck_value = sprintf($wrapper_html, $wck_value);
|
1338 |
?>
|
1339 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_url ">
|
1340 |
-
<?php echo ($wck_value); ?>
|
1341 |
</div>
|
1342 |
<?php
|
1343 |
endif;
|
@@ -1424,7 +1424,7 @@ function post_grid_layout_element_option_wck_range($parameters){
|
|
1424 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
1425 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
1426 |
|
1427 |
-
<span class="expand"><?php echo __('WCK Range','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
1428 |
</div>
|
1429 |
<div class="element-options options">
|
1430 |
|
@@ -1703,7 +1703,7 @@ function post_grid_layout_element_option_wck_wysiwyg($parameters){
|
|
1703 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
1704 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
1705 |
|
1706 |
-
<span class="expand"><?php echo __('WCK Wysiwyg','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
1707 |
</div>
|
1708 |
<div class="element-options options">
|
1709 |
|
@@ -1879,7 +1879,7 @@ function post_grid_layout_element_wck_wysiwyg($args){
|
|
1879 |
|
1880 |
?>
|
1881 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_wysiwyg ">
|
1882 |
-
<?php echo ($wck_value); ?>
|
1883 |
</div>
|
1884 |
<?php
|
1885 |
endif;
|
@@ -1966,7 +1966,7 @@ function post_grid_layout_element_option_wck_upload($parameters){
|
|
1966 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
1967 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
1968 |
|
1969 |
-
<span class="expand"><?php echo __('WCK Image','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
1970 |
</div>
|
1971 |
<div class="element-options options">
|
1972 |
|
@@ -2207,7 +2207,7 @@ function post_grid_layout_element_wck_upload($args){
|
|
2207 |
|
2208 |
?>
|
2209 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_file ">
|
2210 |
-
<?php echo ($wck_value); ?>
|
2211 |
</div>
|
2212 |
<?php
|
2213 |
endif;
|
@@ -2294,7 +2294,7 @@ function post_grid_layout_element_option_wck_file($parameters){
|
|
2294 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
2295 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
2296 |
|
2297 |
-
<span class="expand"><?php echo __('WCK File','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
2298 |
</div>
|
2299 |
<div class="element-options options">
|
2300 |
|
@@ -2528,7 +2528,7 @@ function post_grid_layout_element_wck_file($args){
|
|
2528 |
|
2529 |
?>
|
2530 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_file ">
|
2531 |
-
<?php echo ($wck_value); ?>
|
2532 |
</div>
|
2533 |
<?php
|
2534 |
endif;
|
@@ -2616,7 +2616,7 @@ function post_grid_layout_element_option_wck_select($parameters){
|
|
2616 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
2617 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
2618 |
|
2619 |
-
<span class="expand"><?php echo __('WCK Select','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
2620 |
</div>
|
2621 |
<div class="element-options options">
|
2622 |
|
@@ -2840,7 +2840,7 @@ function post_grid_layout_element_wck_select($args){
|
|
2840 |
|
2841 |
?>
|
2842 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_select ">
|
2843 |
-
<?php echo ($html); ?>
|
2844 |
</div>
|
2845 |
<?php
|
2846 |
endif;
|
@@ -2928,7 +2928,7 @@ function post_grid_layout_element_option_wck_checkbox($parameters){
|
|
2928 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
2929 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
2930 |
|
2931 |
-
<span class="expand"><?php echo __('WCK Checkbox','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
2932 |
</div>
|
2933 |
<div class="element-options options">
|
2934 |
|
@@ -3151,7 +3151,7 @@ function post_grid_layout_element_wck_checkbox($args){
|
|
3151 |
|
3152 |
?>
|
3153 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_checkbox ">
|
3154 |
-
<?php echo ($html); ?>
|
3155 |
</div>
|
3156 |
<?php
|
3157 |
endif;
|
@@ -3240,7 +3240,7 @@ function post_grid_layout_element_option_wck_radio($parameters){
|
|
3240 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
3241 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
3242 |
|
3243 |
-
<span class="expand"><?php echo __('WCK Radio','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
3244 |
</div>
|
3245 |
<div class="element-options options">
|
3246 |
|
@@ -3471,7 +3471,7 @@ function post_grid_layout_element_wck_radio($args){
|
|
3471 |
|
3472 |
?>
|
3473 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_radio ">
|
3474 |
-
<?php echo ($html); ?>
|
3475 |
</div>
|
3476 |
<?php
|
3477 |
endif;
|
@@ -3560,7 +3560,7 @@ function post_grid_layout_element_option_wck_buttongroup($parameters){
|
|
3560 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
3561 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
3562 |
|
3563 |
-
<span class="expand"><?php echo __('WCK Button group','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
3564 |
</div>
|
3565 |
<div class="element-options options">
|
3566 |
|
@@ -3791,7 +3791,7 @@ function post_grid_layout_element_wck_buttongroup($args){
|
|
3791 |
|
3792 |
?>
|
3793 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_buttongroup ">
|
3794 |
-
<?php echo ($html); ?>
|
3795 |
</div>
|
3796 |
<?php
|
3797 |
endif;
|
@@ -3879,7 +3879,7 @@ function post_grid_layout_element_option_wck_page_link($parameters){
|
|
3879 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
3880 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
3881 |
|
3882 |
-
<span class="expand"><?php echo __('WCK Page link','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
3883 |
</div>
|
3884 |
<div class="element-options options">
|
3885 |
|
@@ -4102,7 +4102,7 @@ function post_grid_layout_element_wck_page_link($args){
|
|
4102 |
$html = sprintf($wrapper_html, $html);
|
4103 |
?>
|
4104 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_page_link ">
|
4105 |
-
<?php echo ($html); ?>
|
4106 |
</div>
|
4107 |
<?php
|
4108 |
endif;
|
@@ -4191,7 +4191,7 @@ function post_grid_layout_element_option_wck_taxonomy($parameters){
|
|
4191 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
4192 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
4193 |
|
4194 |
-
<span class="expand"><?php echo __('WCK Taxonomy','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
4195 |
</div>
|
4196 |
<div class="element-options options">
|
4197 |
|
@@ -4429,7 +4429,7 @@ function post_grid_layout_element_wck_taxonomy($args){
|
|
4429 |
|
4430 |
?>
|
4431 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_taxonomy ">
|
4432 |
-
<?php echo ($html); ?>
|
4433 |
</div>
|
4434 |
<?php
|
4435 |
endif;
|
@@ -4517,7 +4517,7 @@ function post_grid_layout_element_option_wck_user($parameters){
|
|
4517 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
4518 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
4519 |
|
4520 |
-
<span class="expand"><?php echo __('WCK User','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
4521 |
</div>
|
4522 |
<div class="element-options options">
|
4523 |
|
@@ -4735,7 +4735,7 @@ function post_grid_layout_element_wck_user($args){
|
|
4735 |
|
4736 |
?>
|
4737 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_user ">
|
4738 |
-
<?php echo ($html); ?>
|
4739 |
</div>
|
4740 |
<?php
|
4741 |
endif;
|
@@ -4824,7 +4824,7 @@ function post_grid_layout_element_option_wck_date_picker($parameters){
|
|
4824 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
4825 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
4826 |
|
4827 |
-
<span class="expand"><?php echo __('WCK Date picker','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
4828 |
</div>
|
4829 |
<div class="element-options options">
|
4830 |
|
@@ -5013,7 +5013,7 @@ function post_grid_layout_element_wck_date_picker($args){
|
|
5013 |
$wck_value = sprintf($wrapper_html, $wck_value);
|
5014 |
?>
|
5015 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_date_picker ">
|
5016 |
-
<?php echo ($wck_value); ?>
|
5017 |
</div>
|
5018 |
<?php
|
5019 |
endif;
|
@@ -5103,7 +5103,7 @@ function post_grid_layout_element_option_wck_time_picker($parameters){
|
|
5103 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
5104 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
5105 |
|
5106 |
-
<span class="expand"><?php echo __('WCK Time picker','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
5107 |
</div>
|
5108 |
<div class="element-options options">
|
5109 |
|
@@ -5294,7 +5294,7 @@ function post_grid_layout_element_wck_time_picker($args){
|
|
5294 |
|
5295 |
?>
|
5296 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_time_picker ">
|
5297 |
-
<?php echo ($wck_value); ?>
|
5298 |
</div>
|
5299 |
<?php
|
5300 |
endif;
|
@@ -5383,7 +5383,7 @@ function post_grid_layout_element_option_wck_datetime_picker($parameters){
|
|
5383 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
5384 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
5385 |
|
5386 |
-
<span class="expand"><?php echo __('WCK Datetime picker','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
5387 |
</div>
|
5388 |
<div class="element-options options">
|
5389 |
|
@@ -5660,7 +5660,7 @@ function post_grid_layout_element_option_wck_google_map($parameters){
|
|
5660 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
5661 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
5662 |
|
5663 |
-
<span class="expand"><?php echo __('WCK Google map','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
5664 |
</div>
|
5665 |
<div class="element-options options">
|
5666 |
|
@@ -5834,7 +5834,7 @@ function post_grid_layout_element_wck_google_map($args){
|
|
5834 |
|
5835 |
?>
|
5836 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_google_map ">
|
5837 |
-
<?php echo ($wck_value); ?>
|
5838 |
</div>
|
5839 |
<?php
|
5840 |
endif;
|
@@ -5922,7 +5922,7 @@ function post_grid_layout_element_option_wck_colorpicker($parameters){
|
|
5922 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
5923 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
5924 |
|
5925 |
-
<span class="expand"><?php echo __('WCK Color picker','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
5926 |
</div>
|
5927 |
<div class="element-options options">
|
5928 |
|
@@ -6184,7 +6184,7 @@ function post_grid_layout_element_option_wck_link($parameters){
|
|
6184 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
6185 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
6186 |
|
6187 |
-
<span class="expand"><?php echo __('WCK Link','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
6188 |
</div>
|
6189 |
<div class="element-options options">
|
6190 |
|
@@ -6387,7 +6387,7 @@ function post_grid_layout_element_wck_link($args){
|
|
6387 |
|
6388 |
?>
|
6389 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_link ">
|
6390 |
-
<?php echo ($wck_value); ?>
|
6391 |
</div>
|
6392 |
<?php
|
6393 |
endif;
|
@@ -6473,7 +6473,7 @@ function post_grid_layout_element_option_wck_post_object($parameters){
|
|
6473 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
6474 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
6475 |
|
6476 |
-
<span class="expand"><?php echo __('WCK Text','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
6477 |
</div>
|
6478 |
<div class="element-options options">
|
6479 |
|
@@ -6733,7 +6733,7 @@ function post_grid_layout_element_option_wck_oembed($parameters){
|
|
6733 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
6734 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
6735 |
|
6736 |
-
<span class="expand"><?php echo __('WCK Text','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
6737 |
</div>
|
6738 |
<div class="element-options options">
|
6739 |
|
@@ -6907,7 +6907,7 @@ function post_grid_layout_element_wck_oembed($args){
|
|
6907 |
|
6908 |
?>
|
6909 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_oembed ">
|
6910 |
-
<?php echo ($wck_value); ?>
|
6911 |
</div>
|
6912 |
<?php
|
6913 |
endif;
|
@@ -6994,7 +6994,7 @@ function post_grid_layout_element_option_wck_password($parameters){
|
|
6994 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
6995 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
6996 |
|
6997 |
-
<span class="expand"><?php echo __('WCK Text','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
6998 |
</div>
|
6999 |
<div class="element-options options">
|
7000 |
|
@@ -7186,7 +7186,7 @@ function post_grid_layout_element_wck_password($args){
|
|
7186 |
|
7187 |
?>
|
7188 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_password ">
|
7189 |
-
<?php echo ($wck_value); ?>
|
7190 |
</div>
|
7191 |
<?php
|
7192 |
endif;
|
@@ -7274,7 +7274,7 @@ function post_grid_layout_element_option_wck_relationship($parameters){
|
|
7274 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
7275 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
7276 |
|
7277 |
-
<span class="expand"><?php echo __('WCK Relationship','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
7278 |
</div>
|
7279 |
<div class="element-options options">
|
7280 |
|
@@ -7514,7 +7514,7 @@ function post_grid_layout_element_wck_relationship($args){
|
|
7514 |
|
7515 |
?>
|
7516 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_relationship ">
|
7517 |
-
<?php echo ($post_html); ?>
|
7518 |
</div>
|
7519 |
<?php
|
7520 |
endif;
|
@@ -7602,7 +7602,7 @@ function post_grid_layout_element_option_wck_true_false($parameters){
|
|
7602 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
7603 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
7604 |
|
7605 |
-
<span class="expand"><?php echo __('WCK Text','post-grid'); ?> - <?php echo $wck_key; ?></span>
|
7606 |
</div>
|
7607 |
<div class="element-options options">
|
7608 |
|
@@ -7796,7 +7796,7 @@ function post_grid_layout_element_wck_true_false($args){
|
|
7796 |
|
7797 |
?>
|
7798 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_true_false ">
|
7799 |
-
<?php echo ($wck_value); ?>
|
7800 |
</div>
|
7801 |
<?php
|
7802 |
endif;
|
79 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
80 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
81 |
|
82 |
+
<span class="expand"><?php echo __('WCK Text','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
83 |
</div>
|
84 |
<div class="element-options options">
|
85 |
|
342 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
343 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
344 |
|
345 |
+
<span class="expand"><?php echo __('WCK Textarea','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
346 |
</div>
|
347 |
<div class="element-options options">
|
348 |
|
516 |
|
517 |
?>
|
518 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_textarea ">
|
519 |
+
<?php echo esc_html($wck_value); ?>
|
520 |
</div>
|
521 |
<?php
|
522 |
endif;
|
605 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
606 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
607 |
|
608 |
+
<span class="expand"><?php echo __('WCK Number','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
609 |
</div>
|
610 |
<div class="element-options options">
|
611 |
|
867 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
868 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
869 |
|
870 |
+
<span class="expand"><?php echo __('WCK Email','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
871 |
</div>
|
872 |
<div class="element-options options">
|
873 |
|
1058 |
|
1059 |
?>
|
1060 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_email ">
|
1061 |
+
<?php echo esc_html($wck_value); ?>
|
1062 |
</div>
|
1063 |
<?php
|
1064 |
endif;
|
1145 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
1146 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
1147 |
|
1148 |
+
<span class="expand"><?php echo __('WCK URL','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
1149 |
</div>
|
1150 |
<div class="element-options options">
|
1151 |
|
1337 |
$wck_value = sprintf($wrapper_html, $wck_value);
|
1338 |
?>
|
1339 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_url ">
|
1340 |
+
<?php echo esc_html($wck_value); ?>
|
1341 |
</div>
|
1342 |
<?php
|
1343 |
endif;
|
1424 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
1425 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
1426 |
|
1427 |
+
<span class="expand"><?php echo __('WCK Range','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
1428 |
</div>
|
1429 |
<div class="element-options options">
|
1430 |
|
1703 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
1704 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
1705 |
|
1706 |
+
<span class="expand"><?php echo __('WCK Wysiwyg','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
1707 |
</div>
|
1708 |
<div class="element-options options">
|
1709 |
|
1879 |
|
1880 |
?>
|
1881 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_wysiwyg ">
|
1882 |
+
<?php echo esc_html($wck_value); ?>
|
1883 |
</div>
|
1884 |
<?php
|
1885 |
endif;
|
1966 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
1967 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
1968 |
|
1969 |
+
<span class="expand"><?php echo __('WCK Image','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
1970 |
</div>
|
1971 |
<div class="element-options options">
|
1972 |
|
2207 |
|
2208 |
?>
|
2209 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_file ">
|
2210 |
+
<?php echo esc_html($wck_value); ?>
|
2211 |
</div>
|
2212 |
<?php
|
2213 |
endif;
|
2294 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
2295 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
2296 |
|
2297 |
+
<span class="expand"><?php echo __('WCK File','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
2298 |
</div>
|
2299 |
<div class="element-options options">
|
2300 |
|
2528 |
|
2529 |
?>
|
2530 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_file ">
|
2531 |
+
<?php echo esc_html($wck_value); ?>
|
2532 |
</div>
|
2533 |
<?php
|
2534 |
endif;
|
2616 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
2617 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
2618 |
|
2619 |
+
<span class="expand"><?php echo __('WCK Select','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
2620 |
</div>
|
2621 |
<div class="element-options options">
|
2622 |
|
2840 |
|
2841 |
?>
|
2842 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_select ">
|
2843 |
+
<?php echo esc_html($html); ?>
|
2844 |
</div>
|
2845 |
<?php
|
2846 |
endif;
|
2928 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
2929 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
2930 |
|
2931 |
+
<span class="expand"><?php echo __('WCK Checkbox','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
2932 |
</div>
|
2933 |
<div class="element-options options">
|
2934 |
|
3151 |
|
3152 |
?>
|
3153 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_checkbox ">
|
3154 |
+
<?php echo esc_html($html); ?>
|
3155 |
</div>
|
3156 |
<?php
|
3157 |
endif;
|
3240 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
3241 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
3242 |
|
3243 |
+
<span class="expand"><?php echo __('WCK Radio','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
3244 |
</div>
|
3245 |
<div class="element-options options">
|
3246 |
|
3471 |
|
3472 |
?>
|
3473 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_radio ">
|
3474 |
+
<?php echo esc_html($html); ?>
|
3475 |
</div>
|
3476 |
<?php
|
3477 |
endif;
|
3560 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
3561 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
3562 |
|
3563 |
+
<span class="expand"><?php echo __('WCK Button group','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
3564 |
</div>
|
3565 |
<div class="element-options options">
|
3566 |
|
3791 |
|
3792 |
?>
|
3793 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_buttongroup ">
|
3794 |
+
<?php echo esc_html($html); ?>
|
3795 |
</div>
|
3796 |
<?php
|
3797 |
endif;
|
3879 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
3880 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
3881 |
|
3882 |
+
<span class="expand"><?php echo __('WCK Page link','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
3883 |
</div>
|
3884 |
<div class="element-options options">
|
3885 |
|
4102 |
$html = sprintf($wrapper_html, $html);
|
4103 |
?>
|
4104 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_page_link ">
|
4105 |
+
<?php echo esc_html($html); ?>
|
4106 |
</div>
|
4107 |
<?php
|
4108 |
endif;
|
4191 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
4192 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
4193 |
|
4194 |
+
<span class="expand"><?php echo __('WCK Taxonomy','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
4195 |
</div>
|
4196 |
<div class="element-options options">
|
4197 |
|
4429 |
|
4430 |
?>
|
4431 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_taxonomy ">
|
4432 |
+
<?php echo esc_html($html); ?>
|
4433 |
</div>
|
4434 |
<?php
|
4435 |
endif;
|
4517 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
4518 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
4519 |
|
4520 |
+
<span class="expand"><?php echo __('WCK User','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
4521 |
</div>
|
4522 |
<div class="element-options options">
|
4523 |
|
4735 |
|
4736 |
?>
|
4737 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_user ">
|
4738 |
+
<?php echo esc_html($html); ?>
|
4739 |
</div>
|
4740 |
<?php
|
4741 |
endif;
|
4824 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
4825 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
4826 |
|
4827 |
+
<span class="expand"><?php echo __('WCK Date picker','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
4828 |
</div>
|
4829 |
<div class="element-options options">
|
4830 |
|
5013 |
$wck_value = sprintf($wrapper_html, $wck_value);
|
5014 |
?>
|
5015 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_date_picker ">
|
5016 |
+
<?php echo esc_html($wck_value); ?>
|
5017 |
</div>
|
5018 |
<?php
|
5019 |
endif;
|
5103 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
5104 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
5105 |
|
5106 |
+
<span class="expand"><?php echo __('WCK Time picker','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
5107 |
</div>
|
5108 |
<div class="element-options options">
|
5109 |
|
5294 |
|
5295 |
?>
|
5296 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_time_picker ">
|
5297 |
+
<?php echo esc_html($wck_value); ?>
|
5298 |
</div>
|
5299 |
<?php
|
5300 |
endif;
|
5383 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
5384 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
5385 |
|
5386 |
+
<span class="expand"><?php echo __('WCK Datetime picker','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
5387 |
</div>
|
5388 |
<div class="element-options options">
|
5389 |
|
5660 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
5661 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
5662 |
|
5663 |
+
<span class="expand"><?php echo __('WCK Google map','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
5664 |
</div>
|
5665 |
<div class="element-options options">
|
5666 |
|
5834 |
|
5835 |
?>
|
5836 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_google_map ">
|
5837 |
+
<?php echo esc_html($wck_value); ?>
|
5838 |
</div>
|
5839 |
<?php
|
5840 |
endif;
|
5922 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
5923 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
5924 |
|
5925 |
+
<span class="expand"><?php echo __('WCK Color picker','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
5926 |
</div>
|
5927 |
<div class="element-options options">
|
5928 |
|
6184 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
6185 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
6186 |
|
6187 |
+
<span class="expand"><?php echo __('WCK Link','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
6188 |
</div>
|
6189 |
<div class="element-options options">
|
6190 |
|
6387 |
|
6388 |
?>
|
6389 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_link ">
|
6390 |
+
<?php echo esc_html($wck_value); ?>
|
6391 |
</div>
|
6392 |
<?php
|
6393 |
endif;
|
6473 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
6474 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
6475 |
|
6476 |
+
<span class="expand"><?php echo __('WCK Text','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
6477 |
</div>
|
6478 |
<div class="element-options options">
|
6479 |
|
6733 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
6734 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
6735 |
|
6736 |
+
<span class="expand"><?php echo __('WCK Text','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
6737 |
</div>
|
6738 |
<div class="element-options options">
|
6739 |
|
6907 |
|
6908 |
?>
|
6909 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_oembed ">
|
6910 |
+
<?php echo esc_html($wck_value); ?>
|
6911 |
</div>
|
6912 |
<?php
|
6913 |
endif;
|
6994 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
6995 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
6996 |
|
6997 |
+
<span class="expand"><?php echo __('WCK Text','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
6998 |
</div>
|
6999 |
<div class="element-options options">
|
7000 |
|
7186 |
|
7187 |
?>
|
7188 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_password ">
|
7189 |
+
<?php echo esc_html($wck_value); ?>
|
7190 |
</div>
|
7191 |
<?php
|
7192 |
endif;
|
7274 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
7275 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
7276 |
|
7277 |
+
<span class="expand"><?php echo __('WCK Relationship','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
7278 |
</div>
|
7279 |
<div class="element-options options">
|
7280 |
|
7514 |
|
7515 |
?>
|
7516 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_relationship ">
|
7517 |
+
<?php echo esc_html($post_html); ?>
|
7518 |
</div>
|
7519 |
<?php
|
7520 |
endif;
|
7602 |
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><i class="fas fa-times"></i></span>
|
7603 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
7604 |
|
7605 |
+
<span class="expand"><?php echo __('WCK Text','post-grid'); ?> - <?php echo esc_html($wck_key); ?></span>
|
7606 |
</div>
|
7607 |
<div class="element-options options">
|
7608 |
|
7796 |
|
7797 |
?>
|
7798 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wck_true_false ">
|
7799 |
+
<?php echo esc_html($wck_value); ?>
|
7800 |
</div>
|
7801 |
<?php
|
7802 |
endif;
|
includes/layout-elements/yith-woocommerce-wishlist/layout-elements.php
CHANGED
@@ -187,7 +187,7 @@ function post_grid_layout_element_yith_add_to_wishlist($args){
|
|
187 |
|
188 |
?>
|
189 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> yith_add_to_wishlist ">
|
190 |
-
<?php echo do_shortcode("[yith_wcwl_add_to_wishlist product_id
|
191 |
</div>
|
192 |
<?php
|
193 |
// endif;
|
187 |
|
188 |
?>
|
189 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> yith_add_to_wishlist ">
|
190 |
+
<?php echo do_shortcode("[yith_wcwl_add_to_wishlist product_id='".esc_attr($post_id)."' ]"); ?>
|
191 |
</div>
|
192 |
<?php
|
193 |
// endif;
|
includes/menu/addons.php
CHANGED
@@ -28,11 +28,11 @@ $addons_list = $class_post_grid_functions->addons_list();
|
|
28 |
?>
|
29 |
<div class="item">
|
30 |
<div class="thumb-wrap">
|
31 |
-
<a href="<?php echo
|
32 |
</div>
|
33 |
-
<div class="addon-title"><a class="addon-link" href="<?php echo
|
34 |
<?php if(!empty($zip_link)): ?>
|
35 |
-
<div class="addon-link button"><a href="<?php echo
|
36 |
<?php endif; ?>
|
37 |
|
38 |
|
28 |
?>
|
29 |
<div class="item">
|
30 |
<div class="thumb-wrap">
|
31 |
+
<a href="<?php echo esc_url($item_link); ?>"><img src="<?php echo esc_url($addon_thumb); ?>"></a>
|
32 |
</div>
|
33 |
+
<div class="addon-title"><a class="addon-link" href="<?php echo esc_url($item_link); ?>"><?php echo esc_html($addon_title);?></a></div>
|
34 |
<?php if(!empty($zip_link)): ?>
|
35 |
+
<div class="addon-link button"><a href="<?php echo esc_url($zip_link); ?>">Download</a> </div>
|
36 |
<?php endif; ?>
|
37 |
|
38 |
|
includes/menu/data-update.php
CHANGED
@@ -81,7 +81,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
81 |
update_post_meta($post_id, 'post_grid_meta_options', $post_grid_meta_options);
|
82 |
|
83 |
?>
|
84 |
-
<li><?php echo get_the_title(); ?></li>
|
85 |
<?php
|
86 |
|
87 |
endwhile;
|
81 |
update_post_meta($post_id, 'post_grid_meta_options', $post_grid_meta_options);
|
82 |
|
83 |
?>
|
84 |
+
<li><?php echo esc_html(get_the_title()); ?></li>
|
85 |
<?php
|
86 |
|
87 |
endwhile;
|
includes/menu/import-layouts.php
CHANGED
@@ -24,9 +24,9 @@ wp_enqueue_script('post_grid_layouts');
|
|
24 |
|
25 |
<div class="wp-filter">
|
26 |
<ul class="filter-links">
|
27 |
-
<li class=""><a href="<?php echo
|
28 |
-
<li class=""><a href="<?php echo
|
29 |
-
<li class=""><a href="<?php echo
|
30 |
</ul>
|
31 |
<form class="block-search-form">
|
32 |
<span class="loading"></span>
|
@@ -107,7 +107,7 @@ wp_enqueue_script('post_grid_layouts');
|
|
107 |
|
108 |
<?php if(!empty($layout_preview_img)):?>
|
109 |
<div class="block-thumb">
|
110 |
-
<img src="<?php echo
|
111 |
</div>
|
112 |
<?php endif; ?>
|
113 |
|
24 |
|
25 |
<div class="wp-filter">
|
26 |
<ul class="filter-links">
|
27 |
+
<li class=""><a href="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>&tabs=latest" class="<?php if($tabs == 'latest') echo 'current'; ?>" aria-current="page"><?php _e('Latest', 'post-grid'); ?></a> </li>
|
28 |
+
<li class=""><a href="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>&tabs=free" class="<?php if($tabs == 'free') echo 'current'; ?>" aria-current="page"><?php _e('Free', 'post-grid'); ?></a> </li>
|
29 |
+
<li class=""><a href="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>&tabs=pro" class="<?php if($tabs == 'pro') echo 'current'; ?>" aria-current="page"><?php _e('Premium', 'post-grid'); ?></a> </li>
|
30 |
</ul>
|
31 |
<form class="block-search-form">
|
32 |
<span class="loading"></span>
|
107 |
|
108 |
<?php if(!empty($layout_preview_img)):?>
|
109 |
<div class="block-thumb">
|
110 |
+
<img src="<?php echo esc_url($layout_preview_img); ?>">
|
111 |
</div>
|
112 |
<?php endif; ?>
|
113 |
|
includes/menu/settings-old.php
CHANGED
@@ -53,7 +53,7 @@ array_multisort($tabs_sorted, SORT_ASC, $post_grid_settings_tabs);
|
|
53 |
<div class="wrap">
|
54 |
|
55 |
|
56 |
-
<h2><?php echo __('Post Grid - Settings','post-grid')?></h2><br>
|
57 |
|
58 |
<?php
|
59 |
|
@@ -97,7 +97,7 @@ array_multisort($tabs_sorted, SORT_ASC, $post_grid_settings_tabs);
|
|
97 |
?>
|
98 |
|
99 |
|
100 |
-
<form method="post" action="<?php echo str_replace( '%7E', '~', esc_url_raw($_SERVER['REQUEST_URI'])); ?>">
|
101 |
<input type="hidden" name="post_grid_hidden" value="Y">
|
102 |
|
103 |
|
53 |
<div class="wrap">
|
54 |
|
55 |
|
56 |
+
<h2><?php echo __('Post Grid - Settings','post-grid'); ?></h2><br>
|
57 |
|
58 |
<?php
|
59 |
|
97 |
?>
|
98 |
|
99 |
|
100 |
+
<form method="post" action="<?php echo esc_url(str_replace( '%7E', '~', esc_url_raw($_SERVER['REQUEST_URI']))); ?>">
|
101 |
<input type="hidden" name="post_grid_hidden" value="Y">
|
102 |
|
103 |
|
includes/menu/settings.php
CHANGED
@@ -57,7 +57,7 @@ $post_grid_settings = get_option('post_grid_settings');
|
|
57 |
?>
|
58 |
<div class="wrap">
|
59 |
<div id="icon-tools" class="icon32"><br></div><h2><?php echo esc_html(sprintf(__('%s Settings', 'post-grid'), post_grid_plugin_name)); ?></h2>
|
60 |
-
<form method="post" action="<?php echo str_replace( '%7E', '~', esc_url_raw($_SERVER['REQUEST_URI'])); ?>">
|
61 |
<input type="hidden" name="post_grid_hidden" value="Y">
|
62 |
<input type="hidden" name="tab" value="<?php echo esc_attr($current_tab); ?>">
|
63 |
<?php
|
57 |
?>
|
58 |
<div class="wrap">
|
59 |
<div id="icon-tools" class="icon32"><br></div><h2><?php echo esc_html(sprintf(__('%s Settings', 'post-grid'), post_grid_plugin_name)); ?></h2>
|
60 |
+
<form method="post" action="<?php echo esc_url(str_replace( '%7E', '~', esc_url_raw($_SERVER['REQUEST_URI']))); ?>">
|
61 |
<input type="hidden" name="post_grid_hidden" value="Y">
|
62 |
<input type="hidden" name="tab" value="<?php echo esc_attr($current_tab); ?>">
|
63 |
<?php
|
includes/metabox-post-grid-hook.php
CHANGED
@@ -655,15 +655,15 @@ function post_grid_metabox_tabs_content_layouts($tab, $post_id){
|
|
655 |
ob_start();
|
656 |
|
657 |
?>
|
658 |
-
<p><a target="_blank" class="button" href="<?php echo
|
659 |
-
<p><a target="_blank" class="button" href="<?php echo
|
660 |
-
<p><a target="_blank" class="button" href="<?php echo
|
661 |
<?php
|
662 |
if($import_layouts != 'done'):
|
663 |
|
664 |
|
665 |
?>
|
666 |
-
<p><a href="<?php echo
|
667 |
<?php
|
668 |
endif;
|
669 |
|
@@ -803,7 +803,7 @@ function post_grid_metabox_tabs_content_skin_layout($tab, $post_id){
|
|
803 |
}
|
804 |
?>
|
805 |
</select>
|
806 |
-
<a target="_blank" class="edit-layout button" href="<?php echo
|
807 |
</div>
|
808 |
|
809 |
<script>
|
@@ -815,7 +815,7 @@ function post_grid_metabox_tabs_content_skin_layout($tab, $post_id){
|
|
815 |
|
816 |
var layout = $(this).val();
|
817 |
|
818 |
-
$('.edit-layout').attr('href', '<?php echo
|
819 |
})
|
820 |
|
821 |
})
|
@@ -876,7 +876,7 @@ function post_grid_metabox_tabs_content_skin_layout($tab, $post_id){
|
|
876 |
if($item_key=='thumb'){
|
877 |
|
878 |
?>
|
879 |
-
<img style="width:100%; height:auto;" src="<?php echo
|
880 |
<?php
|
881 |
}
|
882 |
|
@@ -1001,7 +1001,7 @@ function post_grid_metabox_tabs_content_skin_layout($tab, $post_id){
|
|
1001 |
</div>
|
1002 |
<div class="skin <?php echo esc_attr($skin_slug); ?>">
|
1003 |
<div class="layer-media">
|
1004 |
-
<div class="thumb "><img src="<?php echo
|
1005 |
</div>
|
1006 |
<div class="layer-content">
|
1007 |
<div class="title ">Hello title</div>
|
655 |
ob_start();
|
656 |
|
657 |
?>
|
658 |
+
<p><a target="_blank" class="button" href="<?php echo esc_url(admin_url().'post-new.php?post_type=post_grid_layout'); ?>"><?php echo __('Create layout','post-grid'); ?></a> </p>
|
659 |
+
<p><a target="_blank" class="button" href="<?php echo esc_url(admin_url().'edit.php?post_type=post_grid_layout'); ?>"><?php echo __('Manage layouts','post-grid'); ?></a> </p>
|
660 |
+
<p><a target="_blank" class="button" href="<?php echo esc_url($layout_convert_url); ?>"><?php echo __('Covert old layout to new layout','post-grid'); ?></a> for this post grid.</p>
|
661 |
<?php
|
662 |
if($import_layouts != 'done'):
|
663 |
|
664 |
|
665 |
?>
|
666 |
+
<p><a href="<?php echo esc_url(admin_url().'edit.php?post_type=post_grid&page=import_layouts'); ?>" class="button import-default-layouts"><?php echo __('Import default layouts','post-grid'); ?></a> </p>
|
667 |
<?php
|
668 |
endif;
|
669 |
|
803 |
}
|
804 |
?>
|
805 |
</select>
|
806 |
+
<a target="_blank" class="edit-layout button" href="<?php echo esc_url(admin_url().'edit.php?post_type=post_grid&page=layout_editor&layout_content='.$layout_content); ?>" ><?php echo __('Edit' , 'post-grid'); ?></a>
|
807 |
</div>
|
808 |
|
809 |
<script>
|
815 |
|
816 |
var layout = $(this).val();
|
817 |
|
818 |
+
$('.edit-layout').attr('href', '<?php echo esc_url(admin_url().'edit.php?post_type=post_grid&page=layout_editor&layout_content='); ?>'+layout);
|
819 |
})
|
820 |
|
821 |
})
|
876 |
if($item_key=='thumb'){
|
877 |
|
878 |
?>
|
879 |
+
<img style="width:100%; height:auto;" src="<?php echo esc_url(post_grid_plugin_url.'assets/admin/images/thumb.png'); ?>" />
|
880 |
<?php
|
881 |
}
|
882 |
|
1001 |
</div>
|
1002 |
<div class="skin <?php echo esc_attr($skin_slug); ?>">
|
1003 |
<div class="layer-media">
|
1004 |
+
<div class="thumb "><img src="<?php echo esc_url(post_grid_plugin_url.'assets/admin/images/thumb.png'); ?>" /></div>
|
1005 |
</div>
|
1006 |
<div class="layer-content">
|
1007 |
<div class="title ">Hello title</div>
|
includes/metabox-post-grid-layout-hook.php
CHANGED
@@ -417,7 +417,7 @@ if(!function_exists('post_grid_layout_metabox_content_layout_builder')){
|
|
417 |
?>
|
418 |
<style type="text/css">
|
419 |
.layout-preview{
|
420 |
-
background: url(<?php echo
|
421 |
padding: 20px;
|
422 |
}
|
423 |
.layout-preview .elements-wrapper{
|
417 |
?>
|
418 |
<style type="text/css">
|
419 |
.layout-preview{
|
420 |
+
background: url(<?php echo esc_url(post_grid_plugin_url.'assets/admin/images/tile.png'); ?>);
|
421 |
padding: 20px;
|
422 |
}
|
423 |
.layout-preview .elements-wrapper{
|
includes/post-grid-layout-elements.php
CHANGED
@@ -823,7 +823,7 @@ function post_grid_layout_element_title($args){
|
|
823 |
?>
|
824 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> title ">
|
825 |
<?php if($link_to == 'post_link'): ?>
|
826 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
827 |
|
828 |
<?php elseif($link_to == 'custom_link'):
|
829 |
|
@@ -833,7 +833,7 @@ function post_grid_layout_element_title($args){
|
|
833 |
//var_dump($thumb_custom_url);
|
834 |
|
835 |
?>
|
836 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
837 |
|
838 |
<?php else: ?>
|
839 |
<?php echo esc_html($title); ?>
|
@@ -1184,7 +1184,7 @@ function post_grid_layout_element_title_link($args){
|
|
1184 |
?>
|
1185 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> title_link ">
|
1186 |
<?php if($link_to == 'post_link'): ?>
|
1187 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
1188 |
<?php elseif($link_to == 'custom_link'):
|
1189 |
|
1190 |
$post_grid_post_settings = get_post_meta($post_id, 'post_grid_post_settings', true);
|
@@ -1193,7 +1193,7 @@ function post_grid_layout_element_title_link($args){
|
|
1193 |
//var_dump($thumb_custom_url);
|
1194 |
|
1195 |
?>
|
1196 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
1197 |
<?php else: ?>
|
1198 |
<?php echo esc_html($title); ?>
|
1199 |
<?php endif; ?>
|
@@ -1814,7 +1814,7 @@ function post_grid_layout_element_excerpt($args){
|
|
1814 |
<?php
|
1815 |
if(!empty($read_more_text)):
|
1816 |
?>
|
1817 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
1818 |
<?php
|
1819 |
endif;
|
1820 |
?>
|
@@ -2189,7 +2189,7 @@ function post_grid_layout_element_excerpt_read_more($args){
|
|
2189 |
?>
|
2190 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> excerpt_read_more ">
|
2191 |
<?php echo esc_html($post_excerpt); ?>
|
2192 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
2193 |
|
2194 |
</div>
|
2195 |
<?php
|
@@ -2506,14 +2506,14 @@ function post_grid_layout_element_read_more($args){
|
|
2506 |
$title = get_the_title($post_id);
|
2507 |
?>
|
2508 |
<?php if($link_to == 'post_link'): ?>
|
2509 |
-
<a class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> read_more " target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
2510 |
<?php elseif($link_to == 'custom_link'):
|
2511 |
|
2512 |
$post_grid_post_settings = get_post_meta($post_id, 'post_grid_post_settings', true);
|
2513 |
$thumb_custom_url = !empty($post_grid_post_settings['thumb_custom_url']) ? $post_grid_post_settings['thumb_custom_url'] : $post_link;
|
2514 |
|
2515 |
?>
|
2516 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
2517 |
<?php else: ?>
|
2518 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> read_more ">
|
2519 |
<?php echo esc_html($read_more_text); ?>
|
@@ -3340,7 +3340,7 @@ function post_grid_layout_element_thumb($args){
|
|
3340 |
<?php
|
3341 |
if($link_to == 'post_link'):
|
3342 |
?>
|
3343 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
3344 |
<?php elseif($link_to == 'custom_link'):
|
3345 |
|
3346 |
$post_grid_post_settings = get_post_meta($post_id, 'post_grid_post_settings', true);
|
@@ -3349,12 +3349,12 @@ function post_grid_layout_element_thumb($args){
|
|
3349 |
//var_dump($thumb_custom_url);
|
3350 |
|
3351 |
?>
|
3352 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
3353 |
|
3354 |
<?php
|
3355 |
else:
|
3356 |
?>
|
3357 |
-
<img src="<?php echo
|
3358 |
<?php
|
3359 |
|
3360 |
endif;
|
@@ -3706,7 +3706,7 @@ function post_grid_layout_element_thumb_link($args){
|
|
3706 |
<?php
|
3707 |
if($link_to == 'post_link'):
|
3708 |
?>
|
3709 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
3710 |
|
3711 |
<?php elseif($link_to == 'custom_link'):
|
3712 |
|
@@ -3716,13 +3716,13 @@ function post_grid_layout_element_thumb_link($args){
|
|
3716 |
//var_dump($thumb_custom_url);
|
3717 |
|
3718 |
?>
|
3719 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
3720 |
|
3721 |
|
3722 |
<?php
|
3723 |
else:
|
3724 |
?>
|
3725 |
-
<img src="<?php echo
|
3726 |
<?php
|
3727 |
|
3728 |
endif;
|
@@ -4053,7 +4053,7 @@ function post_grid_layout_element_post_date($args){
|
|
4053 |
<?php
|
4054 |
if($link_to == 'post_link'):
|
4055 |
?>
|
4056 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
4057 |
|
4058 |
<?php elseif($link_to == 'custom_link'):
|
4059 |
|
@@ -4063,7 +4063,7 @@ function post_grid_layout_element_post_date($args){
|
|
4063 |
//var_dump($thumb_custom_url);
|
4064 |
|
4065 |
?>
|
4066 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
4067 |
|
4068 |
|
4069 |
<?php
|
@@ -4374,17 +4374,16 @@ function post_grid_layout_element_author($args){
|
|
4374 |
<?php
|
4375 |
if($link_to == 'post_link'):
|
4376 |
?>
|
4377 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
4378 |
|
4379 |
<?php elseif($link_to == 'custom_link'):
|
4380 |
|
4381 |
$post_grid_post_settings = get_post_meta($post_id, 'post_grid_post_settings', true);
|
4382 |
$thumb_custom_url = !empty($post_grid_post_settings['thumb_custom_url']) ? $post_grid_post_settings['thumb_custom_url'] : $post_link;
|
4383 |
|
4384 |
-
//var_dump($thumb_custom_url);
|
4385 |
|
4386 |
?>
|
4387 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
4388 |
|
4389 |
|
4390 |
|
@@ -4394,7 +4393,7 @@ function post_grid_layout_element_author($args){
|
|
4394 |
$post_author_link = get_author_posts_url( get_the_author_meta( 'ID' ) ) ;
|
4395 |
|
4396 |
?>
|
4397 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
4398 |
<?php
|
4399 |
|
4400 |
else:
|
@@ -4697,7 +4696,7 @@ function post_grid_layout_element_author_link($args){
|
|
4697 |
<?php
|
4698 |
if($link_to == 'post_link'):
|
4699 |
?>
|
4700 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
4701 |
|
4702 |
|
4703 |
<?php elseif($link_to == 'custom_link'):
|
@@ -4708,7 +4707,7 @@ function post_grid_layout_element_author_link($args){
|
|
4708 |
//var_dump($thumb_custom_url);
|
4709 |
|
4710 |
?>
|
4711 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
4712 |
|
4713 |
|
4714 |
|
@@ -4717,7 +4716,7 @@ function post_grid_layout_element_author_link($args){
|
|
4717 |
$post_author_link = get_author_posts_url( get_the_author_meta( 'ID' ) ) ;
|
4718 |
|
4719 |
?>
|
4720 |
-
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo
|
4721 |
<?php
|
4722 |
|
4723 |
else:
|
823 |
?>
|
824 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> title ">
|
825 |
<?php if($link_to == 'post_link'): ?>
|
826 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_link); ?>"><?php echo esc_html($title); ?></a>
|
827 |
|
828 |
<?php elseif($link_to == 'custom_link'):
|
829 |
|
833 |
//var_dump($thumb_custom_url);
|
834 |
|
835 |
?>
|
836 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($thumb_custom_url); ?>"><?php echo esc_html($title); ?></a>
|
837 |
|
838 |
<?php else: ?>
|
839 |
<?php echo esc_html($title); ?>
|
1184 |
?>
|
1185 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> title_link ">
|
1186 |
<?php if($link_to == 'post_link'): ?>
|
1187 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_link); ?>"><?php echo esc_html($title); ?></a>
|
1188 |
<?php elseif($link_to == 'custom_link'):
|
1189 |
|
1190 |
$post_grid_post_settings = get_post_meta($post_id, 'post_grid_post_settings', true);
|
1193 |
//var_dump($thumb_custom_url);
|
1194 |
|
1195 |
?>
|
1196 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($thumb_custom_url); ?>"><?php echo esc_html($title); ?></a>
|
1197 |
<?php else: ?>
|
1198 |
<?php echo esc_html($title); ?>
|
1199 |
<?php endif; ?>
|
1814 |
<?php
|
1815 |
if(!empty($read_more_text)):
|
1816 |
?>
|
1817 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_link); ?>"><?php echo esc_html($read_more_text); ?></a>
|
1818 |
<?php
|
1819 |
endif;
|
1820 |
?>
|
2189 |
?>
|
2190 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> excerpt_read_more ">
|
2191 |
<?php echo esc_html($post_excerpt); ?>
|
2192 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_link); ?>"><?php echo esc_html($read_more_text); ?></a>
|
2193 |
|
2194 |
</div>
|
2195 |
<?php
|
2506 |
$title = get_the_title($post_id);
|
2507 |
?>
|
2508 |
<?php if($link_to == 'post_link'): ?>
|
2509 |
+
<a class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> read_more " target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_link); ?>"><?php echo esc_html($read_more_text); ?></a>
|
2510 |
<?php elseif($link_to == 'custom_link'):
|
2511 |
|
2512 |
$post_grid_post_settings = get_post_meta($post_id, 'post_grid_post_settings', true);
|
2513 |
$thumb_custom_url = !empty($post_grid_post_settings['thumb_custom_url']) ? $post_grid_post_settings['thumb_custom_url'] : $post_link;
|
2514 |
|
2515 |
?>
|
2516 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($thumb_custom_url); ?>"><?php echo esc_html($title); ?></a>
|
2517 |
<?php else: ?>
|
2518 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> read_more ">
|
2519 |
<?php echo esc_html($read_more_text); ?>
|
3340 |
<?php
|
3341 |
if($link_to == 'post_link'):
|
3342 |
?>
|
3343 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_link); ?>"><img src="<?php echo esc_url($thumb_url); ?>"></a>
|
3344 |
<?php elseif($link_to == 'custom_link'):
|
3345 |
|
3346 |
$post_grid_post_settings = get_post_meta($post_id, 'post_grid_post_settings', true);
|
3349 |
//var_dump($thumb_custom_url);
|
3350 |
|
3351 |
?>
|
3352 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($thumb_custom_url); ?>"><img src="<?php echo esc_url($thumb_url); ?>"></a>
|
3353 |
|
3354 |
<?php
|
3355 |
else:
|
3356 |
?>
|
3357 |
+
<img src="<?php echo esc_url($thumb_url); ?>">
|
3358 |
<?php
|
3359 |
|
3360 |
endif;
|
3706 |
<?php
|
3707 |
if($link_to == 'post_link'):
|
3708 |
?>
|
3709 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_link); ?>"><img src="<?php echo esc_url($thumb_url); ?>"></a>
|
3710 |
|
3711 |
<?php elseif($link_to == 'custom_link'):
|
3712 |
|
3716 |
//var_dump($thumb_custom_url);
|
3717 |
|
3718 |
?>
|
3719 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($thumb_custom_url); ?>"><img src="<?php echo esc_url($thumb_url); ?>"></a>
|
3720 |
|
3721 |
|
3722 |
<?php
|
3723 |
else:
|
3724 |
?>
|
3725 |
+
<img src="<?php echo esc_url($thumb_url); ?>">
|
3726 |
<?php
|
3727 |
|
3728 |
endif;
|
4053 |
<?php
|
4054 |
if($link_to == 'post_link'):
|
4055 |
?>
|
4056 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_link); ?>"><?php echo esc_html($post_date); ?></a>
|
4057 |
|
4058 |
<?php elseif($link_to == 'custom_link'):
|
4059 |
|
4063 |
//var_dump($thumb_custom_url);
|
4064 |
|
4065 |
?>
|
4066 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($thumb_custom_url); ?>"><?php echo esc_html($post_date); ?></a>
|
4067 |
|
4068 |
|
4069 |
<?php
|
4374 |
<?php
|
4375 |
if($link_to == 'post_link'):
|
4376 |
?>
|
4377 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_link); ?>"><?php echo esc_html($post_author); ?></a>
|
4378 |
|
4379 |
<?php elseif($link_to == 'custom_link'):
|
4380 |
|
4381 |
$post_grid_post_settings = get_post_meta($post_id, 'post_grid_post_settings', true);
|
4382 |
$thumb_custom_url = !empty($post_grid_post_settings['thumb_custom_url']) ? $post_grid_post_settings['thumb_custom_url'] : $post_link;
|
4383 |
|
|
|
4384 |
|
4385 |
?>
|
4386 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($thumb_custom_url); ?>"><?php echo esc_html($post_author); ?></a>
|
4387 |
|
4388 |
|
4389 |
|
4393 |
$post_author_link = get_author_posts_url( get_the_author_meta( 'ID' ) ) ;
|
4394 |
|
4395 |
?>
|
4396 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_author_link); ?>"><?php echo esc_html($post_author); ?></a>
|
4397 |
<?php
|
4398 |
|
4399 |
else:
|
4696 |
<?php
|
4697 |
if($link_to == 'post_link'):
|
4698 |
?>
|
4699 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_link); ?>"><?php echo esc_html($post_author); ?></a>
|
4700 |
|
4701 |
|
4702 |
<?php elseif($link_to == 'custom_link'):
|
4707 |
//var_dump($thumb_custom_url);
|
4708 |
|
4709 |
?>
|
4710 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($thumb_custom_url); ?>"><?php echo esc_html($post_author); ?></a>
|
4711 |
|
4712 |
|
4713 |
|
4716 |
$post_author_link = get_author_posts_url( get_the_author_meta( 'ID' ) ) ;
|
4717 |
|
4718 |
?>
|
4719 |
+
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url($post_author_link); ?>"><?php echo esc_html($post_author); ?></a>
|
4720 |
<?php
|
4721 |
|
4722 |
else:
|
includes/settings-hook.php
CHANGED
@@ -110,7 +110,7 @@ if(!function_exists('post_grid_settings_content_help_support')) {
|
|
110 |
ob_start();
|
111 |
?>
|
112 |
<ul>
|
113 |
-
<li>Step - 1: Go to Tools > <a href="<?php echo
|
114 |
<li>Step - 2: Choose "Layouts" post types from list.</li>
|
115 |
<li>Step - 3: Then click to "Download Export File' button.</li>
|
116 |
<li>Step - 4: Save the file on your local machine.</li>
|
110 |
ob_start();
|
111 |
?>
|
112 |
<ul>
|
113 |
+
<li>Step - 1: Go to Tools > <a href="<?php echo esc_url(admin_url().'export.php'); ?>">Export</a> menu.</li>
|
114 |
<li>Step - 2: Choose "Layouts" post types from list.</li>
|
115 |
<li>Step - 3: Then click to "Download Export File' button.</li>
|
116 |
<li>Step - 4: Save the file on your local machine.</li>
|
post-grid.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Post Grid by PickPlugins
|
4 |
Plugin URI: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/
|
5 |
Description: Awesome post grid for query post from any post type and display on grid.
|
6 |
-
Version: 2.1.
|
7 |
Author: PickPlugins
|
8 |
Author URI: https://www.pickplugins.com/
|
9 |
License: GPLv2 or later
|
@@ -21,7 +21,7 @@ if( !class_exists( 'PostGrid' )){
|
|
21 |
define('post_grid_plugin_dir', plugin_dir_path(__FILE__));
|
22 |
define('post_grid_plugin_basename', plugin_basename(__FILE__));
|
23 |
define('post_grid_plugin_name', 'Post Grid');
|
24 |
-
define('post_grid_version', '2.1.
|
25 |
define('post_grid_server_url', 'https://www.pickplugins.com/demo/post-grid/');
|
26 |
|
27 |
|
3 |
Plugin Name: Post Grid by PickPlugins
|
4 |
Plugin URI: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/
|
5 |
Description: Awesome post grid for query post from any post type and display on grid.
|
6 |
+
Version: 2.1.17
|
7 |
Author: PickPlugins
|
8 |
Author URI: https://www.pickplugins.com/
|
9 |
License: GPLv2 or later
|
21 |
define('post_grid_plugin_dir', plugin_dir_path(__FILE__));
|
22 |
define('post_grid_plugin_basename', plugin_basename(__FILE__));
|
23 |
define('post_grid_plugin_name', 'Post Grid');
|
24 |
+
define('post_grid_version', '2.1.17');
|
25 |
define('post_grid_server_url', 'https://www.pickplugins.com/demo/post-grid/');
|
26 |
|
27 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
Donate link: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=wordpress.org
|
4 |
Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -223,6 +223,9 @@ then paste this shortcode anywhere in your page to display grid<br />
|
|
223 |
== Changelog ==
|
224 |
|
225 |
|
|
|
|
|
|
|
226 |
= 2.1.16 =
|
227 |
* 2022-03-05 - fix - Escaping issue fixed.
|
228 |
|
3 |
Donate link: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=wordpress.org
|
4 |
Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 5.8
|
7 |
+
Stable tag: 2.1.17
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
223 |
== Changelog ==
|
224 |
|
225 |
|
226 |
+
= 2.1.17 =
|
227 |
+
* 2022-03-08 - fix - More Escaping issue fixed.
|
228 |
+
|
229 |
= 2.1.16 =
|
230 |
* 2022-03-05 - fix - Escaping issue fixed.
|
231 |
|
templates/post-grid-hook.php
CHANGED
@@ -22,7 +22,7 @@ function post_grid_main_lazy($atts){
|
|
22 |
<?php
|
23 |
if($lazy_load_enable == 'yes'):
|
24 |
?>
|
25 |
-
<div id="post-grid-lazy-<?php echo esc_attr($grid_id); ?>" class="post-grid-lazy"><img alt="<?php echo esc_attr($lazy_load_alt_text); ?>" src="<?php echo
|
26 |
<script>
|
27 |
jQuery('#post-grid-lazy-<?php echo esc_attr($grid_id); ?>').ready(function($){
|
28 |
$('#post-grid-lazy-<?php echo esc_attr($grid_id); ?>').fadeOut();
|
@@ -127,7 +127,7 @@ function post_grid_container_search($args){
|
|
127 |
$page_url = get_permalink(get_the_ID());
|
128 |
?>
|
129 |
<div class="post-grid-search <?php echo esc_attr($search_action_type); ?>">
|
130 |
-
<form grid_id="<?php echo esc_attr($grid_id); ?>" action="<?php echo
|
131 |
<?php
|
132 |
|
133 |
do_action('post_grid_search', $args);
|
@@ -645,8 +645,8 @@ function post_grid_container_old_layout_css($args){
|
|
645 |
if(!empty($layout_id)) return;
|
646 |
|
647 |
|
648 |
-
$grid_id = $args['grid_id'];
|
649 |
-
$post_grid_options = $args['options'];
|
650 |
$layout_content = isset($post_grid_options['layout']['content']) ? $post_grid_options['layout']['content'] : 'flat';
|
651 |
|
652 |
$class_post_grid_functions = new class_post_grid_functions();
|
@@ -670,8 +670,8 @@ function post_grid_container_old_layout_css($args){
|
|
670 |
<style type="text/css">
|
671 |
<?php
|
672 |
foreach($layout as $item_id=>$item_info){
|
673 |
-
$item_css = $item_info['css'];
|
674 |
-
$item_key = $item_info['key'];
|
675 |
|
676 |
if($item_key=='categories' || $item_key=='tags'){
|
677 |
?>
|
@@ -682,7 +682,7 @@ function post_grid_container_old_layout_css($args){
|
|
682 |
$arrow_bg_color = $item_info['arrow_bg_color'];
|
683 |
?>
|
684 |
#post-grid-<?php echo esc_attr($grid_id); ?> .element_<?php echo esc_attr($item_id); ?>{<?php echo esc_attr($item_css); ?>}
|
685 |
-
#post-grid-<?php echo $grid_id; ?> .element_<?php echo $item_id; ?>{
|
686 |
border-left: <?php echo esc_attr($arrow_size); ?> solid rgba(0, 0, 0, 0);
|
687 |
border-right: <?php echo esc_attr($arrow_size); ?> solid rgba(0, 0, 0, 0);
|
688 |
border-top: <?php echo esc_attr($arrow_size); ?> solid <?php echo esc_attr($arrow_bg_color); ?>;
|
@@ -790,8 +790,8 @@ add_action('post_grid_pagination_normal', 'post_grid_pagination_normal', 10, 2);
|
|
790 |
function post_grid_pagination_normal($args, $post_grid_wp_query){
|
791 |
|
792 |
|
793 |
-
$post_grid_options = $args['options'];
|
794 |
-
$grid_id = $args['grid_id'];
|
795 |
|
796 |
if ( get_query_var('paged') ) {
|
797 |
$paged = get_query_var('paged');
|
@@ -861,7 +861,7 @@ function post_grid_custom_css($args){
|
|
861 |
|
862 |
//if($grid_type != 'grid' && $grid_type != 'filterable') return;
|
863 |
|
864 |
-
$grid_id = $args['grid_id'];
|
865 |
|
866 |
do_action('post_grid_view_type_css_'.$grid_type, $args);
|
867 |
|
@@ -877,8 +877,8 @@ add_action('post_grid_view_type_css_grid', 'post_grid_view_type_css_grid', 90);
|
|
877 |
|
878 |
function post_grid_view_type_css_grid($args){
|
879 |
|
880 |
-
$post_grid_options = $args['options'];
|
881 |
-
$grid_id = $args['grid_id'];
|
882 |
|
883 |
$items_width_desktop = isset($post_grid_options['width']['desktop']) ? $post_grid_options['width']['desktop'] : 3;
|
884 |
$items_width_tablet = isset($post_grid_options['width']['tablet']) ? $post_grid_options['width']['tablet'] : 2;
|
@@ -1136,8 +1136,8 @@ function post_grid_view_type_css_grid($args){
|
|
1136 |
add_action('post_grid_container', 'post_grid_main_scripts', 80);
|
1137 |
|
1138 |
function post_grid_main_scripts($args){
|
1139 |
-
$post_grid_options = $args['options'];
|
1140 |
-
$grid_id = $args['grid_id'];
|
1141 |
$grid_type = isset($post_grid_options['grid_type']) ? $post_grid_options['grid_type'] : 'grid';
|
1142 |
|
1143 |
|
@@ -1217,7 +1217,7 @@ function post_grid_main_scripts($args){
|
|
1217 |
<?php if(!empty($layout_custom_css)): ?>
|
1218 |
<style type="text/css">
|
1219 |
<?php
|
1220 |
-
echo str_replace('__ID__', 'layout-'.esc_attr($layout_id), esc_attr($layout_custom_css));
|
1221 |
?>
|
1222 |
</style>
|
1223 |
<?php endif; ?>
|
@@ -1275,8 +1275,8 @@ function post_grid_main_convert_layout($args){
|
|
1275 |
|
1276 |
$layout_converted = true;
|
1277 |
}else{
|
1278 |
-
$options = $args['options'];
|
1279 |
-
$grid_id = (int) $args['grid_id'];
|
1280 |
|
1281 |
$layout_id = isset($options['layout_id']) ? $options['layout_id'] : '';
|
1282 |
|
@@ -1444,7 +1444,7 @@ function post_grid_main_convert_layout($args){
|
|
1444 |
if($layout_converted){
|
1445 |
|
1446 |
?>
|
1447 |
-
<p>Layout converted successfully, please go <a href="<?php echo
|
1448 |
<p>Please report issue if you found any problem, <a href="https://www.pickplugins.com/forum/">create support ticket</a> </p>
|
1449 |
<?php
|
1450 |
}
|
22 |
<?php
|
23 |
if($lazy_load_enable == 'yes'):
|
24 |
?>
|
25 |
+
<div id="post-grid-lazy-<?php echo esc_attr($grid_id); ?>" class="post-grid-lazy"><img alt="<?php echo esc_attr($lazy_load_alt_text); ?>" src="<?php echo esc_url($lazy_load_image_src); ?>"/></div>
|
26 |
<script>
|
27 |
jQuery('#post-grid-lazy-<?php echo esc_attr($grid_id); ?>').ready(function($){
|
28 |
$('#post-grid-lazy-<?php echo esc_attr($grid_id); ?>').fadeOut();
|
127 |
$page_url = get_permalink(get_the_ID());
|
128 |
?>
|
129 |
<div class="post-grid-search <?php echo esc_attr($search_action_type); ?>">
|
130 |
+
<form grid_id="<?php echo esc_attr($grid_id); ?>" action="<?php echo esc_url($page_url); ?>" method="get">
|
131 |
<?php
|
132 |
|
133 |
do_action('post_grid_search', $args);
|
645 |
if(!empty($layout_id)) return;
|
646 |
|
647 |
|
648 |
+
$grid_id = isset($args['grid_id']) ? $args['grid_id'] : '';
|
649 |
+
$post_grid_options = isset($args['options']) ? $args['options'] : [];
|
650 |
$layout_content = isset($post_grid_options['layout']['content']) ? $post_grid_options['layout']['content'] : 'flat';
|
651 |
|
652 |
$class_post_grid_functions = new class_post_grid_functions();
|
670 |
<style type="text/css">
|
671 |
<?php
|
672 |
foreach($layout as $item_id=>$item_info){
|
673 |
+
$item_css = isset($item_info['css']) ? $item_info['css'] : '';
|
674 |
+
$item_key = isset($item_info['key']) ? $item_info['key'] : '';
|
675 |
|
676 |
if($item_key=='categories' || $item_key=='tags'){
|
677 |
?>
|
682 |
$arrow_bg_color = $item_info['arrow_bg_color'];
|
683 |
?>
|
684 |
#post-grid-<?php echo esc_attr($grid_id); ?> .element_<?php echo esc_attr($item_id); ?>{<?php echo esc_attr($item_css); ?>}
|
685 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .element_<?php echo esc_attr($item_id); ?>{
|
686 |
border-left: <?php echo esc_attr($arrow_size); ?> solid rgba(0, 0, 0, 0);
|
687 |
border-right: <?php echo esc_attr($arrow_size); ?> solid rgba(0, 0, 0, 0);
|
688 |
border-top: <?php echo esc_attr($arrow_size); ?> solid <?php echo esc_attr($arrow_bg_color); ?>;
|
790 |
function post_grid_pagination_normal($args, $post_grid_wp_query){
|
791 |
|
792 |
|
793 |
+
$post_grid_options = isset($args['options']) ? $args['options'] : [];
|
794 |
+
$grid_id = isset($args['grid_id']) ? $args['grid_id'] : '';
|
795 |
|
796 |
if ( get_query_var('paged') ) {
|
797 |
$paged = get_query_var('paged');
|
861 |
|
862 |
//if($grid_type != 'grid' && $grid_type != 'filterable') return;
|
863 |
|
864 |
+
$grid_id = isset($args['grid_id']) ? $args['grid_id'] : '';
|
865 |
|
866 |
do_action('post_grid_view_type_css_'.$grid_type, $args);
|
867 |
|
877 |
|
878 |
function post_grid_view_type_css_grid($args){
|
879 |
|
880 |
+
$post_grid_options = isset($args['options']) ? $args['options'] : [];
|
881 |
+
$grid_id = isset($args['grid_id']) ? $args['grid_id'] : '';
|
882 |
|
883 |
$items_width_desktop = isset($post_grid_options['width']['desktop']) ? $post_grid_options['width']['desktop'] : 3;
|
884 |
$items_width_tablet = isset($post_grid_options['width']['tablet']) ? $post_grid_options['width']['tablet'] : 2;
|
1136 |
add_action('post_grid_container', 'post_grid_main_scripts', 80);
|
1137 |
|
1138 |
function post_grid_main_scripts($args){
|
1139 |
+
$post_grid_options = isset($args['options']) ? $args['options'] : [];
|
1140 |
+
$grid_id = isset($args['grid_id']) ? $args['grid_id'] : '';
|
1141 |
$grid_type = isset($post_grid_options['grid_type']) ? $post_grid_options['grid_type'] : 'grid';
|
1142 |
|
1143 |
|
1217 |
<?php if(!empty($layout_custom_css)): ?>
|
1218 |
<style type="text/css">
|
1219 |
<?php
|
1220 |
+
echo esc_attr(str_replace('__ID__', 'layout-'.esc_attr($layout_id), esc_attr($layout_custom_css)));
|
1221 |
?>
|
1222 |
</style>
|
1223 |
<?php endif; ?>
|
1275 |
|
1276 |
$layout_converted = true;
|
1277 |
}else{
|
1278 |
+
$options = isset($args['options']) ? $args['options'] : [];
|
1279 |
+
$grid_id = (int) isset($args['grid_id']) ? $args['grid_id'] : '';
|
1280 |
|
1281 |
$layout_id = isset($options['layout_id']) ? $options['layout_id'] : '';
|
1282 |
|
1444 |
if($layout_converted){
|
1445 |
|
1446 |
?>
|
1447 |
+
<p>Layout converted successfully, please go <a href="<?php echo esc_url(get_edit_post_link($new_layout_id)); ?>">#<?php echo esc_attr($new_layout_id); ?></a> this link to edit layout </p>
|
1448 |
<p>Please report issue if you found any problem, <a href="https://www.pickplugins.com/forum/">create support ticket</a> </p>
|
1449 |
<?php
|
1450 |
}
|