esc_html__( 'Main Menu', 'abcblog' ), 'foot-menu' => esc_html__( 'Footer Menu', 'abcblog' ), ) ); add_theme_support( 'title-tag' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); //Enabling support for Post Formats. add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'gallery', 'audio', 'quote', 'link', ) ); if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); add_image_size( 'abcblog_post_thumb', 1080, 500, true ); add_image_size( 'abcblog_port_thumb', 1080, 9999, true ); add_image_size( 'abcblog_slider_thumb', 1600, 450, true ); add_image_size( 'abcblog_blog_grid_thumb', 450, 320, true ); add_image_size( 'abcblog_blog_main_thumb', 400, 587, true ); add_image_size( 'abcblog_testi_thumb', 200, 200, true ); } // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'abcblog_custom_background_args', array( 'default-color' => 'ffffff', 'default-attachment' => 'fixed', ) ) ); //Language load_theme_textdomain( 'abcblog', get_template_directory() . '/lang' ); } endif; add_action( 'after_setup_theme', 'abcblog_setup' ); //Sets the content width function abcblog_content_width() { $GLOBALS['content_width'] = apply_filters( 'abcblog_content_width', 790 ); } add_action( 'after_setup_theme', 'abcblog_content_width', 0 ); //Defines Directory define( 'ABCBLOG_PARENT_DIR', get_template_directory() ); define( 'ABCBLOG_INCLUDES_DIR', ABCBLOG_PARENT_DIR. '/includes' ); define( 'ABCBLOG_CUSTOMIZER_DIR', ABCBLOG_INCLUDES_DIR. '/customizer' ); define( 'ABCBLOG_TEMPLATE_DIR', ABCBLOG_INCLUDES_DIR. '/templates' ); define( 'ABCBLOG_WIDGET_DIR', ABCBLOG_INCLUDES_DIR. '/widgets' ); function abcblog_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Default Sidebar', 'abcblog' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here to appear in your sidebar.', 'abcblog' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Blog Sidebar', 'abcblog' ), 'id' => 'sidebar-blog', 'description' => esc_html__( 'Add widgets here to appear in blog sidebar.', 'abcblog' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Page Sidebar', 'abcblog' ), 'id' => 'sidebar-page', 'description' => esc_html__( 'Add widgets here to appear in pages sidebar.', 'abcblog' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Instagram', 'abcblog' ), 'id' => 'footer-instagram-widget', 'description' => esc_html__( 'Add instagram widget here to appear top of the footer.', 'abcblog' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget 1', 'abcblog' ), 'id' => 'footer-1', 'description' => esc_html__( 'Add widgets here to appear in footer 1 area.', 'abcblog' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget 2', 'abcblog' ), 'id' => 'footer-2', 'description' => esc_html__( 'Add widgets here to appear in footer 2 area.', 'abcblog' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget 3', 'abcblog' ), 'id' => 'footer-3', 'description' => esc_html__( 'Add widgets here to appear in footer 3 area.', 'abcblog' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget 4', 'abcblog' ), 'id' => 'footer-4', 'description' => esc_html__( 'Add widgets here to appear in footer 4 area.', 'abcblog' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'abcblog_widgets_init' ); //abcblog Style and Scrips function abcblog_scripts() { $g_map_api_key = get_theme_mod( 'g_map_api'); $g_map_url = '//maps.googleapis.com/maps/api/js?key=' . $g_map_api_key ; wp_enqueue_style( 'abcblog-style', get_stylesheet_uri() ); wp_style_add_data( 'abcblog-style', 'rtl', 'replace' ); wp_enqueue_style( 'fontawesome-style', get_template_directory_uri() . '/fonts/fa/css/font-awesome.min.css'); wp_enqueue_style( 'slider-style', get_template_directory_uri() . '/css/slider.css'); wp_enqueue_style( 'abc-responsive', get_template_directory_uri() . '/css/responsive.css'); wp_style_add_data( 'abc-responsive', 'rtl', 'replace' ); wp_enqueue_style( 'abcamin-style', get_template_directory_uri() . '/css/animate.min.css'); wp_enqueue_style( 'abcblog-oxygen-fonts', abcblog_oxygen_fonts_url(), array(), '' ); if (get_theme_mod('theme_main_font', 'Josefin Sans') == 'Josefin Sans') { wp_enqueue_style( 'abcblog-js-fonts', abcblog_js_fonts_url(), array(), '' );} if (get_theme_mod('theme_main_font', 'Open Sans') == 'Open Sans') { wp_enqueue_style( 'abcblog-open-sans', abcblog_os_fonts_url(), array(), '' );} if (get_theme_mod('theme_main_font', 'Lato') == 'Lato') { wp_enqueue_style( 'abcblog-lato-fonts', abcblog_lato_fonts_url(), array(), '' );} if (get_theme_mod('theme_main_font', 'Lora') == 'Lora') { wp_enqueue_style( 'abcblog-lora-fonts', abcblog_lora_fonts_url(), array(), '' );} wp_enqueue_script( 'abc-smscroll', get_template_directory_uri() . '/js/smoothscroll.js', array('jquery'), '', true ); wp_enqueue_script( 'nivo-slider', get_template_directory_uri() . '/js/nivo.slider.js', array('jquery'), '3.2', true ); wp_enqueue_script( 'abc-parallax', get_template_directory_uri() . '/js/parallax.min.js', array('jquery'), '1.4.2', true ); wp_enqueue_script( 'abcamin-script', get_template_directory_uri() . '/js/abc-animate.min.js', array(), '1.1.2', true ); wp_enqueue_script( 'abccustomizer', get_template_directory_uri() . '/js/abc-customizer.js', array( 'jquery', 'customize-preview' ), '', true ); wp_enqueue_script( 'abcfilter', get_template_directory_uri() . '/js/abc-filter.js', array('jquery'), '', true ); wp_enqueue_script( 'abcblog-sticky', get_template_directory_uri() . '/js/abc-stickyheader.js', array(), '', true ); wp_enqueue_script( 'abcappear', get_template_directory_uri() . '/js/jquery.appear.js', array('jquery'), '0.3.6', true ); wp_enqueue_script( 'abcblog-script', get_template_directory_uri() . '/js/abc-custom.js', array(), '1.0', true ); if ( get_theme_mod( 'g_map_api' ) ) { wp_enqueue_script('abc-maps', $g_map_url, NULL, NULL); } if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'abcblog_scripts' ); //Abcblog Required Files require ( ABCBLOG_INCLUDES_DIR . '/abc-functions.php' ); require ( ABCBLOG_INCLUDES_DIR . '/abc-customcss.php' ); require ( ABCBLOG_INCLUDES_DIR . '/abc-breadcrumbs.php' ); require ( ABCBLOG_INCLUDES_DIR . '/abc-metaboxes.php' ); require ( ABCBLOG_WIDGET_DIR . '/abc-about-me.php' ); require ( ABCBLOG_WIDGET_DIR . '/abc-recent-post.php' ); require ( ABCBLOG_WIDGET_DIR . '/abc-flickr.php' ); require ( ABCBLOG_WIDGET_DIR . '/abc-recent-portfolio.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/general-settings.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/slider-settings.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/feature-box-settings.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/featured-box-icons.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/home-main-settings.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/home-standard-settings.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/color-settings.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/typography-settings.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/post-settings.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/about-me-page-settings.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/contact-me-page-settings.php' ); require ( ABCBLOG_CUSTOMIZER_DIR . '/footer-settings.php' );