'', 'default-repeat' => 'no-repeat', 'default-text-color' => '2C2C2C', 'url' => '', 'width' => 1920, 'height' => 89, 'flex-height' => true ); add_theme_support( 'custom-background', $args ); add_theme_support( 'custom-header', $header_args ); add_theme_support( 'automatic-feed-links' );// //register menus register_nav_menus( array( 'header-menu' => __( 'Header Menu', 'ascreen' ) , 'footer-menu' => __( 'Footer Menu', 'ascreen' ) ) ); add_theme_support( "title-tag" );// add_editor_style("editor-style.css"); if ( !isset( $content_width ) ) $content_width = 1170; } add_action( 'after_setup_theme', 'ascreen_setup' ); function ascreen_custom_scripts() { $theme_info = wp_get_theme(); wp_enqueue_style('ascreen-main', get_stylesheet_uri(), array(), $theme_info->get( 'Version' ) ); wp_enqueue_script('ascreen-main', get_template_directory_uri().'/js/main.js', array( 'jquery' ),$theme_info->get( 'Version' ), false ); } add_action( 'wp_enqueue_scripts', 'ascreen_custom_scripts' ); /* add widgets to wp-admin */ function ascreen_widgets_init() { register_sidebar( array( 'name' => __('Sidebar','ascreen'), 'id' => 'sidebar', 'before_widget' => ' ', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __('Footer Area #1','ascreen'), 'id' => 'sidebar-1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __('Footer Area #2','ascreen'), 'id' => 'sidebar-2', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __('Footer Area #3','ascreen'), 'id' => 'sidebar-3', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __('Footer Area #4','ascreen'), 'id' => 'sidebar-4', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'ascreen_widgets_init' ); function ascreen_better_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • id="li-comment-">
    comment_approved == '0') : ?>
    $depth, 'max_depth' => $args['max_depth']))) ?>
    . . cat_ID; $category->cat_name; $cat_links=get_category_link($category->cat_ID ); ?> #cat_name);?> 
    cat_name; $cat_ID = $categories[0]->cat_ID; } $cat_links=get_category_link($cat_ID); echo "#".esc_html($cat_name).""; } /** * Gets option value from the single theme option, stored as an array in the database * if all options stored in one row. * Stores the serialized array with theme options into the global variable on the first function run on the page. * * If options are stored as separate rows in database, it simply uses get_option() function. * * @param string $option_name Theme option name. * @param string $default Default value that should be set if the theme option isn't set. */ if ( ! function_exists( 'ascreen_get_option' ) ){ function ascreen_get_option( $ct_row,$option_name,$default ) { $arr = get_option($ct_row); if(is_array($arr)) { @$option_value = $arr[$option_name]; if($option_value !='') { return $option_value; } else { if(array_key_exists($option_name,$arr) ){ return false; } else { return $default; } } } else { return $default; } } } function ascreen_get_share_url() { ?>