Completed
Push — master ( d488ab...6453e7 )
by Stephen
53:31
created
src/wp-content/themes/twentytwelve/page-templates/full-width.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
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 -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/page-templates/front-page.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,19 +17,19 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/sidebar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/index.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,39 +18,39 @@
 block discarded – undo
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 ?>
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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">
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/functions.php 3 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Twenty Twelve functions and definitions
4
- *
5
- * Sets up the theme and provides some helper functions, which are used
6
- * in the theme as custom template tags. Others are attached to action and
7
- * filter hooks in WordPress to change core functionality.
8
- *
9
- * When using a child theme (see https://codex.wordpress.org/Theme_Development and
10
- * https://codex.wordpress.org/Child_Themes), you can override certain functions
11
- * (those wrapped in a function_exists() call) by defining them first in your child theme's
12
- * functions.php file. The child theme's functions.php file is included before the parent
13
- * theme's file, so the child theme functions would be used.
14
- *
15
- * Functions that are not pluggable (not wrapped in function_exists()) are instead attached
16
- * to a filter or action hook.
17
- *
18
- * For more information on hooks, actions, and filters, @link https://codex.wordpress.org/Plugin_API
19
- *
20
- * @package WordPress
21
- * @subpackage Twenty_Twelve
22
- * @since Twenty Twelve 1.0
23
- */
3
+			 * Twenty Twelve functions and definitions
4
+			 *
5
+			 * Sets up the theme and provides some helper functions, which are used
6
+			 * in the theme as custom template tags. Others are attached to action and
7
+			 * filter hooks in WordPress to change core functionality.
8
+			 *
9
+			 * When using a child theme (see https://codex.wordpress.org/Theme_Development and
10
+			 * https://codex.wordpress.org/Child_Themes), you can override certain functions
11
+			 * (those wrapped in a function_exists() call) by defining them first in your child theme's
12
+			 * functions.php file. The child theme's functions.php file is included before the parent
13
+			 * theme's file, so the child theme functions would be used.
14
+			 *
15
+			 * Functions that are not pluggable (not wrapped in function_exists()) are instead attached
16
+			 * to a filter or action hook.
17
+			 *
18
+			 * For more information on hooks, actions, and filters, @link https://codex.wordpress.org/Plugin_API
19
+			 *
20
+			 * @package WordPress
21
+			 * @subpackage Twenty_Twelve
22
+			 * @since Twenty Twelve 1.0
23
+			 */
24 24
 
25 25
 // Set up the content width value based on the theme's design and stylesheet.
26 26
 if ( ! isset( $content_width ) )
Please login to merge, or discard this patch.
Spacing   +113 added lines, -113 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
  */
24 24
 
25 25
 // Set up the content width value based on the theme's design and stylesheet.
26
-if ( ! isset( $content_width ) )
26
+if ( ! isset($content_width))
27 27
 	$content_width = 625;
28 28
 
29 29
 /**
@@ -49,38 +49,38 @@  discard block
 block discarded – undo
49 49
 	 * If you're building a theme based on Twenty Twelve, use a find and replace
50 50
 	 * to change 'twentytwelve' to the name of your theme in all the template files.
51 51
 	 */
52
-	load_theme_textdomain( 'twentytwelve', get_template_directory() . '/languages' );
52
+	load_theme_textdomain('twentytwelve', get_template_directory().'/languages');
53 53
 
54 54
 	// This theme styles the visual editor with editor-style.css to match the theme style.
55 55
 	add_editor_style();
56 56
 
57 57
 	// Adds RSS feed links to <head> for posts and comments.
58
-	add_theme_support( 'automatic-feed-links' );
58
+	add_theme_support('automatic-feed-links');
59 59
 
60 60
 	// This theme supports a variety of post formats.
61
-	add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) );
61
+	add_theme_support('post-formats', array('aside', 'image', 'link', 'quote', 'status'));
62 62
 
63 63
 	// This theme uses wp_nav_menu() in one location.
64
-	register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) );
64
+	register_nav_menu('primary', __('Primary Menu', 'twentytwelve'));
65 65
 
66 66
 	/*
67 67
 	 * This theme supports custom background color and image,
68 68
 	 * and here we also set up the default background color.
69 69
 	 */
70
-	add_theme_support( 'custom-background', array(
70
+	add_theme_support('custom-background', array(
71 71
 		'default-color' => 'e6e6e6',
72
-	) );
72
+	));
73 73
 
74 74
 	// This theme uses a custom image size for featured images, displayed on "standard" posts.
75
-	add_theme_support( 'post-thumbnails' );
76
-	set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop
75
+	add_theme_support('post-thumbnails');
76
+	set_post_thumbnail_size(624, 9999); // Unlimited height, soft crop
77 77
 }
78
-add_action( 'after_setup_theme', 'twentytwelve_setup' );
78
+add_action('after_setup_theme', 'twentytwelve_setup');
79 79
 
80 80
 /**
81 81
  * Add support for a custom header image.
82 82
  */
83
-require( get_template_directory() . '/inc/custom-header.php' );
83
+require(get_template_directory().'/inc/custom-header.php');
84 84
 
85 85
 /**
86 86
  * Return the Google font stylesheet URL if available.
@@ -98,26 +98,26 @@  discard block
 block discarded – undo
98 98
 	/* translators: If there are characters in your language that are not supported
99 99
 	 * by Open Sans, translate this to 'off'. Do not translate into your own language.
100 100
 	 */
101
-	if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
101
+	if ('off' !== _x('on', 'Open Sans font: on or off', 'twentytwelve')) {
102 102
 		$subsets = 'latin,latin-ext';
103 103
 
104 104
 		/* translators: To add an additional Open Sans character subset specific to your language,
105 105
 		 * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
106 106
 		 */
107
-		$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
107
+		$subset = _x('no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve');
108 108
 
109
-		if ( 'cyrillic' == $subset )
109
+		if ('cyrillic' == $subset)
110 110
 			$subsets .= ',cyrillic,cyrillic-ext';
111
-		elseif ( 'greek' == $subset )
111
+		elseif ('greek' == $subset)
112 112
 			$subsets .= ',greek,greek-ext';
113
-		elseif ( 'vietnamese' == $subset )
113
+		elseif ('vietnamese' == $subset)
114 114
 			$subsets .= ',vietnamese';
115 115
 
116 116
 		$query_args = array(
117 117
 			'family' => 'Open+Sans:400italic,700italic,400,700',
118 118
 			'subset' => $subsets,
119 119
 		);
120
-		$font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
120
+		$font_url = add_query_arg($query_args, 'https://fonts.googleapis.com/css');
121 121
 	}
122 122
 
123 123
 	return $font_url;
@@ -135,24 +135,24 @@  discard block
 block discarded – undo
135 135
 	 * Adds JavaScript to pages with the comment form to support
136 136
 	 * sites with threaded comments (when in use).
137 137
 	 */
138
-	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
139
-		wp_enqueue_script( 'comment-reply' );
138
+	if (is_singular() && comments_open() && get_option('thread_comments'))
139
+		wp_enqueue_script('comment-reply');
140 140
 
141 141
 	// Adds JavaScript for handling the navigation menu hide-and-show behavior.
142
-	wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20140711', true );
142
+	wp_enqueue_script('twentytwelve-navigation', get_template_directory_uri().'/js/navigation.js', array('jquery'), '20140711', true);
143 143
 
144 144
 	$font_url = twentytwelve_get_font_url();
145
-	if ( ! empty( $font_url ) )
146
-		wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
145
+	if ( ! empty($font_url))
146
+		wp_enqueue_style('twentytwelve-fonts', esc_url_raw($font_url), array(), null);
147 147
 
148 148
 	// Loads our main stylesheet.
149
-	wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
149
+	wp_enqueue_style('twentytwelve-style', get_stylesheet_uri());
150 150
 
151 151
 	// Loads the Internet Explorer specific stylesheet.
152
-	wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' );
153
-	$wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
152
+	wp_enqueue_style('twentytwelve-ie', get_template_directory_uri().'/css/ie.css', array('twentytwelve-style'), '20121010');
153
+	$wp_styles->add_data('twentytwelve-ie', 'conditional', 'lt IE 9');
154 154
 }
155
-add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
155
+add_action('wp_enqueue_scripts', 'twentytwelve_scripts_styles');
156 156
 
157 157
 /**
158 158
  * Filter TinyMCE CSS path to include Google Fonts.
@@ -166,20 +166,20 @@  discard block
 block discarded – undo
166 166
  * @param string $mce_css CSS path to load in TinyMCE.
167 167
  * @return string Filtered CSS path.
168 168
  */
169
-function twentytwelve_mce_css( $mce_css ) {
169
+function twentytwelve_mce_css($mce_css) {
170 170
 	$font_url = twentytwelve_get_font_url();
171 171
 
172
-	if ( empty( $font_url ) )
172
+	if (empty($font_url))
173 173
 		return $mce_css;
174 174
 
175
-	if ( ! empty( $mce_css ) )
175
+	if ( ! empty($mce_css))
176 176
 		$mce_css .= ',';
177 177
 
178
-	$mce_css .= esc_url_raw( str_replace( ',', '%2C', $font_url ) );
178
+	$mce_css .= esc_url_raw(str_replace(',', '%2C', $font_url));
179 179
 
180 180
 	return $mce_css;
181 181
 }
182
-add_filter( 'mce_css', 'twentytwelve_mce_css' );
182
+add_filter('mce_css', 'twentytwelve_mce_css');
183 183
 
184 184
 /**
185 185
  * Filter the page title.
@@ -193,27 +193,27 @@  discard block
 block discarded – undo
193 193
  * @param string $sep Optional separator.
194 194
  * @return string Filtered title.
195 195
  */
196
-function twentytwelve_wp_title( $title, $sep ) {
196
+function twentytwelve_wp_title($title, $sep) {
197 197
 	global $paged, $page;
198 198
 
199
-	if ( is_feed() )
199
+	if (is_feed())
200 200
 		return $title;
201 201
 
202 202
 	// Add the site name.
203
-	$title .= get_bloginfo( 'name', 'display' );
203
+	$title .= get_bloginfo('name', 'display');
204 204
 
205 205
 	// Add the site description for the home/front page.
206
-	$site_description = get_bloginfo( 'description', 'display' );
207
-	if ( $site_description && ( is_home() || is_front_page() ) )
206
+	$site_description = get_bloginfo('description', 'display');
207
+	if ($site_description && (is_home() || is_front_page()))
208 208
 		$title = "$title $sep $site_description";
209 209
 
210 210
 	// Add a page number if necessary.
211
-	if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() )
212
-		$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
211
+	if (($paged >= 2 || $page >= 2) && ! is_404())
212
+		$title = "$title $sep ".sprintf(__('Page %s', 'twentytwelve'), max($paged, $page));
213 213
 
214 214
 	return $title;
215 215
 }
216
-add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );
216
+add_filter('wp_title', 'twentytwelve_wp_title', 10, 2);
217 217
 
218 218
 /**
219 219
  * Filter the page menu arguments.
@@ -222,12 +222,12 @@  discard block
 block discarded – undo
222 222
  *
223 223
  * @since Twenty Twelve 1.0
224 224
  */
225
-function twentytwelve_page_menu_args( $args ) {
226
-	if ( ! isset( $args['show_home'] ) )
225
+function twentytwelve_page_menu_args($args) {
226
+	if ( ! isset($args['show_home']))
227 227
 		$args['show_home'] = true;
228 228
 	return $args;
229 229
 }
230
-add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' );
230
+add_filter('wp_page_menu_args', 'twentytwelve_page_menu_args');
231 231
 
232 232
 /**
233 233
  * Register sidebars.
@@ -237,58 +237,58 @@  discard block
 block discarded – undo
237 237
  * @since Twenty Twelve 1.0
238 238
  */
239 239
 function twentytwelve_widgets_init() {
240
-	register_sidebar( array(
241
-		'name' => __( 'Main Sidebar', 'twentytwelve' ),
240
+	register_sidebar(array(
241
+		'name' => __('Main Sidebar', 'twentytwelve'),
242 242
 		'id' => 'sidebar-1',
243
-		'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ),
243
+		'description' => __('Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve'),
244 244
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
245 245
 		'after_widget' => '</aside>',
246 246
 		'before_title' => '<h3 class="widget-title">',
247 247
 		'after_title' => '</h3>',
248
-	) );
248
+	));
249 249
 
250
-	register_sidebar( array(
251
-		'name' => __( 'First Front Page Widget Area', 'twentytwelve' ),
250
+	register_sidebar(array(
251
+		'name' => __('First Front Page Widget Area', 'twentytwelve'),
252 252
 		'id' => 'sidebar-2',
253
-		'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ),
253
+		'description' => __('Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve'),
254 254
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
255 255
 		'after_widget' => '</aside>',
256 256
 		'before_title' => '<h3 class="widget-title">',
257 257
 		'after_title' => '</h3>',
258
-	) );
258
+	));
259 259
 
260
-	register_sidebar( array(
261
-		'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ),
260
+	register_sidebar(array(
261
+		'name' => __('Second Front Page Widget Area', 'twentytwelve'),
262 262
 		'id' => 'sidebar-3',
263
-		'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ),
263
+		'description' => __('Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve'),
264 264
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
265 265
 		'after_widget' => '</aside>',
266 266
 		'before_title' => '<h3 class="widget-title">',
267 267
 		'after_title' => '</h3>',
268
-	) );
268
+	));
269 269
 }
270
-add_action( 'widgets_init', 'twentytwelve_widgets_init' );
270
+add_action('widgets_init', 'twentytwelve_widgets_init');
271 271
 
272
-if ( ! function_exists( 'twentytwelve_content_nav' ) ) :
272
+if ( ! function_exists('twentytwelve_content_nav')) :
273 273
 /**
274 274
  * Displays navigation to next/previous pages when applicable.
275 275
  *
276 276
  * @since Twenty Twelve 1.0
277 277
  */
278
-function twentytwelve_content_nav( $html_id ) {
278
+function twentytwelve_content_nav($html_id) {
279 279
 	global $wp_query;
280 280
 
281
-	if ( $wp_query->max_num_pages > 1 ) : ?>
282
-		<nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation" role="navigation">
283
-			<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
284
-			<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve' ) ); ?></div>
285
-			<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?></div>
281
+	if ($wp_query->max_num_pages > 1) : ?>
282
+		<nav id="<?php echo esc_attr($html_id); ?>" class="navigation" role="navigation">
283
+			<h3 class="assistive-text"><?php _e('Post navigation', 'twentytwelve'); ?></h3>
284
+			<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve')); ?></div>
285
+			<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">&rarr;</span>', 'twentytwelve')); ?></div>
286 286
 		</nav><!-- .navigation -->
287 287
 	<?php endif;
288 288
 }
289 289
 endif;
290 290
 
291
-if ( ! function_exists( 'twentytwelve_comment' ) ) :
291
+if ( ! function_exists('twentytwelve_comment')) :
292 292
 /**
293 293
  * Template for comments and pingbacks.
294 294
  *
@@ -299,15 +299,15 @@  discard block
 block discarded – undo
299 299
  *
300 300
  * @since Twenty Twelve 1.0
301 301
  */
302
-function twentytwelve_comment( $comment, $args, $depth ) {
302
+function twentytwelve_comment($comment, $args, $depth) {
303 303
 	$GLOBALS['comment'] = $comment;
304
-	switch ( $comment->comment_type ) :
304
+	switch ($comment->comment_type) :
305 305
 		case 'pingback' :
306 306
 		case 'trackback' :
307 307
 		// Display trackbacks differently than normal comments.
308 308
 	?>
309 309
 	<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
310
-		<p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?></p>
310
+		<p><?php _e('Pingback:', 'twentytwelve'); ?> <?php comment_author_link(); ?> <?php edit_comment_link(__('(Edit)', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?></p>
311 311
 	<?php
312 312
 			break;
313 313
 		default :
@@ -318,32 +318,32 @@  discard block
 block discarded – undo
318 318
 		<article id="comment-<?php comment_ID(); ?>" class="comment">
319 319
 			<header class="comment-meta comment-author vcard">
320 320
 				<?php
321
-					echo get_avatar( $comment, 44 );
322
-					printf( '<cite><b class="fn">%1$s</b> %2$s</cite>',
321
+					echo get_avatar($comment, 44);
322
+					printf('<cite><b class="fn">%1$s</b> %2$s</cite>',
323 323
 						get_comment_author_link(),
324 324
 						// If current post author is also comment author, make it known visually.
325
-						( $comment->user_id === $post->post_author ) ? '<span>' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''
325
+						($comment->user_id === $post->post_author) ? '<span>'.__('Post author', 'twentytwelve').'</span>' : ''
326 326
 					);
327
-					printf( '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
328
-						esc_url( get_comment_link( $comment->comment_ID ) ),
329
-						get_comment_time( 'c' ),
327
+					printf('<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
328
+						esc_url(get_comment_link($comment->comment_ID)),
329
+						get_comment_time('c'),
330 330
 						/* translators: 1: date, 2: time */
331
-						sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )
331
+						sprintf(__('%1$s at %2$s', 'twentytwelve'), get_comment_date(), get_comment_time())
332 332
 					);
333 333
 				?>
334 334
 			</header><!-- .comment-meta -->
335 335
 
336
-			<?php if ( '0' == $comment->comment_approved ) : ?>
337
-				<p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p>
336
+			<?php if ('0' == $comment->comment_approved) : ?>
337
+				<p class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.', 'twentytwelve'); ?></p>
338 338
 			<?php endif; ?>
339 339
 
340 340
 			<section class="comment-content comment">
341 341
 				<?php comment_text(); ?>
342
-				<?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class="edit-link">', '</p>' ); ?>
342
+				<?php edit_comment_link(__('Edit', 'twentytwelve'), '<p class="edit-link">', '</p>'); ?>
343 343
 			</section><!-- .comment-content -->
344 344
 
345 345
 			<div class="reply">
346
-				<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'twentytwelve' ), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
346
+				<?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'twentytwelve'), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
347 347
 			</div><!-- .reply -->
348 348
 		</article><!-- #comment-## -->
349 349
 	<?php
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 }
353 353
 endif;
354 354
 
355
-if ( ! function_exists( 'twentytwelve_entry_meta' ) ) :
355
+if ( ! function_exists('twentytwelve_entry_meta')) :
356 356
 /**
357 357
  * Set up post entry meta.
358 358
  *
@@ -364,31 +364,31 @@  discard block
 block discarded – undo
364 364
  */
365 365
 function twentytwelve_entry_meta() {
366 366
 	// Translators: used between list items, there is a space after the comma.
367
-	$categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) );
367
+	$categories_list = get_the_category_list(__(', ', 'twentytwelve'));
368 368
 
369 369
 	// Translators: used between list items, there is a space after the comma.
370
-	$tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );
370
+	$tag_list = get_the_tag_list('', __(', ', 'twentytwelve'));
371 371
 
372
-	$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
373
-		esc_url( get_permalink() ),
374
-		esc_attr( get_the_time() ),
375
-		esc_attr( get_the_date( 'c' ) ),
376
-		esc_html( get_the_date() )
372
+	$date = sprintf('<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
373
+		esc_url(get_permalink()),
374
+		esc_attr(get_the_time()),
375
+		esc_attr(get_the_date('c')),
376
+		esc_html(get_the_date())
377 377
 	);
378 378
 
379
-	$author = sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
380
-		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
381
-		esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),
379
+	$author = sprintf('<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
380
+		esc_url(get_author_posts_url(get_the_author_meta('ID'))),
381
+		esc_attr(sprintf(__('View all posts by %s', 'twentytwelve'), get_the_author())),
382 382
 		get_the_author()
383 383
 	);
384 384
 
385 385
 	// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
386
-	if ( $tag_list ) {
387
-		$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
388
-	} elseif ( $categories_list ) {
389
-		$utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
386
+	if ($tag_list) {
387
+		$utility_text = __('This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve');
388
+	} elseif ($categories_list) {
389
+		$utility_text = __('This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve');
390 390
 	} else {
391
-		$utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
391
+		$utility_text = __('This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve');
392 392
 	}
393 393
 
394 394
 	printf(
@@ -418,38 +418,38 @@  discard block
 block discarded – undo
418 418
  * @param array $classes Existing class values.
419 419
  * @return array Filtered class values.
420 420
  */
421
-function twentytwelve_body_class( $classes ) {
421
+function twentytwelve_body_class($classes) {
422 422
 	$background_color = get_background_color();
423 423
 	$background_image = get_background_image();
424 424
 
425
-	if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) )
425
+	if ( ! is_active_sidebar('sidebar-1') || is_page_template('page-templates/full-width.php'))
426 426
 		$classes[] = 'full-width';
427 427
 
428
-	if ( is_page_template( 'page-templates/front-page.php' ) ) {
428
+	if (is_page_template('page-templates/front-page.php')) {
429 429
 		$classes[] = 'template-front-page';
430
-		if ( has_post_thumbnail() )
430
+		if (has_post_thumbnail())
431 431
 			$classes[] = 'has-post-thumbnail';
432
-		if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) )
432
+		if (is_active_sidebar('sidebar-2') && is_active_sidebar('sidebar-3'))
433 433
 			$classes[] = 'two-sidebars';
434 434
 	}
435 435
 
436
-	if ( empty( $background_image ) ) {
437
-		if ( empty( $background_color ) )
436
+	if (empty($background_image)) {
437
+		if (empty($background_color))
438 438
 			$classes[] = 'custom-background-empty';
439
-		elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) )
439
+		elseif (in_array($background_color, array('fff', 'ffffff')))
440 440
 			$classes[] = 'custom-background-white';
441 441
 	}
442 442
 
443 443
 	// Enable custom font class only if the font CSS is queued to load.
444
-	if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) )
444
+	if (wp_style_is('twentytwelve-fonts', 'queue'))
445 445
 		$classes[] = 'custom-font-enabled';
446 446
 
447
-	if ( ! is_multi_author() )
447
+	if ( ! is_multi_author())
448 448
 		$classes[] = 'single-author';
449 449
 
450 450
 	return $classes;
451 451
 }
452
-add_filter( 'body_class', 'twentytwelve_body_class' );
452
+add_filter('body_class', 'twentytwelve_body_class');
453 453
 
454 454
 /**
455 455
  * Adjust content width in certain contexts.
@@ -460,12 +460,12 @@  discard block
 block discarded – undo
460 460
  * @since Twenty Twelve 1.0
461 461
  */
462 462
 function twentytwelve_content_width() {
463
-	if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) {
463
+	if (is_page_template('page-templates/full-width.php') || is_attachment() || ! is_active_sidebar('sidebar-1')) {
464 464
 		global $content_width;
465 465
 		$content_width = 960;
466 466
 	}
467 467
 }
468
-add_action( 'template_redirect', 'twentytwelve_content_width' );
468
+add_action('template_redirect', 'twentytwelve_content_width');
469 469
 
470 470
 /**
471 471
  * Register postMessage support.
@@ -476,12 +476,12 @@  discard block
 block discarded – undo
476 476
  *
477 477
  * @param WP_Customize_Manager $wp_customize Customizer object.
478 478
  */
479
-function twentytwelve_customize_register( $wp_customize ) {
480
-	$wp_customize->get_setting( 'blogname' )->transport         = 'postMessage';
481
-	$wp_customize->get_setting( 'blogdescription' )->transport  = 'postMessage';
482
-	$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
479
+function twentytwelve_customize_register($wp_customize) {
480
+	$wp_customize->get_setting('blogname')->transport         = 'postMessage';
481
+	$wp_customize->get_setting('blogdescription')->transport  = 'postMessage';
482
+	$wp_customize->get_setting('header_textcolor')->transport = 'postMessage';
483 483
 }
484
-add_action( 'customize_register', 'twentytwelve_customize_register' );
484
+add_action('customize_register', 'twentytwelve_customize_register');
485 485
 
486 486
 /**
487 487
  * Enqueue Javascript postMessage handlers for the Customizer.
@@ -491,6 +491,6 @@  discard block
 block discarded – undo
491 491
  * @since Twenty Twelve 1.0
492 492
  */
493 493
 function twentytwelve_customize_preview_js() {
494
-	wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true );
494
+	wp_enqueue_script('twentytwelve-customizer', get_template_directory_uri().'/js/theme-customizer.js', array('customize-preview'), '20141120', true);
495 495
 }
496
-add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' );
496
+add_action('customize_preview_init', 'twentytwelve_customize_preview_js');
Please login to merge, or discard this patch.
Braces   +53 added lines, -37 removed lines patch added patch discarded remove patch
@@ -23,8 +23,9 @@  discard block
 block discarded – undo
23 23
  */
24 24
 
25 25
 // Set up the content width value based on the theme's design and stylesheet.
26
-if ( ! isset( $content_width ) )
26
+if ( ! isset( $content_width ) ) {
27 27
 	$content_width = 625;
28
+}
28 29
 
29 30
 /**
30 31
  * Twenty Twelve setup.
@@ -106,12 +107,13 @@  discard block
 block discarded – undo
106 107
 		 */
107 108
 		$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
108 109
 
109
-		if ( 'cyrillic' == $subset )
110
-			$subsets .= ',cyrillic,cyrillic-ext';
111
-		elseif ( 'greek' == $subset )
112
-			$subsets .= ',greek,greek-ext';
113
-		elseif ( 'vietnamese' == $subset )
114
-			$subsets .= ',vietnamese';
110
+		if ( 'cyrillic' == $subset ) {
111
+					$subsets .= ',cyrillic,cyrillic-ext';
112
+		} elseif ( 'greek' == $subset ) {
113
+					$subsets .= ',greek,greek-ext';
114
+		} elseif ( 'vietnamese' == $subset ) {
115
+					$subsets .= ',vietnamese';
116
+		}
115 117
 
116 118
 		$query_args = array(
117 119
 			'family' => 'Open+Sans:400italic,700italic,400,700',
@@ -135,15 +137,17 @@  discard block
 block discarded – undo
135 137
 	 * Adds JavaScript to pages with the comment form to support
136 138
 	 * sites with threaded comments (when in use).
137 139
 	 */
138
-	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
139
-		wp_enqueue_script( 'comment-reply' );
140
+	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
141
+			wp_enqueue_script( 'comment-reply' );
142
+	}
140 143
 
141 144
 	// Adds JavaScript for handling the navigation menu hide-and-show behavior.
142 145
 	wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20140711', true );
143 146
 
144 147
 	$font_url = twentytwelve_get_font_url();
145
-	if ( ! empty( $font_url ) )
146
-		wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
148
+	if ( ! empty( $font_url ) ) {
149
+			wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
150
+	}
147 151
 
148 152
 	// Loads our main stylesheet.
149 153
 	wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
@@ -169,11 +173,13 @@  discard block
 block discarded – undo
169 173
 function twentytwelve_mce_css( $mce_css ) {
170 174
 	$font_url = twentytwelve_get_font_url();
171 175
 
172
-	if ( empty( $font_url ) )
173
-		return $mce_css;
176
+	if ( empty( $font_url ) ) {
177
+			return $mce_css;
178
+	}
174 179
 
175
-	if ( ! empty( $mce_css ) )
176
-		$mce_css .= ',';
180
+	if ( ! empty( $mce_css ) ) {
181
+			$mce_css .= ',';
182
+	}
177 183
 
178 184
 	$mce_css .= esc_url_raw( str_replace( ',', '%2C', $font_url ) );
179 185
 
@@ -196,20 +202,23 @@  discard block
 block discarded – undo
196 202
 function twentytwelve_wp_title( $title, $sep ) {
197 203
 	global $paged, $page;
198 204
 
199
-	if ( is_feed() )
200
-		return $title;
205
+	if ( is_feed() ) {
206
+			return $title;
207
+	}
201 208
 
202 209
 	// Add the site name.
203 210
 	$title .= get_bloginfo( 'name', 'display' );
204 211
 
205 212
 	// Add the site description for the home/front page.
206 213
 	$site_description = get_bloginfo( 'description', 'display' );
207
-	if ( $site_description && ( is_home() || is_front_page() ) )
208
-		$title = "$title $sep $site_description";
214
+	if ( $site_description && ( is_home() || is_front_page() ) ) {
215
+			$title = "$title $sep $site_description";
216
+	}
209 217
 
210 218
 	// Add a page number if necessary.
211
-	if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() )
212
-		$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
219
+	if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
220
+			$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
221
+	}
213 222
 
214 223
 	return $title;
215 224
 }
@@ -223,8 +232,9 @@  discard block
 block discarded – undo
223 232
  * @since Twenty Twelve 1.0
224 233
  */
225 234
 function twentytwelve_page_menu_args( $args ) {
226
-	if ( ! isset( $args['show_home'] ) )
227
-		$args['show_home'] = true;
235
+	if ( ! isset( $args['show_home'] ) ) {
236
+			$args['show_home'] = true;
237
+	}
228 238
 	return $args;
229 239
 }
230 240
 add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' );
@@ -422,30 +432,36 @@  discard block
 block discarded – undo
422 432
 	$background_color = get_background_color();
423 433
 	$background_image = get_background_image();
424 434
 
425
-	if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) )
426
-		$classes[] = 'full-width';
435
+	if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) {
436
+			$classes[] = 'full-width';
437
+	}
427 438
 
428 439
 	if ( is_page_template( 'page-templates/front-page.php' ) ) {
429 440
 		$classes[] = 'template-front-page';
430
-		if ( has_post_thumbnail() )
431
-			$classes[] = 'has-post-thumbnail';
432
-		if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) )
433
-			$classes[] = 'two-sidebars';
441
+		if ( has_post_thumbnail() ) {
442
+					$classes[] = 'has-post-thumbnail';
443
+		}
444
+		if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) {
445
+					$classes[] = 'two-sidebars';
446
+		}
434 447
 	}
435 448
 
436 449
 	if ( empty( $background_image ) ) {
437
-		if ( empty( $background_color ) )
438
-			$classes[] = 'custom-background-empty';
439
-		elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) )
440
-			$classes[] = 'custom-background-white';
450
+		if ( empty( $background_color ) ) {
451
+					$classes[] = 'custom-background-empty';
452
+		} elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) {
453
+					$classes[] = 'custom-background-white';
454
+		}
441 455
 	}
442 456
 
443 457
 	// Enable custom font class only if the font CSS is queued to load.
444
-	if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) )
445
-		$classes[] = 'custom-font-enabled';
458
+	if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) {
459
+			$classes[] = 'custom-font-enabled';
460
+	}
446 461
 
447
-	if ( ! is_multi_author() )
448
-		$classes[] = 'single-author';
462
+	if ( ! is_multi_author() ) {
463
+			$classes[] = 'single-author';
464
+	}
449 465
 
450 466
 	return $classes;
451 467
 }
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/content-aside.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying posts in the Aside post format
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Twelve
7
- * @since Twenty Twelve 1.0
8
- */
3
+	 * The template for displaying posts in the Aside post format
4
+	 *
5
+	 * @package WordPress
6
+	 * @subpackage Twenty_Twelve
7
+	 * @since Twenty Twelve 1.0
8
+	 */
9 9
 ?>
10 10
 
11 11
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
 		<div class="aside">
13 13
 			<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
14 14
 			<div class="entry-content">
15
-				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
15
+				<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve')); ?>
16 16
 			</div><!-- .entry-content -->
17 17
 		</div><!-- .aside -->
18 18
 
19 19
 		<footer class="entry-meta">
20
-			<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>
21
-			<?php if ( comments_open() ) : ?>
20
+			<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>
21
+			<?php if (comments_open()) : ?>
22 22
 			<div class="comments-link">
23
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
23
+				<?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentytwelve').'</span>', __('1 Reply', 'twentytwelve'), __('% Replies', 'twentytwelve')); ?>
24 24
 			</div><!-- .comments-link -->
25 25
 			<?php endif; // comments_open() ?>
26
-			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
26
+			<?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?>
27 27
 		</footer><!-- .entry-meta -->
28 28
 	</article><!-- #post -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/category.php 3 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying Category pages
4
- *
5
- * Used to display archive-type pages for posts in a category.
6
- *
7
- * @link https://codex.wordpress.org/Template_Hierarchy
8
- *
9
- * @package WordPress
10
- * @subpackage Twenty_Twelve
11
- * @since Twenty Twelve 1.0
12
- */
3
+	 * The template for displaying Category pages
4
+	 *
5
+	 * Used to display archive-type pages for posts in a category.
6
+	 *
7
+	 * @link https://codex.wordpress.org/Template_Hierarchy
8
+	 *
9
+	 * @package WordPress
10
+	 * @subpackage Twenty_Twelve
11
+	 * @since Twenty Twelve 1.0
12
+	 */
13 13
 
14 14
 get_header(); ?>
15 15
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,32 +16,32 @@
 block discarded – undo
16 16
 	<section id="primary" class="site-content">
17 17
 		<div id="content" role="main">
18 18
 
19
-		<?php if ( have_posts() ) : ?>
19
+		<?php if (have_posts()) : ?>
20 20
 			<header class="archive-header">
21
-				<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
21
+				<h1 class="archive-title"><?php printf(__('Category Archives: %s', 'twentytwelve'), '<span>'.single_cat_title('', false).'</span>'); ?></h1>
22 22
 
23
-			<?php if ( category_description() ) : // Show an optional category description ?>
23
+			<?php if (category_description()) : // Show an optional category description ?>
24 24
 				<div class="archive-meta"><?php echo category_description(); ?></div>
25 25
 			<?php endif; ?>
26 26
 			</header><!-- .archive-header -->
27 27
 
28 28
 			<?php
29 29
 			/* Start the Loop */
30
-			while ( have_posts() ) : the_post();
30
+			while (have_posts()) : the_post();
31 31
 
32 32
 				/* Include the post format-specific template for the content. If you want to
33 33
 				 * this in a child theme then include a file called called content-___.php
34 34
 				 * (where ___ is the post format) and that will be used instead.
35 35
 				 */
36
-				get_template_part( 'content', get_post_format() );
36
+				get_template_part('content', get_post_format());
37 37
 
38 38
 			endwhile;
39 39
 
40
-			twentytwelve_content_nav( 'nav-below' );
40
+			twentytwelve_content_nav('nav-below');
41 41
 			?>
42 42
 
43 43
 		<?php else : ?>
44
-			<?php get_template_part( 'content', 'none' ); ?>
44
+			<?php get_template_part('content', 'none'); ?>
45 45
 		<?php endif; ?>
46 46
 
47 47
 		</div><!-- #content -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,11 @@
 block discarded – undo
40 40
 			twentytwelve_content_nav( 'nav-below' );
41 41
 			?>
42 42
 
43
-		<?php else : ?>
44
-			<?php get_template_part( 'content', 'none' ); ?>
43
+		<?php else {
44
+	: ?>
45
+			<?php get_template_part( 'content', 'none' );
46
+}
47
+?>
45 48
 		<?php endif; ?>
46 49
 
47 50
 		</div><!-- #content -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/content-link.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying posts in the Link post format
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Twelve
7
- * @since Twenty Twelve 1.0
8
- */
3
+			 * The template for displaying posts in the Link post format
4
+			 *
5
+			 * @package WordPress
6
+			 * @subpackage Twenty_Twelve
7
+			 * @since Twenty Twelve 1.0
8
+			 */
9 9
 ?>
10 10
 
11 11
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,18 +9,18 @@
 block discarded – undo
9 9
 ?>
10 10
 
11 11
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12
-		<header><?php _e( 'Link', 'twentytwelve' ); ?></header>
12
+		<header><?php _e('Link', 'twentytwelve'); ?></header>
13 13
 		<div class="entry-content">
14
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
14
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve')); ?>
15 15
 		</div><!-- .entry-content -->
16 16
 
17 17
 		<footer class="entry-meta">
18
-			<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>
19
-			<?php if ( comments_open() ) : ?>
18
+			<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>
19
+			<?php if (comments_open()) : ?>
20 20
 			<div class="comments-link">
21
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
21
+				<?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentytwelve').'</span>', __('1 Reply', 'twentytwelve'), __('% Replies', 'twentytwelve')); ?>
22 22
 			</div><!-- .comments-link -->
23 23
 			<?php endif; // comments_open() ?>
24
-			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
24
+			<?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?>
25 25
 		</footer><!-- .entry-meta -->
26 26
 	</article><!-- #post -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/page.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying all pages
4
- *
5
- * This is the template that displays all pages by default.
6
- * Please note that this is the WordPress construct of pages
7
- * and that other 'pages' on your WordPress site will use a
8
- * different template.
9
- *
10
- * @package WordPress
11
- * @subpackage Twenty_Twelve
12
- * @since Twenty Twelve 1.0
13
- */
3
+			 * The template for displaying all pages
4
+			 *
5
+			 * This is the template that displays all pages by default.
6
+			 * Please note that this is the WordPress construct of pages
7
+			 * and that other 'pages' on your WordPress site will use a
8
+			 * different template.
9
+			 *
10
+			 * @package WordPress
11
+			 * @subpackage Twenty_Twelve
12
+			 * @since Twenty Twelve 1.0
13
+			 */
14 14
 
15 15
 get_header(); ?>
16 16
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
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 get_template_part( 'content', 'page' ); ?>
22
-				<?php comments_template( '', true ); ?>
20
+			<?php while (have_posts()) : the_post(); ?>
21
+				<?php get_template_part('content', 'page'); ?>
22
+				<?php comments_template('', true); ?>
23 23
 			<?php endwhile; // end of the loop. ?>
24 24
 
25 25
 		</div><!-- #content -->
Please login to merge, or discard this patch.