tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); add_image_size('service-thumbnail', 380, 252, true); add_image_size('blog-thumbnail', 558, 237, true); add_image_size('project-thumbnail', 264, 200, true); add_image_size('project-big-thumbnail', 558, 160, true); add_image_size('blog-big-thumbnail', 760, 300, true); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'accesspress-root' ), 'footer' => __( 'Footer Menu', 'accesspress-root' ), ) ); /* * 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. * See http://codex.wordpress.org/Post_Formats */ /*add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) );*/ // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'accesspress_root_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); } endif; // accesspress_root_setup add_action( 'after_setup_theme', 'accesspress_root_setup' ); /** * Register widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function accesspress_root_widgets_init() { register_sidebar( array( 'name' => __( 'Left Sidebar', 'accesspress-root' ), 'id' => 'sidebar-left', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Right Sidebar', 'accesspress-root' ), 'id' => 'sidebar-right', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 1', 'accesspress-root' ), 'id' => 'footer-1', 'description' => '', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => __( 'Footer 2', 'accesspress-root' ), 'id' => 'footer-2', 'description' => '', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => __( 'Footer 3', 'accesspress-root' ), 'id' => 'footer-3', 'description' => '', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => __( 'Footer 4', 'accesspress-root' ), 'id' => 'footer-4', 'description' => '', 'before_widget' => '', 'before_title' => '', ) ); } add_action( 'widgets_init', 'accesspress_root_widgets_init' ); /** * Enqueue scripts and styles. */ function accesspress_root_scripts() { $query_args = array( 'family' => 'Oswald:400,300,700|Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic', ); wp_enqueue_style('accesspress-root-google-fonts-css', add_query_arg($query_args, "//fonts.googleapis.com/css")); wp_enqueue_style('accesspress-root-font-awesome-css', get_template_directory_uri() . '/css/font-awesome.min.css'); wp_enqueue_style('accesspress-root-bx-slider-css', get_template_directory_uri() . '/css/jquery.bxslider.css'); wp_enqueue_style('accesspress-root-nivo-lightbox-css', get_template_directory_uri() . '/css/nivo-lightbox.css'); wp_enqueue_style( 'accesspress-root-style', get_stylesheet_uri() ); if(of_get_option('responsive') == '1') : wp_enqueue_style( 'accesspress-root-responsive', get_template_directory_uri() . '/css/responsive.css' ); endif; wp_enqueue_script( 'accesspress-root-bx-slider-js', get_template_directory_uri() . '/js/jquery.bxslider.min.js', array('jquery'), '4.2.1', true ); wp_enqueue_script( 'accesspress-root-actual-js', get_template_directory_uri() . '/js/jquery.actual.min.js', array('jquery'), '1.0.16', true ); wp_enqueue_script( 'accesspress-root-lightbox-js', get_template_directory_uri() . '/js/nivo-lightbox.min.js', array('jquery'), '1.2.0', true ); wp_enqueue_script('accesspress-root-custom-js', get_template_directory_uri() . '/js/custom.js', array('jquery'), '1.0', true); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'accesspress_root_scripts' ); /** * Implement the Custom Header feature. */ //require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/accesspress-functions.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/inc/panel/' ); /** * Load Option Framework. */ require get_template_directory() . '/inc/panel/options-framework.php';