-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfront-page.php
More file actions
86 lines (71 loc) · 1.8 KB
/
front-page.php
File metadata and controls
86 lines (71 loc) · 1.8 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php get_header(); ?>
<section id="stage">
<div class="container">
<?php
$post_id = get_the_ID();
$content_post = get_post($post_id);
$content = $content_post->post_content;
$content = apply_filters('the_content', $content);
echo $content;
global $wp_query;
$wp_query = new WP_Query( array(
'post_type' => 'post',
'orderby' => 'date',
'order' => 'DESC',
'posts_per_page' => 16,
'paged' => $wp_query->query['paged'],
) );
?>
</div>
</section>
<section id="content">
<?php
/*
* Side content (get data, share map, contribute)
*/
if(is_front_page() && !is_paged())
get_template_part('section', 'actions');
?>
<?php get_template_part('section', 'publisher-description'); ?>
<?php if(have_posts()) :?>
<section id="last-stories" class="loop-section">
<div class="container">
<?php
if(get_query_var('ekuatorial_advanced_nav'))
get_template_part('loop', 'explore');
else
get_template_part('loop');
?>
</div>
</section>
<?php else : ?>
<?php query_posts(); if(have_posts()) : ?>
<section id="last-stories" class="loop-section">
<div class="section-title">
<div class="container">
<div class="twelve columns">
<h3><?php _e('Nothing found. Viewing all posts', 'ekuatorial'); ?></h3>
</div>
</div>
</div>
<div class="container">
<?php
if(get_query_var('ekuatorial_advanced_nav'))
get_template_part('loop',' explore');
else
get_template_part('loop');
?>
</div>
</section>
<?php endif; wp_reset_query(); ?>
<?php endif; ?>
<?php // get_template_part('section', 'submit-call'); ?>
<?php
/*
* Side content (get data, share map, contribute)
*/
if(is_front_page() && is_paged())
get_template_part('section', 'actions');
?>
</section>
<?php get_footer(); ?>