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 https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support( 'post-thumbnails' ); /* * Enable support for image sizes on posts and pages. * * @link https://developer.wordpress.org/reference/functions/add_image_size/ */ add_image_size( 'eboost-main-banner', 1370, 650, true ); add_image_size( 'eboost-blog', 900, 650, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary', 'eboost' ), 'top-menu' => esc_html__( 'Top Menu', 'eboost' ) ) ); /* * 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', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'eboost_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); /*implimenting new feature from 4.5*/ add_theme_support( 'custom-logo', array( 'header-text' => array( 'site-title', 'site-description' ), 'height' => 50, 'width' => 165, 'flex-width' => true ) ); add_theme_support( 'custom-header', apply_filters( 'eboost_custom_header_args', array( 'width' => 1400, 'height' => 700, 'flex-height' => true, 'video' => true, ) ) ); } endif; add_action( 'after_setup_theme', 'eboost_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function eboost_content_width() { $GLOBALS['content_width'] = apply_filters( 'eboost_content_width', 640 ); } add_action( 'after_setup_theme', 'eboost_content_width', 0 ); /** * Enqueue scripts and styles. */ function eboost_scripts() { wp_enqueue_style( 'eboost-style', get_stylesheet_uri() ); /*google fonts*/ wp_enqueue_style( 'eboost-google-fonts', '//fonts.googleapis.com/css?family=Work+Sans:100,300,400,500,600,700'); // VARIABLES AND ARRAY $assets_url = get_template_directory_uri() .'/assets/'; // REGISTER STYLE wp_enqueue_style( 'bootstrap', $assets_url.'css/vendor/bootstrap.min.css'); wp_enqueue_style( 'font-awesome', $assets_url.'font-awesome/css/font-awesome.min.css', array(), '4.6.3' ); wp_enqueue_style( 'slick', $assets_url.'css/vendor/slick.css'); wp_enqueue_style( 'animation', $assets_url.'css/components/animation.css'); // REGISTER SCRIPT wp_enqueue_script( 'jquery-bootstrap', $assets_url.'js/vender/bootstrap.min.js', array('jquery'), 'v3.3.6', true ); wp_enqueue_script( 'jquery-slick', $assets_url.'js/vender/slick.js', array('jquery')); wp_enqueue_script( 'jquery-wow', $assets_url.'js/vender/wow.min.js', array('jquery'), '1.1.3', true ); //ENQUEUE wp_enqueue_script( 'eboost-main', $assets_url.'js/main.js', array('jquery'),null,true ); wp_enqueue_script( 'eboost-single-nav', $assets_url.'js/jquery.navScroll.js', array('jquery'),null,true ); wp_enqueue_script( 'navigation', get_template_directory_uri() . '/assets/js/navigation.js', array('jquery'), '20151215', true ); wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/assets/js/skip-link-focus-fix.js', array(), '20151215', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'eboost_scripts' ); /*added admin css for meta*/ function eboost_admin_style($hook) { if ( in_array( $hook, array( 'post.php', 'post-new.php' ) ) ) { wp_register_style( 'eboost-admin-meta-css', get_template_directory_uri() . '/assets/css/custom-meta.css',array(), '' ); wp_enqueue_style( 'eboost-admin-meta-css' ); } } add_action( 'admin_enqueue_scripts', 'eboost_admin_style' ); /** * 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'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; /*breadcrum function*/ if ( ! function_exists( 'eboost_simple_breadcrumb' ) ) : /** * Simple breadcrumb. * * @since 1.0.0 */ function eboost_simple_breadcrumb() { if ( ! function_exists( 'breadcrumb_trail' ) ) { require_once get_template_directory() . '/assets/breadcrumbs/breadcrumbs.php'; } $breadcrumb_args = array( 'container' => 'div', 'show_browse' => false, ); breadcrumb_trail( $breadcrumb_args ); } endif; /*update to pro added*/ require_once( trailingslashit( get_template_directory() ) . 'trt-customize-pro/eboost/class-customize.php' );