| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.9/wp-content/themes/blocksy/inc/options/posts/ |
Upload File : |
<?php
$page_title_options = blocksy_get_options('general/page-title', [
'prefix' => 'categories',
'is_archive' => true,
'location' => __('Categories', 'blocksy'),
]);
$posts_listing_options = blocksy_get_options('general/posts-listing', [
'prefix' => 'categories',
'title' => __('Categories', 'blocksy')
]);
$inner_options = [
blocksy_manager()->get_prefix_title_actions([
'prefix' => 'categories',
'areas' => [
[
'title' => __('Page Title', 'blocksy'),
'options' => $page_title_options,
'sources' => array_merge(
blocksy_manager()
->screen
->get_archive_prefixes_with_human_labels([
'has_categories' => true,
'has_author' => true,
'has_search' => true,
'has_woocommerce' => true
]),
blocksy_manager()
->screen
->get_single_prefixes_with_human_labels([
'has_woocommerce' => true
])
)
],
[
'id' => 'posts_listing',
'title' => __('Posts Listing', 'blocksy'),
'options' => $posts_listing_options,
'sources' => blocksy_manager()
->screen
->get_archive_prefixes_with_human_labels([
'has_categories' => true,
'has_author' => true,
'has_search' => true
]),
],
[
'title' => __('Pagination', 'blocksy'),
'options' => [],
'sources' => blocksy_manager()
->screen
->get_archive_prefixes_with_human_labels([
'has_categories' => true,
'has_author' => true,
'has_search' => true
]),
]
]
]),
$page_title_options,
$posts_listing_options,
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Categories Elements', 'blocksy' ),
],
],
blocksy_get_options('general/sidebar-particular', [
'prefix' => 'categories',
])
];
if (
function_exists('blocksy_companion_get_content_block_that_matches')
&&
blocksy_companion_get_content_block_that_matches([
'template_type' => 'archive',
'template_subtype' => 'canvas',
'match_conditions_strategy' => 'categories'
])
) {
$inner_options = [
blocksy_rand_md5() => [
'type' => 'ct-notification',
'attr' => [ 'data-type' => 'background:white' ],
'text' => blocksy_safe_sprintf(
__('This archive page is overrided by a custom template, to edit it please access %sthis page%s.', 'blocksy'),
'<a href="' . get_edit_post_link(blocksy_companion_get_content_block_that_matches([
'template_type' => 'archive',
'template_subtype' => 'canvas',
'match_conditions_strategy' => 'categories'
])) . '" target="_blank">',
'</a>'
)
],
];
}
$options = [
'single_categories_section_options' => [
'type' => 'ct-options',
'setting' => [ 'transport' => 'postMessage' ],
'inner-options' => $inner_options
],
];