@@ -12,8 +12,8 @@ |
||
12 | 12 | </div><!-- #main .wrapper --> |
13 | 13 | <footer id="colophon" role="contentinfo"> |
14 | 14 | <div class="site-info"> |
15 | - <?php do_action( 'twentytwelve_credits' ); ?> |
|
16 | - <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwelve' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a> |
|
15 | + <?php do_action('twentytwelve_credits'); ?> |
|
16 | + <a href="<?php echo esc_url(__('https://wordpress.org/', 'twentytwelve')); ?>" title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentytwelve'); ?>"><?php printf(__('Proudly powered by %s', 'twentytwelve'), 'WordPress'); ?></a> |
|
17 | 17 | </div><!-- .site-info --> |
18 | 18 | </footer><!-- #colophon --> |
19 | 19 | </div><!-- #page --> |
@@ -10,16 +10,16 @@ |
||
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | 12 | <div class="entry-content"> |
13 | - <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
|
13 | + <?php the_content(__('Continue reading <span class="meta-nav">→</span>', 'twentytwelve')); ?> |
|
14 | 14 | </div><!-- .entry-content --> |
15 | 15 | |
16 | 16 | <footer class="entry-meta"> |
17 | - <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a> |
|
18 | - <?php if ( comments_open() ) : ?> |
|
17 | + <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'twentytwelve'), the_title_attribute('echo=0'))); ?>" rel="bookmark"><?php echo get_the_date(); ?></a> |
|
18 | + <?php if (comments_open()) : ?> |
|
19 | 19 | <div class="comments-link"> |
20 | - <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> |
|
20 | + <?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentytwelve').'</span>', __('1 Reply', 'twentytwelve'), __('% Replies', 'twentytwelve')); ?> |
|
21 | 21 | </div><!-- .comments-link --> |
22 | 22 | <?php endif; // comments_open() ?> |
23 | - <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
|
23 | + <?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?> |
|
24 | 24 | </footer><!-- .entry-meta --> |
25 | 25 | </article><!-- #post --> |
@@ -75,7 +75,7 @@ |
||
75 | 75 | ?> |
76 | 76 | <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php |
77 | 77 | /** |
78 | - * Filter the image attachment size to use. |
|
78 | + * Filter the image attachment size to use. |
|
79 | 79 | * |
80 | 80 | * @since Twenty Twelve 1.0 |
81 | 81 | * |
@@ -14,32 +14,32 @@ discard block |
||
14 | 14 | <div id="primary" class="site-content"> |
15 | 15 | <div id="content" role="main"> |
16 | 16 | |
17 | - <?php while ( have_posts() ) : the_post(); ?> |
|
17 | + <?php while (have_posts()) : the_post(); ?> |
|
18 | 18 | |
19 | - <article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>> |
|
19 | + <article id="post-<?php the_ID(); ?>" <?php post_class('image-attachment'); ?>> |
|
20 | 20 | <header class="entry-header"> |
21 | 21 | <h1 class="entry-title"><?php the_title(); ?></h1> |
22 | 22 | |
23 | 23 | <footer class="entry-meta"> |
24 | 24 | <?php |
25 | 25 | $metadata = wp_get_attachment_metadata(); |
26 | - printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ), |
|
27 | - esc_attr( get_the_date( 'c' ) ), |
|
28 | - esc_html( get_the_date() ), |
|
29 | - esc_url( wp_get_attachment_url() ), |
|
26 | + printf(__('<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve'), |
|
27 | + esc_attr(get_the_date('c')), |
|
28 | + esc_html(get_the_date()), |
|
29 | + esc_url(wp_get_attachment_url()), |
|
30 | 30 | $metadata['width'], |
31 | 31 | $metadata['height'], |
32 | - esc_url( get_permalink( $post->post_parent ) ), |
|
33 | - esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ), |
|
34 | - get_the_title( $post->post_parent ) |
|
32 | + esc_url(get_permalink($post->post_parent)), |
|
33 | + esc_attr(strip_tags(get_the_title($post->post_parent))), |
|
34 | + get_the_title($post->post_parent) |
|
35 | 35 | ); |
36 | 36 | ?> |
37 | - <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
|
37 | + <?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?> |
|
38 | 38 | </footer><!-- .entry-meta --> |
39 | 39 | |
40 | 40 | <nav id="image-navigation" class="navigation" role="navigation"> |
41 | - <span class="previous-image"><?php previous_image_link( false, __( '← Previous', 'twentytwelve' ) ); ?></span> |
|
42 | - <span class="next-image"><?php next_image_link( false, __( 'Next →', 'twentytwelve' ) ); ?></span> |
|
41 | + <span class="previous-image"><?php previous_image_link(false, __('← Previous', 'twentytwelve')); ?></span> |
|
42 | + <span class="next-image"><?php next_image_link(false, __('Next →', 'twentytwelve')); ?></span> |
|
43 | 43 | </nav><!-- #image-navigation --> |
44 | 44 | </header><!-- .entry-header --> |
45 | 45 | |
@@ -52,28 +52,28 @@ discard block |
||
52 | 52 | * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery, |
53 | 53 | * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file |
54 | 54 | */ |
55 | -$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); |
|
56 | -foreach ( $attachments as $k => $attachment ) : |
|
57 | - if ( $attachment->ID == $post->ID ) |
|
55 | +$attachments = array_values(get_children(array('post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID'))); |
|
56 | +foreach ($attachments as $k => $attachment) : |
|
57 | + if ($attachment->ID == $post->ID) |
|
58 | 58 | break; |
59 | 59 | endforeach; |
60 | 60 | |
61 | 61 | // If there is more than 1 attachment in a gallery |
62 | -if ( count( $attachments ) > 1 ) : |
|
62 | +if (count($attachments) > 1) : |
|
63 | 63 | $k++; |
64 | - if ( isset( $attachments[ $k ] ) ) : |
|
64 | + if (isset($attachments[$k])) : |
|
65 | 65 | // get the URL of the next image attachment |
66 | - $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); |
|
66 | + $next_attachment_url = get_attachment_link($attachments[$k]->ID); |
|
67 | 67 | else : |
68 | 68 | // or get the URL of the first image attachment |
69 | - $next_attachment_url = get_attachment_link( $attachments[0]->ID ); |
|
69 | + $next_attachment_url = get_attachment_link($attachments[0]->ID); |
|
70 | 70 | endif; |
71 | 71 | else : |
72 | 72 | // or, if there's only 1 image, get the URL of the image |
73 | 73 | $next_attachment_url = wp_get_attachment_url(); |
74 | 74 | endif; |
75 | 75 | ?> |
76 | - <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php |
|
76 | + <a href="<?php echo esc_url($next_attachment_url); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php |
|
77 | 77 | /** |
78 | 78 | * Filter the image attachment size to use. |
79 | 79 | * |
@@ -84,11 +84,11 @@ discard block |
||
84 | 84 | * @type int The attachment width in pixels. |
85 | 85 | * } |
86 | 86 | */ |
87 | - $attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) ); |
|
88 | - echo wp_get_attachment_image( $post->ID, $attachment_size ); |
|
87 | + $attachment_size = apply_filters('twentytwelve_attachment_size', array(960, 960)); |
|
88 | + echo wp_get_attachment_image($post->ID, $attachment_size); |
|
89 | 89 | ?></a> |
90 | 90 | |
91 | - <?php if ( ! empty( $post->post_excerpt ) ) : ?> |
|
91 | + <?php if ( ! empty($post->post_excerpt)) : ?> |
|
92 | 92 | <div class="entry-caption"> |
93 | 93 | <?php the_excerpt(); ?> |
94 | 94 | </div> |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | <div class="entry-description"> |
101 | 101 | <?php the_content(); ?> |
102 | - <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> |
|
102 | + <?php wp_link_pages(array('before' => '<div class="page-links">'.__('Pages:', 'twentytwelve'), 'after' => '</div>')); ?> |
|
103 | 103 | </div><!-- .entry-description --> |
104 | 104 | |
105 | 105 | </div><!-- .entry-content --> |
@@ -54,9 +54,10 @@ discard block |
||
54 | 54 | */ |
55 | 55 | $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); |
56 | 56 | foreach ( $attachments as $k => $attachment ) : |
57 | - if ( $attachment->ID == $post->ID ) |
|
58 | - break; |
|
59 | -endforeach; |
|
57 | + if ( $attachment->ID == $post->ID ) { |
|
58 | + break; |
|
59 | + } |
|
60 | + endforeach; |
|
60 | 61 | |
61 | 62 | // If there is more than 1 attachment in a gallery |
62 | 63 | if ( count( $attachments ) > 1 ) : |
@@ -64,13 +65,17 @@ discard block |
||
64 | 65 | if ( isset( $attachments[ $k ] ) ) : |
65 | 66 | // get the URL of the next image attachment |
66 | 67 | $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); |
67 | - else : |
|
68 | + else { |
|
69 | + : |
|
68 | 70 | // or get the URL of the first image attachment |
69 | 71 | $next_attachment_url = get_attachment_link( $attachments[0]->ID ); |
72 | + } |
|
70 | 73 | endif; |
71 | -else : |
|
74 | +else { |
|
75 | + : |
|
72 | 76 | // or, if there's only 1 image, get the URL of the image |
73 | 77 | $next_attachment_url = wp_get_attachment_url(); |
78 | +} |
|
74 | 79 | endif; |
75 | 80 | ?> |
76 | 81 | <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php |
@@ -15,21 +15,21 @@ |
||
15 | 15 | * |
16 | 16 | * If none of the sidebars have widgets, then let's bail early. |
17 | 17 | */ |
18 | -if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) |
|
18 | +if ( ! is_active_sidebar('sidebar-2') && ! is_active_sidebar('sidebar-3')) |
|
19 | 19 | return; |
20 | 20 | |
21 | 21 | // If we get this far, we have widgets. Let do this. |
22 | 22 | ?> |
23 | 23 | <div id="secondary" class="widget-area" role="complementary"> |
24 | - <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?> |
|
24 | + <?php if (is_active_sidebar('sidebar-2')) : ?> |
|
25 | 25 | <div class="first front-widgets"> |
26 | - <?php dynamic_sidebar( 'sidebar-2' ); ?> |
|
26 | + <?php dynamic_sidebar('sidebar-2'); ?> |
|
27 | 27 | </div><!-- .first --> |
28 | 28 | <?php endif; ?> |
29 | 29 | |
30 | - <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?> |
|
30 | + <?php if (is_active_sidebar('sidebar-3')) : ?> |
|
31 | 31 | <div class="second front-widgets"> |
32 | - <?php dynamic_sidebar( 'sidebar-3' ); ?> |
|
32 | + <?php dynamic_sidebar('sidebar-3'); ?> |
|
33 | 33 | </div><!-- .second --> |
34 | 34 | <?php endif; ?> |
35 | 35 | </div><!-- #secondary --> |
36 | 36 | \ No newline at end of file |
@@ -15,8 +15,9 @@ |
||
15 | 15 | * |
16 | 16 | * If none of the sidebars have widgets, then let's bail early. |
17 | 17 | */ |
18 | -if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) |
|
18 | +if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) { |
|
19 | 19 | return; |
20 | +} |
|
20 | 21 | |
21 | 22 | // If we get this far, we have widgets. Let do this. |
22 | 23 | ?> |
@@ -19,11 +19,11 @@ discard block |
||
19 | 19 | <html <?php language_attributes(); ?>> |
20 | 20 | <!--<![endif]--> |
21 | 21 | <head> |
22 | -<meta charset="<?php bloginfo( 'charset' ); ?>" /> |
|
22 | +<meta charset="<?php bloginfo('charset'); ?>" /> |
|
23 | 23 | <meta name="viewport" content="width=device-width" /> |
24 | -<title><?php wp_title( '|', true, 'right' ); ?></title> |
|
24 | +<title><?php wp_title('|', true, 'right'); ?></title> |
|
25 | 25 | <link rel="profile" href="http://gmpg.org/xfn/11" /> |
26 | -<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> |
|
26 | +<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> |
|
27 | 27 | <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?> |
28 | 28 | <!--[if lt IE 9]> |
29 | 29 | <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> |
@@ -35,18 +35,18 @@ discard block |
||
35 | 35 | <div id="page" class="hfeed site"> |
36 | 36 | <header id="masthead" class="site-header" role="banner"> |
37 | 37 | <hgroup> |
38 | - <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
|
39 | - <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> |
|
38 | + <h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1> |
|
39 | + <h2 class="site-description"><?php bloginfo('description'); ?></h2> |
|
40 | 40 | </hgroup> |
41 | 41 | |
42 | 42 | <nav id="site-navigation" class="main-navigation" role="navigation"> |
43 | - <button class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></button> |
|
44 | - <a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a> |
|
45 | - <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?> |
|
43 | + <button class="menu-toggle"><?php _e('Menu', 'twentytwelve'); ?></button> |
|
44 | + <a class="assistive-text" href="#content" title="<?php esc_attr_e('Skip to content', 'twentytwelve'); ?>"><?php _e('Skip to content', 'twentytwelve'); ?></a> |
|
45 | + <?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav-menu')); ?> |
|
46 | 46 | </nav><!-- #site-navigation --> |
47 | 47 | |
48 | - <?php if ( get_header_image() ) : ?> |
|
49 | - <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /></a> |
|
48 | + <?php if (get_header_image()) : ?> |
|
49 | + <a href="<?php echo esc_url(home_url('/')); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo esc_attr(get_custom_header()->width); ?>" height="<?php echo esc_attr(get_custom_header()->height); ?>" alt="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" /></a> |
|
50 | 50 | <?php endif; ?> |
51 | 51 | </header><!-- #masthead --> |
52 | 52 |
@@ -19,9 +19,9 @@ |
||
19 | 19 | <div id="primary" class="site-content"> |
20 | 20 | <div id="content" role="main"> |
21 | 21 | |
22 | - <?php while ( have_posts() ) : the_post(); ?> |
|
23 | - <?php get_template_part( 'content', 'page' ); ?> |
|
24 | - <?php comments_template( '', true ); ?> |
|
22 | + <?php while (have_posts()) : the_post(); ?> |
|
23 | + <?php get_template_part('content', 'page'); ?> |
|
24 | + <?php comments_template('', true); ?> |
|
25 | 25 | <?php endwhile; // end of the loop. ?> |
26 | 26 | |
27 | 27 | </div><!-- #content --> |
@@ -17,19 +17,19 @@ |
||
17 | 17 | <div id="primary" class="site-content"> |
18 | 18 | <div id="content" role="main"> |
19 | 19 | |
20 | - <?php while ( have_posts() ) : the_post(); ?> |
|
21 | - <?php if ( has_post_thumbnail() ) : ?> |
|
20 | + <?php while (have_posts()) : the_post(); ?> |
|
21 | + <?php if (has_post_thumbnail()) : ?> |
|
22 | 22 | <div class="entry-page-image"> |
23 | 23 | <?php the_post_thumbnail(); ?> |
24 | 24 | </div><!-- .entry-page-image --> |
25 | 25 | <?php endif; ?> |
26 | 26 | |
27 | - <?php get_template_part( 'content', 'page' ); ?> |
|
27 | + <?php get_template_part('content', 'page'); ?> |
|
28 | 28 | |
29 | 29 | <?php endwhile; // end of the loop. ?> |
30 | 30 | |
31 | 31 | </div><!-- #content --> |
32 | 32 | </div><!-- #primary --> |
33 | 33 | |
34 | -<?php get_sidebar( 'front' ); ?> |
|
34 | +<?php get_sidebar('front'); ?> |
|
35 | 35 | <?php get_footer(); ?> |
36 | 36 | \ No newline at end of file |
@@ -10,8 +10,8 @@ |
||
10 | 10 | */ |
11 | 11 | ?> |
12 | 12 | |
13 | - <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> |
|
13 | + <?php if (is_active_sidebar('sidebar-1')) : ?> |
|
14 | 14 | <div id="secondary" class="widget-area" role="complementary"> |
15 | - <?php dynamic_sidebar( 'sidebar-1' ); ?> |
|
15 | + <?php dynamic_sidebar('sidebar-1'); ?> |
|
16 | 16 | </div><!-- #secondary --> |
17 | 17 | <?php endif; ?> |
18 | 18 | \ No newline at end of file |
@@ -18,39 +18,39 @@ |
||
18 | 18 | |
19 | 19 | <div id="primary" class="site-content"> |
20 | 20 | <div id="content" role="main"> |
21 | - <?php if ( have_posts() ) : ?> |
|
21 | + <?php if (have_posts()) : ?> |
|
22 | 22 | |
23 | 23 | <?php /* Start the Loop */ ?> |
24 | - <?php while ( have_posts() ) : the_post(); ?> |
|
25 | - <?php get_template_part( 'content', get_post_format() ); ?> |
|
24 | + <?php while (have_posts()) : the_post(); ?> |
|
25 | + <?php get_template_part('content', get_post_format()); ?> |
|
26 | 26 | <?php endwhile; ?> |
27 | 27 | |
28 | - <?php twentytwelve_content_nav( 'nav-below' ); ?> |
|
28 | + <?php twentytwelve_content_nav('nav-below'); ?> |
|
29 | 29 | |
30 | 30 | <?php else : ?> |
31 | 31 | |
32 | 32 | <article id="post-0" class="post no-results not-found"> |
33 | 33 | |
34 | - <?php if ( current_user_can( 'edit_posts' ) ) : |
|
34 | + <?php if (current_user_can('edit_posts')) : |
|
35 | 35 | // Show a different message to a logged-in user who can add posts. |
36 | 36 | ?> |
37 | 37 | <header class="entry-header"> |
38 | - <h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h1> |
|
38 | + <h1 class="entry-title"><?php _e('No posts to display', 'twentytwelve'); ?></h1> |
|
39 | 39 | </header> |
40 | 40 | |
41 | 41 | <div class="entry-content"> |
42 | - <p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p> |
|
42 | + <p><?php printf(__('Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve'), admin_url('post-new.php')); ?></p> |
|
43 | 43 | </div><!-- .entry-content --> |
44 | 44 | |
45 | 45 | <?php else : |
46 | 46 | // Show the default message to everyone else. |
47 | 47 | ?> |
48 | 48 | <header class="entry-header"> |
49 | - <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1> |
|
49 | + <h1 class="entry-title"><?php _e('Nothing Found', 'twentytwelve'); ?></h1> |
|
50 | 50 | </header> |
51 | 51 | |
52 | 52 | <div class="entry-content"> |
53 | - <p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p> |
|
53 | + <p><?php _e('Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve'); ?></p> |
|
54 | 54 | <?php get_search_form(); ?> |
55 | 55 | </div><!-- .entry-content --> |
56 | 56 | <?php endif; // end current_user_can() check ?> |
@@ -27,7 +27,8 @@ discard block |
||
27 | 27 | |
28 | 28 | <?php twentytwelve_content_nav( 'nav-below' ); ?> |
29 | 29 | |
30 | - <?php else : ?> |
|
30 | + <?php else { |
|
31 | + : ?> |
|
31 | 32 | |
32 | 33 | <article id="post-0" class="post no-results not-found"> |
33 | 34 | |
@@ -35,18 +36,23 @@ discard block |
||
35 | 36 | // Show a different message to a logged-in user who can add posts. |
36 | 37 | ?> |
37 | 38 | <header class="entry-header"> |
38 | - <h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h1> |
|
39 | + <h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); |
|
40 | +} |
|
41 | +?></h1> |
|
39 | 42 | </header> |
40 | 43 | |
41 | 44 | <div class="entry-content"> |
42 | 45 | <p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p> |
43 | 46 | </div><!-- .entry-content --> |
44 | 47 | |
45 | - <?php else : |
|
48 | + <?php else { |
|
49 | + : |
|
46 | 50 | // Show the default message to everyone else. |
47 | 51 | ?> |
48 | 52 | <header class="entry-header"> |
49 | - <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1> |
|
53 | + <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); |
|
54 | +} |
|
55 | +?></h1> |
|
50 | 56 | </header> |
51 | 57 | |
52 | 58 | <div class="entry-content"> |