. add_theme_support( 'automatic-feed-links' ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'azurebasic' ) ); // Add support for a variety of post formats add_theme_support( 'post-formats', array( 'aside', 'gallery','link','image','quote','status','video','audio','chat' ) ); // Add support for custom backgrounds add_custom_background(); // This theme styles the visual editor with an editor-style.css file to match the theme style. add_editor_style(); // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page Custom Header images add_theme_support( 'post-thumbnails' ); } endif; // azurebasic_setup // custom header image support define('HEADER_TEXTCOLOR', ''); define('NO_HEADER_TEXT', true ); define('HEADER_IMAGE', '%s/images/Pixar-Brave-990x300.jpg'); // %s is the template dir uri define('HEADER_IMAGE_WIDTH', 986); // use width and height appropriate for your theme define('HEADER_IMAGE_HEIGHT', 300); // gets included in the admin header function admin_header_style() { ?>' . __( 'Read More ', 'azurebasic' ) . ''; } //Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and azurebasic_continue_reading_link(). function azurebasic_auto_excerpt_more( $more ) { return ' …' . azurebasic_continue_reading_link(); } add_filter( 'excerpt_more', 'azurebasic_auto_excerpt_more' ); //Adds a nice "Read More" link to custom post excerpts. function azurebasic_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= azurebasic_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'azurebasic_custom_excerpt_more' ); //Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. function azurebasic_page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'azurebasic_page_menu_args' ); //Register our sidebars and widgetized areas. function azurebasic_widgets_init() { // Sidebar Widget // Location: the sidebar register_sidebar(array( 'name'=>__('Sidebar', 'azurebasic'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '', )); // Header Widget // Location: right after the navigation register_sidebar(array( 'name'=>__('Header', 'azurebasic'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); // Footer One Widget // Location: at the top of the footer, above the copyright register_sidebar(array( 'name'=>__('Footer One', 'azurebasic'), 'before_widget' => '', 'before_title' => '', )); // Footer Two Widget // Location: at the top of the footer, above the copyright register_sidebar(array( 'name'=>__('Footer Two', 'azurebasic'), 'before_widget' => '', 'before_title' => '', )); // Footer Three Widget // Location: at the top of the footer, above the copyright register_sidebar(array( 'name'=>__('Footer Three', 'azurebasic'), 'before_widget' => '', 'before_title' => '', )); // Footer Four Widget // Location: at the top of the footer, above the copyright register_sidebar(array( 'name'=>__('Footer Four', 'azurebasic'), 'before_widget' => '', 'before_title' => '', )); } add_action( 'widgets_init', 'azurebasic_widgets_init' ); if ( ! function_exists( 'azurebasic_content_nav' ) ) : //Display navigation to next/previous pages when applicable function azurebasic_content_nav( $nav_id ) { global $wp_query; if ( $wp_query->max_num_pages > 1 ) : ?> ]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) ) return false; return esc_url_raw( $matches[1] ); } if ( ! function_exists( 'azurebasic_comment' ) ) : ///Template for comments and pingbacks. //Used as a callback by wp_list_comments() for displaying the comments. function azurebasic_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : ?>
  • ', '' ); ?>

  • id="li-comment-">
    comment_parent ) $avatar_size = 39; echo get_avatar( $comment, $avatar_size ); /* translators: 1: comment author, 2: date and time */ printf( __( '%1$s on %2$s said:', 'azurebasic' ), sprintf( '%s', get_comment_author_link() ), sprintf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'azurebasic' ), get_comment_date(), get_comment_time() ) ) ); ?> ', '' ); ?>
    comment_approved == '0' ) : ?>
    __( 'Reply ', 'azurebasic' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    Posted on by ', 'azurebasic' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'azurebasic' ), get_the_author() ) ), get_the_author() ); } endif;