forked from kalbers/religions-in-mn
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
44 lines (31 loc) · 1.59 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
<?php echo head(array('bodyclass'=>'home')); ?>
<?php if (plugin_is_active('ExhibitBuilder')): ?>
<!-- Featured Exhibit -->
<?php $featuredExhibits = get_records('Exhibit' , array ('featured'=>true));; ?>
<?php if($featuredExhibits): ?>
<div class="slider-pro" id="featured-exhibit">
<div class="sp-slides">
<?php foreach($featuredExhibits as $featuredExhibit): ?>
<div class="sp-slide">
<?php $file = $featuredExhibit->getFile(); ?>
<?php if ($file): ?>
<?php $exhibitImage = metadata($file, 'fullsize_uri'); ?>
<div id="featured-exhibit-image-container">
<img class="sp-image" src="<?php echo $exhibitImage; ?>" alt="featured Exhibit Image" />
</div>
<?php endif; ?>
<!-- <div class="sp-layer sp-static sp-black sp-padding" data-position="bottomLeft" data-height="20%">
--> <div class="featured-text sp-caption">
<h3><?php echo exhibit_builder_link_to_exhibit($featuredExhibit); ?></h3>
<p><?php echo snippet_by_word_count(metadata($featuredExhibit, 'description', array('no_escape' => true)), 200); ?><?php echo exhibit_builder_link_to_exhibit($featuredExhibit,$text = ' Learn More→'); ?></p>
</div>
<!-- </div>
-->
</div>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<?php fire_plugin_hook('public_home', array('view' => $this)); ?>
<?php echo foot(); ?>