-
Notifications
You must be signed in to change notification settings - Fork 4
/
homepage.php
24 lines (22 loc) · 864 Bytes
/
homepage.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
<?php
query_posts('category_name=article&showposts=1');
if ( have_posts() ) while ( have_posts() ) : the_post();
$postMeta = getPostMetadata($post->ID);
include ("header.php");
?>
<article class="art<?php if($postMeta["simple_art"] == "true"){ ?> simple<?php } ?>">
<header class="art-header<?php if($postMeta["white_header"] == "true"){ ?> white<?php } ?>" style="background-image: url(<?php echo $postMeta["bg_image"]; ?>)">
<div class="art-header-inner">
<time class="art-time"><?php the_time('F jS, Y') ?></time>
<h2 class="art-title"><?php the_title(); ?></h2>
<p class="art-subtitle"><?php the_subtitle(); ?></p>
</div>
</header>
<div class="art-body">
<div class="art-body-inner">
<?php the_content(); ?>
</div>
</div>
</article>
<?php endwhile; ?>
<?php get_footer(); ?>