forked from gramophone-wp/Gramophone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
53 lines (40 loc) · 1.05 KB
/
index.php
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
53
<?php
/**
*******************************************************************************
* //index.php
*******************************************************************************
*
* The index page.
*
* CODEX REF
* https://developer.wordpress.org/themes/basics/template-hierarchy/#home-page-display
*
* @author
* @copyright
* @link
* @todo
* @license
* @since
* @version
**/
?>
<?php get_header(); ?>
<div class="container">
<div class="row">
<div class="col-md-9">
<!-- The WordPress Loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php endwhile; else: ?>
<div class="page-header">
<h1>Oh no!</h1>
</div>
<p>No content is appearing for this page!</p>
<?php endif; ?>
<!-- End WordPress Loop -->
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>