__("Main navigation bar", 'bizflow'), 'mobile' => __("Mobile menu", 'bizflow'), 'secondary' => __("Secondary navigation bar", 'bizflow') ) ); } add_action('init', 'ip_theme_setup'); } if (!function_exists('ip_theme_support')) { function ip_theme_support() { $GLOBALS['content_width'] = 1280; load_theme_textdomain('bizflow'); add_theme_support('automatic-feed-links'); add_theme_support("title-tag"); add_theme_support('html5'); add_theme_support('post-thumbnails'); add_theme_support('woocommerce'); add_theme_support( 'wp-block-styles' ); add_editor_style(IP_THEME_URL . '/assets/css/style-editor.css'); } add_action('after_setup_theme', 'ip_theme_support'); } if(!function_exists('ip_theme_editor_style')){ function ip_theme_editor_style(){ wp_enqueue_style( IP_THEME . 'editor_style', IP_THEME_URL . '/assets/css/style-editor.css', false, IP_THEME_VERSION, 'all' ); } add_action('enqueue_block_editor_assets', 'ip_theme_editor_style'); } if (!function_exists('ip_theme_style')) { function ip_theme_style() { wp_register_style(IP_THEME . 'jasny_bootstrap', IP_THEME_URL . '/assets/js/jasny-bootstrap/css/jasny-bootstrap.min.css'); wp_enqueue_style(IP_THEME . 'jasny_bootstrap'); wp_register_script(IP_THEME . 'jasny_bootstrap', IP_THEME_URL . '/assets/js/jasny-bootstrap/js/jasny-bootstrap.min.js', array('jquery')); wp_enqueue_script(IP_THEME . 'jasny_bootstrap'); wp_register_script(IP_THEME . 'frontend', IP_THEME_URL . '/assets/js/frontend.js', array('jquery'), IP_THEME_VERSION); wp_enqueue_script(IP_THEME . 'frontend'); wp_register_style(IP_THEME . 'generated_style', IP_THEME_URL . '/assets/css/stylesheet.css', array(), IP_THEME_VERSION); wp_enqueue_style(IP_THEME . 'generated_style'); wp_register_style(IP_THEME . 'main_style', IP_THEME_URL . '/style.css', array(), IP_THEME_VERSION); wp_enqueue_style(IP_THEME . 'main_style'); if (is_singular()) { wp_enqueue_script("comment-reply"); } } add_action('wp_enqueue_scripts', 'ip_theme_style'); } if (!function_exists('ip_theme_admin_style')) { function ip_theme_admin_style() { wp_register_style('ip-admin-style', IP_THEME_URL . '/assets/css/admin-style.css', array(), IP_THEME_VERSION); } add_action('admin_enqueue_scripts', 'ip_theme_admin_style', 9); } // Includes customization options for admin require_once IP_THEME_PATH . 'inc/customize.php'; // Includes widget functions require_once IP_THEME_PATH . 'inc/widgets.php'; //Includes helper functions require_once IP_THEME_PATH . '/inc/functions/helpers.php'; // Includes functions used throughout the template files require_once IP_THEME_PATH . '/inc/functions/template-functions.php'; //Includes Breadcrumbs require_once IP_THEME_PATH . 'inc/breadcrumb.php'; //Includes action hooks and filter functions require_once IP_THEME_PATH . 'inc/hooks.php'; //Includes metabox functions require_once IP_THEME_PATH . '/inc/meta/posts-meta.php';