forked from corgus/eas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contest_thanks.php
28 lines (25 loc) · 951 Bytes
/
contest_thanks.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
<?php
/*
Template Name: Contest Thanks
*/
get_header(); ?>
<?php roots_content_before(); ?>
<div id="content" class="<?php echo CONTAINER_CLASSES; ?>">
<?php roots_main_before(); ?>
<div id="main" class="<?php echo FULLWIDTH_CLASSES; ?>" role="main">
<?php roots_loop_before(); ?>
<?php get_template_part('loop', 'page'); ?>
<?php roots_loop_after(); ?>
<?php
$how_many = eas_how_many_more_submissions(get_post_meta($post->post_parent, 'contest', true));
if ($how_many === false) {
echo '<p class="howmany">Thank you for your submissions!</p>';
} else {
echo '<p class="howmany">'.$how_many.' <a href="../" class="btn" title="Upload Another Work">Upload more art!</a></p>';
}
?>
</div><!-- /#main -->
<?php roots_main_after(); ?>
</div><!-- /#content -->
<?php roots_content_after(); ?>
<?php get_footer(); ?>