From 23cbfe62d9556f8ddc0681de7d08b3500703b553 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 8 May 2015 11:48:58 -0400 Subject: [PATCH] Placed blog sidebar in its own parts file. Gave most MAIN elements an identifiable class --- root/archive.php | 36 ++--------------------------------- root/front-page.php | 2 +- root/home.php | 34 +-------------------------------- root/page.php | 2 +- root/parts/blog-sidebar-r.php | 33 ++++++++++++++++++++++++++++++++ root/single.php | 34 +-------------------------------- 6 files changed, 39 insertions(+), 102 deletions(-) create mode 100644 root/parts/blog-sidebar-r.php diff --git a/root/archive.php b/root/archive.php index f9490a3..47d91e5 100644 --- a/root/archive.php +++ b/root/archive.php @@ -1,5 +1,5 @@ -
+
id="interior">
@@ -42,38 +42,6 @@ -
-
-
-
- -
-
-

Recent Posts

-
    - '5' ); - $recent_posts = wp_get_recent_posts( $args ); - foreach( $recent_posts as $recent ){ - echo '
  • ' . $recent["post_title"].'
  • '; - } - ?> -
-

Archive

-
    'monthly', 'limit' => 12 ) ); ?>
-

Categories

- -
-
+ diff --git a/root/front-page.php b/root/front-page.php index e5d5bb7..079b641 100644 --- a/root/front-page.php +++ b/root/front-page.php @@ -1,5 +1,5 @@ -
+
diff --git a/root/home.php b/root/home.php index cfc46d3..488e5f8 100644 --- a/root/home.php +++ b/root/home.php @@ -45,39 +45,7 @@ -
-
-
-
- -
-
-

Recent Posts

-
    - '5' ); - $recent_posts = wp_get_recent_posts( $args ); - foreach( $recent_posts as $recent ){ - echo '
  • ' . $recent["post_title"].'
  • '; - } - ?> -
-

Archive

-
    'monthly', 'limit' => 12 ) ); ?>
-

Categories

- -
-
+ diff --git a/root/page.php b/root/page.php index e13eb37..a7817a8 100644 --- a/root/page.php +++ b/root/page.php @@ -1,5 +1,5 @@ -
+
diff --git a/root/parts/blog-sidebar-r.php b/root/parts/blog-sidebar-r.php new file mode 100644 index 0000000..1cb0327 --- /dev/null +++ b/root/parts/blog-sidebar-r.php @@ -0,0 +1,33 @@ +
+
+
+
+ +
+
+

Recent Posts

+
    + '5' ); + $recent_posts = wp_get_recent_posts( $args ); + foreach( $recent_posts as $recent ){ + echo '
  • ' . $recent["post_title"].'
  • '; + } + ?> +
+

Archive

+
    'monthly', 'limit' => 12 ) ); ?>
+

Categories

+ +
+
\ No newline at end of file diff --git a/root/single.php b/root/single.php index 95e681c..84e3970 100644 --- a/root/single.php +++ b/root/single.php @@ -47,38 +47,6 @@ -
-
-
-
- -
-
-

Recent Posts

-
    - '5' ); - $recent_posts = wp_get_recent_posts( $args ); - foreach( $recent_posts as $recent ){ - echo '
  • ' . $recent["post_title"].'
  • '; - } - ?> -
-

Archive

-
    'monthly', 'limit' => 12 ) ); ?>
-

Categories

- -
-
+ -- 2.17.1