|
6 | 6 | */
|
7 | 7 |
|
8 | 8 | get_header();
|
9 |
| -if (have_posts()) { |
| 9 | +if ( have_posts() ) { |
10 | 10 | ?>
|
11 | 11 | <div class="jumbotron">
|
12 | 12 | <div class="container">
|
13 | 13 | <header>
|
14 | 14 | <h1 class="article_title">
|
15 | 15 | <?php
|
16 |
| - if (is_category()) { |
| 16 | + if ( is_category() ) { |
17 | 17 | printf('%s', single_cat_title('', false));
|
18 |
| - } elseif (is_tag()) { |
| 18 | + } elseif ( is_tag() ) { |
19 | 19 | echo 'Posts Tagged';
|
20 | 20 | echo '‘ ';
|
21 | 21 | single_tag_title();
|
22 | 22 | echo '’';
|
23 |
| - } elseif (is_day()) { |
| 23 | + } elseif ( is_day() ) { |
24 | 24 | printf('Archive for %s', get_the_time('F jS, Y'));
|
25 |
| - } elseif (is_month()) { |
| 25 | + } elseif ( is_month() ) { |
26 | 26 | printf('Archive for %s', get_the_time('F Y'));
|
27 |
| - } elseif (is_year()) { |
| 27 | + } elseif ( is_year() ) { |
28 | 28 | printf('Archive for %s', get_the_time('Y'));
|
29 |
| - } elseif (is_search()) { |
| 29 | + } elseif ( is_search() ) { |
30 | 30 | echo 'Search Results';
|
31 |
| - } elseif (is_author()) { |
| 31 | + } elseif ( is_author() ) { |
32 | 32 | echo 'All entries by this author';
|
33 | 33 | } elseif (isset($_GET['paged']) && ! empty($_GET['paged'])) {
|
34 | 34 | echo 'Blog Archives';
|
35 |
| - } elseif (is_home()) { |
| 35 | + } elseif ( is_home() ) { |
36 | 36 | echo 'Recent Posts';
|
37 | 37 | }
|
38 | 38 | ?>
|
|
43 | 43 | <section class="container post">
|
44 | 44 | <?php
|
45 | 45 | $colour = multiloquent_get_random_blue_class();
|
46 |
| - while (have_posts()) { |
| 46 | + while ( have_posts() ) { |
47 | 47 | the_post();
|
48 | 48 | multiloquent_render_the_archive($colour);
|
49 | 49 | }
|
|
62 | 62 | </div>
|
63 | 63 | <?php } else { ?>
|
64 | 64 | <div class="container post">
|
65 |
| - <?php get_template_part('error-snippet');?> |
| 65 | + <?php get_template_part( 'error-snippet' );?> |
66 | 66 | </div>
|
67 | 67 | <?php
|
68 | 68 | }
|
|
0 commit comments