'', 'default-repeat' => 'no-repeat', 'default-text-color' => '00BAE1', 'url' => '', 'width' => 1920, 'height' => 89, 'flex-height' => true ); $background_args = array( 'default-color' => 'f7f8f8', ); add_theme_support( 'custom-background', $background_args ); add_theme_support( 'custom-header', $header_args ); add_theme_support( 'automatic-feed-links' );// add_theme_support( 'custom-logo', array( 'height' => 50, 'width' => 50, 'flex-width' => true, ) ); //register menus register_nav_menus( array( 'header-menu' => __( 'Header Menu', 'awork' ) , 'footer-menu' => __( 'Footer Menu', 'awork' ) ) ); add_theme_support( "title-tag" );// add_editor_style("editor-style.css"); if ( !isset( $content_width ) ) $content_width = 1170; } add_action( 'after_setup_theme', 'awork_setup' ); function awork_custom_scripts() { $theme_info = wp_get_theme(); wp_enqueue_style('awork-base', get_template_directory_uri() .'/css/base.css', false, $theme_info->get( 'Version' ), false); wp_enqueue_style('font-awesome', get_template_directory_uri() .'/css/font-awesome.min.css', false,"4.6.3", false); wp_enqueue_style('bootstrap', get_template_directory_uri() .'/css/bootstrap.min.css', false,"3.3.7", false); wp_enqueue_style('awork-style', get_stylesheet_uri(), false, $theme_info->get( 'Version' ) ); wp_enqueue_style( 'awork-custom-style', get_template_directory_uri() . '/css/custom_script.css' ); $custom_css = ''; if ( has_custom_logo() ){ $custom_css .= "@media screen and (max-width:1025px){ .awork-logo-text{ display:none;} .awork-logo{ margin-left:20px;} }"; }else{ $custom_css .= "@media screen and (max-width:1025px){ .blog-description{ display:none;} .awork-logo-text{ margin-top:10px;} }"; } if ( 'blank' != get_header_textcolor() && '' != get_header_textcolor() ) { $header_textcolor = ' color:#'.get_header_textcolor().';'; $custom_css .= '.awork-logo .blog-description,.awork-logo .blog-name,#awork-menu a {'.esc_attr($header_textcolor).'}'; } if ( 'blank' != get_header_image() && '' != get_header_image() ) { $custom_css .= '.header{background-image:url('.get_header_image().');}'; } wp_add_inline_style( 'awork-custom-style', $custom_css ); wp_enqueue_script('bootstrap', get_template_directory_uri().'/js/bootstrap.min.js', array( 'jquery' ), '3.3.7', false ); wp_enqueue_script('awork-main', get_template_directory_uri().'/js/main.js', array( 'jquery' ),$theme_info->get( 'Version' ), false ); } add_action( 'wp_enqueue_scripts', 'awork_custom_scripts' ); function awork_better_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>