';
-echo '
';
+
+ get_footer();
?>
diff --git a/template-blogheader.php b/template-blogheader.php
index 7d2940d..69063da 100644
--- a/template-blogheader.php
+++ b/template-blogheader.php
@@ -9,7 +9,7 @@
require 'controller/init.php';
?>
-';
-if ( have_posts() ) {
- while ( have_posts() ) {
- the_post();
+ get_header();
+ get_template_part( 'template', 'blogheader' );
- get_template_part( 'content', 'blog' );
+ echo '
';
-get_footer();
+ ';
+
+ get_footer();
?>
diff --git a/single-post.php b/single-post.php
index 104944b..cdd9f2f 100644
--- a/single-post.php
+++ b/single-post.php
@@ -1,19 +1,22 @@
';
-if ( have_posts() ) {
- while ( have_posts() ) {
- the_post();
+ get_header();
+ get_template_part( 'template', 'blogheader' );
- get_template_part( 'content', 'blog' );
+ echo '';
+ if ( have_posts() ) {
+ while ( have_posts() ) {
+ the_post();
+
+ get_template_part( 'content', 'blog' );
+
+ }
}
-}
-else {
- get_template_part( 'content', 'noposts' );
-}
-?>
-
-
-';
-//get_sidebar('blog');
+ else {
+ get_template_part( 'content', 'noposts' );
+ }
+ ?>
+
+
-echo '
';
-echo '';
+ if ( have_posts() ) {
+ while ( have_posts() ) {
+ the_post();
+
+ get_template_part( 'content', 'blog' );
+
+ }
+ }
+ else {
+ get_template_part( 'content', 'noposts' );
}
-}
-else {
- get_template_part( 'content', 'noposts' );
-}
-echo '
';
-get_footer();
+ echo '