Skip to content
Snippets Groups Projects
Commit d0f57f35 authored by lucha's avatar lucha
Browse files

[auto] theme: twentyfourteen 2.2

parent b1127ae8
No related branches found
No related tags found
No related merge requests found
Showing
with 471 additions and 378 deletions
...@@ -46,7 +46,8 @@ get_header(); ?> ...@@ -46,7 +46,8 @@ get_header(); ?>
<?php <?php
// Start the Loop. // Start the Loop.
while ( have_posts() ) : the_post(); while ( have_posts() ) :
the_post();
/* /*
* Include the post format-specific template for the content. If you want to * Include the post format-specific template for the content. If you want to
......
...@@ -45,7 +45,8 @@ get_header(); ?> ...@@ -45,7 +45,8 @@ get_header(); ?>
rewind_posts(); rewind_posts();
// Start the Loop. // Start the Loop.
while ( have_posts() ) : the_post(); while ( have_posts() ) :
the_post();
/* /*
* Include the post format-specific template for the content. If you want to * Include the post format-specific template for the content. If you want to
......
...@@ -30,7 +30,8 @@ get_header(); ?> ...@@ -30,7 +30,8 @@ get_header(); ?>
<?php <?php
// Start the Loop. // Start the Loop.
while ( have_posts() ) : the_post(); while ( have_posts() ) :
the_post();
/* /*
* Include the post format-specific template for the content. If you want to * Include the post format-specific template for the content. If you want to
......
...@@ -55,11 +55,13 @@ if ( post_password_required() ) { ...@@ -55,11 +55,13 @@ if ( post_password_required() ) {
<ol class="comment-list"> <ol class="comment-list">
<?php <?php
wp_list_comments( array( wp_list_comments(
array(
'style' => 'ol', 'style' => 'ol',
'short_ping' => true, 'short_ping' => true,
'avatar_size' => 34, 'avatar_size' => 34,
) ); )
);
?> ?>
</ol><!-- .comment-list --> </ol><!-- .comment-list -->
......
...@@ -44,17 +44,21 @@ ...@@ -44,17 +44,21 @@
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( sprintf( the_content(
sprintf(
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false ) the_title( '<span class="screen-reader-text">', '</span>', false )
) ); )
);
wp_link_pages( array( wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>', 'after' => '</div>',
'link_before' => '<span>', 'link_before' => '<span>',
'link_after' => '</span>', 'link_after' => '</span>',
) ); )
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -44,17 +44,21 @@ ...@@ -44,17 +44,21 @@
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( sprintf( the_content(
sprintf(
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false ) the_title( '<span class="screen-reader-text">', '</span>', false )
) ); )
);
wp_link_pages( array( wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>', 'after' => '</div>',
'link_before' => '<span>', 'link_before' => '<span>',
'link_after' => '</span>', 'link_after' => '</span>',
) ); )
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -44,17 +44,21 @@ ...@@ -44,17 +44,21 @@
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( sprintf( the_content(
sprintf(
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false ) the_title( '<span class="screen-reader-text">', '</span>', false )
) ); )
);
wp_link_pages( array( wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>', 'after' => '</div>',
'link_before' => '<span>', 'link_before' => '<span>',
'link_after' => '</span>', 'link_after' => '</span>',
) ); )
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -44,17 +44,21 @@ ...@@ -44,17 +44,21 @@
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( sprintf( the_content(
sprintf(
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false ) the_title( '<span class="screen-reader-text">', '</span>', false )
) ); )
);
wp_link_pages( array( wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>', 'after' => '</div>',
'link_before' => '<span>', 'link_before' => '<span>',
'link_after' => '</span>', 'link_after' => '</span>',
) ); )
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -44,17 +44,21 @@ ...@@ -44,17 +44,21 @@
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( sprintf( the_content(
sprintf(
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false ) the_title( '<span class="screen-reader-text">', '</span>', false )
) ); )
);
wp_link_pages( array( wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>', 'after' => '</div>',
'link_before' => '<span>', 'link_before' => '<span>',
'link_after' => '</span>', 'link_after' => '</span>',
) ); )
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -18,12 +18,14 @@ ...@@ -18,12 +18,14 @@
<div class="entry-content"> <div class="entry-content">
<?php <?php
the_content(); the_content();
wp_link_pages( array( wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>', 'after' => '</div>',
'link_before' => '<span>', 'link_before' => '<span>',
'link_after' => '</span>', 'link_after' => '</span>',
) ); )
);
edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' );
?> ?>
......
...@@ -44,17 +44,21 @@ ...@@ -44,17 +44,21 @@
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( sprintf( the_content(
sprintf(
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false ) the_title( '<span class="screen-reader-text">', '</span>', false )
) ); )
);
wp_link_pages( array( wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>', 'after' => '</div>',
'link_before' => '<span>', 'link_before' => '<span>',
'link_after' => '</span>', 'link_after' => '</span>',
) ); )
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -44,17 +44,21 @@ ...@@ -44,17 +44,21 @@
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( sprintf( the_content(
sprintf(
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false ) the_title( '<span class="screen-reader-text">', '</span>', false )
) ); )
);
wp_link_pages( array( wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>', 'after' => '</div>',
'link_before' => '<span>', 'link_before' => '<span>',
'link_after' => '</span>', 'link_after' => '</span>',
) ); )
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -30,8 +30,9 @@ ...@@ -30,8 +30,9 @@
<div class="entry-meta"> <div class="entry-meta">
<?php <?php
if ( 'post' == get_post_type() ) if ( 'post' == get_post_type() ) {
twentyfourteen_posted_on(); twentyfourteen_posted_on();
}
if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
?> ?>
...@@ -52,17 +53,21 @@ ...@@ -52,17 +53,21 @@
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( sprintf( the_content(
sprintf(
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false ) the_title( '<span class="screen-reader-text">', '</span>', false )
) ); )
);
wp_link_pages( array( wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>', 'after' => '</div>',
'link_before' => '<span>', 'link_before' => '<span>',
'link_after' => '</span>', 'link_after' => '</span>',
) ); )
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
<?php endif; ?> <?php endif; ?>
......
...@@ -18,7 +18,14 @@ ...@@ -18,7 +18,14 @@
<div class="site-info"> <div class="site-info">
<?php do_action( 'twentyfourteen_credits' ); ?> <?php do_action( 'twentyfourteen_credits' ); ?>
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfourteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?></a> <?php
if ( function_exists( 'the_privacy_policy_link' ) ) {
the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
}
?>
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfourteen' ) ); ?>" class="imprint">
<?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?>
</a>
</div><!-- .site-info --> </div><!-- .site-info -->
</footer><!-- #colophon --> </footer><!-- #colophon -->
</div><!-- #page --> </div><!-- #page -->
......
...@@ -79,37 +79,59 @@ function twentyfourteen_setup() { ...@@ -79,37 +79,59 @@ function twentyfourteen_setup() {
add_image_size( 'twentyfourteen-full-width', 1038, 576, true ); add_image_size( 'twentyfourteen-full-width', 1038, 576, true );
// This theme uses wp_nav_menu() in two locations. // This theme uses wp_nav_menu() in two locations.
register_nav_menus( array( register_nav_menus(
array(
'primary' => __( 'Top primary menu', 'twentyfourteen' ), 'primary' => __( 'Top primary menu', 'twentyfourteen' ),
'secondary' => __( 'Secondary menu in left sidebar', 'twentyfourteen' ), 'secondary' => __( 'Secondary menu in left sidebar', 'twentyfourteen' ),
) ); )
);
/* /*
* Switch default core markup for search form, comment form, and comments * Switch default core markup for search form, comment form, and comments
* to output valid HTML5. * to output valid HTML5.
*/ */
add_theme_support( 'html5', array( add_theme_support(
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' 'html5', array(
) ); 'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
)
);
/* /*
* Enable support for Post Formats. * Enable support for Post Formats.
* See https://codex.wordpress.org/Post_Formats * See https://codex.wordpress.org/Post_Formats
*/ */
add_theme_support( 'post-formats', array( add_theme_support(
'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery', 'post-formats', array(
) ); 'aside',
'image',
'video',
'audio',
'quote',
'link',
'gallery',
)
);
// This theme allows users to set a custom background. // This theme allows users to set a custom background.
add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array( add_theme_support(
'custom-background', apply_filters(
'twentyfourteen_custom_background_args', array(
'default-color' => 'f5f5f5', 'default-color' => 'f5f5f5',
) ) ); )
)
);
// Add support for featured content. // Add support for featured content.
add_theme_support( 'featured-content', array( add_theme_support(
'featured-content', array(
'featured_content_filter' => 'twentyfourteen_get_featured_posts', 'featured_content_filter' => 'twentyfourteen_get_featured_posts',
'max_posts' => 6, 'max_posts' => 6,
) ); )
);
// This theme uses its own gallery styles. // This theme uses its own gallery styles.
add_filter( 'use_default_gallery_style', '__return_false' ); add_filter( 'use_default_gallery_style', '__return_false' );
...@@ -170,7 +192,8 @@ function twentyfourteen_widgets_init() { ...@@ -170,7 +192,8 @@ function twentyfourteen_widgets_init() {
require get_template_directory() . '/inc/widgets.php'; require get_template_directory() . '/inc/widgets.php';
register_widget( 'Twenty_Fourteen_Ephemera_Widget' ); register_widget( 'Twenty_Fourteen_Ephemera_Widget' );
register_sidebar( array( register_sidebar(
array(
'name' => __( 'Primary Sidebar', 'twentyfourteen' ), 'name' => __( 'Primary Sidebar', 'twentyfourteen' ),
'id' => 'sidebar-1', 'id' => 'sidebar-1',
'description' => __( 'Main sidebar that appears on the left.', 'twentyfourteen' ), 'description' => __( 'Main sidebar that appears on the left.', 'twentyfourteen' ),
...@@ -178,8 +201,10 @@ function twentyfourteen_widgets_init() { ...@@ -178,8 +201,10 @@ function twentyfourteen_widgets_init() {
'after_widget' => '</aside>', 'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">', 'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>', 'after_title' => '</h1>',
) ); )
register_sidebar( array( );
register_sidebar(
array(
'name' => __( 'Content Sidebar', 'twentyfourteen' ), 'name' => __( 'Content Sidebar', 'twentyfourteen' ),
'id' => 'sidebar-2', 'id' => 'sidebar-2',
'description' => __( 'Additional sidebar that appears on the right.', 'twentyfourteen' ), 'description' => __( 'Additional sidebar that appears on the right.', 'twentyfourteen' ),
...@@ -187,8 +212,10 @@ function twentyfourteen_widgets_init() { ...@@ -187,8 +212,10 @@ function twentyfourteen_widgets_init() {
'after_widget' => '</aside>', 'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">', 'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>', 'after_title' => '</h1>',
) ); )
register_sidebar( array( );
register_sidebar(
array(
'name' => __( 'Footer Widget Area', 'twentyfourteen' ), 'name' => __( 'Footer Widget Area', 'twentyfourteen' ),
'id' => 'sidebar-3', 'id' => 'sidebar-3',
'description' => __( 'Appears in the footer section of the site.', 'twentyfourteen' ), 'description' => __( 'Appears in the footer section of the site.', 'twentyfourteen' ),
...@@ -196,7 +223,8 @@ function twentyfourteen_widgets_init() { ...@@ -196,7 +223,8 @@ function twentyfourteen_widgets_init() {
'after_widget' => '</aside>', 'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">', 'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>', 'after_title' => '</h1>',
) ); )
);
} }
add_action( 'widgets_init', 'twentyfourteen_widgets_init' ); add_action( 'widgets_init', 'twentyfourteen_widgets_init' );
...@@ -257,10 +285,12 @@ function twentyfourteen_scripts() { ...@@ -257,10 +285,12 @@ function twentyfourteen_scripts() {
if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) { if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {
wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20131205', true ); wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20131205', true );
wp_localize_script( 'twentyfourteen-slider', 'featuredSliderDefaults', array( wp_localize_script(
'twentyfourteen-slider', 'featuredSliderDefaults', array(
'prevText' => __( 'Previous', 'twentyfourteen' ), 'prevText' => __( 'Previous', 'twentyfourteen' ),
'nextText' => __( 'Next', 'twentyfourteen' ) 'nextText' => __( 'Next', 'twentyfourteen' ),
) ); )
);
} }
wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150315', true ); wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150315', true );
...@@ -331,7 +361,8 @@ function twentyfourteen_the_attached_image() { ...@@ -331,7 +361,8 @@ function twentyfourteen_the_attached_image() {
* looking at the last image in a gallery), or, in a gallery of one, just the * looking at the last image in a gallery), or, in a gallery of one, just the
* link to that image file. * link to that image file.
*/ */
$attachment_ids = get_posts( array( $attachment_ids = get_posts(
array(
'post_parent' => $post->post_parent, 'post_parent' => $post->post_parent,
'fields' => 'ids', 'fields' => 'ids',
'numberposts' => -1, 'numberposts' => -1,
...@@ -340,7 +371,8 @@ function twentyfourteen_the_attached_image() { ...@@ -340,7 +371,8 @@ function twentyfourteen_the_attached_image() {
'post_mime_type' => 'image', 'post_mime_type' => 'image',
'order' => 'ASC', 'order' => 'ASC',
'orderby' => 'menu_order ID', 'orderby' => 'menu_order ID',
) ); )
);
// If there is more than 1 attachment in a gallery... // If there is more than 1 attachment in a gallery...
if ( count( $attachment_ids ) > 1 ) { if ( count( $attachment_ids ) > 1 ) {
...@@ -354,15 +386,14 @@ function twentyfourteen_the_attached_image() { ...@@ -354,15 +386,14 @@ function twentyfourteen_the_attached_image() {
// get the URL of the next image attachment... // get the URL of the next image attachment...
if ( $next_id ) { if ( $next_id ) {
$next_attachment_url = get_attachment_link( $next_id ); $next_attachment_url = get_attachment_link( $next_id );
} } // or get the URL of the first image attachment.
// or get the URL of the first image attachment.
else { else {
$next_attachment_url = get_attachment_link( reset( $attachment_ids ) ); $next_attachment_url = get_attachment_link( reset( $attachment_ids ) );
} }
} }
printf( '<a href="%1$s" rel="attachment">%2$s</a>', printf(
'<a href="%1$s" rel="attachment">%2$s</a>',
esc_url( $next_attachment_url ), esc_url( $next_attachment_url ),
wp_get_attachment_image( $post->ID, $attachment_size ) wp_get_attachment_image( $post->ID, $attachment_size )
); );
...@@ -376,12 +407,14 @@ if ( ! function_exists( 'twentyfourteen_list_authors' ) ) : ...@@ -376,12 +407,14 @@ if ( ! function_exists( 'twentyfourteen_list_authors' ) ) :
* @since Twenty Fourteen 1.0 * @since Twenty Fourteen 1.0
*/ */
function twentyfourteen_list_authors() { function twentyfourteen_list_authors() {
$contributor_ids = get_users( array( $contributor_ids = get_users(
array(
'fields' => 'ID', 'fields' => 'ID',
'orderby' => 'post_count', 'orderby' => 'post_count',
'order' => 'DESC', 'order' => 'DESC',
'who' => 'authors', 'who' => 'authors',
) ); )
);
foreach ( $contributor_ids as $contributor_id ) : foreach ( $contributor_ids as $contributor_id ) :
$post_count = count_user_posts( $contributor_id ); $post_count = count_user_posts( $contributor_id );
......
...@@ -51,7 +51,15 @@ ...@@ -51,7 +51,15 @@
<nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation"> <nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation">
<button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button> <button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button>
<a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a> <a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a>
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'menu_id' => 'primary-menu' ) ); ?> <?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_class' => 'nav-menu',
'menu_id' => 'primary-menu',
)
);
?>
</nav> </nav>
</div> </div>
......
...@@ -18,7 +18,8 @@ get_header(); ...@@ -18,7 +18,8 @@ get_header();
<?php <?php
// Start the Loop. // Start the Loop.
while ( have_posts() ) : the_post(); while ( have_posts() ) :
the_post();
?> ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header"> <header class="entry-header">
...@@ -50,12 +51,14 @@ get_header(); ...@@ -50,12 +51,14 @@ get_header();
<?php <?php
the_content(); the_content();
wp_link_pages( array( wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>', 'after' => '</div>',
'link_before' => '<span>', 'link_before' => '<span>',
'link_after' => '</span>', 'link_after' => '</span>',
) ); )
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
</article><!-- #post-## --> </article><!-- #post-## -->
......
...@@ -44,9 +44,11 @@ function twentyfourteen_upgrade_notice() { ...@@ -44,9 +44,11 @@ function twentyfourteen_upgrade_notice() {
* @since Twenty Fourteen 1.0 * @since Twenty Fourteen 1.0
*/ */
function twentyfourteen_customize() { function twentyfourteen_customize() {
wp_die( sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ), '', array( wp_die(
sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ), '', array(
'back_link' => true, 'back_link' => true,
) ); )
);
} }
add_action( 'load-customize.php', 'twentyfourteen_customize' ); add_action( 'load-customize.php', 'twentyfourteen_customize' );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment