Skip to content

Commit 7a6891f

Browse files
author
usman zahid
committed
Formatted the code
1 parent 7673522 commit 7a6891f

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

archive.php

+32-32
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
<?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(); ?>
1010
<?php $layout_class = shapely_get_layout_class(); ?>
11-
<div class="row">
11+
<div class = "row">
1212
<?php
13-
if ( 'sidebar-left' == $layout_class ) :
14-
get_sidebar();
15-
endif;
13+
if ('sidebar-left' == $layout_class) :
14+
get_sidebar();
15+
endif;
1616
?>
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()) :
2020

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>
2626

2727
<?php
28-
endif;
28+
endif;
2929

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);
3232

33-
get_template_part( 'template-parts/layouts/blog', $layout_type );
33+
get_template_part('template-parts/layouts/blog', $layout_type);
3434

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');
3838

39-
endif;
39+
endif;
4040
?>
4141
</div><!-- #primary -->
4242
<?php
43-
if ( 'sidebar-right' == $layout_class ) :
44-
get_sidebar();
45-
endif;
43+
if ('sidebar-right' == $layout_class) :
44+
get_sidebar();
45+
endif;
4646
?>
4747
</div>
4848
<?php
49-
get_footer();
49+
get_footer();

0 commit comments

Comments
 (0)