-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
74 lines (50 loc) · 1.95 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package DocPress
*/
get_header(); ?>
<div class="container-fluid main-container">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-4 sidebar-wrapper">
<div class="sidebar-inner-wrapper">
<div class="title-area">
<a href="/"><h1 class="site-title"><?php bloginfo('name'); ?></h1></a>
<p class="site-description"><?php bloginfo('description'); ?></p>
</div>
<?php get_sidebar(); ?>
</div><!-- inner wrapper -->
</div><!-- sidebar wrapper -->
<div class="col-lg-9 col-md-8 col-sm-7">
<main class="page-content" role="main">
<?php
/**
*
* Loop for articles
*
* Order ASC is required coz it helps keep the first slide at the beginning.
*
* @since 1.0.0
*/
$dp_loop_articles = new WP_Query('order=ASC&posts_per_page=-1');
while ( $dp_loop_articles->have_posts() ) : $dp_loop_articles->the_post();
?>
<article class="hentry" id="dp_<?php the_id(); ?>">
<div class="entry-content">
<h1 class="entry-title"><?php the_title(); ?></h1>
<p><?php the_content(); ?> </p>
</div>
</article>
<?php endwhile; ?>
</main>
</div>
</div>
</div><!-- site container end -->
<?php get_footer(); ?>