// Framework functions require_once( get_template_directory() . '/framework/get-mods.php' ); require_once( get_template_directory() . '/framework/framework-functions.php' ); require_once( get_template_directory() . '/framework/sanitize-data.php' ); require_once( get_template_directory() . '/framework/fonts.php' ); require_once( get_template_directory() . '/framework/typography.php' ); require_once( get_template_directory() . '/framework/accent-color.php' ); require_once( get_template_directory() . '/framework/customizer/customizer.php' ); require_once( get_template_directory() . '/framework/metabox-options.php' ); require_once( get_template_directory() . '/framework/widget-areas.php' ); require_once( get_template_directory() . '/framework/breadcrumbs.php' ); require_once( get_template_directory() . '/framework/plugins.php' ); require_once( get_template_directory() . '/framework/theme-woocommerce.php' ); require_once( get_template_directory() . '/framework/demo-install.php' ); // Visual Composer if ( class_exists( 'Vc_Manager' ) ) { require_once( get_template_directory() . '/framework/visual-composer-config.php' ); require_once( get_template_directory() . '/framework/visual-composer-custom-row.php' ); } // Sets up theme defaults and registers support for various WordPress features. add_action( 'after_setup_theme', 'bauer_theme_setup' ); function bauer_theme_setup() { // Make theme available for translation. load_theme_textdomain( 'bauer', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); // Let WordPress manage the document title. add_theme_support( 'title-tag' ); // Enable woocommerce support add_theme_support( 'woocommerce' ); // Enable support for Post Thumbnails on posts and pages. add_theme_support( 'post-thumbnails' ); add_image_size( 'bauer-post-standard', 770, 350, true ); add_image_size( 'bauer-post-related', 558, 410, true ); add_image_size( 'bauer-post-widget', 140, 140, true ); // Register menus register_nav_menu( 'top', esc_html__( 'Top Menu', 'bauer' ) ); register_nav_menu( 'primary', esc_html__( 'Primary Menu', 'bauer' ) ); register_nav_menu( 'about', esc_html__( 'About Menu', 'bauer' ) ); register_nav_menu( 'service', esc_html__( 'Service Menu', 'bauer' ) ); register_nav_menu( 'bottom', esc_html__( 'Bottom Menu', 'bauer' ) ); register_nav_menu( 'onepage', esc_html__( 'OnePage Menu', 'bauer' ) ); // Switch default core markup for search form, comment form, and comments to output valid HTML5. add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Enable support for Post Formats. add_theme_support( 'post-formats', array( 'image', 'gallery', 'video' ) ); /* * This theme styles the visual editor to resemble the theme style, * specifically font, colors, and column width. */ add_editor_style( array( 'assets/css/editor-style.css' ) ); } // Enqueues scripts and styles. add_action( 'wp_enqueue_scripts', 'bauer_theme_scripts' ); function bauer_theme_scripts() { // Vendor Styles & Icons wp_enqueue_style( 'animate', get_template_directory_uri() . '/assets/css/animate.css', array(), '3.5.2' ); wp_enqueue_style( 'animsition', get_template_directory_uri() . '/assets/css/animsition.css', array(), '4.0.1' ); wp_enqueue_style( 'slick', get_template_directory_uri() . '/assets/css/slick.css', array(), '1.6.0' ); wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/assets/css/fontawesome.css', array(), '5.0' ); wp_enqueue_style( 'eleganticons', get_template_directory_uri() . '/assets/css/eleganticons.css', array(), '1.0.0' ); wp_enqueue_style( 'basicui', get_template_directory_uri() . '/assets/css/basicui.css', array(), '1.0.0' ); // Theme Style wp_enqueue_style( 'bauer-theme-style', get_stylesheet_uri(), array(), '1.0.0' ); // Vendor Scripts wp_enqueue_script( 'html5shiv', get_template_directory_uri() . '/assets/js/html5shiv.js', array('jquery'), '3.7.3', true ); wp_enqueue_script( 'respond', get_template_directory_uri() . '/assets/js/respond.js', array('jquery'), '1.3.0', true ); wp_enqueue_script( 'matchmedia', get_template_directory_uri() . '/assets/js/matchmedia.js', array('jquery'), '1.0.0', true ); wp_enqueue_script( 'easing', get_template_directory_uri() . '/assets/js/easing.js', array('jquery'), '1.3.0', true ); wp_enqueue_script( 'fitvids', get_template_directory_uri() . '/assets/js/fitvids.js', array('jquery'), '1.1.0', true ); wp_enqueue_script( 'animsition', get_template_directory_uri() . '/assets/js/animsition.js', array('jquery'), '4.0.1', true ); wp_register_script( 'slick', get_template_directory_uri() . '/assets/js/slick.js', array('jquery'), '1.6.0', true ); // Theme Script wp_enqueue_script( 'bauer-theme-script', get_template_directory_uri() . '/assets/js/main.js', array( 'jquery' ), '1.0.0', true ); // Comment JS if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } // Output custom CSS from Customizer add_action( 'wp_enqueue_scripts', 'bauer_output_custom_color' ); function bauer_output_custom_color( $output = NULL ) { $output = apply_filters( 'bauer_custom_colors_css', $output ); wp_add_inline_style( 'bauer-theme-style', $output ); } // Registers a widget area. add_action( 'widgets_init', 'bauer_sidebars_init' ); function bauer_sidebars_init() { // Sidebar for Blog register_sidebar( array( 'name' => esc_html__( 'Sidebar Blog', 'bauer' ), 'id' => 'sidebar-blog', 'description' => esc_html__( 'Add widgets here to appear in Sidebar Blog.', 'bauer' ), 'before_widget' => '
', 'before_title' => 'Home Architecture<\/a><\/blockquote>\n