-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
34 lines (26 loc) · 1010 Bytes
/
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
<!--Get Header Function-->
<?php get_header(); ?>
<!-- Start Content -->
<div id="content" class="page">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="page-content-<?php the_ID(); ?>" class="page-content">
<h2><?php the_title(); ?></h2>
<?php the_post_thumbnail();?>
<?php the_content(''); // get written page content ?>
</article>
<?php endwhile; endif; ?>
<?php get_child_pages(); ?>
</div>
<!-- End Content -->
<!--Get Sidebar Function-->
<?php // if page has custom field called disableSidebar = true, remove sidebar
$disableSidebar = get_post_meta($post->ID, 'disableSidebar', $single = true);
if ($disableSidebar !== 'true') { get_sidebar(); }
?>
<!-- Apply & Donate Buttons -->
<div class="buttons">
<a class="button" href="http://www.abekeller.tzaccara.com/grants/apply/">Apply</a>
<a class="button" href="http://www.abekeller.tzaccara.com/donate/">Donate</a>
</div>
<!--Get Footer Function-->
<?php get_footer(); ?>