|
1 | 1 | <?php
|
2 |
| -/** |
3 |
| - * The template for displaying archive pages. |
4 |
| - * |
5 |
| - * @link https://codex.wordpress.org/Template_Hierarchy |
6 |
| - * |
7 |
| - * @package Shapely |
8 |
| - */ |
9 |
| -get_header(); ?> |
| 2 | + /** |
| 3 | + * The template for displaying archive pages. |
| 4 | + * |
| 5 | + * @link https://codex.wordpress.org/Template_Hierarchy |
| 6 | + * |
| 7 | + * @package Shapely |
| 8 | + */ |
| 9 | + get_header(); ?> |
10 | 10 | <?php $layout_class = shapely_get_layout_class(); ?>
|
11 |
| - <div class="row"> |
| 11 | + <div class = "row"> |
12 | 12 | <?php
|
13 |
| - if ( 'sidebar-left' == $layout_class ) : |
14 |
| - get_sidebar(); |
15 |
| - endif; |
| 13 | + if ('sidebar-left' == $layout_class) : |
| 14 | + get_sidebar(); |
| 15 | + endif; |
16 | 16 | ?>
|
17 |
| - <div id="primary" class="col-md-8 mb-xs-24 <?php echo esc_attr( $layout_class ); ?>"> |
18 |
| - <?php |
19 |
| - if ( have_posts() ) : |
| 17 | + <div id = "primary" class = "col-md-8 mb-xs-24 <?php echo esc_attr($layout_class); ?>"> |
| 18 | + <?php |
| 19 | + if (have_posts()) : |
20 | 20 |
|
21 |
| - if ( is_home() && ! is_front_page() ) : |
22 |
| - ?> |
23 |
| - <header> |
24 |
| - <h1 class="page-title screen-reader-text"><?php esc_html( single_post_title() ); ?></h1> |
25 |
| - </header> |
| 21 | + if (is_home() && !is_front_page()) : |
| 22 | + ?> |
| 23 | + <header> |
| 24 | + <h1 class = "page-title screen-reader-text"><?php esc_html(single_post_title()); ?></h1> |
| 25 | + </header> |
26 | 26 |
|
27 | 27 | <?php
|
28 |
| - endif; |
| 28 | + endif; |
29 | 29 |
|
30 |
| - $layout_type = get_theme_mod( 'blog_layout_view', 'grid' ); |
31 |
| - $layout_type = str_replace( '_', '-', $layout_type ); |
| 30 | + $layout_type = get_theme_mod('blog_layout_view', 'grid'); |
| 31 | + $layout_type = str_replace('_', '-', $layout_type); |
32 | 32 |
|
33 |
| - get_template_part( 'template-parts/layouts/blog', $layout_type ); |
| 33 | + get_template_part('template-parts/layouts/blog', $layout_type); |
34 | 34 |
|
35 |
| - shapely_pagination(); |
36 |
| - else : |
37 |
| - get_template_part( 'template-parts/content', 'none' ); |
| 35 | + shapely_pagination(); |
| 36 | + else : |
| 37 | + get_template_part('template-parts/content', 'none'); |
38 | 38 |
|
39 |
| - endif; |
| 39 | + endif; |
40 | 40 | ?>
|
41 | 41 | </div><!-- #primary -->
|
42 | 42 | <?php
|
43 |
| - if ( 'sidebar-right' == $layout_class ) : |
44 |
| - get_sidebar(); |
45 |
| - endif; |
| 43 | + if ('sidebar-right' == $layout_class) : |
| 44 | + get_sidebar(); |
| 45 | + endif; |
46 | 46 | ?>
|
47 | 47 | </div>
|
48 | 48 | <?php
|
49 |
| -get_footer(); |
| 49 | + get_footer(); |
0 commit comments