-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
64 lines (60 loc) · 1.6 KB
/
front-page.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
<?php
/**
* Frontpage
*
* Slider
* Content
*
* Loop container for page content
* @package WordPress
* @subpackage Foundation, for WordPress
* @since Foundation, for WordPress 4.0
**/
get_header();
//$posts = get_posts();
?>
<!-- Content Container -->
<div class="large-12 columns">
<!-- Slider and Main Container -->
<div class="row">
<!-- Slider -->
<div class="large-9 small-12 columns">
<?php foundation_orbit(); ?>
</div>
<!-- End Slider -->
<div class="hide-for-small"><?php make_frontpage_widget_primary_one(); ?></div>
</div>
<div class="row">
<!-- Main Content -->
<div class="large-9 small-12 columns" role="main">
<?php
if( have_posts() ):
while( have_posts() ) : the_post();
get_template_part( 'content', 'page' );
endwhile;
else:
?>
<h2><?php _e( 'No posts.', 'foundation' ); ?></h2>
<p class="lead"><?php _e( 'Sorry about this, I couldn\'t seem to find what you were looking for.', 'foundation' ); ?></p>
<?php
endif;
?>
</div>
<!-- End Main Content -->
<div class="hide-for-small"><?php make_frontpage_widget_primary_two(); ?></div>
</div>
<!-- End Slider and Main Container -->
<div class="show-for-small hide-for-medium-up row">
<div class="small-12 columns">
<div class="row">
<?php make_frontpage_widget_primary_one(); ?>
</div>
<div class="row">
<?php make_frontpage_widget_primary_two(); ?>
</div>
</div>
</div>
</div>
<!-- End Content Container -->
<?php //get_sidebar(); ?>
<?php get_footer(); ?>