__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
function blocksy_get_v_spacing($args = []) {
$args = wp_parse_args(
$args,
[
'array' => false
]
);
$v_spacing_output = [
'data-vertical-spacing' => 'top:bottom'
];
$prefix = blocksy_manager()->screen->get_prefix();
$post_content_area_spacing = blocksy_get_theme_mod(
$prefix . '_content_area_spacing',
'both'
);
if (is_singular() || blocksy_is_page([
'blog_is_page' => false
]) || $prefix === 'tribe_events_archive') {
$post_options = blocksy_get_post_options();
$page_vertical_spacing_source = blocksy_default_akg(
'vertical_spacing_source',
$post_options,
'inherit'
);
if ($page_vertical_spacing_source === 'custom') {
$post_content_area_spacing = blocksy_default_akg(
'content_area_spacing',
$post_options,
'both'
);
}
}
$v_spacing_components = [];
if (
$post_content_area_spacing === 'top'
||
$post_content_area_spacing === 'both'
) {
$v_spacing_components[] = 'top';
}
if (
$post_content_area_spacing === 'bottom'
||
$post_content_area_spacing === 'both'
) {
$v_spacing_components[] = 'bottom';
}
$v_spacing_output = [];
$v_spacing_components = apply_filters(
'blocksy:vertical-spacing:components',
$v_spacing_components
);
if (! empty($v_spacing_components)) {
$v_spacing_output['data-vertical-spacing'] = implode(':', $v_spacing_components);
}
if ($args['array']) {
return $v_spacing_output;
}
if (empty($v_spacing_output)) {
return '';
}
return 'data-vertical-spacing="' . $v_spacing_output['data-vertical-spacing'] . '"';
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| archive | Folder | 0750 |
|
|
| blocks | Folder | 0750 |
|
|
| builder | Folder | 0750 |
|
|
| hero | Folder | 0750 |
|
|
| media | Folder | 0750 |
|
|
| patterns | Folder | 0750 |
|
|
| single | Folder | 0750 |
|
|
| woocommerce | Folder | 0750 |
|
|
| back-to-top.php | File | 3.29 KB | 0640 |
|
| breadcrumbs.php | File | 22.21 KB | 0640 |
|
| contacts-box.php | File | 8.79 KB | 0640 |
|
| customizer-builder.php | File | 9.53 KB | 0640 |
|
| emoji-scripts.php | File | 1.12 KB | 0640 |
|
| gallery.php | File | 7.35 KB | 0640 |
|
| global-attrs.php | File | 4.75 KB | 0640 |
|
| hero-section.php | File | 5.18 KB | 0640 |
|
| menus.php | File | 11.42 KB | 0640 |
|
| pagination.php | File | 7.49 KB | 0640 |
|
| patterns.php | File | 832 B | 0640 |
|
| post-meta.php | File | 20.31 KB | 0640 |
|
| posts-listing.php | File | 3.1 KB | 0640 |
|
| search.php | File | 5.76 KB | 0640 |
|
| sidebar.php | File | 4.29 KB | 0640 |
|
| skip-to-content-link.php | File | 269 B | 0640 |
|
| social-box.php | File | 58.93 KB | 0640 |
|
| vertical-spacing.php | File | 1.53 KB | 0640 |
|
| woocommerce-integration.php | File | 5.13 KB | 0640 |
|