-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·48 lines (42 loc) · 2 KB
/
index.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
<?php get_header(); ?>
<div class="content">
<?php
if (have_posts()) :
while (have_posts()) : the_post(); ?>
<main>
<h1><?php the_title(); ?></h1>
<hr />
<?php
$is_events_page = (int)get_post_meta(get_the_ID(), 'wpcf-events-page', true);
$is_photo_gallery_page = (int)get_post_meta(get_the_ID(), 'wpcf-photo-gallery-page', true);
if ($is_events_page) {
echo do_shortcode('[block id="172" title="Event Years"]');
} elseif ($is_photo_gallery_page) {
echo do_shortcode('[block id="298" title="Photo Gallery Years"]');
}
?>
<?php the_content(); ?>
</main>
<aside>
<?php get_sidebar(); ?>
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail('full',array('class' => 'page-featured-image'));
} ?>
<?php
$sidebar_text = get_post_meta(get_the_ID(), 'wpcf-sidebar-text', true);
if (!empty($sidebar_text)) {
echo "<p>".$sidebar_text."</p>";
}
?>
<div class="facebook">
<iframe name="f28839df8bddac" width="225px" height="1000px" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" title="fb:like Facebook Social Plugin" src="https://www.facebook.com/plugins/like.php?app_id=&channel=http%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2FFdM1l_dpErI.js%3Fversion%3D42%23cb%3Df37a92e30de7904%26domain%3Dwww.thekmdfoundation.org%26origin%3Dhttp%253A%252F%252Fwww.thekmdfoundation.org%252Ff1fb63e26c64a44%26relation%3Dparent.parent&container_width=0&href=http%3A%2F%2Fwww.thekmdfoundation.org%2F&locale=en_US&sdk=joey&width=225" style="border: none; visibility: visible; width: 225px; height: 32px;" class=""></iframe>
</div>
</aside>
<?php
endwhile;
elseif (is_404()) :
get_template_part('partials','404');
endif;
?>
</div>
<?php get_footer(); ?>