Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplifying some template files and omitting the closing ?> php tag

  • Loading branch information...
commit 1322ef2d1605892a8144a92d31ab072f057e5a1a 1 parent 65f3285
@aristath aristath authored
View
10 index.php
@@ -1,4 +1,6 @@
-<?php get_template_part('templates/page', 'header'); ?>
-<?php if (have_posts()) : ?>
- <?php get_template_part('templates/content', get_post_format()); ?>
-<?php endif; ?>
+<?php
+get_template_part( 'templates/page', 'header' );
+
+if ( have_posts() ) :
+ get_template_part('templates/content', get_post_format());
+endif;
View
5 page-full.php
@@ -2,7 +2,6 @@
/*
Template Name: Full-Width
*/
-?>
-<?php get_template_part('templates/page', 'header'); ?>
-<?php get_template_part('templates/content', 'page'); ?>
+get_template_part('templates/page', 'header');
+get_template_part('templates/content', 'page');
View
5 page-primary-sidebar.php
@@ -2,7 +2,6 @@
/*
Template Name: Primary Sidebar
*/
-?>
-<?php get_template_part('templates/page', 'header'); ?>
-<?php get_template_part('templates/content', 'page'); ?>
+get_template_part('templates/page', 'header');
+get_template_part('templates/content', 'page');
View
5 page.php
@@ -1,2 +1,3 @@
-<?php get_template_part('templates/page', 'header'); ?>
-<?php get_template_part('templates/content', 'page'); ?>
+<?php
+get_template_part( 'templates/page', 'header' );
+get_template_part( 'templates/content', 'page' );
View
4 single.php
@@ -1 +1,3 @@
-<?php get_template_part('templates/content', 'single'); ?>
+<?php
+
+get_template_part('templates/content', 'single');
Please sign in to comment.
Something went wrong with that request. Please try again.