Test Setup Failed
Push — master ( 9007ce...52f6bd )
by Amit
04:45 queued 02:22
created

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * The main template file.
4
 *
5
 * This is the most generic template file in a WordPress theme
6
 * and one of the two required files for a theme (the other being style.css).
7
 * It is used to display a page when nothing more specific matches a query.
8
 * E.g., it puts together the home page when no home.php file exists.
9
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
10
 *
11
 * @package podium
12
 */
13
use Podium\Config\Settings as settings;
14
15
$settings = new settings();
16
17
get_header();
18
?>
19
<div class="grid-container">
20
    <div id="content" class="site-content grid-x grid-padding-x">
21
        <div id="primary" class="content-area small-12 <?php echo $settings->getContentClass('medium-8', ''); ?> cell">
22
            <main id="main" class="site-main" role="main">
23
                <?php
24
25
                if (have_posts()) {
26
27
                    /* Start the Loop */
28
29 View Code Duplication
                    while (have_posts()) {
0 ignored issues
show
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
30
31
                        the_post();
32
33
/*
34
 * Include the Post-Format-specific template for the content.
35
 * If you want to override this in a child theme, then include a file
36
 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
37
 */
38
if (get_post_type() != 'post') {
39
    get_template_part('template-parts/content', get_post_type());
40
} else {
41
    get_template_part('template-parts/content-post', get_post_format());
42
}
43
44
}
45
46
if (function_exists('podium_pagination')) {
47
48
    podium_pagination();
49
50
}
51
52
} else {
53
54
    get_template_part('template-parts/content', 'none');
55
56
}
57
58
?>
59
60
</main><!-- #main -->
61
</div>
62
<?php
63
64
if ($settings->displaySidebar()) {
65
66
    get_template_part('template-parts/sidebar', 'page');
67
68
}
69
70
?>
71
</div><!-- #content -->
72
</div><!-- .grid-container -->
73
74
<?php get_footer();?>
75