';
echo '
';
}
}
function after_page_layout()
{
$page_sidebar = get_theme_mod("setting_page_sidebar", false);
if ($page_sidebar != false && is_page()) {
echo '
';
get_sidebar();
echo '
';
}
};
add_action('before_page', 'before_page_layout', 0, 0);
add_action('after_page', 'after_page_layout', 0, 0);
add_action('widgets_init', 'my_register_sidebars');
add_action("wp_head", "wp_head_data");
add_action('customize_register', 'my_custom_customizer_settings');
add_filter('nav_menu_link_attributes', 'add_menu_atts', 10, 3);
add_filter('the_content', 'auto_id_headings');
add_action("wp_enqueue_scripts", "custom_additional_styles");
add_action('after_setup_theme', 'basic_support');
add_action("init", "add_menu_locations");
add_action('wp_footer', 'custom_additional_scripts');
add_theme_support( 'automatic-feed-links' );
add_theme_support( "title-tag" );
add_theme_support( "wp-block-styles" );
add_theme_support( "responsive-embeds" );
add_theme_support( "html5", $args );
add_theme_support( "custom-header", $args );
add_theme_support( "custom-background", $args );
add_theme_support( "align-wide" );
add_action('wp_enqueue_scripts', function() {
if (is_singular() && comments_open() && get_option('thread_comments')) {
wp_enqueue_script('comment-reply');
}
});
include_once(get_template_directory() . "/assets/options/post-options.php");
include_once(get_template_directory() . "/assets/options/seo.php");
include_once(get_template_directory() . "/gutenberg-blocks/blocks.php");
include_once(get_template_directory() . "/assets/options/category-options.php");
include_once(get_template_directory() . "/assets/options/user-options.php");