-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-home copy.php
52 lines (42 loc) · 1.2 KB
/
page-home copy.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
<?php get_header(); ?>
<?php get_template_part( 'nav' ); // Navigation bar (nav.php) ?>
<div id="coverBackground">
<div id="cover" class="container">
<div class="row">
<div class="span7">
<?php
$d1 = new DateTime(date("Y-m-d"));
$d2 = new DateTime('2000-06-09');
$diff = $d2->diff($d1);
?>
<div class="hero-unit">
<h2>I'm a Creative Designer specializing in digital media with over <?php echo $diff->y; ?> years of experience.</h2>
</div>
<!-- /end hero-unit -->
</div>
</div>
</div>
<!-- Cover -->
</div>
<div id="mainBackground">
<div id="main" class="container">
<div class="row">
<div id="mainContent" class="span7 offset1">
<?php the_post(); ?>
<?php the_content(); ?>
</div>
<!-- /end main content -->
<aside class="span4 featuredProject">
<h4>Featured Project</h4>
<?php
$args = array( 'post_type' => 'project', 'posts_per_page' => 1, 'orderby' => 'rand' );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
get_template_part( 'content', 'featured' );
endwhile;
?>
</aside>
</div>
</div>
</div>
<?php get_footer(); ?>