Version Description
- 2022-03-05 - fix - Escaping issue fixed.
Download this release
Release Info
Developer | pickplugins |
Plugin | Post Grid |
Version | 2.1.16 |
Comparing to | |
See all releases |
Code changes from version 2.1.14 to 2.1.16
- assets/admin/js/scripts.js +10 -0
- includes/classes/class-admin-notices.php +1 -1
- includes/classes/class-license.php +1 -1
- includes/classes/class-meta-boxes.php +4 -4
- includes/classes/class-settings-tabs.php +30 -31
- includes/functions-layout-api.php +1 -11
- includes/functions.php +6 -17
- includes/layout-elements/kk-star-ratings/layout-elements.php +9 -9
- includes/layout-elements/likebtn-like-button/layout-elements.php +9 -9
- includes/layout-elements/multi-rating/layout-elements.php +9 -9
- includes/layout-elements/page-views-count/layout-elements.php +10 -10
- includes/layout-elements/page-visit-counter/layout-elements.php +10 -10
- includes/layout-elements/post-views-counter/layout-elements.php +10 -10
- includes/layout-elements/rate-my-post/layout-elements.php +9 -9
- includes/layout-elements/rating-widget/layout-elements.php +9 -9
- includes/layout-elements/simple-job-board/layout-elements.php +111 -111
- includes/layout-elements/site-reviews/layout-elements.php +9 -9
- includes/layout-elements/wck-custom-fields-and-custom-post-types-creator/layout-elements.php +270 -270
- includes/layout-elements/wp-job-manager/layout-elements.php +55 -55
- includes/layout-elements/wp-postratings/layout-elements.php +9 -9
- includes/layout-elements/wp-postviews/layout-elements.php +10 -10
- includes/layout-elements/yet-another-stars-rating/layout-elements.php +18 -18
- includes/layout-elements/yith-woocommerce-wishlist/layout-elements.php +12 -12
- includes/menu/addons.php +2 -2
- includes/menu/data-update.php +1 -2
- includes/menu/import-layouts.php +2 -6
- includes/menu/settings-old.php +2 -2
- includes/menu/settings.php +3 -3
- includes/metabox-post-grid-hook.php +13 -14
- includes/metabox-post-grid-layout-hook.php +4 -6
- includes/post-grid-layout-elements.php +44 -48
- includes/settings-hook.php +0 -1
- post-grid.php +2 -2
- readme.txt +9 -2
- templates/post-grid-hook.php +84 -101
assets/admin/js/scripts.js
CHANGED
@@ -20,6 +20,11 @@ jQuery(document).ready(function($){
|
|
20 |
|
21 |
|
22 |
$(document).on('change', '#post-grid #post_types', function(){
|
|
|
|
|
|
|
|
|
|
|
23 |
post_types = $(this).val();
|
24 |
grid_id = $(this).attr('grid_id');
|
25 |
html = '<i class="fas fa-spin fa-spinner"></i>';
|
@@ -33,6 +38,11 @@ jQuery(document).ready(function($){
|
|
33 |
success: function(response) {
|
34 |
var data = JSON.parse( response );
|
35 |
html = data['html'];
|
|
|
|
|
|
|
|
|
|
|
36 |
$('#taxonomies-terms').html(html);
|
37 |
$('#taxonomies-terms .select2').select2({
|
38 |
width: '320px',
|
20 |
|
21 |
|
22 |
$(document).on('change', '#post-grid #post_types', function(){
|
23 |
+
|
24 |
+
|
25 |
+
console.log('Hello');
|
26 |
+
|
27 |
+
|
28 |
post_types = $(this).val();
|
29 |
grid_id = $(this).attr('grid_id');
|
30 |
html = '<i class="fas fa-spin fa-spinner"></i>';
|
38 |
success: function(response) {
|
39 |
var data = JSON.parse( response );
|
40 |
html = data['html'];
|
41 |
+
post_types = data['post_types'];
|
42 |
+
|
43 |
+
|
44 |
+
console.log(post_types);
|
45 |
+
|
46 |
$('#taxonomies-terms').html(html);
|
47 |
$('#taxonomies-terms .select2').select2({
|
48 |
width: '320px',
|
includes/classes/class-admin-notices.php
CHANGED
@@ -23,7 +23,7 @@ class class_post_grid_notices{
|
|
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'), admin_url().'edit.php?post_type=post_grid&page=post-grid-settings&tab=help_support')
|
27 |
?>
|
28 |
</div>
|
29 |
<?php
|
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'), esc_url_raw(admin_url().'edit.php?post_type=post_grid&page=post-grid-settings&tab=help_support'))
|
27 |
?>
|
28 |
</div>
|
29 |
<?php
|
includes/classes/class-license.php
CHANGED
@@ -140,7 +140,7 @@ class class_post_grid_license{
|
|
140 |
|
141 |
}
|
142 |
|
143 |
-
echo $html;
|
144 |
|
145 |
|
146 |
}
|
140 |
|
141 |
}
|
142 |
|
143 |
+
echo esc_html($html);
|
144 |
|
145 |
|
146 |
}
|
includes/classes/class-meta-boxes.php
CHANGED
@@ -111,7 +111,7 @@ class post_grid_meta_boxs{
|
|
111 |
$data_visible = isset($tab['data_visible']) ? $tab['data_visible'] : '';
|
112 |
$hidden = isset($tab['hidden']) ? $tab['hidden'] : false;
|
113 |
?>
|
114 |
-
<li <?php if(!empty($data_visible)): ?> data_visible="<?php echo esc_attr($data_visible); ?>" <?php endif; ?> class="tab-nav <?php if($hidden) echo 'hidden';?> <?php if($active) echo 'active';?>" data-id="<?php echo esc_attr($id); ?>"><?php echo $title; ?></li>
|
115 |
<?php
|
116 |
}
|
117 |
?>
|
@@ -368,7 +368,7 @@ class post_grid_meta_boxs{
|
|
368 |
$data_visible = isset($tab['data_visible']) ? $tab['data_visible'] : '';
|
369 |
$hidden = isset($tab['hidden']) ? $tab['hidden'] : false;
|
370 |
?>
|
371 |
-
<li <?php if(!empty($data_visible)): ?> data_visible="<?php echo esc_attr($data_visible); ?>" <?php endif; ?> class="tab-nav <?php if($hidden) echo 'hidden';?> <?php if($active) echo 'active';?>" data-id="<?php echo esc_attr($id); ?>"><?php echo $title; ?></li>
|
372 |
<?php
|
373 |
}
|
374 |
?>
|
@@ -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 esc_url_raw($url); ?>"><i class="far fa-dot-circle"></i> <?php echo $title; ?></a>
|
474 |
|
475 |
</li>
|
476 |
<?php
|
@@ -597,7 +597,7 @@ class post_grid_meta_boxs{
|
|
597 |
$data_visible = isset($tab['data_visible']) ? $tab['data_visible'] : '';
|
598 |
$hidden = isset($tab['hidden']) ? $tab['hidden'] : false;
|
599 |
?>
|
600 |
-
<li <?php if(!empty($data_visible)): ?> data_visible="<?php echo esc_attr($data_visible); ?>" <?php endif; ?> class="tab-nav <?php if($hidden) echo 'hidden';?> <?php if($active) echo 'active';?>" data-id="<?php echo esc_attr($id); ?>"><?php echo $title; ?></li>
|
601 |
<?php
|
602 |
}
|
603 |
?>
|
111 |
$data_visible = isset($tab['data_visible']) ? $tab['data_visible'] : '';
|
112 |
$hidden = isset($tab['hidden']) ? $tab['hidden'] : false;
|
113 |
?>
|
114 |
+
<li <?php if(!empty($data_visible)): ?> data_visible="<?php echo esc_attr($data_visible); ?>" <?php endif; ?> class="tab-nav <?php if($hidden) echo 'hidden';?> <?php if($active) echo 'active';?>" data-id="<?php echo esc_attr($id); ?>"><?php echo esc_html($title); ?></li>
|
115 |
<?php
|
116 |
}
|
117 |
?>
|
368 |
$data_visible = isset($tab['data_visible']) ? $tab['data_visible'] : '';
|
369 |
$hidden = isset($tab['hidden']) ? $tab['hidden'] : false;
|
370 |
?>
|
371 |
+
<li <?php if(!empty($data_visible)): ?> data_visible="<?php echo esc_attr($data_visible); ?>" <?php endif; ?> class="tab-nav <?php if($hidden) echo 'hidden';?> <?php if($active) echo 'active';?>" data-id="<?php echo esc_attr($id); ?>"><?php echo esc_html($title); ?></li>
|
372 |
<?php
|
373 |
}
|
374 |
?>
|
470 |
|
471 |
?>
|
472 |
<li keywords="<?php echo esc_attr($keywords); ?>" class="item">
|
473 |
+
<a target="_blank" href="<?php echo esc_url_raw($url); ?>"><i class="far fa-dot-circle"></i> <?php echo esc_html($title); ?></a>
|
474 |
|
475 |
</li>
|
476 |
<?php
|
597 |
$data_visible = isset($tab['data_visible']) ? $tab['data_visible'] : '';
|
598 |
$hidden = isset($tab['hidden']) ? $tab['hidden'] : false;
|
599 |
?>
|
600 |
+
<li <?php if(!empty($data_visible)): ?> data_visible="<?php echo esc_attr($data_visible); ?>" <?php endif; ?> class="tab-nav <?php if($hidden) echo 'hidden';?> <?php if($active) echo 'active';?>" data-id="<?php echo esc_attr($id); ?>"><?php echo esc_html($title); ?></li>
|
601 |
<?php
|
602 |
}
|
603 |
?>
|
includes/classes/class-settings-tabs.php
CHANGED
@@ -147,7 +147,7 @@ class settings_tabs_field{
|
|
147 |
<div class="field-input">%s
|
148 |
<p class="description">%s</p>
|
149 |
<?php if($is_error && !empty($error_details)): ?>
|
150 |
-
<p class="error-details"><i class="fas fa-exclamation-circle"></i> <?php echo $error_details; ?></p>
|
151 |
<?php endif; ?>
|
152 |
|
153 |
</div>
|
@@ -212,7 +212,6 @@ class settings_tabs_field{
|
|
212 |
elseif( isset($option['type']) && $option['type'] === $type ) do_action( "settings_tabs_field_$type", $option );
|
213 |
|
214 |
|
215 |
-
//if( !empty( $details ) ) echo "<p class='description'>$details</p>";
|
216 |
|
217 |
|
218 |
|
@@ -252,7 +251,7 @@ class settings_tabs_field{
|
|
252 |
ob_start();
|
253 |
?>
|
254 |
<div class="option-group-accordion-wrap" id="<?php echo esc_attr($css_id); ?>">
|
255 |
-
<div sortable="<?php echo ($sortable) ? 'true': 'false'; ?>" class='option-group-accordion accordion'>
|
256 |
<?php
|
257 |
|
258 |
if(!empty($args_index))
|
@@ -276,7 +275,7 @@ class settings_tabs_field{
|
|
276 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
277 |
<?php endif; ?>
|
278 |
|
279 |
-
<span class="title-text"><?php echo $group_title; ?></span>
|
280 |
</h3>
|
281 |
<div class="accordion-content">
|
282 |
|
@@ -463,7 +462,7 @@ class settings_tabs_field{
|
|
463 |
if( "audio/mpeg" == $media_type ){
|
464 |
?>
|
465 |
<div class="media-preview" class="dashicons dashicons-format-audio" style="font-size: 70px;display: inline;"></div>
|
466 |
-
<div class="media-title"><?php echo $media_title; ?></div>
|
467 |
<?php
|
468 |
}elseif( "images/png" == $media_type ||
|
469 |
"image/png" == $media_type ||
|
@@ -478,12 +477,12 @@ class settings_tabs_field{
|
|
478 |
){
|
479 |
?>
|
480 |
<img class="media-preview" src="<?php echo esc_url_raw($media_url); ?>" style="width:100%"/>
|
481 |
-
<div class="media-title"><?php echo $media_title; ?></div>
|
482 |
<?php
|
483 |
}else {
|
484 |
?>
|
485 |
<img class="media-preview" src="<?php echo esc_url_raw($media_url); ?>" style="width:100%"/>
|
486 |
-
<div class="media-title"><?php echo $media_title; ?></div>
|
487 |
|
488 |
<?php
|
489 |
}
|
@@ -622,7 +621,7 @@ class settings_tabs_field{
|
|
622 |
?>
|
623 |
<div class="item-wrap collapsible">
|
624 |
<div class="header">
|
625 |
-
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><?php echo $remove_text; ?></span>
|
626 |
<?php
|
627 |
if($sortable):
|
628 |
?>
|
@@ -691,12 +690,12 @@ class settings_tabs_field{
|
|
691 |
<?php if($collapsible):?>
|
692 |
<div class="header">
|
693 |
<?php endif; ?>
|
694 |
-
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><?php echo $remove_text; ?></span>
|
695 |
<?php if($sortable):?>
|
696 |
<span class="sort"><i class="fas fa-arrows-alt"></i></span>
|
697 |
<?php endif; ?>
|
698 |
|
699 |
-
<span class="title-text"><?php echo $title_field_val; ?></span>
|
700 |
<?php if($collapsible):?>
|
701 |
</div>
|
702 |
<?php endif; ?>
|
@@ -815,7 +814,7 @@ class settings_tabs_field{
|
|
815 |
|
816 |
|
817 |
?>
|
818 |
-
<option <?php echo esc_attr($selected); ?> value="<?php echo esc_attr($key); ?>"><?php echo $name; ?></option>
|
819 |
<?php
|
820 |
endforeach;
|
821 |
?>
|
@@ -891,7 +890,7 @@ class settings_tabs_field{
|
|
891 |
}
|
892 |
|
893 |
?>
|
894 |
-
<option <?php echo esc_attr($selected); ?> value="<?php echo esc_attr($key); ?>"><?php echo $name; ?></option>
|
895 |
<?php
|
896 |
endforeach;
|
897 |
?>
|
@@ -966,7 +965,7 @@ class settings_tabs_field{
|
|
966 |
<span class="button sort"><i class="fas fa-arrows-alt"></i></span>
|
967 |
<?php endif; ?>
|
968 |
|
969 |
-
<span class="button remove" onclick="jQuery(this).parent().remove()"><?php echo $remove_text; ?></span>
|
970 |
</div>
|
971 |
<?php
|
972 |
endforeach;
|
@@ -1163,7 +1162,7 @@ class settings_tabs_field{
|
|
1163 |
ob_start();
|
1164 |
?>
|
1165 |
<div class="text-icon">
|
1166 |
-
<span class="icon"><?php echo $option_value; ?></span><input type="text" class="" name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" placeholder="<?php echo esc_attr($placeholder); ?>" value="<?php echo esc_attr($option_value); ?>" />
|
1167 |
</div>
|
1168 |
<style type="text/css">
|
1169 |
.text-icon{}
|
@@ -1228,7 +1227,7 @@ class settings_tabs_field{
|
|
1228 |
ob_start();
|
1229 |
?>
|
1230 |
<div class="range-input">
|
1231 |
-
<span class="range-value"><?php echo $value; ?></span><input type="range" min="<?php if($min) echo esc_attr($min); ?>" max="<?php if($max) echo esc_attr($max); ?>" step="<?php if($step) echo esc_attr($step); ?>" class="" name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" value="<?php echo esc_attr($value); ?>" />
|
1232 |
</div>
|
1233 |
|
1234 |
<script>
|
@@ -1286,7 +1285,7 @@ class settings_tabs_field{
|
|
1286 |
|
1287 |
ob_start();
|
1288 |
?>
|
1289 |
-
<textarea name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" cols="40" rows="5" placeholder="<?php echo esc_attr($placeholder); ?>"><?php echo $value; ?></textarea>
|
1290 |
<?php
|
1291 |
|
1292 |
$input_html = ob_get_clean();
|
@@ -1323,7 +1322,7 @@ class settings_tabs_field{
|
|
1323 |
|
1324 |
ob_start();
|
1325 |
?>
|
1326 |
-
<textarea editor_enabled="no" class="textarea-editor" name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" cols="40" rows="5" placeholder="<?php echo esc_attr($placeholder); ?>"><?php echo $value; ?></textarea>
|
1327 |
<?php
|
1328 |
|
1329 |
$input_html = ob_get_clean();
|
@@ -1359,11 +1358,11 @@ class settings_tabs_field{
|
|
1359 |
|
1360 |
ob_start();
|
1361 |
?>
|
1362 |
-
<textarea name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" cols="40" rows="5" placeholder="<?php echo esc_attr($placeholder); ?>"><?php echo $value; ?></textarea>
|
1363 |
|
1364 |
<script>
|
1365 |
jQuery(document).ready(function($){
|
1366 |
-
wp.codeEditor.initialize($('#<?php echo esc_attr($css_id); ?>'), <?php echo $code_editor; ?>);
|
1367 |
})
|
1368 |
</script>
|
1369 |
<?php
|
@@ -1406,13 +1405,13 @@ class settings_tabs_field{
|
|
1406 |
|
1407 |
ob_start();
|
1408 |
?>
|
1409 |
-
<textarea name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" cols="40" rows="5" placeholder="<?php echo esc_attr($placeholder); ?>"><?php echo $value; ?></textarea>
|
1410 |
<script>
|
1411 |
|
1412 |
|
1413 |
jQuery(document).ready(function($){
|
1414 |
|
1415 |
-
wp.codeEditor.initialize($('#<?php echo esc_attr($css_id); ?>'), <?php echo $code_editor; ?>);
|
1416 |
|
1417 |
|
1418 |
})
|
@@ -1456,7 +1455,7 @@ class settings_tabs_field{
|
|
1456 |
|
1457 |
?>
|
1458 |
<div class="setting-field">
|
1459 |
-
<div class="field-lable"><?php if(!empty($title)) echo $title; ?></div>
|
1460 |
<div class="field-input">
|
1461 |
<?php
|
1462 |
|
@@ -1473,7 +1472,7 @@ class settings_tabs_field{
|
|
1473 |
|
1474 |
|
1475 |
?>
|
1476 |
-
<label for='<?php echo $for;?>'><input name='<?php echo esc_attr($field_name); ?>[]' type='checkbox' id='<?php echo esc_attr($for); ?>' value='<?php echo esc_attr($key);?>' <?php echo esc_attr($checked);?>><span><?php echo $value;?></span></label>
|
1477 |
|
1478 |
<?php
|
1479 |
|
@@ -1524,7 +1523,7 @@ class settings_tabs_field{
|
|
1524 |
$checked = ( $key == $option_value ) ? "checked" : "";
|
1525 |
$for = !empty($for) ? $for.'-'.$css_id."-".$key : $css_id."-".$key;
|
1526 |
?>
|
1527 |
-
<label for="<?php echo esc_attr($for);?>"><input name="<?php echo esc_attr($field_name); ?>" type="radio" id="<?php echo esc_attr($for); ?>" value="<?php echo esc_attr($key);?>" <?php echo esc_attr($checked);?>><span><?php echo $value;?></span></label>
|
1528 |
|
1529 |
<?php
|
1530 |
endforeach;
|
@@ -1584,26 +1583,26 @@ class settings_tabs_field{
|
|
1584 |
|
1585 |
?>
|
1586 |
<label style="width: <?php echo esc_attr($width); ?>;" title="<?php echo esc_attr($name); ?>" class="<?php if($checked =='checked') echo 'active';?> <?php if($disabled == true) echo 'disabled';?>">
|
1587 |
-
<input <?php if($disabled) echo 'disabled'; ?> name="<?php echo esc_attr($field_name); ?>" type="radio" id="<?php echo esc_attr($css_id); ?>-<?php echo esc_attr($key); ?>" value="<?php echo esc_attr($key); ?>" <?php echo $checked; ?>>
|
1588 |
|
1589 |
<?php
|
1590 |
if(!empty($thumb)):
|
1591 |
|
1592 |
?>
|
1593 |
<img class="lazy" alt="<?php echo esc_attr($name); ?>" data-src="<?php echo esc_attr($thumb); ?>" src="<?php echo esc_url_raw($lazy_load_img); ?>">
|
1594 |
-
<div style="padding: 5px;" class="name"><?php echo $name; ?></div>
|
1595 |
|
1596 |
<?php
|
1597 |
else:
|
1598 |
-
echo $name;
|
1599 |
endif;
|
1600 |
?>
|
1601 |
|
1602 |
<?php if($disabled == true):?>
|
1603 |
-
<span class="pro-msg"><?php echo $pro_msg; ?></span>
|
1604 |
<?php endif; ?>
|
1605 |
<?php if(!empty($link)):?>
|
1606 |
-
<a target="_blank" class="link" href="<?php echo esc_url_raw($link); ?>"><?php echo $link_text; ?></a>
|
1607 |
<?php endif; ?>
|
1608 |
|
1609 |
</label>
|
@@ -1708,7 +1707,7 @@ class settings_tabs_field{
|
|
1708 |
ob_start();
|
1709 |
?>
|
1710 |
<input type="text" autocomplete="off" name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" placeholder="<?php echo esc_attr($placeholder); ?>" value="<?php echo esc_attr($value); ?>" />
|
1711 |
-
<script>jQuery(document).ready(function($) { $("#<?php echo $css_id; ?>").datepicker({ dateFormat: "<?php echo esc_attr($format); ?>" });});</script>
|
1712 |
<?php
|
1713 |
|
1714 |
$input_html = ob_get_clean();
|
@@ -1785,7 +1784,7 @@ class settings_tabs_field{
|
|
1785 |
|
1786 |
?>
|
1787 |
<div class="">
|
1788 |
-
<span><?php echo $arg_key; ?></span>
|
1789 |
<input name="<?php echo esc_attr($field_name); ?>[<?php echo esc_attr($arg_key); ?>]" id="<?php echo esc_attr($arg_key.'-'.$css_id); ?>" value="<?php echo esc_attr($item_value); ?>" />
|
1790 |
<script>jQuery(document).ready(function($) { $("#<?php echo esc_attr($arg_key.'-'.$css_id); ?>").wpColorPicker();});</script>
|
1791 |
</div>
|
147 |
<div class="field-input">%s
|
148 |
<p class="description">%s</p>
|
149 |
<?php if($is_error && !empty($error_details)): ?>
|
150 |
+
<p class="error-details"><i class="fas fa-exclamation-circle"></i> <?php echo esc_html($error_details); ?></p>
|
151 |
<?php endif; ?>
|
152 |
|
153 |
</div>
|
212 |
elseif( isset($option['type']) && $option['type'] === $type ) do_action( "settings_tabs_field_$type", $option );
|
213 |
|
214 |
|
|
|
215 |
|
216 |
|
217 |
|
251 |
ob_start();
|
252 |
?>
|
253 |
<div class="option-group-accordion-wrap" id="<?php echo esc_attr($css_id); ?>">
|
254 |
+
<div sortable="<?php echo esc_attr($sortable) ? 'true': 'false'; ?>" class='option-group-accordion accordion'>
|
255 |
<?php
|
256 |
|
257 |
if(!empty($args_index))
|
275 |
<span class="sort"><i class="fas fa-sort"></i></span>
|
276 |
<?php endif; ?>
|
277 |
|
278 |
+
<span class="title-text"><?php echo esc_html($group_title); ?></span>
|
279 |
</h3>
|
280 |
<div class="accordion-content">
|
281 |
|
462 |
if( "audio/mpeg" == $media_type ){
|
463 |
?>
|
464 |
<div class="media-preview" class="dashicons dashicons-format-audio" style="font-size: 70px;display: inline;"></div>
|
465 |
+
<div class="media-title"><?php echo esc_html($media_title); ?></div>
|
466 |
<?php
|
467 |
}elseif( "images/png" == $media_type ||
|
468 |
"image/png" == $media_type ||
|
477 |
){
|
478 |
?>
|
479 |
<img class="media-preview" src="<?php echo esc_url_raw($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_raw($media_url); ?>" style="width:100%"/>
|
485 |
+
<div class="media-title"><?php echo esc_html($media_title); ?></div>
|
486 |
|
487 |
<?php
|
488 |
}
|
621 |
?>
|
622 |
<div class="item-wrap collapsible">
|
623 |
<div class="header">
|
624 |
+
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><?php echo esc_html($remove_text); ?></span>
|
625 |
<?php
|
626 |
if($sortable):
|
627 |
?>
|
690 |
<?php if($collapsible):?>
|
691 |
<div class="header">
|
692 |
<?php endif; ?>
|
693 |
+
<span class="remove" onclick="jQuery(this).parent().parent().remove()"><?php echo esc_html($remove_text); ?></span>
|
694 |
<?php if($sortable):?>
|
695 |
<span class="sort"><i class="fas fa-arrows-alt"></i></span>
|
696 |
<?php endif; ?>
|
697 |
|
698 |
+
<span class="title-text"><?php echo esc_html($title_field_val); ?></span>
|
699 |
<?php if($collapsible):?>
|
700 |
</div>
|
701 |
<?php endif; ?>
|
814 |
|
815 |
|
816 |
?>
|
817 |
+
<option <?php echo esc_attr($selected); ?> value="<?php echo esc_attr($key); ?>"><?php echo esc_html($name); ?></option>
|
818 |
<?php
|
819 |
endforeach;
|
820 |
?>
|
890 |
}
|
891 |
|
892 |
?>
|
893 |
+
<option <?php echo esc_attr($selected); ?> value="<?php echo esc_attr($key); ?>"><?php echo esc_html($name); ?></option>
|
894 |
<?php
|
895 |
endforeach;
|
896 |
?>
|
965 |
<span class="button sort"><i class="fas fa-arrows-alt"></i></span>
|
966 |
<?php endif; ?>
|
967 |
|
968 |
+
<span class="button remove" onclick="jQuery(this).parent().remove()"><?php echo esc_html($remove_text); ?></span>
|
969 |
</div>
|
970 |
<?php
|
971 |
endforeach;
|
1162 |
ob_start();
|
1163 |
?>
|
1164 |
<div class="text-icon">
|
1165 |
+
<span class="icon"><?php echo esc_html($option_value); ?></span><input type="text" class="" name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" placeholder="<?php echo esc_attr($placeholder); ?>" value="<?php echo esc_attr($option_value); ?>" />
|
1166 |
</div>
|
1167 |
<style type="text/css">
|
1168 |
.text-icon{}
|
1227 |
ob_start();
|
1228 |
?>
|
1229 |
<div class="range-input">
|
1230 |
+
<span class="range-value"><?php echo esc_html($value); ?></span><input type="range" min="<?php if($min) echo esc_attr($min); ?>" max="<?php if($max) echo esc_attr($max); ?>" step="<?php if($step) echo esc_attr($step); ?>" class="" name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" value="<?php echo esc_attr($value); ?>" />
|
1231 |
</div>
|
1232 |
|
1233 |
<script>
|
1285 |
|
1286 |
ob_start();
|
1287 |
?>
|
1288 |
+
<textarea name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" cols="40" rows="5" placeholder="<?php echo esc_attr($placeholder); ?>"><?php echo esc_html($value); ?></textarea>
|
1289 |
<?php
|
1290 |
|
1291 |
$input_html = ob_get_clean();
|
1322 |
|
1323 |
ob_start();
|
1324 |
?>
|
1325 |
+
<textarea editor_enabled="no" class="textarea-editor" name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" cols="40" rows="5" placeholder="<?php echo esc_attr($placeholder); ?>"><?php echo esc_html($value); ?></textarea>
|
1326 |
<?php
|
1327 |
|
1328 |
$input_html = ob_get_clean();
|
1358 |
|
1359 |
ob_start();
|
1360 |
?>
|
1361 |
+
<textarea name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" cols="40" rows="5" placeholder="<?php echo esc_attr($placeholder); ?>"><?php echo esc_html($value); ?></textarea>
|
1362 |
|
1363 |
<script>
|
1364 |
jQuery(document).ready(function($){
|
1365 |
+
wp.codeEditor.initialize($('#<?php echo esc_attr($css_id); ?>'), <?php echo esc_attr($code_editor); ?>);
|
1366 |
})
|
1367 |
</script>
|
1368 |
<?php
|
1405 |
|
1406 |
ob_start();
|
1407 |
?>
|
1408 |
+
<textarea name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" cols="40" rows="5" placeholder="<?php echo esc_attr($placeholder); ?>"><?php echo esc_html($value); ?></textarea>
|
1409 |
<script>
|
1410 |
|
1411 |
|
1412 |
jQuery(document).ready(function($){
|
1413 |
|
1414 |
+
wp.codeEditor.initialize($('#<?php echo esc_attr($css_id); ?>'), <?php echo esc_attr($code_editor); ?>);
|
1415 |
|
1416 |
|
1417 |
})
|
1455 |
|
1456 |
?>
|
1457 |
<div class="setting-field">
|
1458 |
+
<div class="field-lable"><?php if(!empty($title)) echo esc_html($title); ?></div>
|
1459 |
<div class="field-input">
|
1460 |
<?php
|
1461 |
|
1472 |
|
1473 |
|
1474 |
?>
|
1475 |
+
<label for='<?php echo esc_attr($for);?>'><input name='<?php echo esc_attr($field_name); ?>[]' type='checkbox' id='<?php echo esc_attr($for); ?>' value='<?php echo esc_attr($key);?>' <?php echo esc_attr($checked);?>><span><?php echo esc_html($value);?></span></label>
|
1476 |
|
1477 |
<?php
|
1478 |
|
1523 |
$checked = ( $key == $option_value ) ? "checked" : "";
|
1524 |
$for = !empty($for) ? $for.'-'.$css_id."-".$key : $css_id."-".$key;
|
1525 |
?>
|
1526 |
+
<label for="<?php echo esc_attr($for);?>"><input name="<?php echo esc_attr($field_name); ?>" type="radio" id="<?php echo esc_attr($for); ?>" value="<?php echo esc_attr($key);?>" <?php echo esc_attr($checked);?>><span><?php echo esc_html($value);?></span></label>
|
1527 |
|
1528 |
<?php
|
1529 |
endforeach;
|
1583 |
|
1584 |
?>
|
1585 |
<label style="width: <?php echo esc_attr($width); ?>;" title="<?php echo esc_attr($name); ?>" class="<?php if($checked =='checked') echo 'active';?> <?php if($disabled == true) echo 'disabled';?>">
|
1586 |
+
<input <?php if($disabled) echo 'disabled'; ?> name="<?php echo esc_attr($field_name); ?>" type="radio" id="<?php echo esc_attr($css_id); ?>-<?php echo esc_attr($key); ?>" value="<?php echo esc_attr($key); ?>" <?php echo esc_attr($checked); ?>>
|
1587 |
|
1588 |
<?php
|
1589 |
if(!empty($thumb)):
|
1590 |
|
1591 |
?>
|
1592 |
<img class="lazy" alt="<?php echo esc_attr($name); ?>" data-src="<?php echo esc_attr($thumb); ?>" src="<?php echo esc_url_raw($lazy_load_img); ?>">
|
1593 |
+
<div style="padding: 5px;" class="name"><?php echo esc_html($name); ?></div>
|
1594 |
|
1595 |
<?php
|
1596 |
else:
|
1597 |
+
echo esc_html($name);
|
1598 |
endif;
|
1599 |
?>
|
1600 |
|
1601 |
<?php if($disabled == true):?>
|
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_raw($link); ?>"><?php echo esc_html($link_text); ?></a>
|
1606 |
<?php endif; ?>
|
1607 |
|
1608 |
</label>
|
1707 |
ob_start();
|
1708 |
?>
|
1709 |
<input type="text" autocomplete="off" name="<?php echo esc_attr($field_name); ?>" id="<?php echo esc_attr($css_id); ?>" placeholder="<?php echo esc_attr($placeholder); ?>" value="<?php echo esc_attr($value); ?>" />
|
1710 |
+
<script>jQuery(document).ready(function($) { $("#<?php echo esc_attr($css_id); ?>").datepicker({ dateFormat: "<?php echo esc_attr($format); ?>" });});</script>
|
1711 |
<?php
|
1712 |
|
1713 |
$input_html = ob_get_clean();
|
1784 |
|
1785 |
?>
|
1786 |
<div class="">
|
1787 |
+
<span><?php echo esc_html($arg_key); ?></span>
|
1788 |
<input name="<?php echo esc_attr($field_name); ?>[<?php echo esc_attr($arg_key); ?>]" id="<?php echo esc_attr($arg_key.'-'.$css_id); ?>" value="<?php echo esc_attr($item_value); ?>" />
|
1789 |
<script>jQuery(document).ready(function($) { $("#<?php echo esc_attr($arg_key.'-'.$css_id); ?>").wpColorPicker();});</script>
|
1790 |
</div>
|
includes/functions-layout-api.php
CHANGED
@@ -49,13 +49,6 @@ function post_grid_ajax_fetch_block_hub_by_id(){
|
|
49 |
|
50 |
$response_data = json_decode(wp_remote_retrieve_body($server_response), true);
|
51 |
|
52 |
-
//$response_data = json_decode($response_data);
|
53 |
-
//error_log(serialize($response_data));
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
$post_title = isset($response_data['post_title']) ? ($response_data['post_title']) : '';
|
60 |
|
61 |
$layout_elements_data = isset($response_data['layout_elements_data']) ? ($response_data['layout_elements_data']) : array();
|
@@ -63,12 +56,9 @@ function post_grid_ajax_fetch_block_hub_by_id(){
|
|
63 |
$layout_options = isset($response_data['layout_options']) ? ($response_data['layout_options']) : array();
|
64 |
$post_found = isset($response_data['post_found']) ? ($response_data['post_found']) : 'no';
|
65 |
|
66 |
-
//echo '<pre>'.var_export($post_found, true).'</pre>';
|
67 |
|
68 |
-
//error_log(serialize($post_title));
|
69 |
|
70 |
|
71 |
-
// $post_found = isset($response_data->post_found) ? sanitize_text_field($response_data->post_found) : 'no';
|
72 |
|
73 |
if($post_found == 'yes'){
|
74 |
// Create post object
|
@@ -103,7 +93,7 @@ function post_grid_ajax_fetch_block_hub_by_id(){
|
|
103 |
}
|
104 |
|
105 |
|
106 |
-
echo
|
107 |
die();
|
108 |
}
|
109 |
|
49 |
|
50 |
$response_data = json_decode(wp_remote_retrieve_body($server_response), true);
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
$post_title = isset($response_data['post_title']) ? ($response_data['post_title']) : '';
|
53 |
|
54 |
$layout_elements_data = isset($response_data['layout_elements_data']) ? ($response_data['layout_elements_data']) : array();
|
56 |
$layout_options = isset($response_data['layout_options']) ? ($response_data['layout_options']) : array();
|
57 |
$post_found = isset($response_data['post_found']) ? ($response_data['post_found']) : 'no';
|
58 |
|
|
|
59 |
|
|
|
60 |
|
61 |
|
|
|
62 |
|
63 |
if($post_found == 'yes'){
|
64 |
// Create post object
|
93 |
}
|
94 |
|
95 |
|
96 |
+
echo wp_json_encode( $responses );
|
97 |
die();
|
98 |
}
|
99 |
|
includes/functions.php
CHANGED
@@ -94,7 +94,6 @@ function post_grid_get_media($item_post_id, $media_source, $featured_img_size, $
|
|
94 |
$custom_mp3_url = isset($post_grid_post_settings[0]['custom_mp3_url']) ? $post_grid_post_settings[0]['custom_mp3_url'] : '';
|
95 |
$custom_soundcloud_id = isset($post_grid_post_settings[0]['custom_soundcloud_id']) ? $post_grid_post_settings[0]['custom_soundcloud_id'] : '';
|
96 |
|
97 |
-
//echo '<pre>'.var_export($post_grid_post_settings).'</pre>';
|
98 |
|
99 |
$html_thumb = '';
|
100 |
|
@@ -506,33 +505,25 @@ function post_grid_media($post_id, $args ){
|
|
506 |
$thumb_custom_url = isset($post_settings['thumb_custom_url']) ? $post_settings['thumb_custom_url'] : '';
|
507 |
|
508 |
|
509 |
-
// $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post_id), $image_size );
|
510 |
-
// $alt_text = get_post_meta(get_post_thumbnail_id($post_id), '_wp_attachment_image_alt', true);
|
511 |
-
// $thumb_url = isset($thumb['0']) ? $thumb['0'] : '';
|
512 |
-
// $thumb_w = isset($thumb['1']) ? $thumb['1'] : '';
|
513 |
-
// $thumb_h = isset($thumb['2']) ? $thumb['2'] : '';
|
514 |
-
|
515 |
|
516 |
$post_thumbnail = get_the_post_thumbnail($post_id, $image_size);
|
517 |
|
518 |
-
//echo '<pre>'.var_export($image_size, true).'</pre>';
|
519 |
|
520 |
|
521 |
if(!empty($post_thumbnail)){
|
522 |
if($link_to=='post_link'){
|
523 |
if(!empty($thumb_custom_url)){
|
524 |
-
|
525 |
$html_thumb.= '<a target="'.$link_target.'" href="'.$thumb_custom_url.'">'.$post_thumbnail.'</a>';
|
526 |
|
527 |
}
|
528 |
else{
|
529 |
-
|
530 |
$html_thumb.= '<a target="'.$link_target.'" href="'.$item_post_permalink.'">'.$post_thumbnail.'</a>';
|
531 |
|
532 |
}
|
533 |
}
|
534 |
else{
|
535 |
-
//$html_thumb.= '<img width="'.$thumb_w.'" height="'.$thumb_h.'" alt="'.$alt_text.'" src="'.$thumb_url.'" />';
|
536 |
$html_thumb.= $post_thumbnail;
|
537 |
|
538 |
}
|
@@ -674,7 +665,7 @@ function post_grid_media($post_id, $args ){
|
|
674 |
}
|
675 |
|
676 |
|
677 |
-
echo $html_thumb;
|
678 |
|
679 |
$html_thumb = ob_get_clean();
|
680 |
|
@@ -902,7 +893,7 @@ function post_grid_layout_content_ajax(){
|
|
902 |
|
903 |
else{
|
904 |
|
905 |
-
echo $item_info['name'];
|
906 |
|
907 |
}
|
908 |
|
@@ -1071,7 +1062,7 @@ function post_grid_layout_add_elements(){
|
|
1071 |
|
1072 |
|
1073 |
|
1074 |
-
echo
|
1075 |
|
1076 |
|
1077 |
}
|
@@ -1226,14 +1217,12 @@ function post_grid_ajax_search(){
|
|
1226 |
// $query_args = apply_filters('post_grid_query_args', $query_args, $args);
|
1227 |
|
1228 |
|
1229 |
-
//echo '<pre>'.var_export($query_args, true).'</pre>';
|
1230 |
|
1231 |
$post_grid_wp_query = new WP_Query($query_args);
|
1232 |
|
1233 |
//$wp_query = $post_grid_wp_query;
|
1234 |
|
1235 |
$args['options'] = $post_grid_options;
|
1236 |
-
//echo '<pre>'.var_export($post_grid_wp_query, true).'</pre>';
|
1237 |
|
1238 |
$loop_count = 0;
|
1239 |
|
@@ -1270,7 +1259,7 @@ function post_grid_ajax_search(){
|
|
1270 |
//$html = ob_get_clean();
|
1271 |
|
1272 |
|
1273 |
-
echo
|
1274 |
|
1275 |
die();
|
1276 |
|
94 |
$custom_mp3_url = isset($post_grid_post_settings[0]['custom_mp3_url']) ? $post_grid_post_settings[0]['custom_mp3_url'] : '';
|
95 |
$custom_soundcloud_id = isset($post_grid_post_settings[0]['custom_soundcloud_id']) ? $post_grid_post_settings[0]['custom_soundcloud_id'] : '';
|
96 |
|
|
|
97 |
|
98 |
$html_thumb = '';
|
99 |
|
505 |
$thumb_custom_url = isset($post_settings['thumb_custom_url']) ? $post_settings['thumb_custom_url'] : '';
|
506 |
|
507 |
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
|
509 |
$post_thumbnail = get_the_post_thumbnail($post_id, $image_size);
|
510 |
|
|
|
511 |
|
512 |
|
513 |
if(!empty($post_thumbnail)){
|
514 |
if($link_to=='post_link'){
|
515 |
if(!empty($thumb_custom_url)){
|
516 |
+
|
517 |
$html_thumb.= '<a target="'.$link_target.'" href="'.$thumb_custom_url.'">'.$post_thumbnail.'</a>';
|
518 |
|
519 |
}
|
520 |
else{
|
521 |
+
|
522 |
$html_thumb.= '<a target="'.$link_target.'" href="'.$item_post_permalink.'">'.$post_thumbnail.'</a>';
|
523 |
|
524 |
}
|
525 |
}
|
526 |
else{
|
|
|
527 |
$html_thumb.= $post_thumbnail;
|
528 |
|
529 |
}
|
665 |
}
|
666 |
|
667 |
|
668 |
+
echo esc_html($html_thumb);
|
669 |
|
670 |
$html_thumb = ob_get_clean();
|
671 |
|
893 |
|
894 |
else{
|
895 |
|
896 |
+
echo esc_html($item_info['name']);
|
897 |
|
898 |
}
|
899 |
|
1062 |
|
1063 |
|
1064 |
|
1065 |
+
echo wp_json_encode($html);
|
1066 |
|
1067 |
|
1068 |
}
|
1217 |
// $query_args = apply_filters('post_grid_query_args', $query_args, $args);
|
1218 |
|
1219 |
|
|
|
1220 |
|
1221 |
$post_grid_wp_query = new WP_Query($query_args);
|
1222 |
|
1223 |
//$wp_query = $post_grid_wp_query;
|
1224 |
|
1225 |
$args['options'] = $post_grid_options;
|
|
|
1226 |
|
1227 |
$loop_count = 0;
|
1228 |
|
1259 |
//$html = ob_get_clean();
|
1260 |
|
1261 |
|
1262 |
+
echo wp_json_encode($response);
|
1263 |
|
1264 |
die();
|
1265 |
|
includes/layout-elements/kk-star-ratings/layout-elements.php
CHANGED
@@ -149,7 +149,7 @@ function post_grid_layout_element_option_kk_star_ratings($parameters){
|
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
@@ -221,27 +221,27 @@ function post_grid_layout_element_css_kk_star_ratings($args){
|
|
221 |
|
222 |
?>
|
223 |
<style type="text/css">
|
224 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
225 |
<?php if(!empty($color)): ?>
|
226 |
-
color: <?php echo $color; ?>;
|
227 |
<?php endif; ?>
|
228 |
<?php if(!empty($font_size)): ?>
|
229 |
-
font-size: <?php echo $font_size; ?>;
|
230 |
<?php endif; ?>
|
231 |
|
232 |
<?php if(!empty($margin)): ?>
|
233 |
-
margin: <?php echo $margin; ?>;
|
234 |
<?php endif; ?>
|
235 |
<?php if(!empty($text_align)): ?>
|
236 |
-
text-align: <?php echo $text_align; ?>;
|
237 |
<?php endif; ?>
|
238 |
<?php if(!empty($css)): ?>
|
239 |
-
<?php echo $css; ?>
|
240 |
<?php endif; ?>
|
241 |
}
|
242 |
<?php if(!empty($css_hover)): ?>
|
243 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
244 |
-
<?php echo $css_hover; ?>
|
245 |
}
|
246 |
<?php endif; ?>
|
247 |
</style>
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
221 |
|
222 |
?>
|
223 |
<style type="text/css">
|
224 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
225 |
<?php if(!empty($color)): ?>
|
226 |
+
color: <?php echo esc_attr($color); ?>;
|
227 |
<?php endif; ?>
|
228 |
<?php if(!empty($font_size)): ?>
|
229 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
230 |
<?php endif; ?>
|
231 |
|
232 |
<?php if(!empty($margin)): ?>
|
233 |
+
margin: <?php echo esc_attr($margin); ?>;
|
234 |
<?php endif; ?>
|
235 |
<?php if(!empty($text_align)): ?>
|
236 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
237 |
<?php endif; ?>
|
238 |
<?php if(!empty($css)): ?>
|
239 |
+
<?php echo esc_attr($css); ?>
|
240 |
<?php endif; ?>
|
241 |
}
|
242 |
<?php if(!empty($css_hover)): ?>
|
243 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
244 |
+
<?php echo esc_attr($css_hover); ?>
|
245 |
}
|
246 |
<?php endif; ?>
|
247 |
</style>
|
includes/layout-elements/likebtn-like-button/layout-elements.php
CHANGED
@@ -136,7 +136,7 @@ function post_grid_layout_element_option_likebtn_like_button($parameters){
|
|
136 |
|
137 |
ob_start();
|
138 |
?>
|
139 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
140 |
<?php
|
141 |
|
142 |
$html = ob_get_clean();
|
@@ -208,27 +208,27 @@ function post_grid_layout_element_css_likebtn_like_button($args){
|
|
208 |
|
209 |
?>
|
210 |
<style type="text/css">
|
211 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
212 |
<?php if(!empty($color)): ?>
|
213 |
-
color: <?php echo $color; ?>;
|
214 |
<?php endif; ?>
|
215 |
<?php if(!empty($font_size)): ?>
|
216 |
-
font-size: <?php echo $font_size; ?>;
|
217 |
<?php endif; ?>
|
218 |
|
219 |
<?php if(!empty($margin)): ?>
|
220 |
-
margin: <?php echo $margin; ?>;
|
221 |
<?php endif; ?>
|
222 |
<?php if(!empty($text_align)): ?>
|
223 |
-
text-align: <?php echo $text_align; ?>;
|
224 |
<?php endif; ?>
|
225 |
<?php if(!empty($css)): ?>
|
226 |
-
<?php echo $css; ?>
|
227 |
<?php endif; ?>
|
228 |
}
|
229 |
<?php if(!empty($css_hover)): ?>
|
230 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
231 |
-
<?php echo $css_hover; ?>
|
232 |
}
|
233 |
<?php endif; ?>
|
234 |
</style>
|
136 |
|
137 |
ob_start();
|
138 |
?>
|
139 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
140 |
<?php
|
141 |
|
142 |
$html = ob_get_clean();
|
208 |
|
209 |
?>
|
210 |
<style type="text/css">
|
211 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
212 |
<?php if(!empty($color)): ?>
|
213 |
+
color: <?php echo esc_attr($color); ?>;
|
214 |
<?php endif; ?>
|
215 |
<?php if(!empty($font_size)): ?>
|
216 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
217 |
<?php endif; ?>
|
218 |
|
219 |
<?php if(!empty($margin)): ?>
|
220 |
+
margin: <?php echo esc_attr($margin); ?>;
|
221 |
<?php endif; ?>
|
222 |
<?php if(!empty($text_align)): ?>
|
223 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
224 |
<?php endif; ?>
|
225 |
<?php if(!empty($css)): ?>
|
226 |
+
<?php echo esc_attr($css); ?>
|
227 |
<?php endif; ?>
|
228 |
}
|
229 |
<?php if(!empty($css_hover)): ?>
|
230 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
231 |
+
<?php echo esc_attr($css_hover); ?>
|
232 |
}
|
233 |
<?php endif; ?>
|
234 |
</style>
|
includes/layout-elements/multi-rating/layout-elements.php
CHANGED
@@ -163,7 +163,7 @@ function post_grid_layout_element_option_multi_rating($parameters){
|
|
163 |
|
164 |
ob_start();
|
165 |
?>
|
166 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
167 |
<?php
|
168 |
|
169 |
$html = ob_get_clean();
|
@@ -249,27 +249,27 @@ function post_grid_layout_element_css_multi_rating($args){
|
|
249 |
|
250 |
?>
|
251 |
<style type="text/css">
|
252 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
253 |
<?php if(!empty($color)): ?>
|
254 |
-
color: <?php echo $color; ?>;
|
255 |
<?php endif; ?>
|
256 |
<?php if(!empty($font_size)): ?>
|
257 |
-
font-size: <?php echo $font_size; ?>;
|
258 |
<?php endif; ?>
|
259 |
|
260 |
<?php if(!empty($margin)): ?>
|
261 |
-
margin: <?php echo $margin; ?>;
|
262 |
<?php endif; ?>
|
263 |
<?php if(!empty($text_align)): ?>
|
264 |
-
text-align: <?php echo $text_align; ?>;
|
265 |
<?php endif; ?>
|
266 |
<?php if(!empty($css)): ?>
|
267 |
-
<?php echo $css; ?>
|
268 |
<?php endif; ?>
|
269 |
}
|
270 |
<?php if(!empty($css_hover)): ?>
|
271 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
272 |
-
<?php echo $css_hover; ?>
|
273 |
}
|
274 |
<?php endif; ?>
|
275 |
</style>
|
163 |
|
164 |
ob_start();
|
165 |
?>
|
166 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
167 |
<?php
|
168 |
|
169 |
$html = ob_get_clean();
|
249 |
|
250 |
?>
|
251 |
<style type="text/css">
|
252 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
253 |
<?php if(!empty($color)): ?>
|
254 |
+
color: <?php echo esc_attr($color); ?>;
|
255 |
<?php endif; ?>
|
256 |
<?php if(!empty($font_size)): ?>
|
257 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
258 |
<?php endif; ?>
|
259 |
|
260 |
<?php if(!empty($margin)): ?>
|
261 |
+
margin: <?php echo esc_attr($margin); ?>;
|
262 |
<?php endif; ?>
|
263 |
<?php if(!empty($text_align)): ?>
|
264 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
265 |
<?php endif; ?>
|
266 |
<?php if(!empty($css)): ?>
|
267 |
+
<?php echo esc_attr($css); ?>
|
268 |
<?php endif; ?>
|
269 |
}
|
270 |
<?php if(!empty($css_hover)): ?>
|
271 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
272 |
+
<?php echo esc_attr($css_hover); ?>
|
273 |
}
|
274 |
<?php endif; ?>
|
275 |
</style>
|
includes/layout-elements/page-views-count/layout-elements.php
CHANGED
@@ -149,7 +149,7 @@ function post_grid_layout_element_option_page_views_count($parameters){
|
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
@@ -197,7 +197,7 @@ function post_grid_layout_element_page_views_count($args){
|
|
197 |
|
198 |
?>
|
199 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> page_views_count ">
|
200 |
-
<?php echo $html; ?>
|
201 |
</div>
|
202 |
<?php
|
203 |
// endif;
|
@@ -224,27 +224,27 @@ function post_grid_layout_element_css_page_views_count($args){
|
|
224 |
|
225 |
?>
|
226 |
<style type="text/css">
|
227 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
228 |
<?php if(!empty($color)): ?>
|
229 |
-
color: <?php echo $color; ?>;
|
230 |
<?php endif; ?>
|
231 |
<?php if(!empty($font_size)): ?>
|
232 |
-
font-size: <?php echo $font_size; ?>;
|
233 |
<?php endif; ?>
|
234 |
|
235 |
<?php if(!empty($margin)): ?>
|
236 |
-
margin: <?php echo $margin; ?>;
|
237 |
<?php endif; ?>
|
238 |
<?php if(!empty($text_align)): ?>
|
239 |
-
text-align: <?php echo $text_align; ?>;
|
240 |
<?php endif; ?>
|
241 |
<?php if(!empty($css)): ?>
|
242 |
-
<?php echo $css; ?>
|
243 |
<?php endif; ?>
|
244 |
}
|
245 |
<?php if(!empty($css_hover)): ?>
|
246 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
247 |
-
<?php echo $css_hover; ?>
|
248 |
}
|
249 |
<?php endif; ?>
|
250 |
</style>
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
197 |
|
198 |
?>
|
199 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> page_views_count ">
|
200 |
+
<?php echo esc_html($html); ?>
|
201 |
</div>
|
202 |
<?php
|
203 |
// endif;
|
224 |
|
225 |
?>
|
226 |
<style type="text/css">
|
227 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
228 |
<?php if(!empty($color)): ?>
|
229 |
+
color: <?php echo esc_attr($color); ?>;
|
230 |
<?php endif; ?>
|
231 |
<?php if(!empty($font_size)): ?>
|
232 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
233 |
<?php endif; ?>
|
234 |
|
235 |
<?php if(!empty($margin)): ?>
|
236 |
+
margin: <?php echo esc_attr($margin); ?>;
|
237 |
<?php endif; ?>
|
238 |
<?php if(!empty($text_align)): ?>
|
239 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
240 |
<?php endif; ?>
|
241 |
<?php if(!empty($css)): ?>
|
242 |
+
<?php echo esc_attr($css); ?>
|
243 |
<?php endif; ?>
|
244 |
}
|
245 |
<?php if(!empty($css_hover)): ?>
|
246 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
247 |
+
<?php echo esc_attr($css_hover); ?>
|
248 |
}
|
249 |
<?php endif; ?>
|
250 |
</style>
|
includes/layout-elements/page-visit-counter/layout-elements.php
CHANGED
@@ -149,7 +149,7 @@ function post_grid_layout_element_option_page_visit_counter($parameters){
|
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
@@ -197,7 +197,7 @@ function post_grid_layout_element_page_visit_counter($args){
|
|
197 |
|
198 |
?>
|
199 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> page_visit_counter ">
|
200 |
-
<?php echo $html; ?>
|
201 |
</div>
|
202 |
<?php
|
203 |
// endif;
|
@@ -224,27 +224,27 @@ function post_grid_layout_element_css_page_visit_counter($args){
|
|
224 |
|
225 |
?>
|
226 |
<style type="text/css">
|
227 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
228 |
<?php if(!empty($color)): ?>
|
229 |
-
color: <?php echo $color; ?>;
|
230 |
<?php endif; ?>
|
231 |
<?php if(!empty($font_size)): ?>
|
232 |
-
font-size: <?php echo $font_size; ?>;
|
233 |
<?php endif; ?>
|
234 |
|
235 |
<?php if(!empty($margin)): ?>
|
236 |
-
margin: <?php echo $margin; ?>;
|
237 |
<?php endif; ?>
|
238 |
<?php if(!empty($text_align)): ?>
|
239 |
-
text-align: <?php echo $text_align; ?>;
|
240 |
<?php endif; ?>
|
241 |
<?php if(!empty($css)): ?>
|
242 |
-
<?php echo $css; ?>
|
243 |
<?php endif; ?>
|
244 |
}
|
245 |
<?php if(!empty($css_hover)): ?>
|
246 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
247 |
-
<?php echo $css_hover; ?>
|
248 |
}
|
249 |
<?php endif; ?>
|
250 |
</style>
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
197 |
|
198 |
?>
|
199 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> page_visit_counter ">
|
200 |
+
<?php echo esc_html($html); ?>
|
201 |
</div>
|
202 |
<?php
|
203 |
// endif;
|
224 |
|
225 |
?>
|
226 |
<style type="text/css">
|
227 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
228 |
<?php if(!empty($color)): ?>
|
229 |
+
color: <?php echo esc_attr($color); ?>;
|
230 |
<?php endif; ?>
|
231 |
<?php if(!empty($font_size)): ?>
|
232 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
233 |
<?php endif; ?>
|
234 |
|
235 |
<?php if(!empty($margin)): ?>
|
236 |
+
margin: <?php echo esc_attr($margin); ?>;
|
237 |
<?php endif; ?>
|
238 |
<?php if(!empty($text_align)): ?>
|
239 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
240 |
<?php endif; ?>
|
241 |
<?php if(!empty($css)): ?>
|
242 |
+
<?php echo esc_attr($css); ?>
|
243 |
<?php endif; ?>
|
244 |
}
|
245 |
<?php if(!empty($css_hover)): ?>
|
246 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
247 |
+
<?php echo esc_attr($css_hover); ?>
|
248 |
}
|
249 |
<?php endif; ?>
|
250 |
</style>
|
includes/layout-elements/post-views-counter/layout-elements.php
CHANGED
@@ -149,7 +149,7 @@ function post_grid_layout_element_option_post_views_counter($parameters){
|
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
@@ -197,7 +197,7 @@ function post_grid_layout_element_post_views_counter($args){
|
|
197 |
|
198 |
?>
|
199 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> post_views_counter ">
|
200 |
-
<?php echo $html; ?>
|
201 |
</div>
|
202 |
<?php
|
203 |
// endif;
|
@@ -224,27 +224,27 @@ function post_grid_layout_element_css_post_views_counter($args){
|
|
224 |
|
225 |
?>
|
226 |
<style type="text/css">
|
227 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
228 |
<?php if(!empty($color)): ?>
|
229 |
-
color: <?php echo $color; ?>;
|
230 |
<?php endif; ?>
|
231 |
<?php if(!empty($font_size)): ?>
|
232 |
-
font-size: <?php echo $font_size; ?>;
|
233 |
<?php endif; ?>
|
234 |
|
235 |
<?php if(!empty($margin)): ?>
|
236 |
-
margin: <?php echo $margin; ?>;
|
237 |
<?php endif; ?>
|
238 |
<?php if(!empty($text_align)): ?>
|
239 |
-
text-align: <?php echo $text_align; ?>;
|
240 |
<?php endif; ?>
|
241 |
<?php if(!empty($css)): ?>
|
242 |
-
<?php echo $css; ?>
|
243 |
<?php endif; ?>
|
244 |
}
|
245 |
<?php if(!empty($css_hover)): ?>
|
246 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
247 |
-
<?php echo $css_hover; ?>
|
248 |
}
|
249 |
<?php endif; ?>
|
250 |
</style>
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
197 |
|
198 |
?>
|
199 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> post_views_counter ">
|
200 |
+
<?php echo esc_html($html); ?>
|
201 |
</div>
|
202 |
<?php
|
203 |
// endif;
|
224 |
|
225 |
?>
|
226 |
<style type="text/css">
|
227 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
228 |
<?php if(!empty($color)): ?>
|
229 |
+
color: <?php echo esc_attr($color); ?>;
|
230 |
<?php endif; ?>
|
231 |
<?php if(!empty($font_size)): ?>
|
232 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
233 |
<?php endif; ?>
|
234 |
|
235 |
<?php if(!empty($margin)): ?>
|
236 |
+
margin: <?php echo esc_attr($margin); ?>;
|
237 |
<?php endif; ?>
|
238 |
<?php if(!empty($text_align)): ?>
|
239 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
240 |
<?php endif; ?>
|
241 |
<?php if(!empty($css)): ?>
|
242 |
+
<?php echo esc_attr($css); ?>
|
243 |
<?php endif; ?>
|
244 |
}
|
245 |
<?php if(!empty($css_hover)): ?>
|
246 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
247 |
+
<?php echo esc_attr($css_hover); ?>
|
248 |
}
|
249 |
<?php endif; ?>
|
250 |
</style>
|
includes/layout-elements/rate-my-post/layout-elements.php
CHANGED
@@ -151,7 +151,7 @@ function post_grid_layout_element_option_rate_my_post($parameters){
|
|
151 |
|
152 |
ob_start();
|
153 |
?>
|
154 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
155 |
<?php
|
156 |
|
157 |
$html = ob_get_clean();
|
@@ -236,27 +236,27 @@ function post_grid_layout_element_css_rate_my_post($args){
|
|
236 |
|
237 |
?>
|
238 |
<style type="text/css">
|
239 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
240 |
<?php if(!empty($color)): ?>
|
241 |
-
color: <?php echo $color; ?>;
|
242 |
<?php endif; ?>
|
243 |
<?php if(!empty($font_size)): ?>
|
244 |
-
font-size: <?php echo $font_size; ?>;
|
245 |
<?php endif; ?>
|
246 |
|
247 |
<?php if(!empty($margin)): ?>
|
248 |
-
margin: <?php echo $margin; ?>;
|
249 |
<?php endif; ?>
|
250 |
<?php if(!empty($text_align)): ?>
|
251 |
-
text-align: <?php echo $text_align; ?>;
|
252 |
<?php endif; ?>
|
253 |
<?php if(!empty($css)): ?>
|
254 |
-
<?php echo $css; ?>
|
255 |
<?php endif; ?>
|
256 |
}
|
257 |
<?php if(!empty($css_hover)): ?>
|
258 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
259 |
-
<?php echo $css_hover; ?>
|
260 |
}
|
261 |
<?php endif; ?>
|
262 |
</style>
|
151 |
|
152 |
ob_start();
|
153 |
?>
|
154 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
155 |
<?php
|
156 |
|
157 |
$html = ob_get_clean();
|
236 |
|
237 |
?>
|
238 |
<style type="text/css">
|
239 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
240 |
<?php if(!empty($color)): ?>
|
241 |
+
color: <?php echo esc_attr($color); ?>;
|
242 |
<?php endif; ?>
|
243 |
<?php if(!empty($font_size)): ?>
|
244 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
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 |
<?php if(!empty($css_hover)): ?>
|
258 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
259 |
+
<?php echo esc_attr($css_hover); ?>
|
260 |
}
|
261 |
<?php endif; ?>
|
262 |
</style>
|
includes/layout-elements/rating-widget/layout-elements.php
CHANGED
@@ -135,7 +135,7 @@ function post_grid_layout_element_option_rating_widget($parameters){
|
|
135 |
|
136 |
ob_start();
|
137 |
?>
|
138 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
139 |
<?php
|
140 |
|
141 |
$html = ob_get_clean();
|
@@ -207,27 +207,27 @@ function post_grid_layout_element_css_rating_widget($args){
|
|
207 |
|
208 |
?>
|
209 |
<style type="text/css">
|
210 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
211 |
<?php if(!empty($color)): ?>
|
212 |
-
color: <?php echo $color; ?>;
|
213 |
<?php endif; ?>
|
214 |
<?php if(!empty($font_size)): ?>
|
215 |
-
font-size: <?php echo $font_size; ?>;
|
216 |
<?php endif; ?>
|
217 |
|
218 |
<?php if(!empty($margin)): ?>
|
219 |
-
margin: <?php echo $margin; ?>;
|
220 |
<?php endif; ?>
|
221 |
<?php if(!empty($text_align)): ?>
|
222 |
-
text-align: <?php echo $text_align; ?>;
|
223 |
<?php endif; ?>
|
224 |
<?php if(!empty($css)): ?>
|
225 |
-
<?php echo $css; ?>
|
226 |
<?php endif; ?>
|
227 |
}
|
228 |
<?php if(!empty($css_hover)): ?>
|
229 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
230 |
-
<?php echo $css_hover; ?>
|
231 |
}
|
232 |
<?php endif; ?>
|
233 |
</style>
|
135 |
|
136 |
ob_start();
|
137 |
?>
|
138 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
139 |
<?php
|
140 |
|
141 |
$html = ob_get_clean();
|
207 |
|
208 |
?>
|
209 |
<style type="text/css">
|
210 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
211 |
<?php if(!empty($color)): ?>
|
212 |
+
color: <?php echo esc_attr($color); ?>;
|
213 |
<?php endif; ?>
|
214 |
<?php if(!empty($font_size)): ?>
|
215 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
216 |
<?php endif; ?>
|
217 |
|
218 |
<?php if(!empty($margin)): ?>
|
219 |
+
margin: <?php echo esc_attr($margin); ?>;
|
220 |
<?php endif; ?>
|
221 |
<?php if(!empty($text_align)): ?>
|
222 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
223 |
<?php endif; ?>
|
224 |
<?php if(!empty($css)): ?>
|
225 |
+
<?php echo esc_attr($css); ?>
|
226 |
<?php endif; ?>
|
227 |
}
|
228 |
<?php if(!empty($css_hover)): ?>
|
229 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
230 |
+
<?php echo esc_attr($css_hover); ?>
|
231 |
}
|
232 |
<?php endif; ?>
|
233 |
</style>
|
includes/layout-elements/simple-job-board/layout-elements.php
CHANGED
@@ -227,7 +227,7 @@ function post_grid_layout_element_option_simplejobboard_location($parameters){
|
|
227 |
|
228 |
ob_start();
|
229 |
?>
|
230 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
231 |
<?php
|
232 |
|
233 |
$html = ob_get_clean();
|
@@ -294,7 +294,7 @@ function post_grid_layout_element_simplejobboard_location($args){
|
|
294 |
|
295 |
?>
|
296 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> categories ">
|
297 |
-
<?php echo sprintf($wrapper_html, $categories_html); ?>
|
298 |
</div>
|
299 |
<?php
|
300 |
}
|
@@ -322,40 +322,40 @@ function post_grid_layout_element_css_simplejobboard_location($args){
|
|
322 |
$css_hover = isset($element['css_hover']) ? $element['css_hover'] : '';
|
323 |
?>
|
324 |
<style type="text/css">
|
325 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
326 |
<?php if(!empty($text_color)): ?>
|
327 |
-
color: <?php echo $text_color; ?>;
|
328 |
<?php endif; ?>
|
329 |
<?php if(!empty($font_size)): ?>
|
330 |
-
font-size: <?php echo $font_size; ?>;
|
331 |
<?php endif; ?>
|
332 |
<?php if(!empty($font_family)): ?>
|
333 |
-
font-family: <?php echo $font_family; ?>;
|
334 |
<?php endif; ?>
|
335 |
<?php if(!empty($margin)): ?>
|
336 |
-
margin: <?php echo $margin; ?>;
|
337 |
<?php endif; ?>
|
338 |
<?php if(!empty($text_align)): ?>
|
339 |
-
text-align: <?php echo $text_align; ?>;
|
340 |
<?php endif; ?>
|
341 |
<?php if(!empty($css)): ?>
|
342 |
-
<?php echo $css; ?>
|
343 |
<?php endif; ?>
|
344 |
}
|
345 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?> a{
|
346 |
<?php if(!empty($link_color)): ?>
|
347 |
-
color: <?php echo $link_color; ?>;
|
348 |
<?php endif; ?>
|
349 |
<?php if(!empty($font_size)): ?>
|
350 |
-
font-size: <?php echo $font_size; ?>;
|
351 |
<?php endif; ?>
|
352 |
<?php if(!empty($font_family)): ?>
|
353 |
-
font-family: <?php echo $font_family; ?>;
|
354 |
<?php endif; ?>
|
355 |
}
|
356 |
<?php if(!empty($css_hover)): ?>
|
357 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
358 |
-
<?php echo $css_hover; ?>
|
359 |
}
|
360 |
<?php endif; ?>
|
361 |
</style>
|
@@ -560,7 +560,7 @@ function post_grid_layout_element_option_simplejobboard_category($parameters){
|
|
560 |
|
561 |
ob_start();
|
562 |
?>
|
563 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
564 |
<?php
|
565 |
|
566 |
$html = ob_get_clean();
|
@@ -627,7 +627,7 @@ function post_grid_layout_element_simplejobboard_category($args){
|
|
627 |
|
628 |
?>
|
629 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> categories ">
|
630 |
-
<?php echo sprintf($wrapper_html, $categories_html); ?>
|
631 |
</div>
|
632 |
<?php
|
633 |
}
|
@@ -655,40 +655,40 @@ function post_grid_layout_element_css_simplejobboard_category($args){
|
|
655 |
$css_hover = isset($element['css_hover']) ? $element['css_hover'] : '';
|
656 |
?>
|
657 |
<style type="text/css">
|
658 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
659 |
<?php if(!empty($text_color)): ?>
|
660 |
-
color: <?php echo $text_color; ?>;
|
661 |
<?php endif; ?>
|
662 |
<?php if(!empty($font_size)): ?>
|
663 |
-
font-size: <?php echo $font_size; ?>;
|
664 |
<?php endif; ?>
|
665 |
<?php if(!empty($font_family)): ?>
|
666 |
-
font-family: <?php echo $font_family; ?>;
|
667 |
<?php endif; ?>
|
668 |
<?php if(!empty($margin)): ?>
|
669 |
-
margin: <?php echo $margin; ?>;
|
670 |
<?php endif; ?>
|
671 |
<?php if(!empty($text_align)): ?>
|
672 |
-
text-align: <?php echo $text_align; ?>;
|
673 |
<?php endif; ?>
|
674 |
<?php if(!empty($css)): ?>
|
675 |
-
<?php echo $css; ?>
|
676 |
<?php endif; ?>
|
677 |
}
|
678 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?> a{
|
679 |
<?php if(!empty($link_color)): ?>
|
680 |
-
color: <?php echo $link_color; ?>;
|
681 |
<?php endif; ?>
|
682 |
<?php if(!empty($font_size)): ?>
|
683 |
-
font-size: <?php echo $font_size; ?>;
|
684 |
<?php endif; ?>
|
685 |
<?php if(!empty($font_family)): ?>
|
686 |
-
font-family: <?php echo $font_family; ?>;
|
687 |
<?php endif; ?>
|
688 |
}
|
689 |
<?php if(!empty($css_hover)): ?>
|
690 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
691 |
-
<?php echo $css_hover; ?>
|
692 |
}
|
693 |
<?php endif; ?>
|
694 |
</style>
|
@@ -894,7 +894,7 @@ function post_grid_layout_element_option_simplejobboard_job_type($parameters){
|
|
894 |
|
895 |
ob_start();
|
896 |
?>
|
897 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
898 |
<?php
|
899 |
|
900 |
$html = ob_get_clean();
|
@@ -961,7 +961,7 @@ function post_grid_layout_element_simplejobboard_job_type($args){
|
|
961 |
|
962 |
?>
|
963 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> categories ">
|
964 |
-
<?php echo sprintf($wrapper_html, $categories_html); ?>
|
965 |
</div>
|
966 |
<?php
|
967 |
}
|
@@ -989,40 +989,40 @@ function post_grid_layout_element_css_simplejobboard_job_type($args){
|
|
989 |
$css_hover = isset($element['css_hover']) ? $element['css_hover'] : '';
|
990 |
?>
|
991 |
<style type="text/css">
|
992 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
993 |
<?php if(!empty($text_color)): ?>
|
994 |
-
color: <?php echo $text_color; ?>;
|
995 |
<?php endif; ?>
|
996 |
<?php if(!empty($font_size)): ?>
|
997 |
-
font-size: <?php echo $font_size; ?>;
|
998 |
<?php endif; ?>
|
999 |
<?php if(!empty($font_family)): ?>
|
1000 |
-
font-family: <?php echo $font_family; ?>;
|
1001 |
<?php endif; ?>
|
1002 |
<?php if(!empty($margin)): ?>
|
1003 |
-
margin: <?php echo $margin; ?>;
|
1004 |
<?php endif; ?>
|
1005 |
<?php if(!empty($text_align)): ?>
|
1006 |
-
text-align: <?php echo $text_align; ?>;
|
1007 |
<?php endif; ?>
|
1008 |
<?php if(!empty($css)): ?>
|
1009 |
-
<?php echo $css; ?>
|
1010 |
<?php endif; ?>
|
1011 |
}
|
1012 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?> a{
|
1013 |
<?php if(!empty($link_color)): ?>
|
1014 |
-
color: <?php echo $link_color; ?>;
|
1015 |
<?php endif; ?>
|
1016 |
<?php if(!empty($font_size)): ?>
|
1017 |
-
font-size: <?php echo $font_size; ?>;
|
1018 |
<?php endif; ?>
|
1019 |
<?php if(!empty($font_family)): ?>
|
1020 |
-
font-family: <?php echo $font_family; ?>;
|
1021 |
<?php endif; ?>
|
1022 |
}
|
1023 |
<?php if(!empty($css_hover)): ?>
|
1024 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
1025 |
-
<?php echo $css_hover; ?>
|
1026 |
}
|
1027 |
<?php endif; ?>
|
1028 |
</style>
|
@@ -1185,7 +1185,7 @@ function post_grid_layout_element_option_simplejobboard_company_name($parameters
|
|
1185 |
|
1186 |
ob_start();
|
1187 |
?>
|
1188 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
1189 |
<?php
|
1190 |
|
1191 |
$html = ob_get_clean();
|
@@ -1235,7 +1235,7 @@ function post_grid_layout_element_simplejobboard_company_name($args){
|
|
1235 |
|
1236 |
?>
|
1237 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_company_name ">
|
1238 |
-
<?php echo ($meta_value); ?>
|
1239 |
</div>
|
1240 |
<?php
|
1241 |
endif;
|
@@ -1263,29 +1263,29 @@ function post_grid_layout_element_css_simplejobboard_company_name($args){
|
|
1263 |
|
1264 |
?>
|
1265 |
<style type="text/css">
|
1266 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
1267 |
<?php if(!empty($color)): ?>
|
1268 |
-
color: <?php echo $color; ?>;
|
1269 |
<?php endif; ?>
|
1270 |
<?php if(!empty($font_size)): ?>
|
1271 |
-
font-size: <?php echo $font_size; ?>;
|
1272 |
<?php endif; ?>
|
1273 |
<?php if(!empty($font_family)): ?>
|
1274 |
-
font-family: <?php echo $font_family; ?>;
|
1275 |
<?php endif; ?>
|
1276 |
<?php if(!empty($margin)): ?>
|
1277 |
-
margin: <?php echo $margin; ?>;
|
1278 |
<?php endif; ?>
|
1279 |
<?php if(!empty($text_align)): ?>
|
1280 |
-
text-align: <?php echo $text_align; ?>;
|
1281 |
<?php endif; ?>
|
1282 |
<?php if(!empty($css)): ?>
|
1283 |
-
<?php echo $css; ?>
|
1284 |
<?php endif; ?>
|
1285 |
}
|
1286 |
<?php if(!empty($css_hover)): ?>
|
1287 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
1288 |
-
<?php echo $css_hover; ?>
|
1289 |
}
|
1290 |
<?php endif; ?>
|
1291 |
</style>
|
@@ -1446,7 +1446,7 @@ function post_grid_layout_element_option_simplejobboard_company_website($paramet
|
|
1446 |
|
1447 |
ob_start();
|
1448 |
?>
|
1449 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
1450 |
<?php
|
1451 |
|
1452 |
$html = ob_get_clean();
|
@@ -1496,7 +1496,7 @@ function post_grid_layout_element_simplejobboard_company_website($args){
|
|
1496 |
|
1497 |
?>
|
1498 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_company_website ">
|
1499 |
-
<?php echo ($meta_value); ?>
|
1500 |
</div>
|
1501 |
<?php
|
1502 |
endif;
|
@@ -1524,29 +1524,29 @@ function post_grid_layout_element_css_simplejobboard_company_website($args){
|
|
1524 |
|
1525 |
?>
|
1526 |
<style type="text/css">
|
1527 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
1528 |
<?php if(!empty($color)): ?>
|
1529 |
-
color: <?php echo $color; ?>;
|
1530 |
<?php endif; ?>
|
1531 |
<?php if(!empty($font_size)): ?>
|
1532 |
-
font-size: <?php echo $font_size; ?>;
|
1533 |
<?php endif; ?>
|
1534 |
<?php if(!empty($font_family)): ?>
|
1535 |
-
font-family: <?php echo $font_family; ?>;
|
1536 |
<?php endif; ?>
|
1537 |
<?php if(!empty($margin)): ?>
|
1538 |
-
margin: <?php echo $margin; ?>;
|
1539 |
<?php endif; ?>
|
1540 |
<?php if(!empty($text_align)): ?>
|
1541 |
-
text-align: <?php echo $text_align; ?>;
|
1542 |
<?php endif; ?>
|
1543 |
<?php if(!empty($css)): ?>
|
1544 |
-
<?php echo $css; ?>
|
1545 |
<?php endif; ?>
|
1546 |
}
|
1547 |
<?php if(!empty($css_hover)): ?>
|
1548 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
1549 |
-
<?php echo $css_hover; ?>
|
1550 |
}
|
1551 |
<?php endif; ?>
|
1552 |
</style>
|
@@ -1708,7 +1708,7 @@ function post_grid_layout_element_option_simplejobboard_company_tagline($paramet
|
|
1708 |
|
1709 |
ob_start();
|
1710 |
?>
|
1711 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
1712 |
<?php
|
1713 |
|
1714 |
$html = ob_get_clean();
|
@@ -1758,7 +1758,7 @@ function post_grid_layout_element_simplejobboard_company_tagline($args){
|
|
1758 |
|
1759 |
?>
|
1760 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_company_tagline ">
|
1761 |
-
<?php echo ($meta_value); ?>
|
1762 |
</div>
|
1763 |
<?php
|
1764 |
endif;
|
@@ -1786,29 +1786,29 @@ function post_grid_layout_element_css_simplejobboard_company_tagline($args){
|
|
1786 |
|
1787 |
?>
|
1788 |
<style type="text/css">
|
1789 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
1790 |
<?php if(!empty($color)): ?>
|
1791 |
-
color: <?php echo $color; ?>;
|
1792 |
<?php endif; ?>
|
1793 |
<?php if(!empty($font_size)): ?>
|
1794 |
-
font-size: <?php echo $font_size; ?>;
|
1795 |
<?php endif; ?>
|
1796 |
<?php if(!empty($font_family)): ?>
|
1797 |
-
font-family: <?php echo $font_family; ?>;
|
1798 |
<?php endif; ?>
|
1799 |
<?php if(!empty($margin)): ?>
|
1800 |
-
margin: <?php echo $margin; ?>;
|
1801 |
<?php endif; ?>
|
1802 |
<?php if(!empty($text_align)): ?>
|
1803 |
-
text-align: <?php echo $text_align; ?>;
|
1804 |
<?php endif; ?>
|
1805 |
<?php if(!empty($css)): ?>
|
1806 |
-
<?php echo $css; ?>
|
1807 |
<?php endif; ?>
|
1808 |
}
|
1809 |
<?php if(!empty($css_hover)): ?>
|
1810 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
1811 |
-
<?php echo $css_hover; ?>
|
1812 |
}
|
1813 |
<?php endif; ?>
|
1814 |
</style>
|
@@ -1970,7 +1970,7 @@ function post_grid_layout_element_option_simplejobboard_job_expires($parameters)
|
|
1970 |
|
1971 |
ob_start();
|
1972 |
?>
|
1973 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
1974 |
<?php
|
1975 |
|
1976 |
$html = ob_get_clean();
|
@@ -2021,7 +2021,7 @@ function post_grid_layout_element_simplejobboard_job_expires($args){
|
|
2021 |
|
2022 |
?>
|
2023 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_job_expires ">
|
2024 |
-
<?php echo ($meta_value); ?>
|
2025 |
</div>
|
2026 |
<?php
|
2027 |
endif;
|
@@ -2049,29 +2049,29 @@ function post_grid_layout_element_css_simplejobboard_job_expires($args){
|
|
2049 |
|
2050 |
?>
|
2051 |
<style type="text/css">
|
2052 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
2053 |
<?php if(!empty($color)): ?>
|
2054 |
-
color: <?php echo $color; ?>;
|
2055 |
<?php endif; ?>
|
2056 |
<?php if(!empty($font_size)): ?>
|
2057 |
-
font-size: <?php echo $font_size; ?>;
|
2058 |
<?php endif; ?>
|
2059 |
<?php if(!empty($font_family)): ?>
|
2060 |
-
font-family: <?php echo $font_family; ?>;
|
2061 |
<?php endif; ?>
|
2062 |
<?php if(!empty($margin)): ?>
|
2063 |
-
margin: <?php echo $margin; ?>;
|
2064 |
<?php endif; ?>
|
2065 |
<?php if(!empty($text_align)): ?>
|
2066 |
-
text-align: <?php echo $text_align; ?>;
|
2067 |
<?php endif; ?>
|
2068 |
<?php if(!empty($css)): ?>
|
2069 |
-
<?php echo $css; ?>
|
2070 |
<?php endif; ?>
|
2071 |
}
|
2072 |
<?php if(!empty($css_hover)): ?>
|
2073 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
2074 |
-
<?php echo $css_hover; ?>
|
2075 |
}
|
2076 |
<?php endif; ?>
|
2077 |
</style>
|
@@ -2246,7 +2246,7 @@ function post_grid_layout_element_option_simplejobboard_job_feature($parameters)
|
|
2246 |
|
2247 |
ob_start();
|
2248 |
?>
|
2249 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
2250 |
<?php
|
2251 |
|
2252 |
$html = ob_get_clean();
|
@@ -2310,7 +2310,7 @@ function post_grid_layout_element_simplejobboard_job_feature($args){
|
|
2310 |
|
2311 |
?>
|
2312 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_job_feature ">
|
2313 |
-
<?php echo ($meta_value); ?>
|
2314 |
</div>
|
2315 |
<?php
|
2316 |
endif;
|
@@ -2338,29 +2338,29 @@ function post_grid_layout_element_css_simplejobboard_job_feature($args){
|
|
2338 |
|
2339 |
?>
|
2340 |
<style type="text/css">
|
2341 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
2342 |
<?php if(!empty($color)): ?>
|
2343 |
-
color: <?php echo $color; ?>;
|
2344 |
<?php endif; ?>
|
2345 |
<?php if(!empty($font_size)): ?>
|
2346 |
-
font-size: <?php echo $font_size; ?>;
|
2347 |
<?php endif; ?>
|
2348 |
<?php if(!empty($font_family)): ?>
|
2349 |
-
font-family: <?php echo $font_family; ?>;
|
2350 |
<?php endif; ?>
|
2351 |
<?php if(!empty($margin)): ?>
|
2352 |
-
margin: <?php echo $margin; ?>;
|
2353 |
<?php endif; ?>
|
2354 |
<?php if(!empty($text_align)): ?>
|
2355 |
-
text-align: <?php echo $text_align; ?>;
|
2356 |
<?php endif; ?>
|
2357 |
<?php if(!empty($css)): ?>
|
2358 |
-
<?php echo $css; ?>
|
2359 |
<?php endif; ?>
|
2360 |
}
|
2361 |
<?php if(!empty($css_hover)): ?>
|
2362 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
2363 |
-
<?php echo $css_hover; ?>
|
2364 |
}
|
2365 |
<?php endif; ?>
|
2366 |
</style>
|
@@ -2521,7 +2521,7 @@ function post_grid_layout_element_option_simplejobboard_company_logo($parameters
|
|
2521 |
|
2522 |
ob_start();
|
2523 |
?>
|
2524 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
2525 |
<?php
|
2526 |
|
2527 |
$html = ob_get_clean();
|
@@ -2575,7 +2575,7 @@ function post_grid_layout_element_simplejobboard_company_logo($args){
|
|
2575 |
|
2576 |
?>
|
2577 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_company_logo ">
|
2578 |
-
<?php echo ($meta_value); ?>
|
2579 |
</div>
|
2580 |
<?php
|
2581 |
endif;
|
@@ -2603,29 +2603,29 @@ function post_grid_layout_element_css_simplejobboard_company_logo($args){
|
|
2603 |
|
2604 |
?>
|
2605 |
<style type="text/css">
|
2606 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
2607 |
<?php if(!empty($color)): ?>
|
2608 |
-
color: <?php echo $color; ?>;
|
2609 |
<?php endif; ?>
|
2610 |
<?php if(!empty($font_size)): ?>
|
2611 |
-
font-size: <?php echo $font_size; ?>;
|
2612 |
<?php endif; ?>
|
2613 |
<?php if(!empty($font_family)): ?>
|
2614 |
-
font-family: <?php echo $font_family; ?>;
|
2615 |
<?php endif; ?>
|
2616 |
<?php if(!empty($margin)): ?>
|
2617 |
-
margin: <?php echo $margin; ?>;
|
2618 |
<?php endif; ?>
|
2619 |
<?php if(!empty($text_align)): ?>
|
2620 |
-
text-align: <?php echo $text_align; ?>;
|
2621 |
<?php endif; ?>
|
2622 |
<?php if(!empty($css)): ?>
|
2623 |
-
<?php echo $css; ?>
|
2624 |
<?php endif; ?>
|
2625 |
}
|
2626 |
<?php if(!empty($css_hover)): ?>
|
2627 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
2628 |
-
<?php echo $css_hover; ?>
|
2629 |
}
|
2630 |
<?php endif; ?>
|
2631 |
</style>
|
227 |
|
228 |
ob_start();
|
229 |
?>
|
230 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
231 |
<?php
|
232 |
|
233 |
$html = ob_get_clean();
|
294 |
|
295 |
?>
|
296 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> categories ">
|
297 |
+
<?php echo esc_html(sprintf($wrapper_html, $categories_html)); ?>
|
298 |
</div>
|
299 |
<?php
|
300 |
}
|
322 |
$css_hover = isset($element['css_hover']) ? $element['css_hover'] : '';
|
323 |
?>
|
324 |
<style type="text/css">
|
325 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
326 |
<?php if(!empty($text_color)): ?>
|
327 |
+
color: <?php echo esc_attr($text_color); ?>;
|
328 |
<?php endif; ?>
|
329 |
<?php if(!empty($font_size)): ?>
|
330 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
331 |
<?php endif; ?>
|
332 |
<?php if(!empty($font_family)): ?>
|
333 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
334 |
<?php endif; ?>
|
335 |
<?php if(!empty($margin)): ?>
|
336 |
+
margin: <?php echo esc_attr($margin); ?>;
|
337 |
<?php endif; ?>
|
338 |
<?php if(!empty($text_align)): ?>
|
339 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
340 |
<?php endif; ?>
|
341 |
<?php if(!empty($css)): ?>
|
342 |
+
<?php echo esc_attr($css); ?>
|
343 |
<?php endif; ?>
|
344 |
}
|
345 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
346 |
<?php if(!empty($link_color)): ?>
|
347 |
+
color: <?php echo esc_attr($link_color); ?>;
|
348 |
<?php endif; ?>
|
349 |
<?php if(!empty($font_size)): ?>
|
350 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
351 |
<?php endif; ?>
|
352 |
<?php if(!empty($font_family)): ?>
|
353 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
354 |
<?php endif; ?>
|
355 |
}
|
356 |
<?php if(!empty($css_hover)): ?>
|
357 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
358 |
+
<?php echo esc_attr($css_hover); ?>
|
359 |
}
|
360 |
<?php endif; ?>
|
361 |
</style>
|
560 |
|
561 |
ob_start();
|
562 |
?>
|
563 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
564 |
<?php
|
565 |
|
566 |
$html = ob_get_clean();
|
627 |
|
628 |
?>
|
629 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> categories ">
|
630 |
+
<?php echo esc_html(sprintf($wrapper_html, $categories_html)); ?>
|
631 |
</div>
|
632 |
<?php
|
633 |
}
|
655 |
$css_hover = isset($element['css_hover']) ? $element['css_hover'] : '';
|
656 |
?>
|
657 |
<style type="text/css">
|
658 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
659 |
<?php if(!empty($text_color)): ?>
|
660 |
+
color: <?php echo esc_attr($text_color); ?>;
|
661 |
<?php endif; ?>
|
662 |
<?php if(!empty($font_size)): ?>
|
663 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
664 |
<?php endif; ?>
|
665 |
<?php if(!empty($font_family)): ?>
|
666 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
667 |
<?php endif; ?>
|
668 |
<?php if(!empty($margin)): ?>
|
669 |
+
margin: <?php echo esc_attr($margin); ?>;
|
670 |
<?php endif; ?>
|
671 |
<?php if(!empty($text_align)): ?>
|
672 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
673 |
<?php endif; ?>
|
674 |
<?php if(!empty($css)): ?>
|
675 |
+
<?php echo esc_attr($css); ?>
|
676 |
<?php endif; ?>
|
677 |
}
|
678 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
679 |
<?php if(!empty($link_color)): ?>
|
680 |
+
color: <?php echo esc_attr($link_color); ?>;
|
681 |
<?php endif; ?>
|
682 |
<?php if(!empty($font_size)): ?>
|
683 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
684 |
<?php endif; ?>
|
685 |
<?php if(!empty($font_family)): ?>
|
686 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
687 |
<?php endif; ?>
|
688 |
}
|
689 |
<?php if(!empty($css_hover)): ?>
|
690 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
691 |
+
<?php echo esc_attr($css_hover); ?>
|
692 |
}
|
693 |
<?php endif; ?>
|
694 |
</style>
|
894 |
|
895 |
ob_start();
|
896 |
?>
|
897 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
898 |
<?php
|
899 |
|
900 |
$html = ob_get_clean();
|
961 |
|
962 |
?>
|
963 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> categories ">
|
964 |
+
<?php echo esc_html(sprintf($wrapper_html, $categories_html)); ?>
|
965 |
</div>
|
966 |
<?php
|
967 |
}
|
989 |
$css_hover = isset($element['css_hover']) ? $element['css_hover'] : '';
|
990 |
?>
|
991 |
<style type="text/css">
|
992 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
993 |
<?php if(!empty($text_color)): ?>
|
994 |
+
color: <?php echo esc_attr($text_color); ?>;
|
995 |
<?php endif; ?>
|
996 |
<?php if(!empty($font_size)): ?>
|
997 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
998 |
<?php endif; ?>
|
999 |
<?php if(!empty($font_family)): ?>
|
1000 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
1001 |
<?php endif; ?>
|
1002 |
<?php if(!empty($margin)): ?>
|
1003 |
+
margin: <?php echo esc_attr($margin); ?>;
|
1004 |
<?php endif; ?>
|
1005 |
<?php if(!empty($text_align)): ?>
|
1006 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
1007 |
<?php endif; ?>
|
1008 |
<?php if(!empty($css)): ?>
|
1009 |
+
<?php echo esc_attr($css); ?>
|
1010 |
<?php endif; ?>
|
1011 |
}
|
1012 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
1013 |
<?php if(!empty($link_color)): ?>
|
1014 |
+
color: <?php echo esc_attr($link_color); ?>;
|
1015 |
<?php endif; ?>
|
1016 |
<?php if(!empty($font_size)): ?>
|
1017 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
1018 |
<?php endif; ?>
|
1019 |
<?php if(!empty($font_family)): ?>
|
1020 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
1021 |
<?php endif; ?>
|
1022 |
}
|
1023 |
<?php if(!empty($css_hover)): ?>
|
1024 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1025 |
+
<?php echo esc_attr($css_hover); ?>
|
1026 |
}
|
1027 |
<?php endif; ?>
|
1028 |
</style>
|
1185 |
|
1186 |
ob_start();
|
1187 |
?>
|
1188 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
1189 |
<?php
|
1190 |
|
1191 |
$html = ob_get_clean();
|
1235 |
|
1236 |
?>
|
1237 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_company_name ">
|
1238 |
+
<?php echo esc_html($meta_value); ?>
|
1239 |
</div>
|
1240 |
<?php
|
1241 |
endif;
|
1263 |
|
1264 |
?>
|
1265 |
<style type="text/css">
|
1266 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
1267 |
<?php if(!empty($color)): ?>
|
1268 |
+
color: <?php echo esc_attr($color); ?>;
|
1269 |
<?php endif; ?>
|
1270 |
<?php if(!empty($font_size)): ?>
|
1271 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
1272 |
<?php endif; ?>
|
1273 |
<?php if(!empty($font_family)): ?>
|
1274 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
1275 |
<?php endif; ?>
|
1276 |
<?php if(!empty($margin)): ?>
|
1277 |
+
margin: <?php echo esc_attr($margin); ?>;
|
1278 |
<?php endif; ?>
|
1279 |
<?php if(!empty($text_align)): ?>
|
1280 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
1281 |
<?php endif; ?>
|
1282 |
<?php if(!empty($css)): ?>
|
1283 |
+
<?php echo esc_attr($css); ?>
|
1284 |
<?php endif; ?>
|
1285 |
}
|
1286 |
<?php if(!empty($css_hover)): ?>
|
1287 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1288 |
+
<?php echo esc_attr($css_hover); ?>
|
1289 |
}
|
1290 |
<?php endif; ?>
|
1291 |
</style>
|
1446 |
|
1447 |
ob_start();
|
1448 |
?>
|
1449 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
1450 |
<?php
|
1451 |
|
1452 |
$html = ob_get_clean();
|
1496 |
|
1497 |
?>
|
1498 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_company_website ">
|
1499 |
+
<?php echo esc_html($meta_value); ?>
|
1500 |
</div>
|
1501 |
<?php
|
1502 |
endif;
|
1524 |
|
1525 |
?>
|
1526 |
<style type="text/css">
|
1527 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
1528 |
<?php if(!empty($color)): ?>
|
1529 |
+
color: <?php echo esc_attr($color); ?>;
|
1530 |
<?php endif; ?>
|
1531 |
<?php if(!empty($font_size)): ?>
|
1532 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
1533 |
<?php endif; ?>
|
1534 |
<?php if(!empty($font_family)): ?>
|
1535 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
1536 |
<?php endif; ?>
|
1537 |
<?php if(!empty($margin)): ?>
|
1538 |
+
margin: <?php echo esc_attr($margin); ?>;
|
1539 |
<?php endif; ?>
|
1540 |
<?php if(!empty($text_align)): ?>
|
1541 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
1542 |
<?php endif; ?>
|
1543 |
<?php if(!empty($css)): ?>
|
1544 |
+
<?php echo esc_attr($css); ?>
|
1545 |
<?php endif; ?>
|
1546 |
}
|
1547 |
<?php if(!empty($css_hover)): ?>
|
1548 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1549 |
+
<?php echo esc_attr($css_hover); ?>
|
1550 |
}
|
1551 |
<?php endif; ?>
|
1552 |
</style>
|
1708 |
|
1709 |
ob_start();
|
1710 |
?>
|
1711 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
1712 |
<?php
|
1713 |
|
1714 |
$html = ob_get_clean();
|
1758 |
|
1759 |
?>
|
1760 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_company_tagline ">
|
1761 |
+
<?php echo esc_html($meta_value); ?>
|
1762 |
</div>
|
1763 |
<?php
|
1764 |
endif;
|
1786 |
|
1787 |
?>
|
1788 |
<style type="text/css">
|
1789 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
1790 |
<?php if(!empty($color)): ?>
|
1791 |
+
color: <?php echo esc_attr($color); ?>;
|
1792 |
<?php endif; ?>
|
1793 |
<?php if(!empty($font_size)): ?>
|
1794 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
1795 |
<?php endif; ?>
|
1796 |
<?php if(!empty($font_family)): ?>
|
1797 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
1798 |
<?php endif; ?>
|
1799 |
<?php if(!empty($margin)): ?>
|
1800 |
+
margin: <?php echo esc_attr($margin); ?>;
|
1801 |
<?php endif; ?>
|
1802 |
<?php if(!empty($text_align)): ?>
|
1803 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
1804 |
<?php endif; ?>
|
1805 |
<?php if(!empty($css)): ?>
|
1806 |
+
<?php echo esc_attr($css); ?>
|
1807 |
<?php endif; ?>
|
1808 |
}
|
1809 |
<?php if(!empty($css_hover)): ?>
|
1810 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1811 |
+
<?php echo esc_attr($css_hover); ?>
|
1812 |
}
|
1813 |
<?php endif; ?>
|
1814 |
</style>
|
1970 |
|
1971 |
ob_start();
|
1972 |
?>
|
1973 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
1974 |
<?php
|
1975 |
|
1976 |
$html = ob_get_clean();
|
2021 |
|
2022 |
?>
|
2023 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_job_expires ">
|
2024 |
+
<?php echo esc_html($meta_value); ?>
|
2025 |
</div>
|
2026 |
<?php
|
2027 |
endif;
|
2049 |
|
2050 |
?>
|
2051 |
<style type="text/css">
|
2052 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
2053 |
<?php if(!empty($color)): ?>
|
2054 |
+
color: <?php echo esc_attr($color); ?>;
|
2055 |
<?php endif; ?>
|
2056 |
<?php if(!empty($font_size)): ?>
|
2057 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
2058 |
<?php endif; ?>
|
2059 |
<?php if(!empty($font_family)): ?>
|
2060 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
2061 |
<?php endif; ?>
|
2062 |
<?php if(!empty($margin)): ?>
|
2063 |
+
margin: <?php echo esc_attr($margin); ?>;
|
2064 |
<?php endif; ?>
|
2065 |
<?php if(!empty($text_align)): ?>
|
2066 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
2067 |
<?php endif; ?>
|
2068 |
<?php if(!empty($css)): ?>
|
2069 |
+
<?php echo esc_attr($css); ?>
|
2070 |
<?php endif; ?>
|
2071 |
}
|
2072 |
<?php if(!empty($css_hover)): ?>
|
2073 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2074 |
+
<?php echo esc_attr($css_hover); ?>
|
2075 |
}
|
2076 |
<?php endif; ?>
|
2077 |
</style>
|
2246 |
|
2247 |
ob_start();
|
2248 |
?>
|
2249 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
2250 |
<?php
|
2251 |
|
2252 |
$html = ob_get_clean();
|
2310 |
|
2311 |
?>
|
2312 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_job_feature ">
|
2313 |
+
<?php echo esc_html($meta_value); ?>
|
2314 |
</div>
|
2315 |
<?php
|
2316 |
endif;
|
2338 |
|
2339 |
?>
|
2340 |
<style type="text/css">
|
2341 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
2342 |
<?php if(!empty($color)): ?>
|
2343 |
+
color: <?php echo esc_attr($color); ?>;
|
2344 |
<?php endif; ?>
|
2345 |
<?php if(!empty($font_size)): ?>
|
2346 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
2347 |
<?php endif; ?>
|
2348 |
<?php if(!empty($font_family)): ?>
|
2349 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
2350 |
<?php endif; ?>
|
2351 |
<?php if(!empty($margin)): ?>
|
2352 |
+
margin: <?php echo esc_attr($margin); ?>;
|
2353 |
<?php endif; ?>
|
2354 |
<?php if(!empty($text_align)): ?>
|
2355 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
2356 |
<?php endif; ?>
|
2357 |
<?php if(!empty($css)): ?>
|
2358 |
+
<?php echo esc_attr($css); ?>
|
2359 |
<?php endif; ?>
|
2360 |
}
|
2361 |
<?php if(!empty($css_hover)): ?>
|
2362 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2363 |
+
<?php echo esc_attr($css_hover); ?>
|
2364 |
}
|
2365 |
<?php endif; ?>
|
2366 |
</style>
|
2521 |
|
2522 |
ob_start();
|
2523 |
?>
|
2524 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
2525 |
<?php
|
2526 |
|
2527 |
$html = ob_get_clean();
|
2575 |
|
2576 |
?>
|
2577 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> simplejobboard_company_logo ">
|
2578 |
+
<?php echo esc_html($meta_value); ?>
|
2579 |
</div>
|
2580 |
<?php
|
2581 |
endif;
|
2603 |
|
2604 |
?>
|
2605 |
<style type="text/css">
|
2606 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
2607 |
<?php if(!empty($color)): ?>
|
2608 |
+
color: <?php echo esc_attr($color); ?>;
|
2609 |
<?php endif; ?>
|
2610 |
<?php if(!empty($font_size)): ?>
|
2611 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
2612 |
<?php endif; ?>
|
2613 |
<?php if(!empty($font_family)): ?>
|
2614 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
2615 |
<?php endif; ?>
|
2616 |
<?php if(!empty($margin)): ?>
|
2617 |
+
margin: <?php echo esc_attr($margin); ?>;
|
2618 |
<?php endif; ?>
|
2619 |
<?php if(!empty($text_align)): ?>
|
2620 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
2621 |
<?php endif; ?>
|
2622 |
<?php if(!empty($css)): ?>
|
2623 |
+
<?php echo esc_attr($css); ?>
|
2624 |
<?php endif; ?>
|
2625 |
}
|
2626 |
<?php if(!empty($css_hover)): ?>
|
2627 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2628 |
+
<?php echo esc_attr($css_hover); ?>
|
2629 |
}
|
2630 |
<?php endif; ?>
|
2631 |
</style>
|
includes/layout-elements/site-reviews/layout-elements.php
CHANGED
@@ -165,7 +165,7 @@ function post_grid_layout_element_option_site_reviews_summary($parameters){
|
|
165 |
|
166 |
ob_start();
|
167 |
?>
|
168 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
169 |
<?php
|
170 |
|
171 |
$html = ob_get_clean();
|
@@ -238,27 +238,27 @@ function post_grid_layout_element_css_site_reviews_summary($args){
|
|
238 |
|
239 |
?>
|
240 |
<style type="text/css">
|
241 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
242 |
<?php if(!empty($color)): ?>
|
243 |
-
color: <?php echo $color; ?>;
|
244 |
<?php endif; ?>
|
245 |
<?php if(!empty($font_size)): ?>
|
246 |
-
font-size: <?php echo $font_size; ?>;
|
247 |
<?php endif; ?>
|
248 |
|
249 |
<?php if(!empty($margin)): ?>
|
250 |
-
margin: <?php echo $margin; ?>;
|
251 |
<?php endif; ?>
|
252 |
<?php if(!empty($text_align)): ?>
|
253 |
-
text-align: <?php echo $text_align; ?>;
|
254 |
<?php endif; ?>
|
255 |
<?php if(!empty($css)): ?>
|
256 |
-
<?php echo $css; ?>
|
257 |
<?php endif; ?>
|
258 |
}
|
259 |
<?php if(!empty($css_hover)): ?>
|
260 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
261 |
-
<?php echo $css_hover; ?>
|
262 |
}
|
263 |
<?php endif; ?>
|
264 |
</style>
|
165 |
|
166 |
ob_start();
|
167 |
?>
|
168 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
169 |
<?php
|
170 |
|
171 |
$html = ob_get_clean();
|
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)): ?>
|
243 |
+
color: <?php echo esc_attr($color); ?>;
|
244 |
<?php endif; ?>
|
245 |
<?php if(!empty($font_size)): ?>
|
246 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
247 |
<?php endif; ?>
|
248 |
|
249 |
<?php if(!empty($margin)): ?>
|
250 |
+
margin: <?php echo esc_attr($margin); ?>;
|
251 |
<?php endif; ?>
|
252 |
<?php if(!empty($text_align)): ?>
|
253 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
254 |
<?php endif; ?>
|
255 |
<?php if(!empty($css)): ?>
|
256 |
+
<?php echo esc_attr($css); ?>
|
257 |
<?php endif; ?>
|
258 |
}
|
259 |
<?php if(!empty($css_hover)): ?>
|
260 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
261 |
+
<?php echo esc_attr($css_hover); ?>
|
262 |
}
|
263 |
<?php endif; ?>
|
264 |
</style>
|
includes/layout-elements/wck-custom-fields-and-custom-post-types-creator/layout-elements.php
CHANGED
@@ -203,7 +203,7 @@ function post_grid_layout_element_option_wck_text($parameters){
|
|
203 |
|
204 |
ob_start();
|
205 |
?>
|
206 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
207 |
<?php
|
208 |
|
209 |
$html = ob_get_clean();
|
@@ -281,29 +281,29 @@ function post_grid_layout_element_css_wck_text($args){
|
|
281 |
|
282 |
?>
|
283 |
<style type="text/css">
|
284 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
285 |
<?php if(!empty($color)): ?>
|
286 |
-
color: <?php echo $color; ?>;
|
287 |
<?php endif; ?>
|
288 |
<?php if(!empty($font_size)): ?>
|
289 |
-
font-size: <?php echo $font_size; ?>;
|
290 |
<?php endif; ?>
|
291 |
<?php if(!empty($font_family)): ?>
|
292 |
-
font-family: <?php echo $font_family; ?>;
|
293 |
<?php endif; ?>
|
294 |
<?php if(!empty($margin)): ?>
|
295 |
-
margin: <?php echo $margin; ?>;
|
296 |
<?php endif; ?>
|
297 |
<?php if(!empty($text_align)): ?>
|
298 |
-
text-align: <?php echo $text_align; ?>;
|
299 |
<?php endif; ?>
|
300 |
<?php if(!empty($css)): ?>
|
301 |
-
<?php echo $css; ?>
|
302 |
<?php endif; ?>
|
303 |
}
|
304 |
<?php if(!empty($css_hover)): ?>
|
305 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
306 |
-
<?php echo $css_hover; ?>
|
307 |
}
|
308 |
<?php endif; ?>
|
309 |
</style>
|
@@ -466,7 +466,7 @@ function post_grid_layout_element_option_wck_textarea($parameters){
|
|
466 |
|
467 |
ob_start();
|
468 |
?>
|
469 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
470 |
<?php
|
471 |
|
472 |
$html = ob_get_clean();
|
@@ -544,29 +544,29 @@ function post_grid_layout_element_css_wck_textarea($args){
|
|
544 |
|
545 |
?>
|
546 |
<style type="text/css">
|
547 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
548 |
<?php if(!empty($color)): ?>
|
549 |
-
color: <?php echo $color; ?>;
|
550 |
<?php endif; ?>
|
551 |
<?php if(!empty($font_size)): ?>
|
552 |
-
font-size: <?php echo $font_size; ?>;
|
553 |
<?php endif; ?>
|
554 |
<?php if(!empty($font_family)): ?>
|
555 |
-
font-family: <?php echo $font_family; ?>;
|
556 |
<?php endif; ?>
|
557 |
<?php if(!empty($margin)): ?>
|
558 |
-
margin: <?php echo $margin; ?>;
|
559 |
<?php endif; ?>
|
560 |
<?php if(!empty($text_align)): ?>
|
561 |
-
text-align: <?php echo $text_align; ?>;
|
562 |
<?php endif; ?>
|
563 |
<?php if(!empty($css)): ?>
|
564 |
-
<?php echo $css; ?>
|
565 |
<?php endif; ?>
|
566 |
}
|
567 |
<?php if(!empty($css_hover)): ?>
|
568 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
569 |
-
<?php echo $css_hover; ?>
|
570 |
}
|
571 |
<?php endif; ?>
|
572 |
</style>
|
@@ -729,7 +729,7 @@ function post_grid_layout_element_option_wck_number($parameters){
|
|
729 |
|
730 |
ob_start();
|
731 |
?>
|
732 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
733 |
<?php
|
734 |
|
735 |
$html = ob_get_clean();
|
@@ -807,29 +807,29 @@ function post_grid_layout_element_css_wck_number($args){
|
|
807 |
|
808 |
?>
|
809 |
<style type="text/css">
|
810 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
811 |
<?php if(!empty($color)): ?>
|
812 |
-
color: <?php echo $color; ?>;
|
813 |
<?php endif; ?>
|
814 |
<?php if(!empty($font_size)): ?>
|
815 |
-
font-size: <?php echo $font_size; ?>;
|
816 |
<?php endif; ?>
|
817 |
<?php if(!empty($font_family)): ?>
|
818 |
-
font-family: <?php echo $font_family; ?>;
|
819 |
<?php endif; ?>
|
820 |
<?php if(!empty($margin)): ?>
|
821 |
-
margin: <?php echo $margin; ?>;
|
822 |
<?php endif; ?>
|
823 |
<?php if(!empty($text_align)): ?>
|
824 |
-
text-align: <?php echo $text_align; ?>;
|
825 |
<?php endif; ?>
|
826 |
<?php if(!empty($css)): ?>
|
827 |
-
<?php echo $css; ?>
|
828 |
<?php endif; ?>
|
829 |
}
|
830 |
<?php if(!empty($css_hover)): ?>
|
831 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
832 |
-
<?php echo $css_hover; ?>
|
833 |
}
|
834 |
<?php endif; ?>
|
835 |
</style>
|
@@ -1006,7 +1006,7 @@ function post_grid_layout_element_option_wck_email($parameters){
|
|
1006 |
|
1007 |
ob_start();
|
1008 |
?>
|
1009 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
1010 |
<?php
|
1011 |
|
1012 |
$html = ob_get_clean();
|
@@ -1086,29 +1086,29 @@ function post_grid_layout_element_css_wck_email($args){
|
|
1086 |
|
1087 |
?>
|
1088 |
<style type="text/css">
|
1089 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
1090 |
<?php if(!empty($color)): ?>
|
1091 |
-
color: <?php echo $color; ?>;
|
1092 |
<?php endif; ?>
|
1093 |
<?php if(!empty($font_size)): ?>
|
1094 |
-
font-size: <?php echo $font_size; ?>;
|
1095 |
<?php endif; ?>
|
1096 |
<?php if(!empty($font_family)): ?>
|
1097 |
-
font-family: <?php echo $font_family; ?>;
|
1098 |
<?php endif; ?>
|
1099 |
<?php if(!empty($margin)): ?>
|
1100 |
-
margin: <?php echo $margin; ?>;
|
1101 |
<?php endif; ?>
|
1102 |
<?php if(!empty($text_align)): ?>
|
1103 |
-
text-align: <?php echo $text_align; ?>;
|
1104 |
<?php endif; ?>
|
1105 |
<?php if(!empty($css)): ?>
|
1106 |
-
<?php echo $css; ?>
|
1107 |
<?php endif; ?>
|
1108 |
}
|
1109 |
<?php if(!empty($css_hover)): ?>
|
1110 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
1111 |
-
<?php echo $css_hover; ?>
|
1112 |
}
|
1113 |
<?php endif; ?>
|
1114 |
</style>
|
@@ -1284,7 +1284,7 @@ function post_grid_layout_element_option_wck_url($parameters){
|
|
1284 |
|
1285 |
ob_start();
|
1286 |
?>
|
1287 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
1288 |
<?php
|
1289 |
|
1290 |
$html = ob_get_clean();
|
@@ -1365,29 +1365,29 @@ function post_grid_layout_element_css_wck_url($args){
|
|
1365 |
|
1366 |
?>
|
1367 |
<style type="text/css">
|
1368 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
1369 |
<?php if(!empty($color)): ?>
|
1370 |
-
color: <?php echo $color; ?>;
|
1371 |
<?php endif; ?>
|
1372 |
<?php if(!empty($font_size)): ?>
|
1373 |
-
font-size: <?php echo $font_size; ?>;
|
1374 |
<?php endif; ?>
|
1375 |
<?php if(!empty($font_family)): ?>
|
1376 |
-
font-family: <?php echo $font_family; ?>;
|
1377 |
<?php endif; ?>
|
1378 |
<?php if(!empty($margin)): ?>
|
1379 |
-
margin: <?php echo $margin; ?>;
|
1380 |
<?php endif; ?>
|
1381 |
<?php if(!empty($text_align)): ?>
|
1382 |
-
text-align: <?php echo $text_align; ?>;
|
1383 |
<?php endif; ?>
|
1384 |
<?php if(!empty($css)): ?>
|
1385 |
-
<?php echo $css; ?>
|
1386 |
<?php endif; ?>
|
1387 |
}
|
1388 |
<?php if(!empty($css_hover)): ?>
|
1389 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
1390 |
-
<?php echo $css_hover; ?>
|
1391 |
}
|
1392 |
<?php endif; ?>
|
1393 |
</style>
|
@@ -1563,7 +1563,7 @@ function post_grid_layout_element_option_wck_range($parameters){
|
|
1563 |
|
1564 |
ob_start();
|
1565 |
?>
|
1566 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
1567 |
<?php
|
1568 |
|
1569 |
$html = ob_get_clean();
|
@@ -1644,29 +1644,29 @@ function post_grid_layout_element_css_wck_range($args){
|
|
1644 |
|
1645 |
?>
|
1646 |
<style type="text/css">
|
1647 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
1648 |
<?php if(!empty($color)): ?>
|
1649 |
-
color: <?php echo $color; ?>;
|
1650 |
<?php endif; ?>
|
1651 |
<?php if(!empty($font_size)): ?>
|
1652 |
-
font-size: <?php echo $font_size; ?>;
|
1653 |
<?php endif; ?>
|
1654 |
<?php if(!empty($font_family)): ?>
|
1655 |
-
font-family: <?php echo $font_family; ?>;
|
1656 |
<?php endif; ?>
|
1657 |
<?php if(!empty($margin)): ?>
|
1658 |
-
margin: <?php echo $margin; ?>;
|
1659 |
<?php endif; ?>
|
1660 |
<?php if(!empty($text_align)): ?>
|
1661 |
-
text-align: <?php echo $text_align; ?>;
|
1662 |
<?php endif; ?>
|
1663 |
<?php if(!empty($css)): ?>
|
1664 |
-
<?php echo $css; ?>
|
1665 |
<?php endif; ?>
|
1666 |
}
|
1667 |
<?php if(!empty($css_hover)): ?>
|
1668 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
1669 |
-
<?php echo $css_hover; ?>
|
1670 |
}
|
1671 |
<?php endif; ?>
|
1672 |
</style>
|
@@ -1827,7 +1827,7 @@ function post_grid_layout_element_option_wck_wysiwyg($parameters){
|
|
1827 |
|
1828 |
ob_start();
|
1829 |
?>
|
1830 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
1831 |
<?php
|
1832 |
|
1833 |
$html = ob_get_clean();
|
@@ -1907,29 +1907,29 @@ function post_grid_layout_element_css_wck_wysiwyg($args){
|
|
1907 |
|
1908 |
?>
|
1909 |
<style type="text/css">
|
1910 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
1911 |
<?php if(!empty($color)): ?>
|
1912 |
-
color: <?php echo $color; ?>;
|
1913 |
<?php endif; ?>
|
1914 |
<?php if(!empty($font_size)): ?>
|
1915 |
-
font-size: <?php echo $font_size; ?>;
|
1916 |
<?php endif; ?>
|
1917 |
<?php if(!empty($font_family)): ?>
|
1918 |
-
font-family: <?php echo $font_family; ?>;
|
1919 |
<?php endif; ?>
|
1920 |
<?php if(!empty($margin)): ?>
|
1921 |
-
margin: <?php echo $margin; ?>;
|
1922 |
<?php endif; ?>
|
1923 |
<?php if(!empty($text_align)): ?>
|
1924 |
-
text-align: <?php echo $text_align; ?>;
|
1925 |
<?php endif; ?>
|
1926 |
<?php if(!empty($css)): ?>
|
1927 |
-
<?php echo $css; ?>
|
1928 |
<?php endif; ?>
|
1929 |
}
|
1930 |
<?php if(!empty($css_hover)): ?>
|
1931 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
1932 |
-
<?php echo $css_hover; ?>
|
1933 |
}
|
1934 |
<?php endif; ?>
|
1935 |
</style>
|
@@ -2104,7 +2104,7 @@ function post_grid_layout_element_option_wck_upload($parameters){
|
|
2104 |
|
2105 |
ob_start();
|
2106 |
?>
|
2107 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
2108 |
<?php
|
2109 |
|
2110 |
$html = ob_get_clean();
|
@@ -2235,29 +2235,29 @@ function post_grid_layout_element_css_wck_upload($args){
|
|
2235 |
|
2236 |
?>
|
2237 |
<style type="text/css">
|
2238 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
2239 |
<?php if(!empty($color)): ?>
|
2240 |
-
color: <?php echo $color; ?>;
|
2241 |
<?php endif; ?>
|
2242 |
<?php if(!empty($font_size)): ?>
|
2243 |
-
font-size: <?php echo $font_size; ?>;
|
2244 |
<?php endif; ?>
|
2245 |
<?php if(!empty($font_family)): ?>
|
2246 |
-
font-family: <?php echo $font_family; ?>;
|
2247 |
<?php endif; ?>
|
2248 |
<?php if(!empty($margin)): ?>
|
2249 |
-
margin: <?php echo $margin; ?>;
|
2250 |
<?php endif; ?>
|
2251 |
<?php if(!empty($text_align)): ?>
|
2252 |
-
text-align: <?php echo $text_align; ?>;
|
2253 |
<?php endif; ?>
|
2254 |
<?php if(!empty($css)): ?>
|
2255 |
-
<?php echo $css; ?>
|
2256 |
<?php endif; ?>
|
2257 |
}
|
2258 |
<?php if(!empty($css_hover)): ?>
|
2259 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
2260 |
-
<?php echo $css_hover; ?>
|
2261 |
}
|
2262 |
<?php endif; ?>
|
2263 |
</style>
|
@@ -2433,7 +2433,7 @@ function post_grid_layout_element_option_wck_file($parameters){
|
|
2433 |
|
2434 |
ob_start();
|
2435 |
?>
|
2436 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
2437 |
<?php
|
2438 |
|
2439 |
$html = ob_get_clean();
|
@@ -2556,29 +2556,29 @@ function post_grid_layout_element_css_wck_file($args){
|
|
2556 |
|
2557 |
?>
|
2558 |
<style type="text/css">
|
2559 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
2560 |
<?php if(!empty($color)): ?>
|
2561 |
-
color: <?php echo $color; ?>;
|
2562 |
<?php endif; ?>
|
2563 |
<?php if(!empty($font_size)): ?>
|
2564 |
-
font-size: <?php echo $font_size; ?>;
|
2565 |
<?php endif; ?>
|
2566 |
<?php if(!empty($font_family)): ?>
|
2567 |
-
font-family: <?php echo $font_family; ?>;
|
2568 |
<?php endif; ?>
|
2569 |
<?php if(!empty($margin)): ?>
|
2570 |
-
margin: <?php echo $margin; ?>;
|
2571 |
<?php endif; ?>
|
2572 |
<?php if(!empty($text_align)): ?>
|
2573 |
-
text-align: <?php echo $text_align; ?>;
|
2574 |
<?php endif; ?>
|
2575 |
<?php if(!empty($css)): ?>
|
2576 |
-
<?php echo $css; ?>
|
2577 |
<?php endif; ?>
|
2578 |
}
|
2579 |
<?php if(!empty($css_hover)): ?>
|
2580 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
2581 |
-
<?php echo $css_hover; ?>
|
2582 |
}
|
2583 |
<?php endif; ?>
|
2584 |
</style>
|
@@ -2770,7 +2770,7 @@ function post_grid_layout_element_option_wck_select($parameters){
|
|
2770 |
|
2771 |
ob_start();
|
2772 |
?>
|
2773 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
2774 |
<?php
|
2775 |
|
2776 |
$html = ob_get_clean();
|
@@ -2868,29 +2868,29 @@ function post_grid_layout_element_css_wck_select($args){
|
|
2868 |
|
2869 |
?>
|
2870 |
<style type="text/css">
|
2871 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
2872 |
<?php if(!empty($color)): ?>
|
2873 |
-
color: <?php echo $color; ?>;
|
2874 |
<?php endif; ?>
|
2875 |
<?php if(!empty($font_size)): ?>
|
2876 |
-
font-size: <?php echo $font_size; ?>;
|
2877 |
<?php endif; ?>
|
2878 |
<?php if(!empty($font_family)): ?>
|
2879 |
-
font-family: <?php echo $font_family; ?>;
|
2880 |
<?php endif; ?>
|
2881 |
<?php if(!empty($margin)): ?>
|
2882 |
-
margin: <?php echo $margin; ?>;
|
2883 |
<?php endif; ?>
|
2884 |
<?php if(!empty($text_align)): ?>
|
2885 |
-
text-align: <?php echo $text_align; ?>;
|
2886 |
<?php endif; ?>
|
2887 |
<?php if(!empty($css)): ?>
|
2888 |
-
<?php echo $css; ?>
|
2889 |
<?php endif; ?>
|
2890 |
}
|
2891 |
<?php if(!empty($css_hover)): ?>
|
2892 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
2893 |
-
<?php echo $css_hover; ?>
|
2894 |
}
|
2895 |
<?php endif; ?>
|
2896 |
</style>
|
@@ -3082,7 +3082,7 @@ function post_grid_layout_element_option_wck_checkbox($parameters){
|
|
3082 |
|
3083 |
ob_start();
|
3084 |
?>
|
3085 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
3086 |
<?php
|
3087 |
|
3088 |
$html = ob_get_clean();
|
@@ -3179,29 +3179,29 @@ function post_grid_layout_element_css_wck_checkbox($args){
|
|
3179 |
|
3180 |
?>
|
3181 |
<style type="text/css">
|
3182 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
3183 |
<?php if(!empty($color)): ?>
|
3184 |
-
color: <?php echo $color; ?>;
|
3185 |
<?php endif; ?>
|
3186 |
<?php if(!empty($font_size)): ?>
|
3187 |
-
font-size: <?php echo $font_size; ?>;
|
3188 |
<?php endif; ?>
|
3189 |
<?php if(!empty($font_family)): ?>
|
3190 |
-
font-family: <?php echo $font_family; ?>;
|
3191 |
<?php endif; ?>
|
3192 |
<?php if(!empty($margin)): ?>
|
3193 |
-
margin: <?php echo $margin; ?>;
|
3194 |
<?php endif; ?>
|
3195 |
<?php if(!empty($text_align)): ?>
|
3196 |
-
text-align: <?php echo $text_align; ?>;
|
3197 |
<?php endif; ?>
|
3198 |
<?php if(!empty($css)): ?>
|
3199 |
-
<?php echo $css; ?>
|
3200 |
<?php endif; ?>
|
3201 |
}
|
3202 |
<?php if(!empty($css_hover)): ?>
|
3203 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
3204 |
-
<?php echo $css_hover; ?>
|
3205 |
}
|
3206 |
<?php endif; ?>
|
3207 |
</style>
|
@@ -3394,7 +3394,7 @@ function post_grid_layout_element_option_wck_radio($parameters){
|
|
3394 |
|
3395 |
ob_start();
|
3396 |
?>
|
3397 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
3398 |
<?php
|
3399 |
|
3400 |
$html = ob_get_clean();
|
@@ -3499,29 +3499,29 @@ function post_grid_layout_element_css_wck_radio($args){
|
|
3499 |
|
3500 |
?>
|
3501 |
<style type="text/css">
|
3502 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
3503 |
<?php if(!empty($color)): ?>
|
3504 |
-
color: <?php echo $color; ?>;
|
3505 |
<?php endif; ?>
|
3506 |
<?php if(!empty($font_size)): ?>
|
3507 |
-
font-size: <?php echo $font_size; ?>;
|
3508 |
<?php endif; ?>
|
3509 |
<?php if(!empty($font_family)): ?>
|
3510 |
-
font-family: <?php echo $font_family; ?>;
|
3511 |
<?php endif; ?>
|
3512 |
<?php if(!empty($margin)): ?>
|
3513 |
-
margin: <?php echo $margin; ?>;
|
3514 |
<?php endif; ?>
|
3515 |
<?php if(!empty($text_align)): ?>
|
3516 |
-
text-align: <?php echo $text_align; ?>;
|
3517 |
<?php endif; ?>
|
3518 |
<?php if(!empty($css)): ?>
|
3519 |
-
<?php echo $css; ?>
|
3520 |
<?php endif; ?>
|
3521 |
}
|
3522 |
<?php if(!empty($css_hover)): ?>
|
3523 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
3524 |
-
<?php echo $css_hover; ?>
|
3525 |
}
|
3526 |
<?php endif; ?>
|
3527 |
</style>
|
@@ -3714,7 +3714,7 @@ function post_grid_layout_element_option_wck_buttongroup($parameters){
|
|
3714 |
|
3715 |
ob_start();
|
3716 |
?>
|
3717 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
3718 |
<?php
|
3719 |
|
3720 |
$html = ob_get_clean();
|
@@ -3819,29 +3819,29 @@ function post_grid_layout_element_css_wck_buttongroup($args){
|
|
3819 |
|
3820 |
?>
|
3821 |
<style type="text/css">
|
3822 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
3823 |
<?php if(!empty($color)): ?>
|
3824 |
-
color: <?php echo $color; ?>;
|
3825 |
<?php endif; ?>
|
3826 |
<?php if(!empty($font_size)): ?>
|
3827 |
-
font-size: <?php echo $font_size; ?>;
|
3828 |
<?php endif; ?>
|
3829 |
<?php if(!empty($font_family)): ?>
|
3830 |
-
font-family: <?php echo $font_family; ?>;
|
3831 |
<?php endif; ?>
|
3832 |
<?php if(!empty($margin)): ?>
|
3833 |
-
margin: <?php echo $margin; ?>;
|
3834 |
<?php endif; ?>
|
3835 |
<?php if(!empty($text_align)): ?>
|
3836 |
-
text-align: <?php echo $text_align; ?>;
|
3837 |
<?php endif; ?>
|
3838 |
<?php if(!empty($css)): ?>
|
3839 |
-
<?php echo $css; ?>
|
3840 |
<?php endif; ?>
|
3841 |
}
|
3842 |
<?php if(!empty($css_hover)): ?>
|
3843 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
3844 |
-
<?php echo $css_hover; ?>
|
3845 |
}
|
3846 |
<?php endif; ?>
|
3847 |
</style>
|
@@ -4033,7 +4033,7 @@ function post_grid_layout_element_option_wck_page_link($parameters){
|
|
4033 |
|
4034 |
ob_start();
|
4035 |
?>
|
4036 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
4037 |
<?php
|
4038 |
|
4039 |
$html = ob_get_clean();
|
@@ -4130,29 +4130,29 @@ function post_grid_layout_element_css_wck_page_link($args){
|
|
4130 |
|
4131 |
?>
|
4132 |
<style type="text/css">
|
4133 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
4134 |
<?php if(!empty($color)): ?>
|
4135 |
-
color: <?php echo $color; ?>;
|
4136 |
<?php endif; ?>
|
4137 |
<?php if(!empty($font_size)): ?>
|
4138 |
-
font-size: <?php echo $font_size; ?>;
|
4139 |
<?php endif; ?>
|
4140 |
<?php if(!empty($font_family)): ?>
|
4141 |
-
font-family: <?php echo $font_family; ?>;
|
4142 |
<?php endif; ?>
|
4143 |
<?php if(!empty($margin)): ?>
|
4144 |
-
margin: <?php echo $margin; ?>;
|
4145 |
<?php endif; ?>
|
4146 |
<?php if(!empty($text_align)): ?>
|
4147 |
-
text-align: <?php echo $text_align; ?>;
|
4148 |
<?php endif; ?>
|
4149 |
<?php if(!empty($css)): ?>
|
4150 |
-
<?php echo $css; ?>
|
4151 |
<?php endif; ?>
|
4152 |
}
|
4153 |
<?php if(!empty($css_hover)): ?>
|
4154 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
4155 |
-
<?php echo $css_hover; ?>
|
4156 |
}
|
4157 |
<?php endif; ?>
|
4158 |
</style>
|
@@ -4346,7 +4346,7 @@ function post_grid_layout_element_option_wck_taxonomy($parameters){
|
|
4346 |
|
4347 |
ob_start();
|
4348 |
?>
|
4349 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
4350 |
<?php
|
4351 |
|
4352 |
$html = ob_get_clean();
|
@@ -4457,29 +4457,29 @@ function post_grid_layout_element_css_wck_taxonomy($args){
|
|
4457 |
|
4458 |
?>
|
4459 |
<style type="text/css">
|
4460 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
4461 |
<?php if(!empty($color)): ?>
|
4462 |
-
color: <?php echo $color; ?>;
|
4463 |
<?php endif; ?>
|
4464 |
<?php if(!empty($font_size)): ?>
|
4465 |
-
font-size: <?php echo $font_size; ?>;
|
4466 |
<?php endif; ?>
|
4467 |
<?php if(!empty($font_family)): ?>
|
4468 |
-
font-family: <?php echo $font_family; ?>;
|
4469 |
<?php endif; ?>
|
4470 |
<?php if(!empty($margin)): ?>
|
4471 |
-
margin: <?php echo $margin; ?>;
|
4472 |
<?php endif; ?>
|
4473 |
<?php if(!empty($text_align)): ?>
|
4474 |
-
text-align: <?php echo $text_align; ?>;
|
4475 |
<?php endif; ?>
|
4476 |
<?php if(!empty($css)): ?>
|
4477 |
-
<?php echo $css; ?>
|
4478 |
<?php endif; ?>
|
4479 |
}
|
4480 |
<?php if(!empty($css_hover)): ?>
|
4481 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
4482 |
-
<?php echo $css_hover; ?>
|
4483 |
}
|
4484 |
<?php endif; ?>
|
4485 |
</style>
|
@@ -4656,7 +4656,7 @@ function post_grid_layout_element_option_wck_user($parameters){
|
|
4656 |
|
4657 |
ob_start();
|
4658 |
?>
|
4659 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
4660 |
<?php
|
4661 |
|
4662 |
$html = ob_get_clean();
|
@@ -4763,29 +4763,29 @@ function post_grid_layout_element_css_wck_user($args){
|
|
4763 |
|
4764 |
?>
|
4765 |
<style type="text/css">
|
4766 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
4767 |
<?php if(!empty($color)): ?>
|
4768 |
-
color: <?php echo $color; ?>;
|
4769 |
<?php endif; ?>
|
4770 |
<?php if(!empty($font_size)): ?>
|
4771 |
-
font-size: <?php echo $font_size; ?>;
|
4772 |
<?php endif; ?>
|
4773 |
<?php if(!empty($font_family)): ?>
|
4774 |
-
font-family: <?php echo $font_family; ?>;
|
4775 |
<?php endif; ?>
|
4776 |
<?php if(!empty($margin)): ?>
|
4777 |
-
margin: <?php echo $margin; ?>;
|
4778 |
<?php endif; ?>
|
4779 |
<?php if(!empty($text_align)): ?>
|
4780 |
-
text-align: <?php echo $text_align; ?>;
|
4781 |
<?php endif; ?>
|
4782 |
<?php if(!empty($css)): ?>
|
4783 |
-
<?php echo $css; ?>
|
4784 |
<?php endif; ?>
|
4785 |
}
|
4786 |
<?php if(!empty($css_hover)): ?>
|
4787 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
4788 |
-
<?php echo $css_hover; ?>
|
4789 |
}
|
4790 |
<?php endif; ?>
|
4791 |
</style>
|
@@ -4962,7 +4962,7 @@ function post_grid_layout_element_option_wck_date_picker($parameters){
|
|
4962 |
|
4963 |
ob_start();
|
4964 |
?>
|
4965 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
4966 |
<?php
|
4967 |
|
4968 |
$html = ob_get_clean();
|
@@ -5041,29 +5041,29 @@ function post_grid_layout_element_css_wck_date_picker($args){
|
|
5041 |
|
5042 |
?>
|
5043 |
<style type="text/css">
|
5044 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
5045 |
<?php if(!empty($color)): ?>
|
5046 |
-
color: <?php echo $color; ?>;
|
5047 |
<?php endif; ?>
|
5048 |
<?php if(!empty($font_size)): ?>
|
5049 |
-
font-size: <?php echo $font_size; ?>;
|
5050 |
<?php endif; ?>
|
5051 |
<?php if(!empty($font_family)): ?>
|
5052 |
-
font-family: <?php echo $font_family; ?>;
|
5053 |
<?php endif; ?>
|
5054 |
<?php if(!empty($margin)): ?>
|
5055 |
-
margin: <?php echo $margin; ?>;
|
5056 |
<?php endif; ?>
|
5057 |
<?php if(!empty($text_align)): ?>
|
5058 |
-
text-align: <?php echo $text_align; ?>;
|
5059 |
<?php endif; ?>
|
5060 |
<?php if(!empty($css)): ?>
|
5061 |
-
<?php echo $css; ?>
|
5062 |
<?php endif; ?>
|
5063 |
}
|
5064 |
<?php if(!empty($css_hover)): ?>
|
5065 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
5066 |
-
<?php echo $css_hover; ?>
|
5067 |
}
|
5068 |
<?php endif; ?>
|
5069 |
</style>
|
@@ -5242,7 +5242,7 @@ function post_grid_layout_element_option_wck_time_picker($parameters){
|
|
5242 |
|
5243 |
ob_start();
|
5244 |
?>
|
5245 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
5246 |
<?php
|
5247 |
|
5248 |
$html = ob_get_clean();
|
@@ -5322,29 +5322,29 @@ function post_grid_layout_element_css_wck_time_picker($args){
|
|
5322 |
|
5323 |
?>
|
5324 |
<style type="text/css">
|
5325 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
5326 |
<?php if(!empty($color)): ?>
|
5327 |
-
color: <?php echo $color; ?>;
|
5328 |
<?php endif; ?>
|
5329 |
<?php if(!empty($font_size)): ?>
|
5330 |
-
font-size: <?php echo $font_size; ?>;
|
5331 |
<?php endif; ?>
|
5332 |
<?php if(!empty($font_family)): ?>
|
5333 |
-
font-family: <?php echo $font_family; ?>;
|
5334 |
<?php endif; ?>
|
5335 |
<?php if(!empty($margin)): ?>
|
5336 |
-
margin: <?php echo $margin; ?>;
|
5337 |
<?php endif; ?>
|
5338 |
<?php if(!empty($text_align)): ?>
|
5339 |
-
text-align: <?php echo $text_align; ?>;
|
5340 |
<?php endif; ?>
|
5341 |
<?php if(!empty($css)): ?>
|
5342 |
-
<?php echo $css; ?>
|
5343 |
<?php endif; ?>
|
5344 |
}
|
5345 |
<?php if(!empty($css_hover)): ?>
|
5346 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
5347 |
-
<?php echo $css_hover; ?>
|
5348 |
}
|
5349 |
<?php endif; ?>
|
5350 |
</style>
|
@@ -5522,7 +5522,7 @@ function post_grid_layout_element_option_wck_datetime_picker($parameters){
|
|
5522 |
|
5523 |
ob_start();
|
5524 |
?>
|
5525 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
5526 |
<?php
|
5527 |
|
5528 |
$html = ob_get_clean();
|
@@ -5602,29 +5602,29 @@ function post_grid_layout_element_css_wck_datetime_picker($args){
|
|
5602 |
|
5603 |
?>
|
5604 |
<style type="text/css">
|
5605 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
5606 |
<?php if(!empty($color)): ?>
|
5607 |
-
color: <?php echo $color; ?>;
|
5608 |
<?php endif; ?>
|
5609 |
<?php if(!empty($font_size)): ?>
|
5610 |
-
font-size: <?php echo $font_size; ?>;
|
5611 |
<?php endif; ?>
|
5612 |
<?php if(!empty($font_family)): ?>
|
5613 |
-
font-family: <?php echo $font_family; ?>;
|
5614 |
<?php endif; ?>
|
5615 |
<?php if(!empty($margin)): ?>
|
5616 |
-
margin: <?php echo $margin; ?>;
|
5617 |
<?php endif; ?>
|
5618 |
<?php if(!empty($text_align)): ?>
|
5619 |
-
text-align: <?php echo $text_align; ?>;
|
5620 |
<?php endif; ?>
|
5621 |
<?php if(!empty($css)): ?>
|
5622 |
-
<?php echo $css; ?>
|
5623 |
<?php endif; ?>
|
5624 |
}
|
5625 |
<?php if(!empty($css_hover)): ?>
|
5626 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
5627 |
-
<?php echo $css_hover; ?>
|
5628 |
}
|
5629 |
<?php endif; ?>
|
5630 |
</style>
|
@@ -5784,7 +5784,7 @@ function post_grid_layout_element_option_wck_google_map($parameters){
|
|
5784 |
|
5785 |
ob_start();
|
5786 |
?>
|
5787 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
5788 |
<?php
|
5789 |
|
5790 |
$html = ob_get_clean();
|
@@ -5862,29 +5862,29 @@ function post_grid_layout_element_css_wck_google_map($args){
|
|
5862 |
|
5863 |
?>
|
5864 |
<style type="text/css">
|
5865 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
5866 |
<?php if(!empty($color)): ?>
|
5867 |
-
color: <?php echo $color; ?>;
|
5868 |
<?php endif; ?>
|
5869 |
<?php if(!empty($font_size)): ?>
|
5870 |
-
font-size: <?php echo $font_size; ?>;
|
5871 |
<?php endif; ?>
|
5872 |
<?php if(!empty($font_family)): ?>
|
5873 |
-
font-family: <?php echo $font_family; ?>;
|
5874 |
<?php endif; ?>
|
5875 |
<?php if(!empty($margin)): ?>
|
5876 |
-
margin: <?php echo $margin; ?>;
|
5877 |
<?php endif; ?>
|
5878 |
<?php if(!empty($text_align)): ?>
|
5879 |
-
text-align: <?php echo $text_align; ?>;
|
5880 |
<?php endif; ?>
|
5881 |
<?php if(!empty($css)): ?>
|
5882 |
-
<?php echo $css; ?>
|
5883 |
<?php endif; ?>
|
5884 |
}
|
5885 |
<?php if(!empty($css_hover)): ?>
|
5886 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
5887 |
-
<?php echo $css_hover; ?>
|
5888 |
}
|
5889 |
<?php endif; ?>
|
5890 |
</style>
|
@@ -6046,7 +6046,7 @@ function post_grid_layout_element_option_wck_colorpicker($parameters){
|
|
6046 |
|
6047 |
ob_start();
|
6048 |
?>
|
6049 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
6050 |
<?php
|
6051 |
|
6052 |
$html = ob_get_clean();
|
@@ -6124,29 +6124,29 @@ function post_grid_layout_element_css_wck_colorpicker($args){
|
|
6124 |
|
6125 |
?>
|
6126 |
<style type="text/css">
|
6127 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
6128 |
<?php if(!empty($color)): ?>
|
6129 |
-
color: <?php echo $color; ?>;
|
6130 |
<?php endif; ?>
|
6131 |
<?php if(!empty($font_size)): ?>
|
6132 |
-
font-size: <?php echo $font_size; ?>;
|
6133 |
<?php endif; ?>
|
6134 |
<?php if(!empty($font_family)): ?>
|
6135 |
-
font-family: <?php echo $font_family; ?>;
|
6136 |
<?php endif; ?>
|
6137 |
<?php if(!empty($margin)): ?>
|
6138 |
-
margin: <?php echo $margin; ?>;
|
6139 |
<?php endif; ?>
|
6140 |
<?php if(!empty($text_align)): ?>
|
6141 |
-
text-align: <?php echo $text_align; ?>;
|
6142 |
<?php endif; ?>
|
6143 |
<?php if(!empty($css)): ?>
|
6144 |
-
<?php echo $css; ?>
|
6145 |
<?php endif; ?>
|
6146 |
}
|
6147 |
<?php if(!empty($css_hover)): ?>
|
6148 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
6149 |
-
<?php echo $css_hover; ?>
|
6150 |
}
|
6151 |
<?php endif; ?>
|
6152 |
</style>
|
@@ -6323,7 +6323,7 @@ function post_grid_layout_element_option_wck_link($parameters){
|
|
6323 |
|
6324 |
ob_start();
|
6325 |
?>
|
6326 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
6327 |
<?php
|
6328 |
|
6329 |
$html = ob_get_clean();
|
@@ -6415,29 +6415,29 @@ function post_grid_layout_element_css_wck_link($args){
|
|
6415 |
|
6416 |
?>
|
6417 |
<style type="text/css">
|
6418 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
6419 |
<?php if(!empty($color)): ?>
|
6420 |
-
color: <?php echo $color; ?>;
|
6421 |
<?php endif; ?>
|
6422 |
<?php if(!empty($font_size)): ?>
|
6423 |
-
font-size: <?php echo $font_size; ?>;
|
6424 |
<?php endif; ?>
|
6425 |
<?php if(!empty($font_family)): ?>
|
6426 |
-
font-family: <?php echo $font_family; ?>;
|
6427 |
<?php endif; ?>
|
6428 |
<?php if(!empty($margin)): ?>
|
6429 |
-
margin: <?php echo $margin; ?>;
|
6430 |
<?php endif; ?>
|
6431 |
<?php if(!empty($text_align)): ?>
|
6432 |
-
text-align: <?php echo $text_align; ?>;
|
6433 |
<?php endif; ?>
|
6434 |
<?php if(!empty($css)): ?>
|
6435 |
-
<?php echo $css; ?>
|
6436 |
<?php endif; ?>
|
6437 |
}
|
6438 |
<?php if(!empty($css_hover)): ?>
|
6439 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
6440 |
-
<?php echo $css_hover; ?>
|
6441 |
}
|
6442 |
<?php endif; ?>
|
6443 |
</style>
|
@@ -6597,7 +6597,7 @@ function post_grid_layout_element_option_wck_post_object($parameters){
|
|
6597 |
|
6598 |
ob_start();
|
6599 |
?>
|
6600 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
6601 |
<?php
|
6602 |
|
6603 |
$html = ob_get_clean();
|
@@ -6675,29 +6675,29 @@ function post_grid_layout_element_css_wck_post_object($args){
|
|
6675 |
|
6676 |
?>
|
6677 |
<style type="text/css">
|
6678 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
6679 |
<?php if(!empty($color)): ?>
|
6680 |
-
color: <?php echo $color; ?>;
|
6681 |
<?php endif; ?>
|
6682 |
<?php if(!empty($font_size)): ?>
|
6683 |
-
font-size: <?php echo $font_size; ?>;
|
6684 |
<?php endif; ?>
|
6685 |
<?php if(!empty($font_family)): ?>
|
6686 |
-
font-family: <?php echo $font_family; ?>;
|
6687 |
<?php endif; ?>
|
6688 |
<?php if(!empty($margin)): ?>
|
6689 |
-
margin: <?php echo $margin; ?>;
|
6690 |
<?php endif; ?>
|
6691 |
<?php if(!empty($text_align)): ?>
|
6692 |
-
text-align: <?php echo $text_align; ?>;
|
6693 |
<?php endif; ?>
|
6694 |
<?php if(!empty($css)): ?>
|
6695 |
-
<?php echo $css; ?>
|
6696 |
<?php endif; ?>
|
6697 |
}
|
6698 |
<?php if(!empty($css_hover)): ?>
|
6699 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
6700 |
-
<?php echo $css_hover; ?>
|
6701 |
}
|
6702 |
<?php endif; ?>
|
6703 |
</style>
|
@@ -6857,7 +6857,7 @@ function post_grid_layout_element_option_wck_oembed($parameters){
|
|
6857 |
|
6858 |
ob_start();
|
6859 |
?>
|
6860 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
6861 |
<?php
|
6862 |
|
6863 |
$html = ob_get_clean();
|
@@ -6935,29 +6935,29 @@ function post_grid_layout_element_css_wck_oembed($args){
|
|
6935 |
|
6936 |
?>
|
6937 |
<style type="text/css">
|
6938 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
6939 |
<?php if(!empty($color)): ?>
|
6940 |
-
color: <?php echo $color; ?>;
|
6941 |
<?php endif; ?>
|
6942 |
<?php if(!empty($font_size)): ?>
|
6943 |
-
font-size: <?php echo $font_size; ?>;
|
6944 |
<?php endif; ?>
|
6945 |
<?php if(!empty($font_family)): ?>
|
6946 |
-
font-family: <?php echo $font_family; ?>;
|
6947 |
<?php endif; ?>
|
6948 |
<?php if(!empty($margin)): ?>
|
6949 |
-
margin: <?php echo $margin; ?>;
|
6950 |
<?php endif; ?>
|
6951 |
<?php if(!empty($text_align)): ?>
|
6952 |
-
text-align: <?php echo $text_align; ?>;
|
6953 |
<?php endif; ?>
|
6954 |
<?php if(!empty($css)): ?>
|
6955 |
-
<?php echo $css; ?>
|
6956 |
<?php endif; ?>
|
6957 |
}
|
6958 |
<?php if(!empty($css_hover)): ?>
|
6959 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
6960 |
-
<?php echo $css_hover; ?>
|
6961 |
}
|
6962 |
<?php endif; ?>
|
6963 |
</style>
|
@@ -7134,7 +7134,7 @@ function post_grid_layout_element_option_wck_password($parameters){
|
|
7134 |
|
7135 |
ob_start();
|
7136 |
?>
|
7137 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
7138 |
<?php
|
7139 |
|
7140 |
$html = ob_get_clean();
|
@@ -7214,29 +7214,29 @@ function post_grid_layout_element_css_wck_password($args){
|
|
7214 |
|
7215 |
?>
|
7216 |
<style type="text/css">
|
7217 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
7218 |
<?php if(!empty($color)): ?>
|
7219 |
-
color: <?php echo $color; ?>;
|
7220 |
<?php endif; ?>
|
7221 |
<?php if(!empty($font_size)): ?>
|
7222 |
-
font-size: <?php echo $font_size; ?>;
|
7223 |
<?php endif; ?>
|
7224 |
<?php if(!empty($font_family)): ?>
|
7225 |
-
font-family: <?php echo $font_family; ?>;
|
7226 |
<?php endif; ?>
|
7227 |
<?php if(!empty($margin)): ?>
|
7228 |
-
margin: <?php echo $margin; ?>;
|
7229 |
<?php endif; ?>
|
7230 |
<?php if(!empty($text_align)): ?>
|
7231 |
-
text-align: <?php echo $text_align; ?>;
|
7232 |
<?php endif; ?>
|
7233 |
<?php if(!empty($css)): ?>
|
7234 |
-
<?php echo $css; ?>
|
7235 |
<?php endif; ?>
|
7236 |
}
|
7237 |
<?php if(!empty($css_hover)): ?>
|
7238 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
7239 |
-
<?php echo $css_hover; ?>
|
7240 |
}
|
7241 |
<?php endif; ?>
|
7242 |
</style>
|
@@ -7427,7 +7427,7 @@ function post_grid_layout_element_option_wck_relationship($parameters){
|
|
7427 |
|
7428 |
ob_start();
|
7429 |
?>
|
7430 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
7431 |
<?php
|
7432 |
|
7433 |
$html = ob_get_clean();
|
@@ -7542,29 +7542,29 @@ function post_grid_layout_element_css_wck_relationship($args){
|
|
7542 |
|
7543 |
?>
|
7544 |
<style type="text/css">
|
7545 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
7546 |
<?php if(!empty($color)): ?>
|
7547 |
-
color: <?php echo $color; ?>;
|
7548 |
<?php endif; ?>
|
7549 |
<?php if(!empty($font_size)): ?>
|
7550 |
-
font-size: <?php echo $font_size; ?>;
|
7551 |
<?php endif; ?>
|
7552 |
<?php if(!empty($font_family)): ?>
|
7553 |
-
font-family: <?php echo $font_family; ?>;
|
7554 |
<?php endif; ?>
|
7555 |
<?php if(!empty($margin)): ?>
|
7556 |
-
margin: <?php echo $margin; ?>;
|
7557 |
<?php endif; ?>
|
7558 |
<?php if(!empty($text_align)): ?>
|
7559 |
-
text-align: <?php echo $text_align; ?>;
|
7560 |
<?php endif; ?>
|
7561 |
<?php if(!empty($css)): ?>
|
7562 |
-
<?php echo $css; ?>
|
7563 |
<?php endif; ?>
|
7564 |
}
|
7565 |
<?php if(!empty($css_hover)): ?>
|
7566 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
7567 |
-
<?php echo $css_hover; ?>
|
7568 |
}
|
7569 |
<?php endif; ?>
|
7570 |
</style>
|
@@ -7742,7 +7742,7 @@ function post_grid_layout_element_option_wck_true_false($parameters){
|
|
7742 |
|
7743 |
ob_start();
|
7744 |
?>
|
7745 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
7746 |
<?php
|
7747 |
|
7748 |
$html = ob_get_clean();
|
@@ -7824,29 +7824,29 @@ function post_grid_layout_element_css_wck_true_false($args){
|
|
7824 |
|
7825 |
?>
|
7826 |
<style type="text/css">
|
7827 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
7828 |
<?php if(!empty($color)): ?>
|
7829 |
-
color: <?php echo $color; ?>;
|
7830 |
<?php endif; ?>
|
7831 |
<?php if(!empty($font_size)): ?>
|
7832 |
-
font-size: <?php echo $font_size; ?>;
|
7833 |
<?php endif; ?>
|
7834 |
<?php if(!empty($font_family)): ?>
|
7835 |
-
font-family: <?php echo $font_family; ?>;
|
7836 |
<?php endif; ?>
|
7837 |
<?php if(!empty($margin)): ?>
|
7838 |
-
margin: <?php echo $margin; ?>;
|
7839 |
<?php endif; ?>
|
7840 |
<?php if(!empty($text_align)): ?>
|
7841 |
-
text-align: <?php echo $text_align; ?>;
|
7842 |
<?php endif; ?>
|
7843 |
<?php if(!empty($css)): ?>
|
7844 |
-
<?php echo $css; ?>
|
7845 |
<?php endif; ?>
|
7846 |
}
|
7847 |
<?php if(!empty($css_hover)): ?>
|
7848 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
7849 |
-
<?php echo $css_hover; ?>
|
7850 |
}
|
7851 |
<?php endif; ?>
|
7852 |
</style>
|
203 |
|
204 |
ob_start();
|
205 |
?>
|
206 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
207 |
<?php
|
208 |
|
209 |
$html = ob_get_clean();
|
281 |
|
282 |
?>
|
283 |
<style type="text/css">
|
284 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
285 |
<?php if(!empty($color)): ?>
|
286 |
+
color: <?php echo esc_attr($color); ?>;
|
287 |
<?php endif; ?>
|
288 |
<?php if(!empty($font_size)): ?>
|
289 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
290 |
<?php endif; ?>
|
291 |
<?php if(!empty($font_family)): ?>
|
292 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
293 |
<?php endif; ?>
|
294 |
<?php if(!empty($margin)): ?>
|
295 |
+
margin: <?php echo esc_attr($margin); ?>;
|
296 |
<?php endif; ?>
|
297 |
<?php if(!empty($text_align)): ?>
|
298 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
299 |
<?php endif; ?>
|
300 |
<?php if(!empty($css)): ?>
|
301 |
+
<?php echo esc_attr($css); ?>
|
302 |
<?php endif; ?>
|
303 |
}
|
304 |
<?php if(!empty($css_hover)): ?>
|
305 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
306 |
+
<?php echo esc_attr($css_hover); ?>
|
307 |
}
|
308 |
<?php endif; ?>
|
309 |
</style>
|
466 |
|
467 |
ob_start();
|
468 |
?>
|
469 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
470 |
<?php
|
471 |
|
472 |
$html = ob_get_clean();
|
544 |
|
545 |
?>
|
546 |
<style type="text/css">
|
547 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
548 |
<?php if(!empty($color)): ?>
|
549 |
+
color: <?php echo esc_attr($color); ?>;
|
550 |
<?php endif; ?>
|
551 |
<?php if(!empty($font_size)): ?>
|
552 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
553 |
<?php endif; ?>
|
554 |
<?php if(!empty($font_family)): ?>
|
555 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
556 |
<?php endif; ?>
|
557 |
<?php if(!empty($margin)): ?>
|
558 |
+
margin: <?php echo esc_attr($margin); ?>;
|
559 |
<?php endif; ?>
|
560 |
<?php if(!empty($text_align)): ?>
|
561 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
562 |
<?php endif; ?>
|
563 |
<?php if(!empty($css)): ?>
|
564 |
+
<?php echo esc_attr($css); ?>
|
565 |
<?php endif; ?>
|
566 |
}
|
567 |
<?php if(!empty($css_hover)): ?>
|
568 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
569 |
+
<?php echo esc_attr($css_hover); ?>
|
570 |
}
|
571 |
<?php endif; ?>
|
572 |
</style>
|
729 |
|
730 |
ob_start();
|
731 |
?>
|
732 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
733 |
<?php
|
734 |
|
735 |
$html = ob_get_clean();
|
807 |
|
808 |
?>
|
809 |
<style type="text/css">
|
810 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
811 |
<?php if(!empty($color)): ?>
|
812 |
+
color: <?php echo esc_attr($color); ?>;
|
813 |
<?php endif; ?>
|
814 |
<?php if(!empty($font_size)): ?>
|
815 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
816 |
<?php endif; ?>
|
817 |
<?php if(!empty($font_family)): ?>
|
818 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
819 |
<?php endif; ?>
|
820 |
<?php if(!empty($margin)): ?>
|
821 |
+
margin: <?php echo esc_attr($margin); ?>;
|
822 |
<?php endif; ?>
|
823 |
<?php if(!empty($text_align)): ?>
|
824 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
825 |
<?php endif; ?>
|
826 |
<?php if(!empty($css)): ?>
|
827 |
+
<?php echo esc_attr($css); ?>
|
828 |
<?php endif; ?>
|
829 |
}
|
830 |
<?php if(!empty($css_hover)): ?>
|
831 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
832 |
+
<?php echo esc_attr($css_hover); ?>
|
833 |
}
|
834 |
<?php endif; ?>
|
835 |
</style>
|
1006 |
|
1007 |
ob_start();
|
1008 |
?>
|
1009 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
1010 |
<?php
|
1011 |
|
1012 |
$html = ob_get_clean();
|
1086 |
|
1087 |
?>
|
1088 |
<style type="text/css">
|
1089 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
1090 |
<?php if(!empty($color)): ?>
|
1091 |
+
color: <?php echo esc_attr($color); ?>;
|
1092 |
<?php endif; ?>
|
1093 |
<?php if(!empty($font_size)): ?>
|
1094 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
1095 |
<?php endif; ?>
|
1096 |
<?php if(!empty($font_family)): ?>
|
1097 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
1098 |
<?php endif; ?>
|
1099 |
<?php if(!empty($margin)): ?>
|
1100 |
+
margin: <?php echo esc_attr($margin); ?>;
|
1101 |
<?php endif; ?>
|
1102 |
<?php if(!empty($text_align)): ?>
|
1103 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
1104 |
<?php endif; ?>
|
1105 |
<?php if(!empty($css)): ?>
|
1106 |
+
<?php echo esc_attr($css); ?>
|
1107 |
<?php endif; ?>
|
1108 |
}
|
1109 |
<?php if(!empty($css_hover)): ?>
|
1110 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1111 |
+
<?php echo esc_attr($css_hover); ?>
|
1112 |
}
|
1113 |
<?php endif; ?>
|
1114 |
</style>
|
1284 |
|
1285 |
ob_start();
|
1286 |
?>
|
1287 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
1288 |
<?php
|
1289 |
|
1290 |
$html = ob_get_clean();
|
1365 |
|
1366 |
?>
|
1367 |
<style type="text/css">
|
1368 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
1369 |
<?php if(!empty($color)): ?>
|
1370 |
+
color: <?php echo esc_attr($color); ?>;
|
1371 |
<?php endif; ?>
|
1372 |
<?php if(!empty($font_size)): ?>
|
1373 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
1374 |
<?php endif; ?>
|
1375 |
<?php if(!empty($font_family)): ?>
|
1376 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
1377 |
<?php endif; ?>
|
1378 |
<?php if(!empty($margin)): ?>
|
1379 |
+
margin: <?php echo esc_attr($margin); ?>;
|
1380 |
<?php endif; ?>
|
1381 |
<?php if(!empty($text_align)): ?>
|
1382 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
1383 |
<?php endif; ?>
|
1384 |
<?php if(!empty($css)): ?>
|
1385 |
+
<?php echo esc_attr($css); ?>
|
1386 |
<?php endif; ?>
|
1387 |
}
|
1388 |
<?php if(!empty($css_hover)): ?>
|
1389 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1390 |
+
<?php echo esc_attr($css_hover); ?>
|
1391 |
}
|
1392 |
<?php endif; ?>
|
1393 |
</style>
|
1563 |
|
1564 |
ob_start();
|
1565 |
?>
|
1566 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
1567 |
<?php
|
1568 |
|
1569 |
$html = ob_get_clean();
|
1644 |
|
1645 |
?>
|
1646 |
<style type="text/css">
|
1647 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
1648 |
<?php if(!empty($color)): ?>
|
1649 |
+
color: <?php echo esc_attr($color); ?>;
|
1650 |
<?php endif; ?>
|
1651 |
<?php if(!empty($font_size)): ?>
|
1652 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
1653 |
<?php endif; ?>
|
1654 |
<?php if(!empty($font_family)): ?>
|
1655 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
1656 |
<?php endif; ?>
|
1657 |
<?php if(!empty($margin)): ?>
|
1658 |
+
margin: <?php echo esc_attr($margin); ?>;
|
1659 |
<?php endif; ?>
|
1660 |
<?php if(!empty($text_align)): ?>
|
1661 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
1662 |
<?php endif; ?>
|
1663 |
<?php if(!empty($css)): ?>
|
1664 |
+
<?php echo esc_attr($css); ?>
|
1665 |
<?php endif; ?>
|
1666 |
}
|
1667 |
<?php if(!empty($css_hover)): ?>
|
1668 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1669 |
+
<?php echo esc_attr($css_hover); ?>
|
1670 |
}
|
1671 |
<?php endif; ?>
|
1672 |
</style>
|
1827 |
|
1828 |
ob_start();
|
1829 |
?>
|
1830 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
1831 |
<?php
|
1832 |
|
1833 |
$html = ob_get_clean();
|
1907 |
|
1908 |
?>
|
1909 |
<style type="text/css">
|
1910 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
1911 |
<?php if(!empty($color)): ?>
|
1912 |
+
color: <?php echo esc_attr($color); ?>;
|
1913 |
<?php endif; ?>
|
1914 |
<?php if(!empty($font_size)): ?>
|
1915 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
1916 |
<?php endif; ?>
|
1917 |
<?php if(!empty($font_family)): ?>
|
1918 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
1919 |
<?php endif; ?>
|
1920 |
<?php if(!empty($margin)): ?>
|
1921 |
+
margin: <?php echo esc_attr($margin); ?>;
|
1922 |
<?php endif; ?>
|
1923 |
<?php if(!empty($text_align)): ?>
|
1924 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
1925 |
<?php endif; ?>
|
1926 |
<?php if(!empty($css)): ?>
|
1927 |
+
<?php echo esc_attr($css); ?>
|
1928 |
<?php endif; ?>
|
1929 |
}
|
1930 |
<?php if(!empty($css_hover)): ?>
|
1931 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1932 |
+
<?php echo esc_attr($css_hover); ?>
|
1933 |
}
|
1934 |
<?php endif; ?>
|
1935 |
</style>
|
2104 |
|
2105 |
ob_start();
|
2106 |
?>
|
2107 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
2108 |
<?php
|
2109 |
|
2110 |
$html = ob_get_clean();
|
2235 |
|
2236 |
?>
|
2237 |
<style type="text/css">
|
2238 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
2239 |
<?php if(!empty($color)): ?>
|
2240 |
+
color: <?php echo esc_attr($color); ?>;
|
2241 |
<?php endif; ?>
|
2242 |
<?php if(!empty($font_size)): ?>
|
2243 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
2244 |
<?php endif; ?>
|
2245 |
<?php if(!empty($font_family)): ?>
|
2246 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
2247 |
<?php endif; ?>
|
2248 |
<?php if(!empty($margin)): ?>
|
2249 |
+
margin: <?php echo esc_attr($margin); ?>;
|
2250 |
<?php endif; ?>
|
2251 |
<?php if(!empty($text_align)): ?>
|
2252 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
2253 |
<?php endif; ?>
|
2254 |
<?php if(!empty($css)): ?>
|
2255 |
+
<?php echo esc_attr($css); ?>
|
2256 |
<?php endif; ?>
|
2257 |
}
|
2258 |
<?php if(!empty($css_hover)): ?>
|
2259 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2260 |
+
<?php echo esc_attr($css_hover); ?>
|
2261 |
}
|
2262 |
<?php endif; ?>
|
2263 |
</style>
|
2433 |
|
2434 |
ob_start();
|
2435 |
?>
|
2436 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
2437 |
<?php
|
2438 |
|
2439 |
$html = ob_get_clean();
|
2556 |
|
2557 |
?>
|
2558 |
<style type="text/css">
|
2559 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
2560 |
<?php if(!empty($color)): ?>
|
2561 |
+
color: <?php echo esc_attr($color); ?>;
|
2562 |
<?php endif; ?>
|
2563 |
<?php if(!empty($font_size)): ?>
|
2564 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
2565 |
<?php endif; ?>
|
2566 |
<?php if(!empty($font_family)): ?>
|
2567 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
2568 |
<?php endif; ?>
|
2569 |
<?php if(!empty($margin)): ?>
|
2570 |
+
margin: <?php echo esc_attr($margin); ?>;
|
2571 |
<?php endif; ?>
|
2572 |
<?php if(!empty($text_align)): ?>
|
2573 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
2574 |
<?php endif; ?>
|
2575 |
<?php if(!empty($css)): ?>
|
2576 |
+
<?php echo esc_attr($css); ?>
|
2577 |
<?php endif; ?>
|
2578 |
}
|
2579 |
<?php if(!empty($css_hover)): ?>
|
2580 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2581 |
+
<?php echo esc_attr($css_hover); ?>
|
2582 |
}
|
2583 |
<?php endif; ?>
|
2584 |
</style>
|
2770 |
|
2771 |
ob_start();
|
2772 |
?>
|
2773 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
2774 |
<?php
|
2775 |
|
2776 |
$html = ob_get_clean();
|
2868 |
|
2869 |
?>
|
2870 |
<style type="text/css">
|
2871 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
2872 |
<?php if(!empty($color)): ?>
|
2873 |
+
color: <?php echo esc_attr($color); ?>;
|
2874 |
<?php endif; ?>
|
2875 |
<?php if(!empty($font_size)): ?>
|
2876 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
2877 |
<?php endif; ?>
|
2878 |
<?php if(!empty($font_family)): ?>
|
2879 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
2880 |
<?php endif; ?>
|
2881 |
<?php if(!empty($margin)): ?>
|
2882 |
+
margin: <?php echo esc_attr($margin); ?>;
|
2883 |
<?php endif; ?>
|
2884 |
<?php if(!empty($text_align)): ?>
|
2885 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
2886 |
<?php endif; ?>
|
2887 |
<?php if(!empty($css)): ?>
|
2888 |
+
<?php echo esc_attr($css); ?>
|
2889 |
<?php endif; ?>
|
2890 |
}
|
2891 |
<?php if(!empty($css_hover)): ?>
|
2892 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2893 |
+
<?php echo esc_attr($css_hover); ?>
|
2894 |
}
|
2895 |
<?php endif; ?>
|
2896 |
</style>
|
3082 |
|
3083 |
ob_start();
|
3084 |
?>
|
3085 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
3086 |
<?php
|
3087 |
|
3088 |
$html = ob_get_clean();
|
3179 |
|
3180 |
?>
|
3181 |
<style type="text/css">
|
3182 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
3183 |
<?php if(!empty($color)): ?>
|
3184 |
+
color: <?php echo esc_attr($color); ?>;
|
3185 |
<?php endif; ?>
|
3186 |
<?php if(!empty($font_size)): ?>
|
3187 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
3188 |
<?php endif; ?>
|
3189 |
<?php if(!empty($font_family)): ?>
|
3190 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
3191 |
<?php endif; ?>
|
3192 |
<?php if(!empty($margin)): ?>
|
3193 |
+
margin: <?php echo esc_attr($margin); ?>;
|
3194 |
<?php endif; ?>
|
3195 |
<?php if(!empty($text_align)): ?>
|
3196 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
3197 |
<?php endif; ?>
|
3198 |
<?php if(!empty($css)): ?>
|
3199 |
+
<?php echo esc_attr($css); ?>
|
3200 |
<?php endif; ?>
|
3201 |
}
|
3202 |
<?php if(!empty($css_hover)): ?>
|
3203 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
3204 |
+
<?php echo esc_attr($css_hover); ?>
|
3205 |
}
|
3206 |
<?php endif; ?>
|
3207 |
</style>
|
3394 |
|
3395 |
ob_start();
|
3396 |
?>
|
3397 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
3398 |
<?php
|
3399 |
|
3400 |
$html = ob_get_clean();
|
3499 |
|
3500 |
?>
|
3501 |
<style type="text/css">
|
3502 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
3503 |
<?php if(!empty($color)): ?>
|
3504 |
+
color: <?php echo esc_attr($color); ?>;
|
3505 |
<?php endif; ?>
|
3506 |
<?php if(!empty($font_size)): ?>
|
3507 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
3508 |
<?php endif; ?>
|
3509 |
<?php if(!empty($font_family)): ?>
|
3510 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
3511 |
<?php endif; ?>
|
3512 |
<?php if(!empty($margin)): ?>
|
3513 |
+
margin: <?php echo esc_attr($margin); ?>;
|
3514 |
<?php endif; ?>
|
3515 |
<?php if(!empty($text_align)): ?>
|
3516 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
3517 |
<?php endif; ?>
|
3518 |
<?php if(!empty($css)): ?>
|
3519 |
+
<?php echo esc_attr($css); ?>
|
3520 |
<?php endif; ?>
|
3521 |
}
|
3522 |
<?php if(!empty($css_hover)): ?>
|
3523 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
3524 |
+
<?php echo esc_attr($css_hover); ?>
|
3525 |
}
|
3526 |
<?php endif; ?>
|
3527 |
</style>
|
3714 |
|
3715 |
ob_start();
|
3716 |
?>
|
3717 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
3718 |
<?php
|
3719 |
|
3720 |
$html = ob_get_clean();
|
3819 |
|
3820 |
?>
|
3821 |
<style type="text/css">
|
3822 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
3823 |
<?php if(!empty($color)): ?>
|
3824 |
+
color: <?php echo esc_attr($color); ?>;
|
3825 |
<?php endif; ?>
|
3826 |
<?php if(!empty($font_size)): ?>
|
3827 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
3828 |
<?php endif; ?>
|
3829 |
<?php if(!empty($font_family)): ?>
|
3830 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
3831 |
<?php endif; ?>
|
3832 |
<?php if(!empty($margin)): ?>
|
3833 |
+
margin: <?php echo esc_attr($margin); ?>;
|
3834 |
<?php endif; ?>
|
3835 |
<?php if(!empty($text_align)): ?>
|
3836 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
3837 |
<?php endif; ?>
|
3838 |
<?php if(!empty($css)): ?>
|
3839 |
+
<?php echo esc_attr($css); ?>
|
3840 |
<?php endif; ?>
|
3841 |
}
|
3842 |
<?php if(!empty($css_hover)): ?>
|
3843 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
3844 |
+
<?php echo esc_attr($css_hover); ?>
|
3845 |
}
|
3846 |
<?php endif; ?>
|
3847 |
</style>
|
4033 |
|
4034 |
ob_start();
|
4035 |
?>
|
4036 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
4037 |
<?php
|
4038 |
|
4039 |
$html = ob_get_clean();
|
4130 |
|
4131 |
?>
|
4132 |
<style type="text/css">
|
4133 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
4134 |
<?php if(!empty($color)): ?>
|
4135 |
+
color: <?php echo esc_attr($color); ?>;
|
4136 |
<?php endif; ?>
|
4137 |
<?php if(!empty($font_size)): ?>
|
4138 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
4139 |
<?php endif; ?>
|
4140 |
<?php if(!empty($font_family)): ?>
|
4141 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
4142 |
<?php endif; ?>
|
4143 |
<?php if(!empty($margin)): ?>
|
4144 |
+
margin: <?php echo esc_attr($margin); ?>;
|
4145 |
<?php endif; ?>
|
4146 |
<?php if(!empty($text_align)): ?>
|
4147 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
4148 |
<?php endif; ?>
|
4149 |
<?php if(!empty($css)): ?>
|
4150 |
+
<?php echo esc_attr($css); ?>
|
4151 |
<?php endif; ?>
|
4152 |
}
|
4153 |
<?php if(!empty($css_hover)): ?>
|
4154 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
4155 |
+
<?php echo esc_attr($css_hover); ?>
|
4156 |
}
|
4157 |
<?php endif; ?>
|
4158 |
</style>
|
4346 |
|
4347 |
ob_start();
|
4348 |
?>
|
4349 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
4350 |
<?php
|
4351 |
|
4352 |
$html = ob_get_clean();
|
4457 |
|
4458 |
?>
|
4459 |
<style type="text/css">
|
4460 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
4461 |
<?php if(!empty($color)): ?>
|
4462 |
+
color: <?php echo esc_attr($color); ?>;
|
4463 |
<?php endif; ?>
|
4464 |
<?php if(!empty($font_size)): ?>
|
4465 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
4466 |
<?php endif; ?>
|
4467 |
<?php if(!empty($font_family)): ?>
|
4468 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
4469 |
<?php endif; ?>
|
4470 |
<?php if(!empty($margin)): ?>
|
4471 |
+
margin: <?php echo esc_attr($margin); ?>;
|
4472 |
<?php endif; ?>
|
4473 |
<?php if(!empty($text_align)): ?>
|
4474 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
4475 |
<?php endif; ?>
|
4476 |
<?php if(!empty($css)): ?>
|
4477 |
+
<?php echo esc_attr($css); ?>
|
4478 |
<?php endif; ?>
|
4479 |
}
|
4480 |
<?php if(!empty($css_hover)): ?>
|
4481 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
4482 |
+
<?php echo esc_attr($css_hover); ?>
|
4483 |
}
|
4484 |
<?php endif; ?>
|
4485 |
</style>
|
4656 |
|
4657 |
ob_start();
|
4658 |
?>
|
4659 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
4660 |
<?php
|
4661 |
|
4662 |
$html = ob_get_clean();
|
4763 |
|
4764 |
?>
|
4765 |
<style type="text/css">
|
4766 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
4767 |
<?php if(!empty($color)): ?>
|
4768 |
+
color: <?php echo esc_attr($color); ?>;
|
4769 |
<?php endif; ?>
|
4770 |
<?php if(!empty($font_size)): ?>
|
4771 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
4772 |
<?php endif; ?>
|
4773 |
<?php if(!empty($font_family)): ?>
|
4774 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
4775 |
<?php endif; ?>
|
4776 |
<?php if(!empty($margin)): ?>
|
4777 |
+
margin: <?php echo esc_attr($margin); ?>;
|
4778 |
<?php endif; ?>
|
4779 |
<?php if(!empty($text_align)): ?>
|
4780 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
4781 |
<?php endif; ?>
|
4782 |
<?php if(!empty($css)): ?>
|
4783 |
+
<?php echo esc_attr($css); ?>
|
4784 |
<?php endif; ?>
|
4785 |
}
|
4786 |
<?php if(!empty($css_hover)): ?>
|
4787 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
4788 |
+
<?php echo esc_attr($css_hover); ?>
|
4789 |
}
|
4790 |
<?php endif; ?>
|
4791 |
</style>
|
4962 |
|
4963 |
ob_start();
|
4964 |
?>
|
4965 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
4966 |
<?php
|
4967 |
|
4968 |
$html = ob_get_clean();
|
5041 |
|
5042 |
?>
|
5043 |
<style type="text/css">
|
5044 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
5045 |
<?php if(!empty($color)): ?>
|
5046 |
+
color: <?php echo esc_attr($color); ?>;
|
5047 |
<?php endif; ?>
|
5048 |
<?php if(!empty($font_size)): ?>
|
5049 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
5050 |
<?php endif; ?>
|
5051 |
<?php if(!empty($font_family)): ?>
|
5052 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
5053 |
<?php endif; ?>
|
5054 |
<?php if(!empty($margin)): ?>
|
5055 |
+
margin: <?php echo esc_attr($margin); ?>;
|
5056 |
<?php endif; ?>
|
5057 |
<?php if(!empty($text_align)): ?>
|
5058 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
5059 |
<?php endif; ?>
|
5060 |
<?php if(!empty($css)): ?>
|
5061 |
+
<?php echo esc_attr($css); ?>
|
5062 |
<?php endif; ?>
|
5063 |
}
|
5064 |
<?php if(!empty($css_hover)): ?>
|
5065 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
5066 |
+
<?php echo esc_attr($css_hover); ?>
|
5067 |
}
|
5068 |
<?php endif; ?>
|
5069 |
</style>
|
5242 |
|
5243 |
ob_start();
|
5244 |
?>
|
5245 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
5246 |
<?php
|
5247 |
|
5248 |
$html = ob_get_clean();
|
5322 |
|
5323 |
?>
|
5324 |
<style type="text/css">
|
5325 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
5326 |
<?php if(!empty($color)): ?>
|
5327 |
+
color: <?php echo esc_attr($color); ?>;
|
5328 |
<?php endif; ?>
|
5329 |
<?php if(!empty($font_size)): ?>
|
5330 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
5331 |
<?php endif; ?>
|
5332 |
<?php if(!empty($font_family)): ?>
|
5333 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
5334 |
<?php endif; ?>
|
5335 |
<?php if(!empty($margin)): ?>
|
5336 |
+
margin: <?php echo esc_attr($margin); ?>;
|
5337 |
<?php endif; ?>
|
5338 |
<?php if(!empty($text_align)): ?>
|
5339 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
5340 |
<?php endif; ?>
|
5341 |
<?php if(!empty($css)): ?>
|
5342 |
+
<?php echo esc_attr($css); ?>
|
5343 |
<?php endif; ?>
|
5344 |
}
|
5345 |
<?php if(!empty($css_hover)): ?>
|
5346 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
5347 |
+
<?php echo esc_attr($css_hover); ?>
|
5348 |
}
|
5349 |
<?php endif; ?>
|
5350 |
</style>
|
5522 |
|
5523 |
ob_start();
|
5524 |
?>
|
5525 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
5526 |
<?php
|
5527 |
|
5528 |
$html = ob_get_clean();
|
5602 |
|
5603 |
?>
|
5604 |
<style type="text/css">
|
5605 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
5606 |
<?php if(!empty($color)): ?>
|
5607 |
+
color: <?php echo esc_attr($color); ?>;
|
5608 |
<?php endif; ?>
|
5609 |
<?php if(!empty($font_size)): ?>
|
5610 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
5611 |
<?php endif; ?>
|
5612 |
<?php if(!empty($font_family)): ?>
|
5613 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
5614 |
<?php endif; ?>
|
5615 |
<?php if(!empty($margin)): ?>
|
5616 |
+
margin: <?php echo esc_attr($margin); ?>;
|
5617 |
<?php endif; ?>
|
5618 |
<?php if(!empty($text_align)): ?>
|
5619 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
5620 |
<?php endif; ?>
|
5621 |
<?php if(!empty($css)): ?>
|
5622 |
+
<?php echo esc_attr($css); ?>
|
5623 |
<?php endif; ?>
|
5624 |
}
|
5625 |
<?php if(!empty($css_hover)): ?>
|
5626 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
5627 |
+
<?php echo esc_attr($css_hover); ?>
|
5628 |
}
|
5629 |
<?php endif; ?>
|
5630 |
</style>
|
5784 |
|
5785 |
ob_start();
|
5786 |
?>
|
5787 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
5788 |
<?php
|
5789 |
|
5790 |
$html = ob_get_clean();
|
5862 |
|
5863 |
?>
|
5864 |
<style type="text/css">
|
5865 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
5866 |
<?php if(!empty($color)): ?>
|
5867 |
+
color: <?php echo esc_attr($color); ?>;
|
5868 |
<?php endif; ?>
|
5869 |
<?php if(!empty($font_size)): ?>
|
5870 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
5871 |
<?php endif; ?>
|
5872 |
<?php if(!empty($font_family)): ?>
|
5873 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
5874 |
<?php endif; ?>
|
5875 |
<?php if(!empty($margin)): ?>
|
5876 |
+
margin: <?php echo esc_attr($margin); ?>;
|
5877 |
<?php endif; ?>
|
5878 |
<?php if(!empty($text_align)): ?>
|
5879 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
5880 |
<?php endif; ?>
|
5881 |
<?php if(!empty($css)): ?>
|
5882 |
+
<?php echo esc_attr($css); ?>
|
5883 |
<?php endif; ?>
|
5884 |
}
|
5885 |
<?php if(!empty($css_hover)): ?>
|
5886 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
5887 |
+
<?php echo esc_attr($css_hover); ?>
|
5888 |
}
|
5889 |
<?php endif; ?>
|
5890 |
</style>
|
6046 |
|
6047 |
ob_start();
|
6048 |
?>
|
6049 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
6050 |
<?php
|
6051 |
|
6052 |
$html = ob_get_clean();
|
6124 |
|
6125 |
?>
|
6126 |
<style type="text/css">
|
6127 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
6128 |
<?php if(!empty($color)): ?>
|
6129 |
+
color: <?php echo esc_attr($color); ?>;
|
6130 |
<?php endif; ?>
|
6131 |
<?php if(!empty($font_size)): ?>
|
6132 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
6133 |
<?php endif; ?>
|
6134 |
<?php if(!empty($font_family)): ?>
|
6135 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
6136 |
<?php endif; ?>
|
6137 |
<?php if(!empty($margin)): ?>
|
6138 |
+
margin: <?php echo esc_attr($margin); ?>;
|
6139 |
<?php endif; ?>
|
6140 |
<?php if(!empty($text_align)): ?>
|
6141 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
6142 |
<?php endif; ?>
|
6143 |
<?php if(!empty($css)): ?>
|
6144 |
+
<?php echo esc_attr($css); ?>
|
6145 |
<?php endif; ?>
|
6146 |
}
|
6147 |
<?php if(!empty($css_hover)): ?>
|
6148 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
6149 |
+
<?php echo esc_attr($css_hover); ?>
|
6150 |
}
|
6151 |
<?php endif; ?>
|
6152 |
</style>
|
6323 |
|
6324 |
ob_start();
|
6325 |
?>
|
6326 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
6327 |
<?php
|
6328 |
|
6329 |
$html = ob_get_clean();
|
6415 |
|
6416 |
?>
|
6417 |
<style type="text/css">
|
6418 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
6419 |
<?php if(!empty($color)): ?>
|
6420 |
+
color: <?php echo esc_attr($color); ?>;
|
6421 |
<?php endif; ?>
|
6422 |
<?php if(!empty($font_size)): ?>
|
6423 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
6424 |
<?php endif; ?>
|
6425 |
<?php if(!empty($font_family)): ?>
|
6426 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
6427 |
<?php endif; ?>
|
6428 |
<?php if(!empty($margin)): ?>
|
6429 |
+
margin: <?php echo esc_attr($margin); ?>;
|
6430 |
<?php endif; ?>
|
6431 |
<?php if(!empty($text_align)): ?>
|
6432 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
6433 |
<?php endif; ?>
|
6434 |
<?php if(!empty($css)): ?>
|
6435 |
+
<?php echo esc_attr($css); ?>
|
6436 |
<?php endif; ?>
|
6437 |
}
|
6438 |
<?php if(!empty($css_hover)): ?>
|
6439 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
6440 |
+
<?php echo esc_attr($css_hover); ?>
|
6441 |
}
|
6442 |
<?php endif; ?>
|
6443 |
</style>
|
6597 |
|
6598 |
ob_start();
|
6599 |
?>
|
6600 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
6601 |
<?php
|
6602 |
|
6603 |
$html = ob_get_clean();
|
6675 |
|
6676 |
?>
|
6677 |
<style type="text/css">
|
6678 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
6679 |
<?php if(!empty($color)): ?>
|
6680 |
+
color: <?php echo esc_attr($color); ?>;
|
6681 |
<?php endif; ?>
|
6682 |
<?php if(!empty($font_size)): ?>
|
6683 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
6684 |
<?php endif; ?>
|
6685 |
<?php if(!empty($font_family)): ?>
|
6686 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
6687 |
<?php endif; ?>
|
6688 |
<?php if(!empty($margin)): ?>
|
6689 |
+
margin: <?php echo esc_attr($margin); ?>;
|
6690 |
<?php endif; ?>
|
6691 |
<?php if(!empty($text_align)): ?>
|
6692 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
6693 |
<?php endif; ?>
|
6694 |
<?php if(!empty($css)): ?>
|
6695 |
+
<?php echo esc_attr($css); ?>
|
6696 |
<?php endif; ?>
|
6697 |
}
|
6698 |
<?php if(!empty($css_hover)): ?>
|
6699 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
6700 |
+
<?php echo esc_attr($css_hover); ?>
|
6701 |
}
|
6702 |
<?php endif; ?>
|
6703 |
</style>
|
6857 |
|
6858 |
ob_start();
|
6859 |
?>
|
6860 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
6861 |
<?php
|
6862 |
|
6863 |
$html = ob_get_clean();
|
6935 |
|
6936 |
?>
|
6937 |
<style type="text/css">
|
6938 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
6939 |
<?php if(!empty($color)): ?>
|
6940 |
+
color: <?php echo esc_attr($color); ?>;
|
6941 |
<?php endif; ?>
|
6942 |
<?php if(!empty($font_size)): ?>
|
6943 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
6944 |
<?php endif; ?>
|
6945 |
<?php if(!empty($font_family)): ?>
|
6946 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
6947 |
<?php endif; ?>
|
6948 |
<?php if(!empty($margin)): ?>
|
6949 |
+
margin: <?php echo esc_attr($margin); ?>;
|
6950 |
<?php endif; ?>
|
6951 |
<?php if(!empty($text_align)): ?>
|
6952 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
6953 |
<?php endif; ?>
|
6954 |
<?php if(!empty($css)): ?>
|
6955 |
+
<?php echo esc_attr($css); ?>
|
6956 |
<?php endif; ?>
|
6957 |
}
|
6958 |
<?php if(!empty($css_hover)): ?>
|
6959 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
6960 |
+
<?php echo esc_attr($css_hover); ?>
|
6961 |
}
|
6962 |
<?php endif; ?>
|
6963 |
</style>
|
7134 |
|
7135 |
ob_start();
|
7136 |
?>
|
7137 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
7138 |
<?php
|
7139 |
|
7140 |
$html = ob_get_clean();
|
7214 |
|
7215 |
?>
|
7216 |
<style type="text/css">
|
7217 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
7218 |
<?php if(!empty($color)): ?>
|
7219 |
+
color: <?php echo esc_attr($color); ?>;
|
7220 |
<?php endif; ?>
|
7221 |
<?php if(!empty($font_size)): ?>
|
7222 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
7223 |
<?php endif; ?>
|
7224 |
<?php if(!empty($font_family)): ?>
|
7225 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
7226 |
<?php endif; ?>
|
7227 |
<?php if(!empty($margin)): ?>
|
7228 |
+
margin: <?php echo esc_attr($margin); ?>;
|
7229 |
<?php endif; ?>
|
7230 |
<?php if(!empty($text_align)): ?>
|
7231 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
7232 |
<?php endif; ?>
|
7233 |
<?php if(!empty($css)): ?>
|
7234 |
+
<?php echo esc_attr($css); ?>
|
7235 |
<?php endif; ?>
|
7236 |
}
|
7237 |
<?php if(!empty($css_hover)): ?>
|
7238 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
7239 |
+
<?php echo esc_attr($css_hover); ?>
|
7240 |
}
|
7241 |
<?php endif; ?>
|
7242 |
</style>
|
7427 |
|
7428 |
ob_start();
|
7429 |
?>
|
7430 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
7431 |
<?php
|
7432 |
|
7433 |
$html = ob_get_clean();
|
7542 |
|
7543 |
?>
|
7544 |
<style type="text/css">
|
7545 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
7546 |
<?php if(!empty($color)): ?>
|
7547 |
+
color: <?php echo esc_attr($color); ?>;
|
7548 |
<?php endif; ?>
|
7549 |
<?php if(!empty($font_size)): ?>
|
7550 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
7551 |
<?php endif; ?>
|
7552 |
<?php if(!empty($font_family)): ?>
|
7553 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
7554 |
<?php endif; ?>
|
7555 |
<?php if(!empty($margin)): ?>
|
7556 |
+
margin: <?php echo esc_attr($margin); ?>;
|
7557 |
<?php endif; ?>
|
7558 |
<?php if(!empty($text_align)): ?>
|
7559 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
7560 |
<?php endif; ?>
|
7561 |
<?php if(!empty($css)): ?>
|
7562 |
+
<?php echo esc_attr($css); ?>
|
7563 |
<?php endif; ?>
|
7564 |
}
|
7565 |
<?php if(!empty($css_hover)): ?>
|
7566 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
7567 |
+
<?php echo esc_attr($css_hover); ?>
|
7568 |
}
|
7569 |
<?php endif; ?>
|
7570 |
</style>
|
7742 |
|
7743 |
ob_start();
|
7744 |
?>
|
7745 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
7746 |
<?php
|
7747 |
|
7748 |
$html = ob_get_clean();
|
7824 |
|
7825 |
?>
|
7826 |
<style type="text/css">
|
7827 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
7828 |
<?php if(!empty($color)): ?>
|
7829 |
+
color: <?php echo esc_attr($color); ?>;
|
7830 |
<?php endif; ?>
|
7831 |
<?php if(!empty($font_size)): ?>
|
7832 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
7833 |
<?php endif; ?>
|
7834 |
<?php if(!empty($font_family)): ?>
|
7835 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
7836 |
<?php endif; ?>
|
7837 |
<?php if(!empty($margin)): ?>
|
7838 |
+
margin: <?php echo esc_attr($margin); ?>;
|
7839 |
<?php endif; ?>
|
7840 |
<?php if(!empty($text_align)): ?>
|
7841 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
7842 |
<?php endif; ?>
|
7843 |
<?php if(!empty($css)): ?>
|
7844 |
+
<?php echo esc_attr($css); ?>
|
7845 |
<?php endif; ?>
|
7846 |
}
|
7847 |
<?php if(!empty($css_hover)): ?>
|
7848 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
7849 |
+
<?php echo esc_attr($css_hover); ?>
|
7850 |
}
|
7851 |
<?php endif; ?>
|
7852 |
</style>
|
includes/layout-elements/wp-job-manager/layout-elements.php
CHANGED
@@ -178,7 +178,7 @@ function post_grid_layout_element_option_wpjobmanager_location($parameters){
|
|
178 |
|
179 |
ob_start();
|
180 |
?>
|
181 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
182 |
<?php
|
183 |
|
184 |
$html = ob_get_clean();
|
@@ -229,7 +229,7 @@ function post_grid_layout_element_wpjobmanager_location($args){
|
|
229 |
|
230 |
?>
|
231 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wpjobmanager_location ">
|
232 |
-
<?php echo ($meta_value); ?>
|
233 |
</div>
|
234 |
<?php
|
235 |
endif;
|
@@ -257,29 +257,29 @@ function post_grid_layout_element_css_wpjobmanager_location($args){
|
|
257 |
|
258 |
?>
|
259 |
<style type="text/css">
|
260 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
261 |
<?php if(!empty($color)): ?>
|
262 |
-
color: <?php echo $color; ?>;
|
263 |
<?php endif; ?>
|
264 |
<?php if(!empty($font_size)): ?>
|
265 |
-
font-size: <?php echo $font_size; ?>;
|
266 |
<?php endif; ?>
|
267 |
<?php if(!empty($font_family)): ?>
|
268 |
-
font-family: <?php echo $font_family; ?>;
|
269 |
<?php endif; ?>
|
270 |
<?php if(!empty($margin)): ?>
|
271 |
-
margin: <?php echo $margin; ?>;
|
272 |
<?php endif; ?>
|
273 |
<?php if(!empty($text_align)): ?>
|
274 |
-
text-align: <?php echo $text_align; ?>;
|
275 |
<?php endif; ?>
|
276 |
<?php if(!empty($css)): ?>
|
277 |
-
<?php echo $css; ?>
|
278 |
<?php endif; ?>
|
279 |
}
|
280 |
<?php if(!empty($css_hover)): ?>
|
281 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
282 |
-
<?php echo $css_hover; ?>
|
283 |
}
|
284 |
<?php endif; ?>
|
285 |
</style>
|
@@ -441,7 +441,7 @@ function post_grid_layout_element_option_wpjobmanager_company_name($parameters){
|
|
441 |
|
442 |
ob_start();
|
443 |
?>
|
444 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
445 |
<?php
|
446 |
|
447 |
$html = ob_get_clean();
|
@@ -492,7 +492,7 @@ function post_grid_layout_element_wpjobmanager_company_name($args){
|
|
492 |
|
493 |
?>
|
494 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wpjobmanager_company_name ">
|
495 |
-
<?php echo ($meta_value); ?>
|
496 |
</div>
|
497 |
<?php
|
498 |
endif;
|
@@ -520,29 +520,29 @@ function post_grid_layout_element_css_wpjobmanager_company_name($args){
|
|
520 |
|
521 |
?>
|
522 |
<style type="text/css">
|
523 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
524 |
<?php if(!empty($color)): ?>
|
525 |
-
color: <?php echo $color; ?>;
|
526 |
<?php endif; ?>
|
527 |
<?php if(!empty($font_size)): ?>
|
528 |
-
font-size: <?php echo $font_size; ?>;
|
529 |
<?php endif; ?>
|
530 |
<?php if(!empty($font_family)): ?>
|
531 |
-
font-family: <?php echo $font_family; ?>;
|
532 |
<?php endif; ?>
|
533 |
<?php if(!empty($margin)): ?>
|
534 |
-
margin: <?php echo $margin; ?>;
|
535 |
<?php endif; ?>
|
536 |
<?php if(!empty($text_align)): ?>
|
537 |
-
text-align: <?php echo $text_align; ?>;
|
538 |
<?php endif; ?>
|
539 |
<?php if(!empty($css)): ?>
|
540 |
-
<?php echo $css; ?>
|
541 |
<?php endif; ?>
|
542 |
}
|
543 |
<?php if(!empty($css_hover)): ?>
|
544 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
545 |
-
<?php echo $css_hover; ?>
|
546 |
}
|
547 |
<?php endif; ?>
|
548 |
</style>
|
@@ -703,7 +703,7 @@ function post_grid_layout_element_option_wpjobmanager_company_website($parameter
|
|
703 |
|
704 |
ob_start();
|
705 |
?>
|
706 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
707 |
<?php
|
708 |
|
709 |
$html = ob_get_clean();
|
@@ -754,7 +754,7 @@ function post_grid_layout_element_wpjobmanager_company_website($args){
|
|
754 |
|
755 |
?>
|
756 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wpjobmanager_company_website ">
|
757 |
-
<?php echo ($meta_value); ?>
|
758 |
</div>
|
759 |
<?php
|
760 |
endif;
|
@@ -782,29 +782,29 @@ function post_grid_layout_element_css_wpjobmanager_company_website($args){
|
|
782 |
|
783 |
?>
|
784 |
<style type="text/css">
|
785 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
786 |
<?php if(!empty($color)): ?>
|
787 |
-
color: <?php echo $color; ?>;
|
788 |
<?php endif; ?>
|
789 |
<?php if(!empty($font_size)): ?>
|
790 |
-
font-size: <?php echo $font_size; ?>;
|
791 |
<?php endif; ?>
|
792 |
<?php if(!empty($font_family)): ?>
|
793 |
-
font-family: <?php echo $font_family; ?>;
|
794 |
<?php endif; ?>
|
795 |
<?php if(!empty($margin)): ?>
|
796 |
-
margin: <?php echo $margin; ?>;
|
797 |
<?php endif; ?>
|
798 |
<?php if(!empty($text_align)): ?>
|
799 |
-
text-align: <?php echo $text_align; ?>;
|
800 |
<?php endif; ?>
|
801 |
<?php if(!empty($css)): ?>
|
802 |
-
<?php echo $css; ?>
|
803 |
<?php endif; ?>
|
804 |
}
|
805 |
<?php if(!empty($css_hover)): ?>
|
806 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
807 |
-
<?php echo $css_hover; ?>
|
808 |
}
|
809 |
<?php endif; ?>
|
810 |
</style>
|
@@ -966,7 +966,7 @@ function post_grid_layout_element_option_wpjobmanager_company_tagline($parameter
|
|
966 |
|
967 |
ob_start();
|
968 |
?>
|
969 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
970 |
<?php
|
971 |
|
972 |
$html = ob_get_clean();
|
@@ -1017,7 +1017,7 @@ function post_grid_layout_element_wpjobmanager_company_tagline($args){
|
|
1017 |
|
1018 |
?>
|
1019 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wpjobmanager_company_tagline ">
|
1020 |
-
<?php echo ($meta_value); ?>
|
1021 |
</div>
|
1022 |
<?php
|
1023 |
endif;
|
@@ -1045,29 +1045,29 @@ function post_grid_layout_element_css_wpjobmanager_company_tagline($args){
|
|
1045 |
|
1046 |
?>
|
1047 |
<style type="text/css">
|
1048 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
1049 |
<?php if(!empty($color)): ?>
|
1050 |
-
color: <?php echo $color; ?>;
|
1051 |
<?php endif; ?>
|
1052 |
<?php if(!empty($font_size)): ?>
|
1053 |
-
font-size: <?php echo $font_size; ?>;
|
1054 |
<?php endif; ?>
|
1055 |
<?php if(!empty($font_family)): ?>
|
1056 |
-
font-family: <?php echo $font_family; ?>;
|
1057 |
<?php endif; ?>
|
1058 |
<?php if(!empty($margin)): ?>
|
1059 |
-
margin: <?php echo $margin; ?>;
|
1060 |
<?php endif; ?>
|
1061 |
<?php if(!empty($text_align)): ?>
|
1062 |
-
text-align: <?php echo $text_align; ?>;
|
1063 |
<?php endif; ?>
|
1064 |
<?php if(!empty($css)): ?>
|
1065 |
-
<?php echo $css; ?>
|
1066 |
<?php endif; ?>
|
1067 |
}
|
1068 |
<?php if(!empty($css_hover)): ?>
|
1069 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
1070 |
-
<?php echo $css_hover; ?>
|
1071 |
}
|
1072 |
<?php endif; ?>
|
1073 |
</style>
|
@@ -1229,7 +1229,7 @@ function post_grid_layout_element_option_wpjobmanager_job_expires($parameters){
|
|
1229 |
|
1230 |
ob_start();
|
1231 |
?>
|
1232 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
1233 |
<?php
|
1234 |
|
1235 |
$html = ob_get_clean();
|
@@ -1282,7 +1282,7 @@ function post_grid_layout_element_wpjobmanager_job_expires($args){
|
|
1282 |
|
1283 |
?>
|
1284 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wpjobmanager_job_expires ">
|
1285 |
-
<?php echo ($meta_value); ?>
|
1286 |
</div>
|
1287 |
<?php
|
1288 |
endif;
|
@@ -1310,29 +1310,29 @@ function post_grid_layout_element_css_wpjobmanager_job_expires($args){
|
|
1310 |
|
1311 |
?>
|
1312 |
<style type="text/css">
|
1313 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
1314 |
<?php if(!empty($color)): ?>
|
1315 |
-
color: <?php echo $color; ?>;
|
1316 |
<?php endif; ?>
|
1317 |
<?php if(!empty($font_size)): ?>
|
1318 |
-
font-size: <?php echo $font_size; ?>;
|
1319 |
<?php endif; ?>
|
1320 |
<?php if(!empty($font_family)): ?>
|
1321 |
-
font-family: <?php echo $font_family; ?>;
|
1322 |
<?php endif; ?>
|
1323 |
<?php if(!empty($margin)): ?>
|
1324 |
-
margin: <?php echo $margin; ?>;
|
1325 |
<?php endif; ?>
|
1326 |
<?php if(!empty($text_align)): ?>
|
1327 |
-
text-align: <?php echo $text_align; ?>;
|
1328 |
<?php endif; ?>
|
1329 |
<?php if(!empty($css)): ?>
|
1330 |
-
<?php echo $css; ?>
|
1331 |
<?php endif; ?>
|
1332 |
}
|
1333 |
<?php if(!empty($css_hover)): ?>
|
1334 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
1335 |
-
<?php echo $css_hover; ?>
|
1336 |
}
|
1337 |
<?php endif; ?>
|
1338 |
</style>
|
178 |
|
179 |
ob_start();
|
180 |
?>
|
181 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
182 |
<?php
|
183 |
|
184 |
$html = ob_get_clean();
|
229 |
|
230 |
?>
|
231 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wpjobmanager_location ">
|
232 |
+
<?php echo esc_html($meta_value); ?>
|
233 |
</div>
|
234 |
<?php
|
235 |
endif;
|
257 |
|
258 |
?>
|
259 |
<style type="text/css">
|
260 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
261 |
<?php if(!empty($color)): ?>
|
262 |
+
color: <?php echo esc_attr($color); ?>;
|
263 |
<?php endif; ?>
|
264 |
<?php if(!empty($font_size)): ?>
|
265 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
266 |
<?php endif; ?>
|
267 |
<?php if(!empty($font_family)): ?>
|
268 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
269 |
<?php endif; ?>
|
270 |
<?php if(!empty($margin)): ?>
|
271 |
+
margin: <?php echo esc_attr($margin); ?>;
|
272 |
<?php endif; ?>
|
273 |
<?php if(!empty($text_align)): ?>
|
274 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
275 |
<?php endif; ?>
|
276 |
<?php if(!empty($css)): ?>
|
277 |
+
<?php echo esc_attr($css); ?>
|
278 |
<?php endif; ?>
|
279 |
}
|
280 |
<?php if(!empty($css_hover)): ?>
|
281 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
282 |
+
<?php echo esc_attr($css_hover); ?>
|
283 |
}
|
284 |
<?php endif; ?>
|
285 |
</style>
|
441 |
|
442 |
ob_start();
|
443 |
?>
|
444 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
445 |
<?php
|
446 |
|
447 |
$html = ob_get_clean();
|
492 |
|
493 |
?>
|
494 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wpjobmanager_company_name ">
|
495 |
+
<?php echo esc_html($meta_value); ?>
|
496 |
</div>
|
497 |
<?php
|
498 |
endif;
|
520 |
|
521 |
?>
|
522 |
<style type="text/css">
|
523 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
524 |
<?php if(!empty($color)): ?>
|
525 |
+
color: <?php echo esc_attr($color); ?>;
|
526 |
<?php endif; ?>
|
527 |
<?php if(!empty($font_size)): ?>
|
528 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
529 |
<?php endif; ?>
|
530 |
<?php if(!empty($font_family)): ?>
|
531 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
532 |
<?php endif; ?>
|
533 |
<?php if(!empty($margin)): ?>
|
534 |
+
margin: <?php echo esc_attr($margin); ?>;
|
535 |
<?php endif; ?>
|
536 |
<?php if(!empty($text_align)): ?>
|
537 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
538 |
<?php endif; ?>
|
539 |
<?php if(!empty($css)): ?>
|
540 |
+
<?php echo esc_attr($css); ?>
|
541 |
<?php endif; ?>
|
542 |
}
|
543 |
<?php if(!empty($css_hover)): ?>
|
544 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
545 |
+
<?php echo esc_attr($css_hover); ?>
|
546 |
}
|
547 |
<?php endif; ?>
|
548 |
</style>
|
703 |
|
704 |
ob_start();
|
705 |
?>
|
706 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
707 |
<?php
|
708 |
|
709 |
$html = ob_get_clean();
|
754 |
|
755 |
?>
|
756 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wpjobmanager_company_website ">
|
757 |
+
<?php echo esc_html($meta_value); ?>
|
758 |
</div>
|
759 |
<?php
|
760 |
endif;
|
782 |
|
783 |
?>
|
784 |
<style type="text/css">
|
785 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
786 |
<?php if(!empty($color)): ?>
|
787 |
+
color: <?php echo esc_attr($color); ?>;
|
788 |
<?php endif; ?>
|
789 |
<?php if(!empty($font_size)): ?>
|
790 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
791 |
<?php endif; ?>
|
792 |
<?php if(!empty($font_family)): ?>
|
793 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
794 |
<?php endif; ?>
|
795 |
<?php if(!empty($margin)): ?>
|
796 |
+
margin: <?php echo esc_attr($margin); ?>;
|
797 |
<?php endif; ?>
|
798 |
<?php if(!empty($text_align)): ?>
|
799 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
800 |
<?php endif; ?>
|
801 |
<?php if(!empty($css)): ?>
|
802 |
+
<?php echo esc_attr($css); ?>
|
803 |
<?php endif; ?>
|
804 |
}
|
805 |
<?php if(!empty($css_hover)): ?>
|
806 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
807 |
+
<?php echo esc_attr($css_hover); ?>
|
808 |
}
|
809 |
<?php endif; ?>
|
810 |
</style>
|
966 |
|
967 |
ob_start();
|
968 |
?>
|
969 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
970 |
<?php
|
971 |
|
972 |
$html = ob_get_clean();
|
1017 |
|
1018 |
?>
|
1019 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wpjobmanager_company_tagline ">
|
1020 |
+
<?php echo esc_html($meta_value); ?>
|
1021 |
</div>
|
1022 |
<?php
|
1023 |
endif;
|
1045 |
|
1046 |
?>
|
1047 |
<style type="text/css">
|
1048 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
1049 |
<?php if(!empty($color)): ?>
|
1050 |
+
color: <?php echo esc_attr($color); ?>;
|
1051 |
<?php endif; ?>
|
1052 |
<?php if(!empty($font_size)): ?>
|
1053 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
1054 |
<?php endif; ?>
|
1055 |
<?php if(!empty($font_family)): ?>
|
1056 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
1057 |
<?php endif; ?>
|
1058 |
<?php if(!empty($margin)): ?>
|
1059 |
+
margin: <?php echo esc_attr($margin); ?>;
|
1060 |
<?php endif; ?>
|
1061 |
<?php if(!empty($text_align)): ?>
|
1062 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
1063 |
<?php endif; ?>
|
1064 |
<?php if(!empty($css)): ?>
|
1065 |
+
<?php echo esc_attr($css); ?>
|
1066 |
<?php endif; ?>
|
1067 |
}
|
1068 |
<?php if(!empty($css_hover)): ?>
|
1069 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1070 |
+
<?php echo esc_attr($css_hover); ?>
|
1071 |
}
|
1072 |
<?php endif; ?>
|
1073 |
</style>
|
1229 |
|
1230 |
ob_start();
|
1231 |
?>
|
1232 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
1233 |
<?php
|
1234 |
|
1235 |
$html = ob_get_clean();
|
1282 |
|
1283 |
?>
|
1284 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wpjobmanager_job_expires ">
|
1285 |
+
<?php echo esc_html($meta_value); ?>
|
1286 |
</div>
|
1287 |
<?php
|
1288 |
endif;
|
1310 |
|
1311 |
?>
|
1312 |
<style type="text/css">
|
1313 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
1314 |
<?php if(!empty($color)): ?>
|
1315 |
+
color: <?php echo esc_attr($color); ?>;
|
1316 |
<?php endif; ?>
|
1317 |
<?php if(!empty($font_size)): ?>
|
1318 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
1319 |
<?php endif; ?>
|
1320 |
<?php if(!empty($font_family)): ?>
|
1321 |
+
font-family: <?php echo esc_attr($font_family); ?>;
|
1322 |
<?php endif; ?>
|
1323 |
<?php if(!empty($margin)): ?>
|
1324 |
+
margin: <?php echo esc_attr($margin); ?>;
|
1325 |
<?php endif; ?>
|
1326 |
<?php if(!empty($text_align)): ?>
|
1327 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
1328 |
<?php endif; ?>
|
1329 |
<?php if(!empty($css)): ?>
|
1330 |
+
<?php echo esc_attr($css); ?>
|
1331 |
<?php endif; ?>
|
1332 |
}
|
1333 |
<?php if(!empty($css_hover)): ?>
|
1334 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1335 |
+
<?php echo esc_attr($css_hover); ?>
|
1336 |
}
|
1337 |
<?php endif; ?>
|
1338 |
</style>
|
includes/layout-elements/wp-postratings/layout-elements.php
CHANGED
@@ -149,7 +149,7 @@ function post_grid_layout_element_option_wp_postratings($parameters){
|
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
@@ -222,27 +222,27 @@ function post_grid_layout_element_css_wp_postratings($args){
|
|
222 |
|
223 |
?>
|
224 |
<style type="text/css">
|
225 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
226 |
<?php if(!empty($color)): ?>
|
227 |
-
color: <?php echo $color; ?>;
|
228 |
<?php endif; ?>
|
229 |
<?php if(!empty($font_size)): ?>
|
230 |
-
font-size: <?php echo $font_size; ?>;
|
231 |
<?php endif; ?>
|
232 |
|
233 |
<?php if(!empty($margin)): ?>
|
234 |
-
margin: <?php echo $margin; ?>;
|
235 |
<?php endif; ?>
|
236 |
<?php if(!empty($text_align)): ?>
|
237 |
-
text-align: <?php echo $text_align; ?>;
|
238 |
<?php endif; ?>
|
239 |
<?php if(!empty($css)): ?>
|
240 |
-
<?php echo $css; ?>
|
241 |
<?php endif; ?>
|
242 |
}
|
243 |
<?php if(!empty($css_hover)): ?>
|
244 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
245 |
-
<?php echo $css_hover; ?>
|
246 |
}
|
247 |
<?php endif; ?>
|
248 |
</style>
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
222 |
|
223 |
?>
|
224 |
<style type="text/css">
|
225 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
226 |
<?php if(!empty($color)): ?>
|
227 |
+
color: <?php echo esc_attr($color); ?>;
|
228 |
<?php endif; ?>
|
229 |
<?php if(!empty($font_size)): ?>
|
230 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
231 |
<?php endif; ?>
|
232 |
|
233 |
<?php if(!empty($margin)): ?>
|
234 |
+
margin: <?php echo esc_attr($margin); ?>;
|
235 |
<?php endif; ?>
|
236 |
<?php if(!empty($text_align)): ?>
|
237 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
238 |
<?php endif; ?>
|
239 |
<?php if(!empty($css)): ?>
|
240 |
+
<?php echo esc_attr($css); ?>
|
241 |
<?php endif; ?>
|
242 |
}
|
243 |
<?php if(!empty($css_hover)): ?>
|
244 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
245 |
+
<?php echo esc_attr($css_hover); ?>
|
246 |
}
|
247 |
<?php endif; ?>
|
248 |
</style>
|
includes/layout-elements/wp-postviews/layout-elements.php
CHANGED
@@ -149,7 +149,7 @@ function post_grid_layout_element_option_wp_postviews($parameters){
|
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
@@ -197,7 +197,7 @@ function post_grid_layout_element_wp_postviews($args){
|
|
197 |
|
198 |
?>
|
199 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wp_postviews ">
|
200 |
-
<?php echo $html; ?>
|
201 |
</div>
|
202 |
<?php
|
203 |
// endif;
|
@@ -224,27 +224,27 @@ function post_grid_layout_element_css_wp_postviews($args){
|
|
224 |
|
225 |
?>
|
226 |
<style type="text/css">
|
227 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
228 |
<?php if(!empty($color)): ?>
|
229 |
-
color: <?php echo $color; ?>;
|
230 |
<?php endif; ?>
|
231 |
<?php if(!empty($font_size)): ?>
|
232 |
-
font-size: <?php echo $font_size; ?>;
|
233 |
<?php endif; ?>
|
234 |
|
235 |
<?php if(!empty($margin)): ?>
|
236 |
-
margin: <?php echo $margin; ?>;
|
237 |
<?php endif; ?>
|
238 |
<?php if(!empty($text_align)): ?>
|
239 |
-
text-align: <?php echo $text_align; ?>;
|
240 |
<?php endif; ?>
|
241 |
<?php if(!empty($css)): ?>
|
242 |
-
<?php echo $css; ?>
|
243 |
<?php endif; ?>
|
244 |
}
|
245 |
<?php if(!empty($css_hover)): ?>
|
246 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
247 |
-
<?php echo $css_hover; ?>
|
248 |
}
|
249 |
<?php endif; ?>
|
250 |
</style>
|
149 |
|
150 |
ob_start();
|
151 |
?>
|
152 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
153 |
<?php
|
154 |
|
155 |
$html = ob_get_clean();
|
197 |
|
198 |
?>
|
199 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> wp_postviews ">
|
200 |
+
<?php echo esc_html($html); ?>
|
201 |
</div>
|
202 |
<?php
|
203 |
// endif;
|
224 |
|
225 |
?>
|
226 |
<style type="text/css">
|
227 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
228 |
<?php if(!empty($color)): ?>
|
229 |
+
color: <?php echo esc_attr($color); ?>;
|
230 |
<?php endif; ?>
|
231 |
<?php if(!empty($font_size)): ?>
|
232 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
233 |
<?php endif; ?>
|
234 |
|
235 |
<?php if(!empty($margin)): ?>
|
236 |
+
margin: <?php echo esc_attr($margin); ?>;
|
237 |
<?php endif; ?>
|
238 |
<?php if(!empty($text_align)): ?>
|
239 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
240 |
<?php endif; ?>
|
241 |
<?php if(!empty($css)): ?>
|
242 |
+
<?php echo esc_attr($css); ?>
|
243 |
<?php endif; ?>
|
244 |
}
|
245 |
<?php if(!empty($css_hover)): ?>
|
246 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
247 |
+
<?php echo esc_attr($css_hover); ?>
|
248 |
}
|
249 |
<?php endif; ?>
|
250 |
</style>
|
includes/layout-elements/yet-another-stars-rating/layout-elements.php
CHANGED
@@ -192,7 +192,7 @@ function post_grid_layout_element_option_yasr_visitor_votes($parameters){
|
|
192 |
|
193 |
ob_start();
|
194 |
?>
|
195 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
196 |
<?php
|
197 |
|
198 |
$html = ob_get_clean();
|
@@ -264,27 +264,27 @@ function post_grid_layout_element_css_yasr_visitor_votes($args){
|
|
264 |
|
265 |
?>
|
266 |
<style type="text/css">
|
267 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
268 |
<?php if(!empty($color)): ?>
|
269 |
-
color: <?php echo $color; ?>;
|
270 |
<?php endif; ?>
|
271 |
<?php if(!empty($font_size)): ?>
|
272 |
-
font-size: <?php echo $font_size; ?>;
|
273 |
<?php endif; ?>
|
274 |
|
275 |
<?php if(!empty($margin)): ?>
|
276 |
-
margin: <?php echo $margin; ?>;
|
277 |
<?php endif; ?>
|
278 |
<?php if(!empty($text_align)): ?>
|
279 |
-
text-align: <?php echo $text_align; ?>;
|
280 |
<?php endif; ?>
|
281 |
<?php if(!empty($css)): ?>
|
282 |
-
<?php echo $css; ?>
|
283 |
<?php endif; ?>
|
284 |
}
|
285 |
<?php if(!empty($css_hover)): ?>
|
286 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
287 |
-
<?php echo $css_hover; ?>
|
288 |
}
|
289 |
<?php endif; ?>
|
290 |
</style>
|
@@ -436,7 +436,7 @@ function post_grid_layout_element_option_yasr_overall_rating($parameters){
|
|
436 |
|
437 |
ob_start();
|
438 |
?>
|
439 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
440 |
<?php
|
441 |
|
442 |
$html = ob_get_clean();
|
@@ -508,27 +508,27 @@ function post_grid_layout_element_css_yasr_overall_rating($args){
|
|
508 |
|
509 |
?>
|
510 |
<style type="text/css">
|
511 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
512 |
<?php if(!empty($color)): ?>
|
513 |
-
color: <?php echo $color; ?>;
|
514 |
<?php endif; ?>
|
515 |
<?php if(!empty($font_size)): ?>
|
516 |
-
font-size: <?php echo $font_size; ?>;
|
517 |
<?php endif; ?>
|
518 |
|
519 |
<?php if(!empty($margin)): ?>
|
520 |
-
margin: <?php echo $margin; ?>;
|
521 |
<?php endif; ?>
|
522 |
<?php if(!empty($text_align)): ?>
|
523 |
-
text-align: <?php echo $text_align; ?>;
|
524 |
<?php endif; ?>
|
525 |
<?php if(!empty($css)): ?>
|
526 |
-
<?php echo $css; ?>
|
527 |
<?php endif; ?>
|
528 |
}
|
529 |
<?php if(!empty($css_hover)): ?>
|
530 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
531 |
-
<?php echo $css_hover; ?>
|
532 |
}
|
533 |
<?php endif; ?>
|
534 |
</style>
|
192 |
|
193 |
ob_start();
|
194 |
?>
|
195 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
196 |
<?php
|
197 |
|
198 |
$html = ob_get_clean();
|
264 |
|
265 |
?>
|
266 |
<style type="text/css">
|
267 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
268 |
<?php if(!empty($color)): ?>
|
269 |
+
color: <?php echo esc_attr($color); ?>;
|
270 |
<?php endif; ?>
|
271 |
<?php if(!empty($font_size)): ?>
|
272 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
273 |
<?php endif; ?>
|
274 |
|
275 |
<?php if(!empty($margin)): ?>
|
276 |
+
margin: <?php echo esc_attr($margin); ?>;
|
277 |
<?php endif; ?>
|
278 |
<?php if(!empty($text_align)): ?>
|
279 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
280 |
<?php endif; ?>
|
281 |
<?php if(!empty($css)): ?>
|
282 |
+
<?php echo esc_attr($css); ?>
|
283 |
<?php endif; ?>
|
284 |
}
|
285 |
<?php if(!empty($css_hover)): ?>
|
286 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
287 |
+
<?php echo esc_attr($css_hover); ?>
|
288 |
}
|
289 |
<?php endif; ?>
|
290 |
</style>
|
436 |
|
437 |
ob_start();
|
438 |
?>
|
439 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
440 |
<?php
|
441 |
|
442 |
$html = ob_get_clean();
|
508 |
|
509 |
?>
|
510 |
<style type="text/css">
|
511 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
512 |
<?php if(!empty($color)): ?>
|
513 |
+
color: <?php echo esc_attr($color); ?>;
|
514 |
<?php endif; ?>
|
515 |
<?php if(!empty($font_size)): ?>
|
516 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
517 |
<?php endif; ?>
|
518 |
|
519 |
<?php if(!empty($margin)): ?>
|
520 |
+
margin: <?php echo esc_attr($margin); ?>;
|
521 |
<?php endif; ?>
|
522 |
<?php if(!empty($text_align)): ?>
|
523 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
524 |
<?php endif; ?>
|
525 |
<?php if(!empty($css)): ?>
|
526 |
+
<?php echo esc_attr($css); ?>
|
527 |
<?php endif; ?>
|
528 |
}
|
529 |
<?php if(!empty($css_hover)): ?>
|
530 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
531 |
+
<?php echo esc_attr($css_hover); ?>
|
532 |
}
|
533 |
<?php endif; ?>
|
534 |
</style>
|
includes/layout-elements/yith-woocommerce-wishlist/layout-elements.php
CHANGED
@@ -143,7 +143,7 @@ function post_grid_layout_element_option_yith_add_to_wishlist($parameters){
|
|
143 |
|
144 |
ob_start();
|
145 |
?>
|
146 |
-
<textarea readonly type="text" onclick="this.select();">.element_<?php echo $element_index?>{}</textarea>
|
147 |
<?php
|
148 |
|
149 |
$html = ob_get_clean();
|
@@ -214,35 +214,35 @@ function post_grid_layout_element_css_yith_add_to_wishlist($args){
|
|
214 |
|
215 |
?>
|
216 |
<style type="text/css">
|
217 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>{
|
218 |
<?php if(!empty($color)): ?>
|
219 |
-
color: <?php echo $color; ?>;
|
220 |
<?php endif; ?>
|
221 |
<?php if(!empty($font_size)): ?>
|
222 |
-
font-size: <?php echo $font_size; ?>;
|
223 |
<?php endif; ?>
|
224 |
|
225 |
<?php if(!empty($margin)): ?>
|
226 |
-
margin: <?php echo $margin; ?>;
|
227 |
<?php endif; ?>
|
228 |
<?php if(!empty($text_align)): ?>
|
229 |
-
text-align: <?php echo $text_align; ?>;
|
230 |
<?php endif; ?>
|
231 |
<?php if(!empty($css)): ?>
|
232 |
-
<?php echo $css; ?>
|
233 |
<?php endif; ?>
|
234 |
}
|
235 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?> a{
|
236 |
<?php if(!empty($color)): ?>
|
237 |
-
color: <?php echo $color; ?>;
|
238 |
<?php endif; ?>
|
239 |
<?php if(!empty($font_size)): ?>
|
240 |
-
font-size: <?php echo $font_size; ?>;
|
241 |
<?php endif; ?>
|
242 |
}
|
243 |
<?php if(!empty($css_hover)): ?>
|
244 |
-
.layout-<?php echo $layout_id; ?> .element_<?php echo $index; ?>:hover{
|
245 |
-
<?php echo $css_hover; ?>
|
246 |
}
|
247 |
<?php endif; ?>
|
248 |
</style>
|
143 |
|
144 |
ob_start();
|
145 |
?>
|
146 |
+
<textarea readonly type="text" onclick="this.select();">.element_<?php echo esc_attr($element_index); ?>{}</textarea>
|
147 |
<?php
|
148 |
|
149 |
$html = ob_get_clean();
|
214 |
|
215 |
?>
|
216 |
<style type="text/css">
|
217 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>{
|
218 |
<?php if(!empty($color)): ?>
|
219 |
+
color: <?php echo esc_attr($color); ?>;
|
220 |
<?php endif; ?>
|
221 |
<?php if(!empty($font_size)): ?>
|
222 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
223 |
<?php endif; ?>
|
224 |
|
225 |
<?php if(!empty($margin)): ?>
|
226 |
+
margin: <?php echo esc_attr($margin); ?>;
|
227 |
<?php endif; ?>
|
228 |
<?php if(!empty($text_align)): ?>
|
229 |
+
text-align: <?php echo esc_attr($text_align); ?>;
|
230 |
<?php endif; ?>
|
231 |
<?php if(!empty($css)): ?>
|
232 |
+
<?php echo esc_attr($css); ?>
|
233 |
<?php endif; ?>
|
234 |
}
|
235 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
236 |
<?php if(!empty($color)): ?>
|
237 |
+
color: <?php echo esc_attr($color); ?>;
|
238 |
<?php endif; ?>
|
239 |
<?php if(!empty($font_size)): ?>
|
240 |
+
font-size: <?php echo esc_attr($font_size); ?>;
|
241 |
<?php endif; ?>
|
242 |
}
|
243 |
<?php if(!empty($css_hover)): ?>
|
244 |
+
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
245 |
+
<?php echo esc_attr($css_hover); ?>
|
246 |
}
|
247 |
<?php endif; ?>
|
248 |
</style>
|
includes/menu/addons.php
CHANGED
@@ -9,7 +9,7 @@ $addons_list = $class_post_grid_functions->addons_list();
|
|
9 |
|
10 |
?>
|
11 |
<div class="wrap">
|
12 |
-
<div id="icon-tools" class="icon32"><br></div><h2><?php echo sprintf(__('%s - Extensions', 'post-grid'), post_grid_plugin_name)?></h2>
|
13 |
|
14 |
|
15 |
<div class="addon-list">
|
@@ -30,7 +30,7 @@ $addons_list = $class_post_grid_functions->addons_list();
|
|
30 |
<div class="thumb-wrap">
|
31 |
<a href="<?php echo esc_url_raw($item_link); ?>"><img src="<?php echo esc_url_raw($addon_thumb); ?>"></a>
|
32 |
</div>
|
33 |
-
<div class="addon-title"><a class="addon-link" href="<?php echo esc_url_raw($item_link); ?>"><?php echo $addon_title;?></a></div>
|
34 |
<?php if(!empty($zip_link)): ?>
|
35 |
<div class="addon-link button"><a href="<?php echo esc_url_raw($zip_link); ?>">Download</a> </div>
|
36 |
<?php endif; ?>
|
9 |
|
10 |
?>
|
11 |
<div class="wrap">
|
12 |
+
<div id="icon-tools" class="icon32"><br></div><h2><?php echo esc_html(sprintf(__('%s - Extensions', 'post-grid'), post_grid_plugin_name)); ?></h2>
|
13 |
|
14 |
|
15 |
<div class="addon-list">
|
30 |
<div class="thumb-wrap">
|
31 |
<a href="<?php echo esc_url_raw($item_link); ?>"><img src="<?php echo esc_url_raw($addon_thumb); ?>"></a>
|
32 |
</div>
|
33 |
+
<div class="addon-title"><a class="addon-link" href="<?php echo esc_url_raw($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_raw($zip_link); ?>">Download</a> </div>
|
36 |
<?php endif; ?>
|
includes/menu/data-update.php
CHANGED
@@ -17,7 +17,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
17 |
|
18 |
<div class="wrap">
|
19 |
|
20 |
-
<div id="icon-tools" class="icon32"><br></div><?php echo "<h2>".sprintf(__('%s - Data Update', 'post-grid'), post_grid_plugin_name)."</h2>";?>
|
21 |
|
22 |
|
23 |
<div class=" post-grid-settings">
|
@@ -84,7 +84,6 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
84 |
<li><?php echo get_the_title(); ?></li>
|
85 |
<?php
|
86 |
|
87 |
-
//echo $post_id;
|
88 |
endwhile;
|
89 |
?>
|
90 |
</ul>
|
17 |
|
18 |
<div class="wrap">
|
19 |
|
20 |
+
<div id="icon-tools" class="icon32"><br></div><?php echo "<h2>".esc_html(sprintf(__('%s - Data Update', 'post-grid'), post_grid_plugin_name))."</h2>";?>
|
21 |
|
22 |
|
23 |
<div class=" post-grid-settings">
|
84 |
<li><?php echo get_the_title(); ?></li>
|
85 |
<?php
|
86 |
|
|
|
87 |
endwhile;
|
88 |
?>
|
89 |
</ul>
|
includes/menu/import-layouts.php
CHANGED
@@ -48,7 +48,6 @@ wp_enqueue_script('post_grid_layouts');
|
|
48 |
$response = wp_remote_get(add_query_arg($api_params, post_grid_server_url), array('timeout' => 20, 'sslverify' => false));
|
49 |
|
50 |
|
51 |
-
//echo '<pre>'.var_export($response, true).'</pre>';
|
52 |
|
53 |
/*
|
54 |
* Check is there any server error occurred
|
@@ -74,8 +73,6 @@ wp_enqueue_script('post_grid_layouts');
|
|
74 |
$post_found = isset($response_data->post_found) ? sanitize_text_field($response_data->post_found) : array();
|
75 |
$max_num_pages = isset($response_data->max_num_pages) ? sanitize_text_field($response_data->max_num_pages) : 0;
|
76 |
|
77 |
-
//echo '<pre>'.var_export($response_data, true).'</pre>';
|
78 |
-
//var_dump($response_data->ajax_nonce);
|
79 |
}
|
80 |
|
81 |
?>
|
@@ -101,7 +98,6 @@ wp_enqueue_script('post_grid_layouts');
|
|
101 |
$layout_preview_img = isset($layout_options['layout_preview_img']) ? $layout_options['layout_preview_img'] : '';
|
102 |
|
103 |
|
104 |
-
//echo '<pre>'.var_export($is_pro, true).'</pre>';
|
105 |
|
106 |
|
107 |
?>
|
@@ -117,7 +113,7 @@ wp_enqueue_script('post_grid_layouts');
|
|
117 |
|
118 |
|
119 |
<div class="block-content">
|
120 |
-
<div class="block-name"><?php echo $block_title; ?></div>
|
121 |
|
122 |
</div>
|
123 |
<div class="actions">
|
@@ -127,7 +123,7 @@ wp_enqueue_script('post_grid_layouts');
|
|
127 |
|
128 |
}else{
|
129 |
?>
|
130 |
-
<span class="button import-layout" post_id="<?php echo esc_attr($post_id); ?>"><i class="fas fa-download"></i> Import (<?php echo $download_count; ?>)</span>
|
131 |
<?php
|
132 |
}
|
133 |
|
48 |
$response = wp_remote_get(add_query_arg($api_params, post_grid_server_url), array('timeout' => 20, 'sslverify' => false));
|
49 |
|
50 |
|
|
|
51 |
|
52 |
/*
|
53 |
* Check is there any server error occurred
|
73 |
$post_found = isset($response_data->post_found) ? sanitize_text_field($response_data->post_found) : array();
|
74 |
$max_num_pages = isset($response_data->max_num_pages) ? sanitize_text_field($response_data->max_num_pages) : 0;
|
75 |
|
|
|
|
|
76 |
}
|
77 |
|
78 |
?>
|
98 |
$layout_preview_img = isset($layout_options['layout_preview_img']) ? $layout_options['layout_preview_img'] : '';
|
99 |
|
100 |
|
|
|
101 |
|
102 |
|
103 |
?>
|
113 |
|
114 |
|
115 |
<div class="block-content">
|
116 |
+
<div class="block-name"><?php echo esc_html($block_title); ?></div>
|
117 |
|
118 |
</div>
|
119 |
<div class="actions">
|
123 |
|
124 |
}else{
|
125 |
?>
|
126 |
+
<span class="button import-layout" post_id="<?php echo esc_attr($post_id); ?>"><i class="fas fa-download"></i> Import (<?php echo esc_html($download_count); ?>)</span>
|
127 |
<?php
|
128 |
}
|
129 |
|
includes/menu/settings-old.php
CHANGED
@@ -112,7 +112,7 @@ array_multisort($tabs_sorted, SORT_ASC, $post_grid_settings_tabs);
|
|
112 |
$data_visible = isset($tab['data_visible']) ? $tab['data_visible'] : '';
|
113 |
$hidden = isset($tab['hidden']) ? $tab['hidden'] : false;
|
114 |
?>
|
115 |
-
<li class="tab-nav <?php if($hidden) echo 'hidden';?> <?php if($active) echo 'active';?>" data-id="<?php echo $id; ?>"><?php echo $title; ?></li>
|
116 |
<?php
|
117 |
}
|
118 |
?>
|
@@ -126,7 +126,7 @@ array_multisort($tabs_sorted, SORT_ASC, $post_grid_settings_tabs);
|
|
126 |
|
127 |
?>
|
128 |
|
129 |
-
<div class="tab-content <?php if($active) echo 'active';?>" id="<?php echo $id; ?>">
|
130 |
<?php
|
131 |
do_action('post_grid_settings_'.$id, $tab);
|
132 |
?>
|
112 |
$data_visible = isset($tab['data_visible']) ? $tab['data_visible'] : '';
|
113 |
$hidden = isset($tab['hidden']) ? $tab['hidden'] : false;
|
114 |
?>
|
115 |
+
<li class="tab-nav <?php if($hidden) echo 'hidden';?> <?php if($active) echo 'active';?>" data-id="<?php echo esc_attr($id); ?>"><?php echo esc_html($title); ?></li>
|
116 |
<?php
|
117 |
}
|
118 |
?>
|
126 |
|
127 |
?>
|
128 |
|
129 |
+
<div class="tab-content <?php if($active) echo 'active';?>" id="<?php echo esc_attr($id); ?>">
|
130 |
<?php
|
131 |
do_action('post_grid_settings_'.$id, $tab);
|
132 |
?>
|
includes/menu/settings.php
CHANGED
@@ -56,7 +56,7 @@ $post_grid_settings = get_option('post_grid_settings');
|
|
56 |
|
57 |
?>
|
58 |
<div class="wrap">
|
59 |
-
<div id="icon-tools" class="icon32"><br></div><h2><?php echo 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); ?>">
|
@@ -103,10 +103,10 @@ $post_grid_settings = get_option('post_grid_settings');
|
|
103 |
$pro_text = isset($tab['pro_text']) ? $tab['pro_text'] : '';
|
104 |
?>
|
105 |
<li <?php if(!empty($data_visible)): ?> data_visible="<?php echo esc_attr($data_visible); ?>" <?php endif; ?> class="tab-nav <?php if($hidden) echo 'hidden';?> <?php if($active) echo 'active';?>" data-id="<?php echo esc_attr($id); ?>">
|
106 |
-
<?php echo $title; ?>
|
107 |
<?php
|
108 |
if($is_pro):
|
109 |
-
?><span class="pro-feature"><?php echo $pro_text; ?></span> <?php
|
110 |
endif;
|
111 |
?>
|
112 |
</li>
|
56 |
|
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); ?>">
|
103 |
$pro_text = isset($tab['pro_text']) ? $tab['pro_text'] : '';
|
104 |
?>
|
105 |
<li <?php if(!empty($data_visible)): ?> data_visible="<?php echo esc_attr($data_visible); ?>" <?php endif; ?> class="tab-nav <?php if($hidden) echo 'hidden';?> <?php if($active) echo 'active';?>" data-id="<?php echo esc_attr($id); ?>">
|
106 |
+
<?php echo esc_html($title); ?>
|
107 |
<?php
|
108 |
if($is_pro):
|
109 |
+
?><span class="pro-feature"><?php echo esc_html($pro_text); ?></span> <?php
|
110 |
endif;
|
111 |
?>
|
112 |
</li>
|
includes/metabox-post-grid-hook.php
CHANGED
@@ -381,7 +381,7 @@ function post_grid_metabox_tabs_content_query_post($tab, $post_id){
|
|
381 |
<i class="fas fa-expand"></i>
|
382 |
<i class="fas fa-compress"></i>
|
383 |
</span>
|
384 |
-
<label><input type="checkbox" <?php if(!empty($checked)) echo 'checked'; ?> name="post_grid_meta_options[taxonomies][<?php echo esc_attr($taxonomy); ?>][checked]" value="<?php echo esc_attr($taxonomy); ?>" /> <?php echo $the_taxonomy->labels->name; ?>(<?php echo $taxonomy; ?>)</label>
|
385 |
</div>
|
386 |
<div class="options">
|
387 |
<?php
|
@@ -797,7 +797,7 @@ function post_grid_metabox_tabs_content_skin_layout($tab, $post_id){
|
|
797 |
|
798 |
foreach($layout_content_list as $layout_key=>$layout_info){
|
799 |
?>
|
800 |
-
<option <?php if($layout_content==$layout_key) echo 'selected'; ?> value="<?php echo esc_attr($layout_key); ?>"><?php echo $layout_key; ?></option>
|
801 |
<?php
|
802 |
|
803 |
}
|
@@ -899,7 +899,7 @@ function post_grid_metabox_tabs_content_skin_layout($tab, $post_id){
|
|
899 |
|
900 |
else{
|
901 |
|
902 |
-
echo $item_info['name'];
|
903 |
|
904 |
}
|
905 |
|
@@ -997,7 +997,7 @@ function post_grid_metabox_tabs_content_skin_layout($tab, $post_id){
|
|
997 |
?>
|
998 |
<div class="header <?php echo esc_attr($selected_skin); ?>">
|
999 |
<!-- <span class="edit-link"><a href="#">Edit</a></span>-->
|
1000 |
-
<label><input <?php echo esc_attr($checked); ?> type="radio" name="post_grid_meta_options[skin]" value="<?php echo esc_attr($skin_slug); ?>" ><?php echo $skin_info['name']; ?></label>
|
1001 |
</div>
|
1002 |
<div class="skin <?php echo esc_attr($skin_slug); ?>">
|
1003 |
<div class="layer-media">
|
@@ -1192,7 +1192,7 @@ function post_grid_metabox_tabs_content_skin_layout($tab, $post_id){
|
|
1192 |
<input type="hidden" name="post_grid_meta_options[media_source][<?php echo esc_attr($source_info['id']); ?>][id]" value="<?php echo esc_attr($source_info['id']); ?>" />
|
1193 |
<input type="hidden" name="post_grid_meta_options[media_source][<?php echo esc_attr($source_info['id']); ?>][title]" value="<?php echo esc_attr($source_info['title']); ?>" />
|
1194 |
<label>
|
1195 |
-
<input <?php if(!empty($source_info['checked'])) echo 'checked'; ?> type="checkbox" name="post_grid_meta_options[media_source][<?php echo esc_attr($source_info['id']); ?>][checked]" value="yes" /><?php echo $source_info['title']; ?>
|
1196 |
</label>
|
1197 |
</div>
|
1198 |
</div>
|
@@ -1983,7 +1983,7 @@ function post_grid_update_taxonomies_terms_by_posttypes(){
|
|
1983 |
$settings_tabs_field = new settings_tabs_field();
|
1984 |
$response = array();
|
1985 |
//$taxonomies = array();
|
1986 |
-
|
1987 |
|
1988 |
|
1989 |
$post_types = isset($_POST['post_types']) ? post_grid_recursive_sanitize_arr($_POST['post_types']): array();
|
@@ -1994,7 +1994,6 @@ function post_grid_update_taxonomies_terms_by_posttypes(){
|
|
1994 |
|
1995 |
$taxonomies = !empty($post_grid_meta_options['taxonomies']) ? $post_grid_meta_options['taxonomies'] : array();
|
1996 |
|
1997 |
-
$response['post_types'] = $post_types;
|
1998 |
$post_taxonomies_arr = post_grid_get_taxonomies($post_types);
|
1999 |
|
2000 |
ob_start();
|
@@ -2032,15 +2031,15 @@ function post_grid_update_taxonomies_terms_by_posttypes(){
|
|
2032 |
<i class="fas fa-expand"></i>
|
2033 |
<i class="fas fa-compress"></i>
|
2034 |
</span>
|
2035 |
-
<label><input type="checkbox" <?php if(!empty($checked)) echo 'checked'; ?> name="post_grid_meta_options[taxonomies][<?php echo esc_attr($taxonomy); ?>][checked]" value="<?php echo esc_attr($taxonomy); ?>" /> <?php echo $the_taxonomy->labels->name; ?>(<?php echo $taxonomy; ?>)</label>
|
2036 |
</div>
|
2037 |
<div class="options">
|
2038 |
<?php
|
2039 |
|
2040 |
$args = array(
|
2041 |
'id' => 'terms',
|
2042 |
-
'css_id' => 'terms-'
|
2043 |
-
'parent' => 'post_grid_meta_options[taxonomies]['
|
2044 |
'title' => __('Categories or Terms','post-grid'),
|
2045 |
'details' => __('Select post terms or categories','post-grid'),
|
2046 |
'type' => 'select2',
|
@@ -2058,11 +2057,11 @@ function post_grid_update_taxonomies_terms_by_posttypes(){
|
|
2058 |
|
2059 |
$args = array(
|
2060 |
'id' => 'terms_relation',
|
2061 |
-
'parent' => 'post_grid_meta_options[taxonomies]['
|
2062 |
'title' => __('Terms relation','post-grid'),
|
2063 |
'details' => __('Choose term relation.','post-grid'),
|
2064 |
'type' => 'radio',
|
2065 |
-
'for' => $taxonomy,
|
2066 |
'multiple' => true,
|
2067 |
'value' => $terms_relation,
|
2068 |
'default' => 'IN',
|
@@ -2095,9 +2094,9 @@ function post_grid_update_taxonomies_terms_by_posttypes(){
|
|
2095 |
|
2096 |
|
2097 |
|
2098 |
-
echo
|
2099 |
|
2100 |
-
|
2101 |
|
2102 |
die();
|
2103 |
|
381 |
<i class="fas fa-expand"></i>
|
382 |
<i class="fas fa-compress"></i>
|
383 |
</span>
|
384 |
+
<label><input type="checkbox" <?php if(!empty($checked)) echo 'checked'; ?> name="post_grid_meta_options[taxonomies][<?php echo esc_attr($taxonomy); ?>][checked]" value="<?php echo esc_attr($taxonomy); ?>" /> <?php echo esc_html($the_taxonomy->labels->name); ?>(<?php echo esc_html($taxonomy); ?>)</label>
|
385 |
</div>
|
386 |
<div class="options">
|
387 |
<?php
|
797 |
|
798 |
foreach($layout_content_list as $layout_key=>$layout_info){
|
799 |
?>
|
800 |
+
<option <?php if($layout_content==$layout_key) echo 'selected'; ?> value="<?php echo esc_attr($layout_key); ?>"><?php echo esc_html($layout_key); ?></option>
|
801 |
<?php
|
802 |
|
803 |
}
|
899 |
|
900 |
else{
|
901 |
|
902 |
+
echo esc_html($item_info['name']);
|
903 |
|
904 |
}
|
905 |
|
997 |
?>
|
998 |
<div class="header <?php echo esc_attr($selected_skin); ?>">
|
999 |
<!-- <span class="edit-link"><a href="#">Edit</a></span>-->
|
1000 |
+
<label><input <?php echo esc_attr($checked); ?> type="radio" name="post_grid_meta_options[skin]" value="<?php echo esc_attr($skin_slug); ?>" ><?php echo esc_html($skin_info['name']); ?></label>
|
1001 |
</div>
|
1002 |
<div class="skin <?php echo esc_attr($skin_slug); ?>">
|
1003 |
<div class="layer-media">
|
1192 |
<input type="hidden" name="post_grid_meta_options[media_source][<?php echo esc_attr($source_info['id']); ?>][id]" value="<?php echo esc_attr($source_info['id']); ?>" />
|
1193 |
<input type="hidden" name="post_grid_meta_options[media_source][<?php echo esc_attr($source_info['id']); ?>][title]" value="<?php echo esc_attr($source_info['title']); ?>" />
|
1194 |
<label>
|
1195 |
+
<input <?php if(!empty($source_info['checked'])) echo 'checked'; ?> type="checkbox" name="post_grid_meta_options[media_source][<?php echo esc_attr($source_info['id']); ?>][checked]" value="yes" /><?php echo esc_html($source_info['title']); ?>
|
1196 |
</label>
|
1197 |
</div>
|
1198 |
</div>
|
1983 |
$settings_tabs_field = new settings_tabs_field();
|
1984 |
$response = array();
|
1985 |
//$taxonomies = array();
|
1986 |
+
if(current_user_can('manage_options')){
|
1987 |
|
1988 |
|
1989 |
$post_types = isset($_POST['post_types']) ? post_grid_recursive_sanitize_arr($_POST['post_types']): array();
|
1994 |
|
1995 |
$taxonomies = !empty($post_grid_meta_options['taxonomies']) ? $post_grid_meta_options['taxonomies'] : array();
|
1996 |
|
|
|
1997 |
$post_taxonomies_arr = post_grid_get_taxonomies($post_types);
|
1998 |
|
1999 |
ob_start();
|
2031 |
<i class="fas fa-expand"></i>
|
2032 |
<i class="fas fa-compress"></i>
|
2033 |
</span>
|
2034 |
+
<label><input type="checkbox" <?php if(!empty($checked)) echo 'checked'; ?> name="post_grid_meta_options[taxonomies][<?php echo esc_attr($taxonomy); ?>][checked]" value="<?php echo esc_attr($taxonomy); ?>" /> <?php echo esc_html($the_taxonomy->labels->name); ?>(<?php echo esc_html($taxonomy); ?>)</label>
|
2035 |
</div>
|
2036 |
<div class="options">
|
2037 |
<?php
|
2038 |
|
2039 |
$args = array(
|
2040 |
'id' => 'terms',
|
2041 |
+
'css_id' => 'terms-'.esc_attr($taxonomyIndex),
|
2042 |
+
'parent' => 'post_grid_meta_options[taxonomies]['.esc_attr($taxonomy).']',
|
2043 |
'title' => __('Categories or Terms','post-grid'),
|
2044 |
'details' => __('Select post terms or categories','post-grid'),
|
2045 |
'type' => 'select2',
|
2057 |
|
2058 |
$args = array(
|
2059 |
'id' => 'terms_relation',
|
2060 |
+
'parent' => 'post_grid_meta_options[taxonomies]['.esc_attr($taxonomy).']',
|
2061 |
'title' => __('Terms relation','post-grid'),
|
2062 |
'details' => __('Choose term relation.','post-grid'),
|
2063 |
'type' => 'radio',
|
2064 |
+
'for' => esc_attr($taxonomy),
|
2065 |
'multiple' => true,
|
2066 |
'value' => $terms_relation,
|
2067 |
'default' => 'IN',
|
2094 |
|
2095 |
|
2096 |
|
2097 |
+
echo wp_json_encode( $response );
|
2098 |
|
2099 |
+
}
|
2100 |
|
2101 |
die();
|
2102 |
|
includes/metabox-post-grid-layout-hook.php
CHANGED
@@ -180,7 +180,7 @@ if(!function_exists('post_grid_layout_metabox_content_layout_builder')){
|
|
180 |
|
181 |
<script>
|
182 |
jQuery(document).ready(function($){
|
183 |
-
layout_elements_option = <?php echo
|
184 |
|
185 |
$(document).on('click','.layout-tags .element_index',function(){
|
186 |
tag_id = $(this).attr('tag_id');
|
@@ -217,14 +217,14 @@ if(!function_exists('post_grid_layout_metabox_content_layout_builder')){
|
|
217 |
<div class="item">
|
218 |
<div class="element-title header ">
|
219 |
<span class="expand"><i class="fas fa-expand"></i><i class="fas fa-compress"></i></span>
|
220 |
-
<span class="expand"><?php echo $group_title; ?></span>
|
221 |
</div>
|
222 |
<div class="element-options options">
|
223 |
<?php
|
224 |
foreach ($group_items as $elementIndex => $element):
|
225 |
$element_name = isset($element['name']) ? $element['name'] : '';
|
226 |
?>
|
227 |
-
<span class="element_index" input_name="<?php echo 'layout_elements_data'; ?>" tag_id="<?php echo esc_attr($elementIndex); ?>"><?php echo $element_name; ?></span>
|
228 |
<?php
|
229 |
endforeach;
|
230 |
?>
|
@@ -385,7 +385,6 @@ if(!function_exists('post_grid_layout_metabox_content_layout_builder')){
|
|
385 |
}
|
386 |
}
|
387 |
|
388 |
-
//echo '<pre>'.var_export($args, true).'</pre>';
|
389 |
|
390 |
?>
|
391 |
</div>
|
@@ -408,7 +407,6 @@ if(!function_exists('post_grid_layout_metabox_content_layout_builder')){
|
|
408 |
$args['element'] = $elementData;
|
409 |
$args['index'] = $elementGroupIndex;
|
410 |
|
411 |
-
//echo $elementIndex;
|
412 |
do_action('post_grid_layout_element_css_'.$elementIndex, $args);
|
413 |
}
|
414 |
}
|
@@ -432,7 +430,7 @@ if(!function_exists('post_grid_layout_metabox_content_layout_builder')){
|
|
432 |
height: auto;
|
433 |
}
|
434 |
<?php
|
435 |
-
echo str_replace('__ID__', 'layout-'.$layout_id, $custom_css);
|
436 |
?>
|
437 |
</style>
|
438 |
<?php
|
180 |
|
181 |
<script>
|
182 |
jQuery(document).ready(function($){
|
183 |
+
layout_elements_option = <?php echo wp_json_encode($layout_elements_option); ?>;
|
184 |
|
185 |
$(document).on('click','.layout-tags .element_index',function(){
|
186 |
tag_id = $(this).attr('tag_id');
|
217 |
<div class="item">
|
218 |
<div class="element-title header ">
|
219 |
<span class="expand"><i class="fas fa-expand"></i><i class="fas fa-compress"></i></span>
|
220 |
+
<span class="expand"><?php echo esc_html($group_title); ?></span>
|
221 |
</div>
|
222 |
<div class="element-options options">
|
223 |
<?php
|
224 |
foreach ($group_items as $elementIndex => $element):
|
225 |
$element_name = isset($element['name']) ? $element['name'] : '';
|
226 |
?>
|
227 |
+
<span class="element_index" input_name="<?php echo 'layout_elements_data'; ?>" tag_id="<?php echo esc_attr($elementIndex); ?>"><?php echo esc_html($element_name); ?></span>
|
228 |
<?php
|
229 |
endforeach;
|
230 |
?>
|
385 |
}
|
386 |
}
|
387 |
|
|
|
388 |
|
389 |
?>
|
390 |
</div>
|
407 |
$args['element'] = $elementData;
|
408 |
$args['index'] = $elementGroupIndex;
|
409 |
|
|
|
410 |
do_action('post_grid_layout_element_css_'.$elementIndex, $args);
|
411 |
}
|
412 |
}
|
430 |
height: auto;
|
431 |
}
|
432 |
<?php
|
433 |
+
echo esc_attr(str_replace('__ID__', 'layout-'.$layout_id, $custom_css));
|
434 |
?>
|
435 |
</style>
|
436 |
<?php
|
includes/post-grid-layout-elements.php
CHANGED
@@ -192,12 +192,12 @@ function post_grid_layout_element_css_wrapper_start($args){
|
|
192 |
text-align: <?php echo esc_attr($text_align); ?>;
|
193 |
<?php endif; ?>
|
194 |
<?php if(!empty($css)): ?>
|
195 |
-
<?php echo $css; ?>
|
196 |
<?php endif; ?>
|
197 |
}
|
198 |
<?php if(!empty($css_hover)): ?>
|
199 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
200 |
-
<?php echo $css_hover; ?>
|
201 |
}
|
202 |
<?php endif; ?>
|
203 |
</style>
|
@@ -527,12 +527,12 @@ function post_grid_layout_element_css_custom_text($args){
|
|
527 |
text-align: <?php echo esc_attr($text_align); ?>;
|
528 |
<?php endif; ?>
|
529 |
<?php if(!empty($css)): ?>
|
530 |
-
<?php echo $css; ?>
|
531 |
<?php endif; ?>
|
532 |
}
|
533 |
<?php if(!empty($css_hover)): ?>
|
534 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
535 |
-
<?php echo $css_hover; ?>
|
536 |
}
|
537 |
<?php endif; ?>
|
538 |
</style>
|
@@ -880,12 +880,12 @@ function post_grid_layout_element_css_title($args){
|
|
880 |
text-align: <?php echo esc_attr($text_align); ?>;
|
881 |
<?php endif; ?>
|
882 |
<?php if(!empty($css)): ?>
|
883 |
-
<?php echo $css; ?>
|
884 |
<?php endif; ?>
|
885 |
}
|
886 |
<?php if(!empty($css_hover)): ?>
|
887 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
888 |
-
<?php echo $css_hover; ?>
|
889 |
}
|
890 |
<?php endif; ?>
|
891 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
@@ -1239,12 +1239,12 @@ function post_grid_layout_element_css_title_link($args){
|
|
1239 |
text-align: <?php echo esc_attr($text_align); ?>;
|
1240 |
<?php endif; ?>
|
1241 |
<?php if(!empty($css)): ?>
|
1242 |
-
<?php echo $css; ?>
|
1243 |
<?php endif; ?>
|
1244 |
}
|
1245 |
<?php if(!empty($css_hover)): ?>
|
1246 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1247 |
-
<?php echo $css_hover; ?>
|
1248 |
}
|
1249 |
<?php endif; ?>
|
1250 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
@@ -1443,7 +1443,7 @@ function post_grid_layout_element_content($args){
|
|
1443 |
|
1444 |
?>
|
1445 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> content ">
|
1446 |
-
<?php echo ($post_content); ?>
|
1447 |
</div>
|
1448 |
<?php
|
1449 |
}
|
@@ -1810,7 +1810,7 @@ function post_grid_layout_element_excerpt($args){
|
|
1810 |
|
1811 |
?>
|
1812 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> excerpt ">
|
1813 |
-
<?php echo ($post_excerpt); ?>
|
1814 |
<?php
|
1815 |
if(!empty($read_more_text)):
|
1816 |
?>
|
@@ -1858,12 +1858,12 @@ function post_grid_layout_element_css_excerpt($args){
|
|
1858 |
text-align: <?php echo esc_attr($text_align); ?>;
|
1859 |
<?php endif; ?>
|
1860 |
<?php if(!empty($css)): ?>
|
1861 |
-
<?php echo $css; ?>
|
1862 |
<?php endif; ?>
|
1863 |
}
|
1864 |
<?php if(!empty($css_hover)): ?>
|
1865 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1866 |
-
<?php echo $css_hover; ?>
|
1867 |
}
|
1868 |
<?php endif; ?>
|
1869 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
@@ -2188,7 +2188,7 @@ function post_grid_layout_element_excerpt_read_more($args){
|
|
2188 |
|
2189 |
?>
|
2190 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> excerpt_read_more ">
|
2191 |
-
<?php echo ($post_excerpt); ?>
|
2192 |
<a target="<?php echo esc_attr($link_target); ?>" href="<?php echo esc_url_raw($post_link); ?>"><?php echo esc_html($read_more_text); ?></a>
|
2193 |
|
2194 |
</div>
|
@@ -2234,12 +2234,12 @@ function post_grid_layout_element_css_excerpt_read_more($args){
|
|
2234 |
text-align: <?php echo esc_attr($text_align); ?>;
|
2235 |
<?php endif; ?>
|
2236 |
<?php if(!empty($css)): ?>
|
2237 |
-
<?php echo $css; ?>
|
2238 |
<?php endif; ?>
|
2239 |
}
|
2240 |
<?php if(!empty($css_hover)): ?>
|
2241 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2242 |
-
<?php echo $css_hover; ?>
|
2243 |
}
|
2244 |
<?php endif; ?>
|
2245 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
@@ -2560,12 +2560,12 @@ function post_grid_layout_element_css_read_more($args){
|
|
2560 |
text-align: <?php echo esc_attr($text_align); ?>;
|
2561 |
<?php endif; ?>
|
2562 |
<?php if(!empty($css)): ?>
|
2563 |
-
<?php echo $css; ?>
|
2564 |
<?php endif; ?>
|
2565 |
}
|
2566 |
<?php if(!empty($css_hover)): ?>
|
2567 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2568 |
-
<?php echo $css_hover; ?>
|
2569 |
}
|
2570 |
<?php endif; ?>
|
2571 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
@@ -2684,7 +2684,7 @@ function post_grid_layout_element_option_media($parameters){
|
|
2684 |
else:
|
2685 |
?><i class="fas fa-times"></i><?php
|
2686 |
endif;?>
|
2687 |
-
<span class="expand"><?php echo $source_name; ?></span>
|
2688 |
</div>
|
2689 |
<div class="element-options options">
|
2690 |
<?php
|
@@ -2946,7 +2946,7 @@ function post_grid_layout_element_media($args){
|
|
2946 |
}
|
2947 |
}
|
2948 |
|
2949 |
-
echo $html_media;
|
2950 |
|
2951 |
?>
|
2952 |
|
@@ -2991,12 +2991,12 @@ function post_grid_layout_element_css_media($args){
|
|
2991 |
<?php endif; ?>
|
2992 |
overflow: hidden;
|
2993 |
<?php if(!empty($css)): ?>
|
2994 |
-
<?php echo $css; ?>
|
2995 |
<?php endif; ?>
|
2996 |
}
|
2997 |
<?php if(!empty($css_hover)): ?>
|
2998 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2999 |
-
<?php echo $css_hover; ?>
|
3000 |
}
|
3001 |
<?php endif; ?>
|
3002 |
@media only screen and (min-width: 1024px ){
|
@@ -3118,7 +3118,6 @@ function post_grid_layout_element_option_thumb($parameters){
|
|
3118 |
|
3119 |
$thumbnail_sizes[$size_key] = ucfirst($size_name);
|
3120 |
}
|
3121 |
-
//echo '<pre>'.var_export($thumbnail_sizes, true).'</pre>';
|
3122 |
|
3123 |
$args = array(
|
3124 |
'id' => 'thumb_size',
|
@@ -3374,7 +3373,6 @@ function post_grid_layout_element_thumb($args){
|
|
3374 |
add_action('post_grid_layout_element_css_thumb', 'post_grid_layout_element_css_thumb', 10);
|
3375 |
function post_grid_layout_element_css_thumb($args){
|
3376 |
|
3377 |
-
//echo '<pre>'.var_export($args, true).'</pre>';
|
3378 |
$index = isset($args['index']) ? $args['index'] : '';
|
3379 |
$element = isset($args['element']) ? $args['element'] : array();
|
3380 |
$layout_id = isset($args['layout_id']) ? $args['layout_id'] : '';
|
@@ -3488,7 +3486,6 @@ function post_grid_layout_element_option_thumb_link($parameters){
|
|
3488 |
|
3489 |
$thumbnail_sizes[$size_key] = ucfirst($size_name);
|
3490 |
}
|
3491 |
-
//echo '<pre>'.var_export($thumbnail_sizes, true).'</pre>';
|
3492 |
|
3493 |
$args = array(
|
3494 |
'id' => 'thumb_size',
|
@@ -3740,7 +3737,6 @@ function post_grid_layout_element_thumb_link($args){
|
|
3740 |
add_action('post_grid_layout_element_css_thumb_link', 'post_grid_layout_element_css_thumb_link', 10);
|
3741 |
function post_grid_layout_element_css_thumb_link($args){
|
3742 |
|
3743 |
-
//echo '<pre>'.var_export($args, true).'</pre>';
|
3744 |
$index = isset($args['index']) ? $args['index'] : '';
|
3745 |
$element = isset($args['element']) ? $args['element'] : array();
|
3746 |
$layout_id = isset($args['layout_id']) ? $args['layout_id'] : '';
|
@@ -4117,12 +4113,12 @@ function post_grid_layout_element_css_post_date($args){
|
|
4117 |
text-align: <?php echo esc_attr($text_align); ?>;
|
4118 |
<?php endif; ?>
|
4119 |
<?php if(!empty($css)): ?>
|
4120 |
-
<?php echo $css; ?>
|
4121 |
<?php endif; ?>
|
4122 |
}
|
4123 |
<?php if(!empty($css_hover)): ?>
|
4124 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
4125 |
-
<?php echo $css_hover; ?>
|
4126 |
}
|
4127 |
<?php endif; ?>
|
4128 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
@@ -4448,12 +4444,12 @@ function post_grid_layout_element_css_author($args){
|
|
4448 |
text-align: <?php echo esc_attr($text_align); ?>;
|
4449 |
<?php endif; ?>
|
4450 |
<?php if(!empty($css)): ?>
|
4451 |
-
<?php echo $css; ?>
|
4452 |
<?php endif; ?>
|
4453 |
}
|
4454 |
<?php if(!empty($css_hover)): ?>
|
4455 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
4456 |
-
<?php echo $css_hover; ?>
|
4457 |
}
|
4458 |
<?php endif; ?>
|
4459 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
@@ -4769,12 +4765,12 @@ function post_grid_layout_element_css_author_link($args){
|
|
4769 |
text-align: <?php echo esc_attr($text_align); ?>;
|
4770 |
<?php endif; ?>
|
4771 |
<?php if(!empty($css)): ?>
|
4772 |
-
<?php echo $css; ?>
|
4773 |
<?php endif; ?>
|
4774 |
}
|
4775 |
<?php if(!empty($css_hover)): ?>
|
4776 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
4777 |
-
<?php echo $css_hover; ?>
|
4778 |
}
|
4779 |
<?php endif; ?>
|
4780 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
@@ -5086,7 +5082,7 @@ function post_grid_layout_element_categories($args){
|
|
5086 |
|
5087 |
?>
|
5088 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> categories ">
|
5089 |
-
<?php echo sprintf($wrapper_html, $categories_html); ?>
|
5090 |
</div>
|
5091 |
<?php
|
5092 |
}
|
@@ -5128,7 +5124,7 @@ function post_grid_layout_element_css_categories($args){
|
|
5128 |
text-align: <?php echo esc_attr($text_align); ?>;
|
5129 |
<?php endif; ?>
|
5130 |
<?php if(!empty($css)): ?>
|
5131 |
-
<?php echo $css; ?>
|
5132 |
<?php endif; ?>
|
5133 |
}
|
5134 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
@@ -5144,7 +5140,7 @@ function post_grid_layout_element_css_categories($args){
|
|
5144 |
}
|
5145 |
<?php if(!empty($css_hover)): ?>
|
5146 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
5147 |
-
<?php echo $css_hover; ?>
|
5148 |
}
|
5149 |
<?php endif; ?>
|
5150 |
</style>
|
@@ -5405,7 +5401,7 @@ function post_grid_layout_element_tags($args){
|
|
5405 |
|
5406 |
?>
|
5407 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> tags ">
|
5408 |
-
<?php echo sprintf($wrapper_html, $categories_html); ?>
|
5409 |
</div>
|
5410 |
<?php
|
5411 |
}
|
@@ -5448,7 +5444,7 @@ function post_grid_layout_element_css_tags($args){
|
|
5448 |
text-align: <?php echo esc_attr($text_align); ?>;
|
5449 |
<?php endif; ?>
|
5450 |
<?php if(!empty($css)): ?>
|
5451 |
-
<?php echo $css; ?>
|
5452 |
<?php endif; ?>
|
5453 |
}
|
5454 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
@@ -5464,7 +5460,7 @@ function post_grid_layout_element_css_tags($args){
|
|
5464 |
}
|
5465 |
<?php if(!empty($css_hover)): ?>
|
5466 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
5467 |
-
<?php echo $css_hover; ?>
|
5468 |
}
|
5469 |
<?php endif; ?>
|
5470 |
</style>
|
@@ -5698,7 +5694,7 @@ function post_grid_layout_element_comments_count($args){
|
|
5698 |
|
5699 |
?>
|
5700 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> tags ">
|
5701 |
-
<?php echo sprintf($wrapper_html, $comments_count_html); ?>
|
5702 |
</div>
|
5703 |
<?php
|
5704 |
|
@@ -5744,12 +5740,12 @@ function post_grid_layout_element_css_comments_count($args){
|
|
5744 |
text-align: <?php echo esc_attr($text_align); ?>;
|
5745 |
<?php endif; ?>
|
5746 |
<?php if(!empty($css)): ?>
|
5747 |
-
<?php echo $css; ?>
|
5748 |
<?php endif; ?>
|
5749 |
}
|
5750 |
<?php if(!empty($css_hover)): ?>
|
5751 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
5752 |
-
<?php echo $css_hover; ?>
|
5753 |
}
|
5754 |
<?php endif; ?>
|
5755 |
</style>
|
@@ -5946,7 +5942,7 @@ function post_grid_layout_element_share_button($args){
|
|
5946 |
|
5947 |
?>
|
5948 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> share_button ">
|
5949 |
-
<?php echo sprintf($wrapper_html, $share_button_html); ?>
|
5950 |
</div>
|
5951 |
<?php
|
5952 |
}
|
@@ -5987,7 +5983,7 @@ function post_grid_layout_element_css_share_button($args){
|
|
5987 |
text-align: <?php echo esc_attr($text_align); ?>;
|
5988 |
<?php endif; ?>
|
5989 |
<?php if(!empty($css)): ?>
|
5990 |
-
<?php echo $css; ?>
|
5991 |
<?php endif; ?>
|
5992 |
}
|
5993 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
@@ -6003,7 +5999,7 @@ function post_grid_layout_element_css_share_button($args){
|
|
6003 |
}
|
6004 |
<?php if(!empty($css_hover)): ?>
|
6005 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
6006 |
-
<?php echo $css_hover; ?>
|
6007 |
}
|
6008 |
<?php endif; ?>
|
6009 |
</style>
|
@@ -6204,12 +6200,12 @@ function post_grid_layout_element_css_hr($args){
|
|
6204 |
padding: <?php echo esc_attr($height); ?>;
|
6205 |
<?php endif; ?>
|
6206 |
<?php if(!empty($css)): ?>
|
6207 |
-
<?php echo $css; ?>
|
6208 |
<?php endif; ?>
|
6209 |
}
|
6210 |
<?php if(!empty($css_hover)): ?>
|
6211 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
6212 |
-
<?php echo $css_hover; ?>
|
6213 |
}
|
6214 |
<?php endif; ?>
|
6215 |
</style>
|
@@ -6420,7 +6416,7 @@ function post_grid_layout_element_five_star($args){
|
|
6420 |
|
6421 |
?>
|
6422 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> five_star ">
|
6423 |
-
<?php echo sprintf($wrapper_html, $five_star_html); ?>
|
6424 |
</div>
|
6425 |
<?php
|
6426 |
}
|
@@ -6460,12 +6456,12 @@ function post_grid_layout_element_css_five_star($args){
|
|
6460 |
text-align: <?php echo esc_attr($text_align); ?>;
|
6461 |
<?php endif; ?>
|
6462 |
<?php if(!empty($css)): ?>
|
6463 |
-
<?php echo $css; ?>
|
6464 |
<?php endif; ?>
|
6465 |
}
|
6466 |
<?php if(!empty($css_hover)): ?>
|
6467 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
6468 |
-
<?php echo $css_hover; ?>
|
6469 |
}
|
6470 |
<?php endif; ?>
|
6471 |
</style>
|
192 |
text-align: <?php echo esc_attr($text_align); ?>;
|
193 |
<?php endif; ?>
|
194 |
<?php if(!empty($css)): ?>
|
195 |
+
<?php echo esc_attr($css); ?>
|
196 |
<?php endif; ?>
|
197 |
}
|
198 |
<?php if(!empty($css_hover)): ?>
|
199 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
200 |
+
<?php echo esc_attr($css_hover); ?>
|
201 |
}
|
202 |
<?php endif; ?>
|
203 |
</style>
|
527 |
text-align: <?php echo esc_attr($text_align); ?>;
|
528 |
<?php endif; ?>
|
529 |
<?php if(!empty($css)): ?>
|
530 |
+
<?php echo esc_attr($css); ?>
|
531 |
<?php endif; ?>
|
532 |
}
|
533 |
<?php if(!empty($css_hover)): ?>
|
534 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
535 |
+
<?php echo esc_attr($css_hover); ?>
|
536 |
}
|
537 |
<?php endif; ?>
|
538 |
</style>
|
880 |
text-align: <?php echo esc_attr($text_align); ?>;
|
881 |
<?php endif; ?>
|
882 |
<?php if(!empty($css)): ?>
|
883 |
+
<?php echo esc_attr($css); ?>
|
884 |
<?php endif; ?>
|
885 |
}
|
886 |
<?php if(!empty($css_hover)): ?>
|
887 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
888 |
+
<?php echo esc_attr($css_hover); ?>
|
889 |
}
|
890 |
<?php endif; ?>
|
891 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
1239 |
text-align: <?php echo esc_attr($text_align); ?>;
|
1240 |
<?php endif; ?>
|
1241 |
<?php if(!empty($css)): ?>
|
1242 |
+
<?php echo esc_attr($css); ?>
|
1243 |
<?php endif; ?>
|
1244 |
}
|
1245 |
<?php if(!empty($css_hover)): ?>
|
1246 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1247 |
+
<?php echo esc_attr($css_hover); ?>
|
1248 |
}
|
1249 |
<?php endif; ?>
|
1250 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
1443 |
|
1444 |
?>
|
1445 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> content ">
|
1446 |
+
<?php echo esc_html($post_content); ?>
|
1447 |
</div>
|
1448 |
<?php
|
1449 |
}
|
1810 |
|
1811 |
?>
|
1812 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> excerpt ">
|
1813 |
+
<?php echo esc_html($post_excerpt); ?>
|
1814 |
<?php
|
1815 |
if(!empty($read_more_text)):
|
1816 |
?>
|
1858 |
text-align: <?php echo esc_attr($text_align); ?>;
|
1859 |
<?php endif; ?>
|
1860 |
<?php if(!empty($css)): ?>
|
1861 |
+
<?php echo esc_attr($css); ?>
|
1862 |
<?php endif; ?>
|
1863 |
}
|
1864 |
<?php if(!empty($css_hover)): ?>
|
1865 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
1866 |
+
<?php echo esc_attr($css_hover); ?>
|
1867 |
}
|
1868 |
<?php endif; ?>
|
1869 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
2188 |
|
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_raw($post_link); ?>"><?php echo esc_html($read_more_text); ?></a>
|
2193 |
|
2194 |
</div>
|
2234 |
text-align: <?php echo esc_attr($text_align); ?>;
|
2235 |
<?php endif; ?>
|
2236 |
<?php if(!empty($css)): ?>
|
2237 |
+
<?php echo esc_attr($css); ?>
|
2238 |
<?php endif; ?>
|
2239 |
}
|
2240 |
<?php if(!empty($css_hover)): ?>
|
2241 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2242 |
+
<?php echo esc_attr($css_hover); ?>
|
2243 |
}
|
2244 |
<?php endif; ?>
|
2245 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
2560 |
text-align: <?php echo esc_attr($text_align); ?>;
|
2561 |
<?php endif; ?>
|
2562 |
<?php if(!empty($css)): ?>
|
2563 |
+
<?php echo esc_attr($css); ?>
|
2564 |
<?php endif; ?>
|
2565 |
}
|
2566 |
<?php if(!empty($css_hover)): ?>
|
2567 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2568 |
+
<?php echo esc_attr($css_hover); ?>
|
2569 |
}
|
2570 |
<?php endif; ?>
|
2571 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
2684 |
else:
|
2685 |
?><i class="fas fa-times"></i><?php
|
2686 |
endif;?>
|
2687 |
+
<span class="expand"><?php echo esc_html($source_name); ?></span>
|
2688 |
</div>
|
2689 |
<div class="element-options options">
|
2690 |
<?php
|
2946 |
}
|
2947 |
}
|
2948 |
|
2949 |
+
echo esc_html($html_media);
|
2950 |
|
2951 |
?>
|
2952 |
|
2991 |
<?php endif; ?>
|
2992 |
overflow: hidden;
|
2993 |
<?php if(!empty($css)): ?>
|
2994 |
+
<?php echo esc_attr($css); ?>
|
2995 |
<?php endif; ?>
|
2996 |
}
|
2997 |
<?php if(!empty($css_hover)): ?>
|
2998 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
2999 |
+
<?php echo esc_attr($css_hover); ?>
|
3000 |
}
|
3001 |
<?php endif; ?>
|
3002 |
@media only screen and (min-width: 1024px ){
|
3118 |
|
3119 |
$thumbnail_sizes[$size_key] = ucfirst($size_name);
|
3120 |
}
|
|
|
3121 |
|
3122 |
$args = array(
|
3123 |
'id' => 'thumb_size',
|
3373 |
add_action('post_grid_layout_element_css_thumb', 'post_grid_layout_element_css_thumb', 10);
|
3374 |
function post_grid_layout_element_css_thumb($args){
|
3375 |
|
|
|
3376 |
$index = isset($args['index']) ? $args['index'] : '';
|
3377 |
$element = isset($args['element']) ? $args['element'] : array();
|
3378 |
$layout_id = isset($args['layout_id']) ? $args['layout_id'] : '';
|
3486 |
|
3487 |
$thumbnail_sizes[$size_key] = ucfirst($size_name);
|
3488 |
}
|
|
|
3489 |
|
3490 |
$args = array(
|
3491 |
'id' => 'thumb_size',
|
3737 |
add_action('post_grid_layout_element_css_thumb_link', 'post_grid_layout_element_css_thumb_link', 10);
|
3738 |
function post_grid_layout_element_css_thumb_link($args){
|
3739 |
|
|
|
3740 |
$index = isset($args['index']) ? $args['index'] : '';
|
3741 |
$element = isset($args['element']) ? $args['element'] : array();
|
3742 |
$layout_id = isset($args['layout_id']) ? $args['layout_id'] : '';
|
4113 |
text-align: <?php echo esc_attr($text_align); ?>;
|
4114 |
<?php endif; ?>
|
4115 |
<?php if(!empty($css)): ?>
|
4116 |
+
<?php echo esc_attr($css); ?>
|
4117 |
<?php endif; ?>
|
4118 |
}
|
4119 |
<?php if(!empty($css_hover)): ?>
|
4120 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
4121 |
+
<?php echo esc_attr($css_hover); ?>
|
4122 |
}
|
4123 |
<?php endif; ?>
|
4124 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
4444 |
text-align: <?php echo esc_attr($text_align); ?>;
|
4445 |
<?php endif; ?>
|
4446 |
<?php if(!empty($css)): ?>
|
4447 |
+
<?php echo esc_attr($css); ?>
|
4448 |
<?php endif; ?>
|
4449 |
}
|
4450 |
<?php if(!empty($css_hover)): ?>
|
4451 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
4452 |
+
<?php echo esc_attr($css_hover); ?>
|
4453 |
}
|
4454 |
<?php endif; ?>
|
4455 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
4765 |
text-align: <?php echo esc_attr($text_align); ?>;
|
4766 |
<?php endif; ?>
|
4767 |
<?php if(!empty($css)): ?>
|
4768 |
+
<?php echo esc_attr($css); ?>
|
4769 |
<?php endif; ?>
|
4770 |
}
|
4771 |
<?php if(!empty($css_hover)): ?>
|
4772 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
4773 |
+
<?php echo esc_attr($css_hover); ?>
|
4774 |
}
|
4775 |
<?php endif; ?>
|
4776 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
5082 |
|
5083 |
?>
|
5084 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> categories ">
|
5085 |
+
<?php echo esc_html(sprintf($wrapper_html, $categories_html)); ?>
|
5086 |
</div>
|
5087 |
<?php
|
5088 |
}
|
5124 |
text-align: <?php echo esc_attr($text_align); ?>;
|
5125 |
<?php endif; ?>
|
5126 |
<?php if(!empty($css)): ?>
|
5127 |
+
<?php echo esc_attr($css); ?>
|
5128 |
<?php endif; ?>
|
5129 |
}
|
5130 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
5140 |
}
|
5141 |
<?php if(!empty($css_hover)): ?>
|
5142 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
5143 |
+
<?php echo esc_attr($css_hover); ?>
|
5144 |
}
|
5145 |
<?php endif; ?>
|
5146 |
</style>
|
5401 |
|
5402 |
?>
|
5403 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> tags ">
|
5404 |
+
<?php echo esc_html(sprintf($wrapper_html, $categories_html)); ?>
|
5405 |
</div>
|
5406 |
<?php
|
5407 |
}
|
5444 |
text-align: <?php echo esc_attr($text_align); ?>;
|
5445 |
<?php endif; ?>
|
5446 |
<?php if(!empty($css)): ?>
|
5447 |
+
<?php echo esc_attr($css); ?>
|
5448 |
<?php endif; ?>
|
5449 |
}
|
5450 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
5460 |
}
|
5461 |
<?php if(!empty($css_hover)): ?>
|
5462 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
5463 |
+
<?php echo esc_attr($css_hover); ?>
|
5464 |
}
|
5465 |
<?php endif; ?>
|
5466 |
</style>
|
5694 |
|
5695 |
?>
|
5696 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> tags ">
|
5697 |
+
<?php echo esc_html(sprintf($wrapper_html, $comments_count_html)); ?>
|
5698 |
</div>
|
5699 |
<?php
|
5700 |
|
5740 |
text-align: <?php echo esc_attr($text_align); ?>;
|
5741 |
<?php endif; ?>
|
5742 |
<?php if(!empty($css)): ?>
|
5743 |
+
<?php echo esc_attr($css); ?>
|
5744 |
<?php endif; ?>
|
5745 |
}
|
5746 |
<?php if(!empty($css_hover)): ?>
|
5747 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
5748 |
+
<?php echo esc_attr($css_hover); ?>
|
5749 |
}
|
5750 |
<?php endif; ?>
|
5751 |
</style>
|
5942 |
|
5943 |
?>
|
5944 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> share_button ">
|
5945 |
+
<?php echo esc_html(sprintf($wrapper_html, $share_button_html)); ?>
|
5946 |
</div>
|
5947 |
<?php
|
5948 |
}
|
5983 |
text-align: <?php echo esc_attr($text_align); ?>;
|
5984 |
<?php endif; ?>
|
5985 |
<?php if(!empty($css)): ?>
|
5986 |
+
<?php echo esc_attr($css); ?>
|
5987 |
<?php endif; ?>
|
5988 |
}
|
5989 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
|
5999 |
}
|
6000 |
<?php if(!empty($css_hover)): ?>
|
6001 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
6002 |
+
<?php echo esc_attr($css_hover); ?>
|
6003 |
}
|
6004 |
<?php endif; ?>
|
6005 |
</style>
|
6200 |
padding: <?php echo esc_attr($height); ?>;
|
6201 |
<?php endif; ?>
|
6202 |
<?php if(!empty($css)): ?>
|
6203 |
+
<?php echo esc_attr($css); ?>
|
6204 |
<?php endif; ?>
|
6205 |
}
|
6206 |
<?php if(!empty($css_hover)): ?>
|
6207 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
6208 |
+
<?php echo esc_attr($css_hover); ?>
|
6209 |
}
|
6210 |
<?php endif; ?>
|
6211 |
</style>
|
6416 |
|
6417 |
?>
|
6418 |
<div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> five_star ">
|
6419 |
+
<?php echo esc_html(sprintf($wrapper_html, $five_star_html)); ?>
|
6420 |
</div>
|
6421 |
<?php
|
6422 |
}
|
6456 |
text-align: <?php echo esc_attr($text_align); ?>;
|
6457 |
<?php endif; ?>
|
6458 |
<?php if(!empty($css)): ?>
|
6459 |
+
<?php echo esc_attr($css); ?>
|
6460 |
<?php endif; ?>
|
6461 |
}
|
6462 |
<?php if(!empty($css_hover)): ?>
|
6463 |
.layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
|
6464 |
+
<?php echo esc_attr($css_hover); ?>
|
6465 |
}
|
6466 |
<?php endif; ?>
|
6467 |
</style>
|
includes/settings-hook.php
CHANGED
@@ -12,7 +12,6 @@ function post_grid_settings_content_general(){
|
|
12 |
$post_grid_preview = isset($post_grid_settings['post_grid_preview']) ? $post_grid_settings['post_grid_preview'] : 'yes';
|
13 |
$post_options_post_types = isset($post_grid_settings['post_options_post_types']) ? $post_grid_settings['post_options_post_types'] : array();
|
14 |
|
15 |
-
//echo '<pre>'.var_export($post_grid_settings, true).'</pre>';
|
16 |
$posttypes_array = post_grid_posttypes_array();
|
17 |
|
18 |
?>
|
12 |
$post_grid_preview = isset($post_grid_settings['post_grid_preview']) ? $post_grid_settings['post_grid_preview'] : 'yes';
|
13 |
$post_options_post_types = isset($post_grid_settings['post_options_post_types']) ? $post_grid_settings['post_options_post_types'] : array();
|
14 |
|
|
|
15 |
$posttypes_array = post_grid_posttypes_array();
|
16 |
|
17 |
?>
|
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.16
|
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.16');
|
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,13 @@ then paste this shortcode anywhere in your page to display grid<br />
|
|
223 |
== Changelog ==
|
224 |
|
225 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
= 2.1.14 =
|
227 |
* 2021-12-24 - add - Shortcdoe support for layout elements custom classes.
|
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.9
|
7 |
+
Stable tag: 2.1.16
|
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.16 =
|
227 |
+
* 2022-03-05 - fix - Escaping issue fixed.
|
228 |
+
|
229 |
+
= 2.1.15 =
|
230 |
+
* 2022-03-04 - fix - Fixed minor security issue.
|
231 |
+
|
232 |
+
|
233 |
= 2.1.14 =
|
234 |
* 2021-12-24 - add - Shortcdoe support for layout elements custom classes.
|
235 |
|
templates/post-grid-hook.php
CHANGED
@@ -22,15 +22,15 @@ function post_grid_main_lazy($atts){
|
|
22 |
<?php
|
23 |
if($lazy_load_enable == 'yes'):
|
24 |
?>
|
25 |
-
<div id="post-grid-lazy-<?php echo $grid_id; ?>" class="post-grid-lazy"><img alt="<?php echo $lazy_load_alt_text; ?>" src="<?php echo $lazy_load_image_src; ?>"/></div>
|
26 |
<script>
|
27 |
-
jQuery('#post-grid-lazy-<?php echo $grid_id; ?>').ready(function($){
|
28 |
-
$('#post-grid-lazy-<?php echo $grid_id; ?>').fadeOut();
|
29 |
-
$('#post-grid-<?php echo $grid_id; ?>').fadeIn();
|
30 |
})
|
31 |
</script>
|
32 |
<style type="text/css">
|
33 |
-
#post-grid-<?php echo $grid_id; ?>{display: none;}
|
34 |
.post-grid-lazy{
|
35 |
text-align: center;
|
36 |
}
|
@@ -91,7 +91,7 @@ function post_grid_main_container($atts){
|
|
91 |
|
92 |
|
93 |
?>
|
94 |
-
<div data-options='<?php echo json_encode($post_grid_js_args); ?>' id="post-grid-<?php echo $grid_id; ?>" class="post-grid <?php echo $grid_type; ?>">
|
95 |
<?php
|
96 |
do_action('post_grid_container', $args);
|
97 |
?>
|
@@ -126,8 +126,8 @@ function post_grid_container_search($args){
|
|
126 |
|
127 |
$page_url = get_permalink(get_the_ID());
|
128 |
?>
|
129 |
-
<div class="post-grid-search <?php echo $search_action_type; ?>">
|
130 |
-
<form grid_id="<?php echo $grid_id; ?>" action="<?php echo $page_url; ?>" method="get">
|
131 |
<?php
|
132 |
|
133 |
do_action('post_grid_search', $args);
|
@@ -170,8 +170,8 @@ function post_grid_search_keyword_field($args){
|
|
170 |
?>
|
171 |
<div class="field-wrap field-wrap-keyword">
|
172 |
|
173 |
-
<span class="search-icon"><?php echo $nav_top_search_icon; ?></span>
|
174 |
-
<input grid_id="<?php echo $grid_id; ?>" title="<?php echo __('Press enter to reset', 'post-grid'); ?>" class="search" type="text" name="keyword" placeholder="<?php echo $nav_top_search_placeholder; ?>" value="<?php echo $keyword; ?>">
|
175 |
|
176 |
</div>
|
177 |
|
@@ -213,7 +213,7 @@ function post_grid_search_submit_field($args){
|
|
213 |
<?php wp_nonce_field( 'post_grid_search_nonce','_wpnonce', false ); ?>
|
214 |
|
215 |
<input type="submit" value="<?php echo __('Search', 'post-grid'); ?>">
|
216 |
-
<span class="search-loading"><?php echo $search_loading_icon; ?></span>
|
217 |
|
218 |
</div>
|
219 |
|
@@ -360,14 +360,12 @@ function post_grid_posts_loop($args){
|
|
360 |
$query_args = apply_filters('post_grid_query_args', $query_args, $args);
|
361 |
|
362 |
|
363 |
-
//echo '<pre>'.var_export($query_args, true).'</pre>';
|
364 |
|
365 |
$post_grid_wp_query = new WP_Query($query_args);
|
366 |
|
367 |
$wp_query = $post_grid_wp_query;
|
368 |
|
369 |
|
370 |
-
//echo '<pre>'.var_export($post_grid_wp_query, true).'</pre>';
|
371 |
|
372 |
$loop_count = 0;
|
373 |
|
@@ -376,7 +374,7 @@ function post_grid_posts_loop($args){
|
|
376 |
do_action('post_grid_loop_top', $args);
|
377 |
|
378 |
?>
|
379 |
-
<div class="<?php echo apply_filters('post_grid_grid_items_class','grid-items', $args); ?>">
|
380 |
<?php
|
381 |
do_action('post_grid_before_loop', $args);
|
382 |
|
@@ -385,7 +383,6 @@ function post_grid_posts_loop($args){
|
|
385 |
$args['post_id'] = $post_id;
|
386 |
$args['loop_count'] = $loop_count;
|
387 |
|
388 |
-
//echo '####'.$loop_count;
|
389 |
|
390 |
do_action('post_grid_loop', $args);
|
391 |
|
@@ -426,7 +423,6 @@ function post_grid_query_args_search($query_args, $args){
|
|
426 |
$query_args['s'] = $keyword;
|
427 |
}
|
428 |
|
429 |
-
//echo '<pre>'.var_export($query_args, true).'</pre>';
|
430 |
|
431 |
|
432 |
|
@@ -446,7 +442,7 @@ function post_grid_loop_no_post($args){
|
|
446 |
|
447 |
?>
|
448 |
<div class="no-post-found">
|
449 |
-
<?php echo apply_filters('post_grid_no_post_text', $no_post_text); ?>
|
450 |
</div>
|
451 |
<?php
|
452 |
|
@@ -501,18 +497,17 @@ function post_grid_loop($args){
|
|
501 |
|
502 |
?>
|
503 |
|
504 |
-
<div class="<?php echo $item_css_class; ?> ">
|
505 |
<?php
|
506 |
do_action('post_grid_item_top', $args);
|
507 |
?>
|
508 |
-
<div class="layer-wrapper layout-<?php echo $layout_id; ?>">
|
509 |
<?php
|
510 |
|
511 |
$layout_args['layout_id'] = !empty($layout_id) ? $layout_id : $skin;
|
512 |
$layout_args['post_id'] = $post_id;
|
513 |
$layout_args['options'] = $post_grid_options;
|
514 |
|
515 |
-
//echo $odd_even_class;
|
516 |
do_action('post_grid_item_layout', $layout_args);
|
517 |
|
518 |
?>
|
@@ -568,10 +563,9 @@ function post_grid_item_layout_media($args){
|
|
568 |
|
569 |
$html_media = apply_filters('post_grid_filter_html_media', $html_media);
|
570 |
|
571 |
-
//echo get_the_title($post_id);
|
572 |
|
573 |
?>
|
574 |
-
<div class="layer-media"><?php echo $html_media; ?></div>
|
575 |
<?php
|
576 |
|
577 |
}
|
@@ -681,17 +675,17 @@ function post_grid_container_old_layout_css($args){
|
|
681 |
|
682 |
if($item_key=='categories' || $item_key=='tags'){
|
683 |
?>
|
684 |
-
#post-grid-<?php echo $grid_id; ?> .element_<?php echo $item_id; ?> a{<?php echo $item_css; ?>}
|
685 |
<?php
|
686 |
}elseif($item_key=='down_arrow'){
|
687 |
$arrow_size = $item_info['arrow_size'];
|
688 |
$arrow_bg_color = $item_info['arrow_bg_color'];
|
689 |
?>
|
690 |
-
#post-grid-<?php echo $grid_id; ?> .element_<?php echo $item_id; ?>{<?php echo $item_css; ?>}
|
691 |
#post-grid-<?php echo $grid_id; ?> .element_<?php echo $item_id; ?>{
|
692 |
-
border-left: <?php echo $arrow_size; ?> solid rgba(0, 0, 0, 0);
|
693 |
-
border-right: <?php echo $arrow_size; ?> solid rgba(0, 0, 0, 0);
|
694 |
-
border-top: <?php echo $arrow_size; ?> solid <?php echo $arrow_bg_color; ?>;
|
695 |
height: 0;
|
696 |
width: 0;
|
697 |
}
|
@@ -701,24 +695,24 @@ function post_grid_container_old_layout_css($args){
|
|
701 |
$arrow_size = $item_info['arrow_size'];
|
702 |
$arrow_bg_color = $item_info['arrow_bg_color'];
|
703 |
?>
|
704 |
-
#post-grid-<?php echo $grid_id; ?> .element_<?php echo $item_id; ?>{<?php echo $item_css; ?>}
|
705 |
-
#post-grid-<?php echo $grid_id; ?> .element_<?php echo $item_id; ?>{
|
706 |
-
border-bottom: <?php echo $arrow_size; ?> solid <?php echo $arrow_bg_color; ?>;
|
707 |
-
border-left: <?php echo $arrow_size; ?> solid transparent;
|
708 |
-
border-right: <?php echo $arrow_size; ?> solid transparent;
|
709 |
height: 0;
|
710 |
width: 0;
|
711 |
}
|
712 |
<?php
|
713 |
}else{
|
714 |
?>
|
715 |
-
#post-grid-<?php echo $grid_id; ?> .element_<?php echo $item_id; ?>{<?php echo $item_css; ?>}
|
716 |
<?php
|
717 |
}
|
718 |
}
|
719 |
foreach($layout as $item_id=>$item_info){
|
720 |
$item_css_hover = $item_info['css_hover'];
|
721 |
-
echo '#post-grid-'
|
722 |
}
|
723 |
?>
|
724 |
</style>
|
@@ -741,7 +735,6 @@ function post_grid_item_layout_new($args){
|
|
741 |
|
742 |
|
743 |
|
744 |
-
//echo '<pre>'.var_export($layout_elements_data, ture).'</pre>';
|
745 |
|
746 |
|
747 |
if(!empty($layout_elements_data))
|
@@ -841,14 +834,14 @@ function post_grid_pagination_normal($args, $post_grid_wp_query){
|
|
841 |
?>
|
842 |
</div>
|
843 |
<style type="text/css">
|
844 |
-
#post-grid-<?php echo $grid_id; ?> .pagination .page-numbers{
|
845 |
-
font-size:<?php echo $pagination_font_size; ?>;
|
846 |
-
color:<?php echo $pagination_font_color; ?>;
|
847 |
-
background:<?php echo $pagination_bg_color; ?>;
|
848 |
}
|
849 |
-
#post-grid-<?php echo $grid_id; ?> .pagination .page-numbers:hover,
|
850 |
-
#post-grid-<?php echo $grid_id; ?> .pagination .page-numbers.current{
|
851 |
-
background:<?php echo $pagination_active_bg_color; ?>;
|
852 |
}
|
853 |
</style>
|
854 |
<?php
|
@@ -947,65 +940,65 @@ function post_grid_view_type_css_grid($args){
|
|
947 |
|
948 |
?>
|
949 |
<style type="text/css">
|
950 |
-
#post-grid-<?php echo $grid_id; ?> {
|
951 |
<?php if(!empty($container_padding)): ?>
|
952 |
-
padding:<?php echo $container_padding; ?>;
|
953 |
<?php endif; ?>
|
954 |
<?php if(!empty($container_bg_color)): ?>
|
955 |
-
background-color: <?php echo $container_bg_color; ?>;
|
956 |
<?php endif; ?>
|
957 |
<?php if(!empty($container_bg_image)): ?>
|
958 |
-
background-image: url(<?php echo $container_bg_image; ?>);
|
959 |
<?php endif; ?>
|
960 |
<?php if(!empty($container_text_align)): ?>
|
961 |
-
text-align: <?php echo $container_text_align; ?>;
|
962 |
<?php endif; ?>
|
963 |
}
|
964 |
-
#post-grid-<?php echo $grid_id; ?> .grid-items{
|
965 |
<?php if(!empty($items_wrapper_text_align)): ?>
|
966 |
-
text-align: <?php echo $items_wrapper_text_align; ?>;
|
967 |
<?php endif; ?>
|
968 |
}
|
969 |
-
#post-grid-<?php echo $grid_id; ?> .item{
|
970 |
<?php if(!empty($items_margin)): ?>
|
971 |
-
margin:<?php echo $items_margin; ?>;
|
972 |
<?php endif; ?>
|
973 |
<?php if(!empty($item_padding)): ?>
|
974 |
-
padding:<?php echo $item_padding; ?>;
|
975 |
<?php endif; ?>
|
976 |
<?php if($items_bg_color_type=='fixed'): ?>
|
977 |
-
background:<?php echo $items_bg_color; ?>;
|
978 |
<?php endif; ?>
|
979 |
}
|
980 |
-
#post-grid-<?php echo $grid_id; ?> .item .layer-media{
|
981 |
<?php
|
982 |
if($items_media_height_style == 'fixed_height' || $items_media_height_style == 'auto_height'){
|
983 |
-
echo 'height:'
|
984 |
}elseif($items_media_height_style=='max_height'){
|
985 |
-
echo 'max-height:'
|
986 |
}else{
|
987 |
-
echo 'height:'
|
988 |
}
|
989 |
?>
|
990 |
}
|
991 |
@media only screen and ( min-width: 0px ) and ( max-width: 767px ) {
|
992 |
|
993 |
-
#post-grid-<?php echo $grid_id; ?> .grid-items{
|
994 |
<?php if(is_integer($items_width_mobile)): ?>
|
995 |
-
columns: <?php echo $items_width_mobile; ?>;
|
996 |
<?php endif; ?>
|
997 |
}
|
998 |
|
999 |
|
1000 |
-
#post-grid-<?php echo $grid_id; ?> .item{
|
1001 |
<?php if(!empty($items_width_mobile) && !is_integer($items_width_desktop)): ?>
|
1002 |
-
width:<?php echo $items_width_mobile; ?>;
|
1003 |
<?php endif; ?>
|
1004 |
<?php
|
1005 |
if($items_height_style == 'fixed_height'){
|
1006 |
-
echo 'height:'
|
1007 |
}elseif($items_height_style=='max_height'){
|
1008 |
-
echo 'max-height:'
|
1009 |
}elseif($items_height_style=='auto_height'){
|
1010 |
echo 'height:auto;';
|
1011 |
}else{
|
@@ -1015,21 +1008,21 @@ function post_grid_view_type_css_grid($args){
|
|
1015 |
}
|
1016 |
}
|
1017 |
@media only screen and ( min-width: 768px ) and ( max-width: 1023px ) {
|
1018 |
-
#post-grid-<?php echo $grid_id; ?> .grid-items{
|
1019 |
<?php if(is_integer($items_width_tablet)): ?>
|
1020 |
-
columns: <?php echo $items_width_tablet; ?>;
|
1021 |
<?php endif; ?>
|
1022 |
}
|
1023 |
|
1024 |
-
#post-grid-<?php echo $grid_id; ?> .item{
|
1025 |
<?php if(!empty($items_width_tablet) && !is_integer($items_width_desktop)): ?>
|
1026 |
-
width:<?php echo $items_width_tablet; ?>;
|
1027 |
<?php endif; ?>
|
1028 |
<?php
|
1029 |
if($items_height_style_tablet == 'fixed_height'){
|
1030 |
-
echo 'height:'
|
1031 |
}elseif($items_height_style_tablet=='max_height'){
|
1032 |
-
echo 'max-height:'
|
1033 |
}elseif($items_height_style_tablet=='auto_height'){
|
1034 |
echo 'max-height:auto;';
|
1035 |
}else{
|
@@ -1040,22 +1033,22 @@ function post_grid_view_type_css_grid($args){
|
|
1040 |
}
|
1041 |
@media only screen and (min-width: 1024px ){
|
1042 |
|
1043 |
-
#post-grid-<?php echo $grid_id; ?> .grid-items{
|
1044 |
<?php if(is_integer($items_width_desktop)): ?>
|
1045 |
-
columns: <?php echo $items_width_desktop; ?>;
|
1046 |
<?php endif; ?>
|
1047 |
}
|
1048 |
|
1049 |
|
1050 |
-
#post-grid-<?php echo $grid_id; ?> .item{
|
1051 |
<?php if(!empty($items_width_desktop) && !is_integer($items_width_desktop)): ?>
|
1052 |
-
width:<?php echo $items_width_desktop; ?>;
|
1053 |
<?php endif; ?>
|
1054 |
<?php
|
1055 |
if($items_height_style == 'fixed_height'){
|
1056 |
-
echo 'height:'
|
1057 |
}elseif($items_height_style=='max_height'){
|
1058 |
-
echo 'max-height:'
|
1059 |
}elseif($items_height_style=='auto_height'){
|
1060 |
echo 'height:auto;';
|
1061 |
}else{
|
@@ -1077,8 +1070,8 @@ function post_grid_view_type_css_grid($args){
|
|
1077 |
|
1078 |
?>
|
1079 |
@media only screen and (min-width: 1024px ) {
|
1080 |
-
#post-grid-<?php echo $grid_id; ?> .item:first-child{
|
1081 |
-
width: <?php echo $width; ?>px;
|
1082 |
}
|
1083 |
}
|
1084 |
<?php
|
@@ -1091,8 +1084,8 @@ function post_grid_view_type_css_grid($args){
|
|
1091 |
|
1092 |
?>
|
1093 |
@media only screen and (min-width: 1024px ) {
|
1094 |
-
#post-grid-<?php echo $grid_id; ?> .item:last-child{
|
1095 |
-
width: <?php echo $width; ?>px;
|
1096 |
}
|
1097 |
}
|
1098 |
<?php
|
@@ -1101,10 +1094,10 @@ function post_grid_view_type_css_grid($args){
|
|
1101 |
$width = intval($items_width_desktop)+intval($items_margin);
|
1102 |
?>
|
1103 |
@media only screen and (min-width: 1024px ) {
|
1104 |
-
#post-grid-<?php echo $grid_id; ?> .item:first-child{
|
1105 |
float: left;
|
1106 |
}
|
1107 |
-
#post-grid-<?php echo $grid_id; ?> .item{
|
1108 |
float: right;
|
1109 |
}
|
1110 |
}
|
@@ -1113,7 +1106,7 @@ function post_grid_view_type_css_grid($args){
|
|
1113 |
elseif($grid_layout_name=='layout_L_R'){
|
1114 |
?>
|
1115 |
@media only screen and (min-width: 1024px ) {
|
1116 |
-
#post-grid-<?php echo $grid_id; ?> .item.odd .layer-media{
|
1117 |
float: right;
|
1118 |
}
|
1119 |
}
|
@@ -1123,9 +1116,9 @@ function post_grid_view_type_css_grid($args){
|
|
1123 |
$width = intval((int)$items_width_desktop*$grid_layout_col_multi)+intval((int)$items_margin*2*($grid_layout_col_multi-1));
|
1124 |
?>
|
1125 |
@media only screen and (min-width: 1024px ) {
|
1126 |
-
#post-grid-<?php echo $grid_id; ?> .item:nth-child(1),
|
1127 |
-
#post-grid-<?php echo $grid_id; ?> .item:nth-child(<?php echo $grid_layout_col_multi+2; ?>) {
|
1128 |
-
width: <?php echo $width; ?>px;
|
1129 |
}
|
1130 |
}
|
1131 |
<?php
|
@@ -1212,18 +1205,11 @@ function post_grid_main_scripts($args){
|
|
1212 |
|
1213 |
}
|
1214 |
|
1215 |
-
|
1216 |
-
|
1217 |
-
?>
|
1218 |
-
|
1219 |
-
<?php //echo $element_css; ?>
|
1220 |
-
<?php
|
1221 |
-
|
1222 |
?>
|
1223 |
<?php if(!empty($custom_css)): ?>
|
1224 |
<style type="text/css">
|
1225 |
<?php
|
1226 |
-
echo $custom_css;
|
1227 |
?>
|
1228 |
</style>
|
1229 |
<?php endif; ?>
|
@@ -1231,14 +1217,14 @@ function post_grid_main_scripts($args){
|
|
1231 |
<?php if(!empty($layout_custom_css)): ?>
|
1232 |
<style type="text/css">
|
1233 |
<?php
|
1234 |
-
echo str_replace('__ID__', 'layout-'
|
1235 |
?>
|
1236 |
</style>
|
1237 |
<?php endif; ?>
|
1238 |
<script>
|
1239 |
<?php
|
1240 |
if(!empty($custom_js)): ?>
|
1241 |
-
<?php echo $custom_js; ?>
|
1242 |
<?php
|
1243 |
endif;
|
1244 |
|
@@ -1246,8 +1232,8 @@ function post_grid_main_scripts($args){
|
|
1246 |
|
1247 |
if($masonry_enable=='yes' && $masonry_load == true ):
|
1248 |
?>
|
1249 |
-
jQuery('#post-grid-lazy-<?php echo $grid_id; ?>').ready(function($){
|
1250 |
-
var $container = $('#post-grid-<?php echo $grid_id; ?> .grid-items');
|
1251 |
$container.masonry({
|
1252 |
itemSelector: '.item',
|
1253 |
columnWidth: '.item', //as you wish , you can use numeric
|
@@ -1382,7 +1368,6 @@ function post_grid_main_convert_layout($args){
|
|
1382 |
|
1383 |
foreach ($content_layout_data as $index => $item){
|
1384 |
|
1385 |
-
//echo '<pre>'.var_export($item, true).'</pre>';
|
1386 |
|
1387 |
$custom_class = isset($item['custom_class']) ? $item['custom_class'] : '';
|
1388 |
$char_limit = isset($item['char_limit']) ? $item['char_limit'] : '';
|
@@ -1428,7 +1413,6 @@ function post_grid_main_convert_layout($args){
|
|
1428 |
$layout_elements_data[$item_count]['wrapper_end']['wrapper_id'] = '';
|
1429 |
|
1430 |
|
1431 |
-
//echo '<pre>'.var_export($layout_elements_data, true).'</pre>';
|
1432 |
|
1433 |
$post_grid_title = get_the_title($grid_id);
|
1434 |
|
@@ -1452,7 +1436,6 @@ function post_grid_main_convert_layout($args){
|
|
1452 |
update_post_meta($new_layout_id,'layout_options', $layout_options);
|
1453 |
|
1454 |
|
1455 |
-
//echo '<pre>'.var_export($options, true).'</pre>';
|
1456 |
|
1457 |
$options['layout_id'] = $new_layout_id;
|
1458 |
|
@@ -1461,7 +1444,7 @@ function post_grid_main_convert_layout($args){
|
|
1461 |
if($layout_converted){
|
1462 |
|
1463 |
?>
|
1464 |
-
<p>Layout converted successfully, please go <a href="<?php echo get_edit_post_link($new_layout_id); ?>">#<?php echo $new_layout_id; ?></a> this link to edit layout </p>
|
1465 |
<p>Please report issue if you found any problem, <a href="https://www.pickplugins.com/forum/">create support ticket</a> </p>
|
1466 |
<?php
|
1467 |
}
|
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_raw($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();
|
29 |
+
$('#post-grid-<?php echo esc_attr($grid_id); ?>').fadeIn();
|
30 |
})
|
31 |
</script>
|
32 |
<style type="text/css">
|
33 |
+
#post-grid-<?php echo esc_attr($grid_id); ?>{display: none;}
|
34 |
.post-grid-lazy{
|
35 |
text-align: center;
|
36 |
}
|
91 |
|
92 |
|
93 |
?>
|
94 |
+
<div data-options='<?php echo esc_attr(json_encode($post_grid_js_args)); ?>' id="post-grid-<?php echo esc_attr($grid_id); ?>" class="post-grid <?php echo esc_attr($grid_type); ?>">
|
95 |
<?php
|
96 |
do_action('post_grid_container', $args);
|
97 |
?>
|
126 |
|
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_raw($page_url); ?>" method="get">
|
131 |
<?php
|
132 |
|
133 |
do_action('post_grid_search', $args);
|
170 |
?>
|
171 |
<div class="field-wrap field-wrap-keyword">
|
172 |
|
173 |
+
<span class="search-icon"><?php echo esc_html($nav_top_search_icon); ?></span>
|
174 |
+
<input grid_id="<?php echo esc_attr($grid_id); ?>" title="<?php echo __('Press enter to reset', 'post-grid'); ?>" class="search" type="text" name="keyword" placeholder="<?php echo esc_attr($nav_top_search_placeholder); ?>" value="<?php echo esc_attr($keyword); ?>">
|
175 |
|
176 |
</div>
|
177 |
|
213 |
<?php wp_nonce_field( 'post_grid_search_nonce','_wpnonce', false ); ?>
|
214 |
|
215 |
<input type="submit" value="<?php echo __('Search', 'post-grid'); ?>">
|
216 |
+
<span class="search-loading"><?php echo esc_html($search_loading_icon); ?></span>
|
217 |
|
218 |
</div>
|
219 |
|
360 |
$query_args = apply_filters('post_grid_query_args', $query_args, $args);
|
361 |
|
362 |
|
|
|
363 |
|
364 |
$post_grid_wp_query = new WP_Query($query_args);
|
365 |
|
366 |
$wp_query = $post_grid_wp_query;
|
367 |
|
368 |
|
|
|
369 |
|
370 |
$loop_count = 0;
|
371 |
|
374 |
do_action('post_grid_loop_top', $args);
|
375 |
|
376 |
?>
|
377 |
+
<div class="<?php echo esc_attr(apply_filters('post_grid_grid_items_class','grid-items', $args)); ?>">
|
378 |
<?php
|
379 |
do_action('post_grid_before_loop', $args);
|
380 |
|
383 |
$args['post_id'] = $post_id;
|
384 |
$args['loop_count'] = $loop_count;
|
385 |
|
|
|
386 |
|
387 |
do_action('post_grid_loop', $args);
|
388 |
|
423 |
$query_args['s'] = $keyword;
|
424 |
}
|
425 |
|
|
|
426 |
|
427 |
|
428 |
|
442 |
|
443 |
?>
|
444 |
<div class="no-post-found">
|
445 |
+
<?php echo esc_html(apply_filters('post_grid_no_post_text', $no_post_text)); ?>
|
446 |
</div>
|
447 |
<?php
|
448 |
|
497 |
|
498 |
?>
|
499 |
|
500 |
+
<div class="<?php echo esc_attr($item_css_class); ?> ">
|
501 |
<?php
|
502 |
do_action('post_grid_item_top', $args);
|
503 |
?>
|
504 |
+
<div class="layer-wrapper layout-<?php echo esc_attr($layout_id); ?>">
|
505 |
<?php
|
506 |
|
507 |
$layout_args['layout_id'] = !empty($layout_id) ? $layout_id : $skin;
|
508 |
$layout_args['post_id'] = $post_id;
|
509 |
$layout_args['options'] = $post_grid_options;
|
510 |
|
|
|
511 |
do_action('post_grid_item_layout', $layout_args);
|
512 |
|
513 |
?>
|
563 |
|
564 |
$html_media = apply_filters('post_grid_filter_html_media', $html_media);
|
565 |
|
|
|
566 |
|
567 |
?>
|
568 |
+
<div class="layer-media"><?php echo esc_html($html_media); ?></div>
|
569 |
<?php
|
570 |
|
571 |
}
|
675 |
|
676 |
if($item_key=='categories' || $item_key=='tags'){
|
677 |
?>
|
678 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .element_<?php echo esc_attr($item_id); ?> a{<?php echo esc_attr($item_css); ?>}
|
679 |
<?php
|
680 |
}elseif($item_key=='down_arrow'){
|
681 |
$arrow_size = $item_info['arrow_size'];
|
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); ?>;
|
689 |
height: 0;
|
690 |
width: 0;
|
691 |
}
|
695 |
$arrow_size = $item_info['arrow_size'];
|
696 |
$arrow_bg_color = $item_info['arrow_bg_color'];
|
697 |
?>
|
698 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .element_<?php echo esc_attr($item_id); ?>{<?php echo esc_attr($item_css); ?>}
|
699 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .element_<?php echo esc_attr($item_id); ?>{
|
700 |
+
border-bottom: <?php echo esc_attr($arrow_size); ?> solid <?php echo esc_attr($arrow_bg_color); ?>;
|
701 |
+
border-left: <?php echo esc_attr($arrow_size); ?> solid transparent;
|
702 |
+
border-right: <?php echo esc_attr($arrow_size); ?> solid transparent;
|
703 |
height: 0;
|
704 |
width: 0;
|
705 |
}
|
706 |
<?php
|
707 |
}else{
|
708 |
?>
|
709 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .element_<?php echo esc_attr($item_id); ?>{<?php echo esc_attr($item_css); ?>}
|
710 |
<?php
|
711 |
}
|
712 |
}
|
713 |
foreach($layout as $item_id=>$item_info){
|
714 |
$item_css_hover = $item_info['css_hover'];
|
715 |
+
echo '#post-grid-'.esc_attr($grid_id).' .element_'.esc_attr($item_id).':hover{'.esc_attr($item_css_hover).'}';
|
716 |
}
|
717 |
?>
|
718 |
</style>
|
735 |
|
736 |
|
737 |
|
|
|
738 |
|
739 |
|
740 |
if(!empty($layout_elements_data))
|
834 |
?>
|
835 |
</div>
|
836 |
<style type="text/css">
|
837 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .pagination .page-numbers{
|
838 |
+
font-size:<?php echo esc_attr($pagination_font_size); ?>;
|
839 |
+
color:<?php echo esc_attr($pagination_font_color); ?>;
|
840 |
+
background:<?php echo esc_attr($pagination_bg_color); ?>;
|
841 |
}
|
842 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .pagination .page-numbers:hover,
|
843 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .pagination .page-numbers.current{
|
844 |
+
background:<?php echo esc_attr($pagination_active_bg_color); ?>;
|
845 |
}
|
846 |
</style>
|
847 |
<?php
|
940 |
|
941 |
?>
|
942 |
<style type="text/css">
|
943 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> {
|
944 |
<?php if(!empty($container_padding)): ?>
|
945 |
+
padding:<?php echo esc_attr($container_padding); ?>;
|
946 |
<?php endif; ?>
|
947 |
<?php if(!empty($container_bg_color)): ?>
|
948 |
+
background-color: <?php echo esc_attr($container_bg_color); ?>;
|
949 |
<?php endif; ?>
|
950 |
<?php if(!empty($container_bg_image)): ?>
|
951 |
+
background-image: url(<?php echo esc_attr($container_bg_image); ?>);
|
952 |
<?php endif; ?>
|
953 |
<?php if(!empty($container_text_align)): ?>
|
954 |
+
text-align: <?php echo esc_attr($container_text_align); ?>;
|
955 |
<?php endif; ?>
|
956 |
}
|
957 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .grid-items{
|
958 |
<?php if(!empty($items_wrapper_text_align)): ?>
|
959 |
+
text-align: <?php echo esc_attr($items_wrapper_text_align); ?>;
|
960 |
<?php endif; ?>
|
961 |
}
|
962 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item{
|
963 |
<?php if(!empty($items_margin)): ?>
|
964 |
+
margin:<?php echo esc_attr($items_margin); ?>;
|
965 |
<?php endif; ?>
|
966 |
<?php if(!empty($item_padding)): ?>
|
967 |
+
padding:<?php echo esc_attr($item_padding); ?>;
|
968 |
<?php endif; ?>
|
969 |
<?php if($items_bg_color_type=='fixed'): ?>
|
970 |
+
background:<?php echo esc_attr($items_bg_color); ?>;
|
971 |
<?php endif; ?>
|
972 |
}
|
973 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item .layer-media{
|
974 |
<?php
|
975 |
if($items_media_height_style == 'fixed_height' || $items_media_height_style == 'auto_height'){
|
976 |
+
echo 'height:'.esc_attr($items_media_height).';';
|
977 |
}elseif($items_media_height_style=='max_height'){
|
978 |
+
echo 'max-height:'.esc_attr($items_media_height).';';
|
979 |
}else{
|
980 |
+
echo 'height:'.esc_attr($items_media_height).';';
|
981 |
}
|
982 |
?>
|
983 |
}
|
984 |
@media only screen and ( min-width: 0px ) and ( max-width: 767px ) {
|
985 |
|
986 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .grid-items{
|
987 |
<?php if(is_integer($items_width_mobile)): ?>
|
988 |
+
columns: <?php echo esc_attr($items_width_mobile); ?>;
|
989 |
<?php endif; ?>
|
990 |
}
|
991 |
|
992 |
|
993 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item{
|
994 |
<?php if(!empty($items_width_mobile) && !is_integer($items_width_desktop)): ?>
|
995 |
+
width:<?php echo esc_attr($items_width_mobile); ?>;
|
996 |
<?php endif; ?>
|
997 |
<?php
|
998 |
if($items_height_style == 'fixed_height'){
|
999 |
+
echo 'height:'.esc_attr($items_height).';';
|
1000 |
}elseif($items_height_style=='max_height'){
|
1001 |
+
echo 'max-height:'.esc_attr($items_height).';';
|
1002 |
}elseif($items_height_style=='auto_height'){
|
1003 |
echo 'height:auto;';
|
1004 |
}else{
|
1008 |
}
|
1009 |
}
|
1010 |
@media only screen and ( min-width: 768px ) and ( max-width: 1023px ) {
|
1011 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .grid-items{
|
1012 |
<?php if(is_integer($items_width_tablet)): ?>
|
1013 |
+
columns: <?php echo esc_attr($items_width_tablet); ?>;
|
1014 |
<?php endif; ?>
|
1015 |
}
|
1016 |
|
1017 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item{
|
1018 |
<?php if(!empty($items_width_tablet) && !is_integer($items_width_desktop)): ?>
|
1019 |
+
width:<?php echo esc_attr($items_width_tablet); ?>;
|
1020 |
<?php endif; ?>
|
1021 |
<?php
|
1022 |
if($items_height_style_tablet == 'fixed_height'){
|
1023 |
+
echo 'height:'.esc_attr($items_fixed_height_tablet).';';
|
1024 |
}elseif($items_height_style_tablet=='max_height'){
|
1025 |
+
echo 'max-height:'.esc_attr($items_fixed_height_tablet).';';
|
1026 |
}elseif($items_height_style_tablet=='auto_height'){
|
1027 |
echo 'max-height:auto;';
|
1028 |
}else{
|
1033 |
}
|
1034 |
@media only screen and (min-width: 1024px ){
|
1035 |
|
1036 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .grid-items{
|
1037 |
<?php if(is_integer($items_width_desktop)): ?>
|
1038 |
+
columns: <?php echo esc_attr($items_width_desktop); ?>;
|
1039 |
<?php endif; ?>
|
1040 |
}
|
1041 |
|
1042 |
|
1043 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item{
|
1044 |
<?php if(!empty($items_width_desktop) && !is_integer($items_width_desktop)): ?>
|
1045 |
+
width:<?php echo esc_attr($items_width_desktop); ?>;
|
1046 |
<?php endif; ?>
|
1047 |
<?php
|
1048 |
if($items_height_style == 'fixed_height'){
|
1049 |
+
echo 'height:'.esc_attr($items_height).';';
|
1050 |
}elseif($items_height_style=='max_height'){
|
1051 |
+
echo 'max-height:'.esc_attr($items_height).';';
|
1052 |
}elseif($items_height_style=='auto_height'){
|
1053 |
echo 'height:auto;';
|
1054 |
}else{
|
1070 |
|
1071 |
?>
|
1072 |
@media only screen and (min-width: 1024px ) {
|
1073 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item:first-child{
|
1074 |
+
width: <?php echo esc_attr($width); ?>px;
|
1075 |
}
|
1076 |
}
|
1077 |
<?php
|
1084 |
|
1085 |
?>
|
1086 |
@media only screen and (min-width: 1024px ) {
|
1087 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item:last-child{
|
1088 |
+
width: <?php echo esc_attr($width); ?>px;
|
1089 |
}
|
1090 |
}
|
1091 |
<?php
|
1094 |
$width = intval($items_width_desktop)+intval($items_margin);
|
1095 |
?>
|
1096 |
@media only screen and (min-width: 1024px ) {
|
1097 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item:first-child{
|
1098 |
float: left;
|
1099 |
}
|
1100 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item{
|
1101 |
float: right;
|
1102 |
}
|
1103 |
}
|
1106 |
elseif($grid_layout_name=='layout_L_R'){
|
1107 |
?>
|
1108 |
@media only screen and (min-width: 1024px ) {
|
1109 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item.odd .layer-media{
|
1110 |
float: right;
|
1111 |
}
|
1112 |
}
|
1116 |
$width = intval((int)$items_width_desktop*$grid_layout_col_multi)+intval((int)$items_margin*2*($grid_layout_col_multi-1));
|
1117 |
?>
|
1118 |
@media only screen and (min-width: 1024px ) {
|
1119 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item:nth-child(1),
|
1120 |
+
#post-grid-<?php echo esc_attr($grid_id); ?> .item:nth-child(<?php echo esc_attr($grid_layout_col_multi+2); ?>) {
|
1121 |
+
width: <?php echo esc_attr($width); ?>px;
|
1122 |
}
|
1123 |
}
|
1124 |
<?php
|
1205 |
|
1206 |
}
|
1207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1208 |
?>
|
1209 |
<?php if(!empty($custom_css)): ?>
|
1210 |
<style type="text/css">
|
1211 |
<?php
|
1212 |
+
echo esc_attr($custom_css);
|
1213 |
?>
|
1214 |
</style>
|
1215 |
<?php endif; ?>
|
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; ?>
|
1224 |
<script>
|
1225 |
<?php
|
1226 |
if(!empty($custom_js)): ?>
|
1227 |
+
<?php echo esc_js($custom_js); ?>
|
1228 |
<?php
|
1229 |
endif;
|
1230 |
|
1232 |
|
1233 |
if($masonry_enable=='yes' && $masonry_load == true ):
|
1234 |
?>
|
1235 |
+
jQuery('#post-grid-lazy-<?php echo esc_attr($grid_id); ?>').ready(function($){
|
1236 |
+
var $container = $('#post-grid-<?php echo esc_attr($grid_id); ?> .grid-items');
|
1237 |
$container.masonry({
|
1238 |
itemSelector: '.item',
|
1239 |
columnWidth: '.item', //as you wish , you can use numeric
|
1368 |
|
1369 |
foreach ($content_layout_data as $index => $item){
|
1370 |
|
|
|
1371 |
|
1372 |
$custom_class = isset($item['custom_class']) ? $item['custom_class'] : '';
|
1373 |
$char_limit = isset($item['char_limit']) ? $item['char_limit'] : '';
|
1413 |
$layout_elements_data[$item_count]['wrapper_end']['wrapper_id'] = '';
|
1414 |
|
1415 |
|
|
|
1416 |
|
1417 |
$post_grid_title = get_the_title($grid_id);
|
1418 |
|
1436 |
update_post_meta($new_layout_id,'layout_options', $layout_options);
|
1437 |
|
1438 |
|
|
|
1439 |
|
1440 |
$options['layout_id'] = $new_layout_id;
|
1441 |
|
1444 |
if($layout_converted){
|
1445 |
|
1446 |
?>
|
1447 |
+
<p>Layout converted successfully, please go <a href="<?php echo esc_url_raw(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 |
}
|