tag.
*/
do_action('wp_body_open');
}
}
// Enqueue Script
add_action('wp_enqueue_scripts', 'cloudpress_dark_enqueue_styles',999);
function cloudpress_dark_enqueue_styles() {
wp_enqueue_style('cloudpress-dark-parent-style', CLOUDPRESS_DARK_PARENT_TEMPLATE_DIR_URI . '/style.css', array('bootstrap'));
if (get_theme_mod('custom_color_enable') == true) {
cloudpress_dark_custom_light();
}
else {
wp_enqueue_style('cloudpress-dark-default-style', CLOUDPRESS_DARK_TEMPLATE_DIR_URI . '/assets/css/default.css');
}
wp_enqueue_style('cloudpress-dark-css', CLOUDPRESS_DARK_TEMPLATE_DIR_URI . '/assets/css/dark.css');
}
//Setup theme
add_action('after_setup_theme', 'cloudpress_dark_setup');
function cloudpress_dark_setup() {
load_theme_textdomain('cloudpress-dark', CLOUDPRESS_DARK_TEMPLATE_DIR . '/languages');
require(CLOUDPRESS_DARK_TEMPLATE_DIR . '/inc/customizer/footer-options.php');
require(CLOUDPRESS_DARK_TEMPLATE_DIR . '/inc/customizer/customizer_theme_style.php');
//About Theme
$theme = wp_get_theme(); // gets the current theme
if ('CloudPress Dark' == $theme->name) {
if (is_admin()) {
require CLOUDPRESS_DARK_TEMPLATE_DIR . '/admin/admin-init.php';
}
}
}
// Add footer hook
add_action('cloudpress_dark_footer_section_hook', 'cloudpress_dark_footer_section_hook');
function cloudpress_dark_footer_section_hook() {?>
name) {
if (get_theme_mod('custom_color_enable') == true) { ?>