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( 'slider-big-thumb', 765, 496, true); //Big image for homepage slider add_image_size( 'slider-small-thumb', 364, 164, true); //Small image for homepage slider add_image_size( 'block-big-thumb', 364, 200, true ); //Big thumb for homepage block add_image_size( 'block-small-thumb', 114, 76, true ); //Small thumb for homepage block add_image_size( 'singlepost-default', 792, 356, true); //Default image size for single post 792x356 add_image_size( 'singlepost-style1', 326, 235, true); //Style1 image size for single post // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'accesspress-mag' ), ) ); /* * 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', 'audio', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'accesspress_mag_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); } endif; // accesspress_mag_setup add_action( 'after_setup_theme', 'accesspress_mag_setup' ); /** * Register widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function accesspress_mag_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'accesspress-mag' ), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Home top sidebar', 'accesspress-mag' ), 'id' => 'apmag-home-top-sidebar', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Home middle sidebar', 'accesspress-mag' ), 'id' => 'apmag-home-middle-sidebar', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Home bottom sidebar', 'accesspress-mag' ), 'id' => 'apmag-home-bottom-sidebar', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 1', 'accesspress-mag' ), 'id' => 'footer-1', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 2', 'accesspress-mag' ), 'id' => 'footer-2', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 3', 'accesspress-mag' ), 'id' => 'footer-3', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 4', 'accesspress-mag' ), 'id' => 'footer-4', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

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

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Left Sidebar', 'accesspress-mag' ), 'id' => 'sidebar-left', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'accesspress_mag_widgets_init' ); /** * Enqueue scripts and styles. */ function accesspress_mag_scripts() { $my_theme = wp_get_theme(); $theme_version = $my_theme->get('Version'); wp_enqueue_style( 'animate', get_template_directory_uri() . '/css/animate.css'); wp_enqueue_style( 'accesspress-mag-style', get_stylesheet_uri(), array(), esc_attr($theme_version) ); wp_enqueue_style( 'accesspress-mag-fontawesome-font', get_template_directory_uri(). '/css/font-awesome.min.css' ); wp_enqueue_style( 'accesspress-mag-opensans-font', 'http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300' ); wp_enqueue_style( 'accesspress-mag-oswald-font', 'http://fonts.googleapis.com/css?family=Oswald:400,700,300' ); wp_enqueue_style( 'accesspress-mag-dosis-font', 'http://fonts.googleapis.com/css?family=Dosis:400,300,500,600,700' ); wp_enqueue_style( 'responsive', get_template_directory_uri() . '/css/responsive.css'); wp_enqueue_script( 'accesspress-mag-bxslider-js', get_template_directory_uri(). '/js/jquery.bxslider.min.js', array(), '4.1.2', true ); wp_enqueue_script( 'accesspress-mag-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true ); wp_enqueue_script( 'accesspress-mag-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); wp_enqueue_script( 'accesspress-mag-wow', get_template_directory_uri() . '/js/wow.min.js', array(), '1.0.1'); wp_enqueue_script( 'accesspress-mag-custom-scripts', get_template_directory_uri() . '/js/custom-scripts.js', array('jquery'), '1.0.1' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'accesspress_mag_scripts' ); /** * Implement the Custom Header feature. */ //require get_template_directory() . '/inc/custom-header.php'; /** * Framework path */ require get_template_directory().'/inc/option-framework/options-framework.php'; define('OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri(). '/inc/option-framework/'); /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/accesspress-functions.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/extras.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; /** * Implement the custom metabox feature */ require get_template_directory() . '/inc/custom-metabox.php'; /** * Load Options AP-Mag Widgets */ require get_template_directory() . '/inc/accesspress-widgets.php'; /** * Load Options Plugin Activation */ require get_template_directory() . '/inc/accesspress-plugin-activation.php';