get_template_directory_uri() . '/images/bg_pattern.png', ); add_theme_support( 'custom-background', $avon_bg ); // AvonLite RSS feed links add_theme_support( 'automatic-feed-links' ); // AvonLite Post Thumbnails add_theme_support('post-thumbnails'); add_image_size ( 'slide-image', 850, 380, true ); add_image_size ( 'home-blog-thumb', 150, 150, true ); // AvonLite Post Formats add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status', 'gallery', 'video', 'audio', 'chat' ) ); // AvonLite Registering Menu register_nav_menu( 'primary', __( 'Main Menu', 'AvonLite' ) ); } add_action ('after_setup_theme', 'avonlite_after_setup_theme'); // AvonLite Theme Title add_filter( 'wp_title', 'avonlite_filter_wp_title' ); function avonlite_filter_wp_title( $title ) { global $page, $paged; if ( is_feed() ) return $title; $site_description = get_bloginfo( 'description' ); $filtered_title = $title . get_bloginfo( 'name' ); $filtered_title .= ( ! empty( $site_description ) && ( is_home() || is_front_page() ) ) ? ' | ' . $site_description: ''; $filtered_title .= ( 2 <= $paged || 2 <= $page ) ? ' | ' . sprintf( __( 'Page %s', 'AvonLite' ), max( $paged, $page ) ) : ''; return $filtered_title; } // AvonLite Scipts and Style Files function avonlite_scripts_styles() { if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); // AvonLite Main Js File wp_enqueue_script( 'jquery' ); // AvonLite Main Bootstrap Js File wp_enqueue_script( '', get_template_directory_uri() . '/js/bootstrap.js', array(), '3.0', true ); // AvonLite Main Bootstrap Css File wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '3.0', false ); // AvonLite Theme Main Stylesheet wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'avonlite_scripts_styles' ); // AvonLite Comments/Pingbacks if ( ! function_exists( 'avonlite_comment' ) ) : function avonlite_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; if ( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) : ?>
' . __( 'Pages:', 'AvonLite' ), 'after' => '
', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'number', 'separator' => ' ', 'nextpagelink' => __( 'Next page', 'AvonLite' ), 'previouspagelink' => __( 'Previous page', 'AvonLite' ), 'pagelink' => '%', 'echo' => 1 );