__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
add_action('parse_tax_query', function ($query) {
if (is_admin() || ! $query->is_main_query()) {
return;
}
if (! (
is_home() || is_archive() || is_search()
)) {
return;
}
if (function_exists('is_woocommerce')) {
if (is_woocommerce()) {
return;
}
}
if ($query->get('post_type') === 'product') {
return;
}
$prefix = blocksy_manager()->screen->get_prefix();
if (
$prefix === 'bbpress_single'
||
(
$prefix === 'courses_archive'
&&
function_exists('tutor')
)
) {
return;
}
$prefix = blocksy_manager()->screen->get_prefix([
'allowed_prefixes' => [
'blog',
'categories',
'woo_categories',
'search',
'author'
],
'default_prefix' => 'blog'
]);
$query->set(
'posts_per_page',
intval(blocksy_get_theme_mod(
$prefix . '_archive_per_page',
get_option('posts_per_page', 10)
))
);
});
if (! function_exists('blocksy_get_listing_card_type')) {
function blocksy_get_listing_card_type($args = []) {
$args = wp_parse_args(
$args,
[
'prefix' => blocksy_manager()->screen->get_prefix()
]
);
$blog_post_structure = blocksy_listing_page_structure([
'prefix' => $args['prefix']
]);
if ($blog_post_structure === 'gutenberg') {
return '';
}
$card_type = blocksy_get_theme_mod($args['prefix'] . '_card_type', 'boxed');
if ($card_type === 'cover') {
if (
$blog_post_structure === 'simple'
||
(
function_exists('blc_get_content_block_that_matches')
&&
blc_get_content_block_that_matches([
'template_type' => 'archive'
])
)
) {
$card_type = 'boxed';
}
}
return $card_type;
}
}
if (! function_exists('blocksy_listing_page_structure')) {
function blocksy_listing_page_structure($args = []) {
$args = wp_parse_args(
$args,
[
'prefix' => blocksy_manager()->screen->get_prefix()
]
);
$blog_post_structure = blocksy_get_theme_mod(
$args['prefix'] . '_structure',
'grid'
);
if (
$blog_post_structure === 'gutenberg'
||
$blog_post_structure === 'simple'
) {
$has_matching_template = (
function_exists('blc_get_content_block_that_matches')
&&
blc_get_content_block_that_matches([
'template_type' => 'archive',
'match_conditions_strategy' => rtrim($args['prefix'], '_')
])
);
if ($has_matching_template) {
return 'grid';
}
}
return $blog_post_structure;
}
}
if (! function_exists('blocksy_cards_get_deep_link')) {
function blocksy_generic_get_deep_link($args = []) {
$args = wp_parse_args(
$args,
[
'suffix' => '',
'prefix' => null,
'shortcut' => 'border:outside',
'return' => 'string'
]
);
if (! $args['prefix']) {
$args['prefix'] = blocksy_manager()->screen->get_prefix();
}
$attr = [];
if (is_customize_preview()) {
$attr['data-shortcut'] = $args['shortcut'];
$attr['data-shortcut-location'] = blocksy_first_level_deep_link(
$args['prefix']
);
if (! empty($args['suffix'])) {
$attr['data-shortcut-location'] .= ':' . $args['suffix'];
}
}
if ($args['return'] === 'array') {
return $attr;
}
return blocksy_attr_to_html($attr);
}
}
| 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.73 KB | 0640 |
|
| hero-section.php | File | 5.18 KB | 0640 |
|
| menus.php | File | 10.65 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.42 KB | 0640 |
|
| woocommerce-integration.php | File | 5.08 KB | 0640 |
|