-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
87 lines (83 loc) · 3.64 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php echo head(array('bodyid'=>'home', 'bodyclass' =>'two-col')); ?>
<div class="homepage-about">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="content-block extra-padding">
<h5 class="header-label">About <?php echo option('site_title'); ?></h6>
<p><?php echo get_theme_option('Homepage: Text'); ?></p>
</div>
</div>
</div>
</div>
</div>
<?php $featured = get_theme_option('Homepage: Featured Content'); ?>
<?php if ($featured && !empty($featured)): ?>
<div class="homepage-featured">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="row">
<div class="col-sm-6 col-md-4">
<div class="content-block less-padding min-height">
<?php echo sckls_random_featured_item(); ?>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="content-block less-padding min-height">
<?php echo sckls_random_featured_collection(); ?>
</div>
</div>
<div class="hidden-sm col-md-4">
<div class="content-block less-padding min-height">
<?php if (plugin_is_active('ExhibitBuilder')): ?>
<?php echo sckls_exhibit_builder_display_random_featured_exhibit(); ?>
<?php else : ?>
<h4 class="not-featured">No featured exhibits.</h4>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<div class="homepage-recent">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="content-block">
<h5 class="header-label">Recently Added Items</h6>
<?php
$homepageRecentItems = '6';
set_loop_records('items', get_recent_items($homepageRecentItems));
if (has_loop_records('items')):
?>
<div class="items-list slider">
<?php foreach (loop('items') as $item): ?>
<?php $image = $item->Files; ?>
<?php if ($image): ?>
<div class="item">
<?php
echo ' <a href="' . record_url($item, null, true) . '">';
echo ' <div class="overlay"></div>';
if ($image) {
echo '<div style="background-image: url(' . file_display_url($image[0], 'fullsize') . ');" class="img"></div>';
}
echo ' <span class="title">' . metadata('item', array('Dublin Core', 'Title')) . '</span>';
echo ' </a>';
?>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php else: ?>
<p><?php echo 'No recent items available.'; ?></p>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php echo foot(); ?>