'', '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; ?>
  • id="li-comment-">
    comment_approved == '0') : ?>
    $depth, 'max_depth' => $args['max_depth']))) ?>
    __('Sidebar','awork'), 'id' => 'sidebar', 'before_widget' => ' ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); } add_action( 'widgets_init', 'awork_widgets_init' ); function awork_customize_scripts() { wp_enqueue_script( 'awork_customizer_custom', get_template_directory_uri() . '/js/customizer-custom-scripts.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20150630', true ); $clean_box_misc_links = array( 'upgrade_link' => esc_url( 'https://www.coothemes.com/themes/awork.php' ), 'upgrade_text' => __( 'Upgrade To Pro »', 'awork' ), 'WP_version' => get_bloginfo( 'version' ), 'old_version_message' => __( 'Some settings might be missing or disorganized in this version of WordPress. So we suggest you to upgrade to version 4.0 or better.', 'awork' ) ); wp_localize_script( 'awork_customizer_custom', 'clean_box_misc_links', $clean_box_misc_links ); wp_enqueue_style( 'awork_customizer_custom_css', get_template_directory_uri() . '/css/customizer.css'); } add_action( 'customize_controls_enqueue_scripts', 'awork_customize_scripts');