'E9EDED' )); /* ------------------------------------------------------- */ /* CUSTOM HEADER ----------------------------------------- */ add_theme_support('custom-header',array( 'default-image' => get_template_directory_uri() . '/include/images/default-logo.png', 'random-default' => false, 'width' => 300, 'height' => 100, 'flex-height' => true, 'flex-width' => true, 'default-text-color' => '', 'header-text' => false, 'uploads' => true, 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', )); /* ------------------------------------------------------- */ /* GET BREADCRUMBS --------------------------------------- */ function get_breadcrumbs() { if(function_exists(breadcrumbs)) : breadcrumbs(); endif; } /* ------------------------------------------------------- */ /* GET DISCLAIMER ---------------------------------------- */ function get_disclaimer() { if(function_exists(disclaimer)) : disclaimer(); endif; } /* ------------------------------------------------------- */ /* GET FAVICON ------------------------------------------- */ function get_favicon() { if(function_exists(favicon)) : favicon(); endif; } /* ------------------------------------------------------- */ /* GET PAGINATION ---------------------------------------- */ function pagination_custom_is_support() { $supported = current_theme_supports( 'infinite-scroll' ); return $supported; } add_filter('infinite_scroll_archive_supported', 'pagination_custom_is_support'); function get_pagination() { if(class_exists('Jetpack') && Jetpack::is_module_active('infinite-scroll')) : //Infinite scroll is active else : global $wp_query; $big = 999999999; echo ""; endif; } /* ------------------------------------------------------- */ /* GET SLIDER -------------------------------------------- */ function get_slider() { if(function_exists(slider)) : slider(); endif; } /* ------------------------------------------------------- */ /* JETPACK - INFINITE SCROLL SUPPORT --------------------- */ add_theme_support('infinite-scroll', array( 'type' => 'scroll', 'container' => 'content', 'footer' => false, 'wrapper' => true, 'render' => false, 'posts_per_page' => false )); /* ------------------------------------------------------- */ /* AUTOMATIC FEED LINKS SUPPORT -------------------------- */ add_theme_support('automatic-feed-links'); /* ------------------------------------------------------- */ /* POST THUMBNAILS SUPPORT ------------------------------- */ add_theme_support('post-thumbnails'); /* ------------------------------------------------------- */ /* REGISTER NAV MENUS ------------------------------------ */ register_nav_menus(array( 'top_menu' => 'Top Menu', 'main_menu' => 'Main Menu' )); /* ------------------------------------------------------- */ /* REGISTER SIDEBAR - MAIN SIDEBAR AREA ------------------ */ register_sidebar(array( 'name' => ('Main Sidebar Area'), 'id' => 'sidebar', 'description' => '', 'class' => '', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); /* REGISTER SIDEBAR - SECONDARY SIDEBAR AREA ------------- */ register_sidebar(array( 'name' => ('Secondary Sidebar Area'), 'id' => 'sidebar_2', 'description' => '', 'class' => '', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); /* REGISTER SIDEBAR - HEADER WIDGET AREA ----------------- */ register_sidebar(array( 'name' => ('Header Widget Area'), 'id' => 'header_1', 'description' => '', 'class' => '', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); /* REGISTER SIDEBAR - FOOTER WIDGET AREA 1 --------------- */ register_sidebar(array( 'name' => ('Footer Widget Area 1'), 'id' => 'footer_1', 'description' => '', 'class' => '', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); /* REGISTER SIDEBAR - FOOTER WIDGET AREA 2 --------------- */ register_sidebar(array( 'name' => ('Footer Widget Area 2'), 'id' => 'footer_2', 'description' => '', 'class' => '', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); /* REGISTER SIDEBAR - FOOTER WIDGET AREA 3 --------------- */ register_sidebar(array( 'name' => ('Footer Widget Area 3'), 'id' => 'footer_3', 'description' => '', 'class' => '', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); /* REGISTER SIDEBAR - FOOTER WIDGET AREA 4 --------------- */ register_sidebar(array( 'name' => ('Footer Widget Area 4'), 'id' => 'footer_4', 'description' => '', 'class' => '', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); /* REGISTER SIDEBAR - HOMEPAGE WIDGET AREA 1 ------------- */ register_sidebar(array( 'name' => ('Homepage Widget Area 1'), 'id' => 'home_1', 'description' => '', 'class' => '', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); /* REGISTER SIDEBAR - HOMEPAGE WIDGET AREA 2 ------------- */ register_sidebar(array( 'name' => ('Homepage Widget Area 2'), 'id' => 'home_2', 'description' => '', 'class' => '', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); /* REGISTER SIDEBAR - HOMEPAGE WIDGET AREA 3 ------------- */ register_sidebar(array( 'name' => ('Homepage Widget Area 3'), 'id' => 'home_3', 'description' => '', 'class' => '', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); /* ------------------------------------------------------- */ /* STYLE EDITOR SUPPORT ---------------------------------- */ function add_editor_styles() { add_editor_style( 'custom-editor-style.css' ); } add_action( 'init', 'add_editor_styles' ); /* ------------------------------------------------------- */ /* THEME OPTIONS ----------------------------------------- */ if(is_admin()){ require_once('include/options.php'); } require_once('include/options-functions.php'); ?>