-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·52 lines (38 loc) · 1.04 KB
/
index.php
File metadata and controls
executable file
·52 lines (38 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* Default
*
* The main template file. Required file for a theme.
*
* @package ThoughtsIdeas\Published
* @subpackage Default
* @version 1.0.0
* @author Thoughts & Ideas <hello@thoughtsideas.uk>
* @copyright Copyright (c) 2017 Thoughts & Ideas
* @link https://codex.wordpress.org/Template_Hierarchy
* @license https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
*/
?>
<?php get_header(); ?>
<main role="main" id="content">
<?php if ( have_posts() ) : ?>
<?php if ( is_home() && ! is_front_page() ) : ?>
<header>
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
</header>
<?php endif; ?>
<?php
/**
* Start the Loop.
*/
?>
<?php while ( have_posts() ) : ?>
<?php the_post(); ?>
<?php get_template_part( 'module-templates/content', get_post_format() ); ?>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( 'module-templates/content', 'none' ); ?>
<?php endif; ?>
</main>
<?php get_footer(); ?>