File: /sites/nuofama.com/wp-content/themes/blocksy/inc/options/posts/blog.php
<?php
/**
* Blog options
*
* @copyright 2019-present Creative Themes
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
* @package Blocksy
*/
$inner_options = [
blocksy_get_options('general/page-title', [
'prefix' => 'blog',
'is_home' => true,
'enabled_label' => __('Blog Title', 'blocksy'),
'enabled_default' => 'no'
]),
blocksy_get_options('general/posts-listing', [
'prefix' => 'blog',
'title' => __('Blog', 'blocksy')
]),
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Page Elements', 'blocksy' ),
],
],
blocksy_get_options('general/sidebar-particular', [
'prefix' => 'blog',
]),
blocksy_get_options('general/pagination', [
'prefix' => 'blog',
]),
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Functionality Options', 'blocksy' ),
],
],
apply_filters(
'blocksy_posts_home_page_elements_end',
[],
'blog',
'post'
),
blocksy_get_options('general/cards-reveal-effect', [
'prefix' => 'blog',
]),
];
if (
function_exists('blc_get_content_block_that_matches')
&&
blc_get_content_block_that_matches([
'template_type' => 'archive',
'template_subtype' => 'canvas',
'match_conditions_strategy' => 'blog'
])
) {
$inner_options = [
blocksy_rand_md5() => [
'type' => 'ct-notification',
'attr' => [ 'data-type' => 'background:white' ],
'text' => 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(blc_get_content_block_that_matches([
'template_type' => 'archive',
'template_subtype' => 'canvas',
'match_conditions_strategy' => 'blog'
])) . '" target="_blank">',
'</a>'
)
],
];
}
$options = [
'blog_section_options' => [
'type' => 'ct-options',
'inner-options' => $inner_options
],
];