for posts and comments. add_theme_support( 'automatic-feed-links' ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'countdown' ) ); // This theme uses a custom image size for featured images, displayed on "standard" posts. add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 630, 9999 ); // Unlimited height, soft crop add_image_size( 'blog-thumb', 755, 278, true ); //(cropped) } add_action( 'after_setup_theme', 'countdown_setup' ); /* * Loads the Options Panel * * If you're loading from a child theme use stylesheet_directory * instead of template_directory */ if ( !function_exists( 'optionsframework_init' ) ) { define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/inc/' ); require_once get_template_directory(). '/inc/options-framework.php'; require_once get_template_directory(). '/options.php'; } /* * This is an example of how to add custom scripts to the options panel. * This one shows/hides the an option when a checkbox is clicked. * * You can delete it if you not using that option */ add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts'); function optionsframework_custom_scripts() { ?> __( 'Main Sidebar', 'countdown' ), 'id' => 'sidebar-1', 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'countdown' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'countdown_widgets_init' ); if ( ! function_exists( 'countdown_content_nav' ) ) : /** * Displays navigation to next/previous pages when applicable. */ function countdown_content_nav( $html_id ) { global $wp_query; $html_id = esc_attr( $html_id ); if ( $wp_query->max_num_pages > 1 ) : ?> comment_type ) : case 'pingback' : case 'trackback' : // Display trackbacks differently than normal comments. ?>
  • id="comment-">

    ', '' ); ?>

  • id="li-comment-">
    %1$s %2$s', get_comment_author_link(), // If current post author is also comment author, make it known visually. ( $comment->user_id === $post->post_author ) ? '' . __( 'Post author', 'twentytwelve' ) . '' : '' ); printf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) ); ?>
    comment_approved ) : ?>

    ', '

    ' ); ?>
    __( 'Reply', 'twentytwelve' ), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    ', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); $author = sprintf( '', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'countdown' ), get_the_author() ) ), get_the_author() ); // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. if ( $tag_list ) { $utility_text = __( 'Post in %1$s and tagged %2$s on %3$s by %4$s.', 'countdown' ); } elseif ( $categories_list ) { $utility_text = __( 'Post in %1$s on %3$s by %4$s.', 'countdown' ); } else { $utility_text = __( 'Post in %3$s by %4$s.', 'countdown' ); } printf( $utility_text, $categories_list, $tag_list, $date, $author ); } endif; /* ** Custom Page Title */ add_filter( 'wp_title', 'countdown_title' ); function countdown_title($title){ $cnt_title = $title; if ( is_home() && !is_front_page() ) { $cnt_title .= get_bloginfo('name'); } if ( is_front_page() ){ $cnt_title .= get_bloginfo('name'); $cnt_title .= ' | '; $cnt_title .= get_bloginfo('description'); } if ( is_search() ) { $cnt_title .= get_bloginfo('name'); } if ( is_author() ) { $cnt_title .= get_bloginfo('name'); } if ( is_single() ) { $cnt_title .= get_bloginfo('name'); } if ( is_page() && !is_front_page() ) { $cnt_title .= get_bloginfo('name'); } if ( is_category() ) { $cnt_title .= get_bloginfo('name'); } if ( is_year() ) { $cnt_title .= get_bloginfo('name'); } if ( is_month() ) { $cnt_title .= get_bloginfo('name'); } if ( is_day() ) { $cnt_title .= get_bloginfo('name'); } if (function_exists('is_tag')) { if ( is_tag() ) { $cnt_title .= get_bloginfo('name'); } if ( is_404() ) { $cnt_title .= get_bloginfo('name'); } } return $cnt_title; } ?>