This repository has been archived by the owner on Sep 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.php
170 lines (138 loc) · 2.68 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?php
head();
?>
<?php
echo head(array(
'bodyid' => 'home',
'bodyclass' => 'two-col'
));
?>
<div id="primary">
<?php
if ($homepageText = get_theme_option('Homepage Text')):
?>
<p><?php
echo $homepageText;
?></p>
<?php
endif;
?>
<?php
if ((get_theme_option('Display Featured Exhibit')) && function_exists('exhibit_builder_display_random_featured_exhibit')):
?>
<!-- Featured Exhibit -->
<?php
echo exhibit_builder_display_random_featured_exhibit();
?>
<?php
endif;
?>
</div>
<!-- Featured Collection -->
<div class="row">
<div class="large-12 columns">
<div id="featured" class="panel">
<?php
if (get_theme_option('Display Featured Collection')):
?>
<div id="featured-collection" >
<?php
echo random_featured_collection();
?>
</div>
</div>
</div>
<?php
endif;
?>
<!-- end featured collection -->
<!-- Featured Item -->
<?php
if (get_theme_option('Display Featured Item') == 1):
?>
</div>
<div class="row">
<div id="featured-items" class="small-12 large-6 columns">
<h2><?php
echo __('Featured Item');
?></h2>
<?php
echo random_featured_items(1);
?>
</div>
<?php
endif;
?>
<!--end featured-item-->
<!-- Recent Items -->
<div id="recent-items" class="small-12 large-6 columns">
<!-- Recent Items -->
<div id="recent-items">
<h2><?php
echo __('Recently Added Items');
?></h2>
<?php
$homepageRecentItems = (int) get_theme_option('Homepage Recent Items') ? get_theme_option('Homepage Recent Items') : '3';
set_loop_records('items', get_recent_items($homepageRecentItems));
if (has_loop_records('items')):
?>
<ul class="items-list">
<?php
foreach (loop('items') as $item):
?>
<li class="item">
<h3><?php
echo link_to_item();
?></h3>
<?php
if ($itemDescription = metadata('item', array(
'Dublin Core',
'Description'
), array(
'snippet' => 150
))):
?>
<p class="item-description"><?php
echo $itemDescription;
?></p>
<?php
endif;
?>
</li>
<?php
endforeach;
?>
</ul>
<?php
else:
?>
<p><?php
echo __('No recent items available.');
?></p>
<?php
endif;
?>
<p class="view-items-link"><?php
echo link_to_items_browse(__('View All Items'));
?></p>
</div>
</div>
<!-- end recent-items -->
</div>
<!-- Featured Exhibit -->
<div class="row">
<?php
if ((get_theme_option('Display Featured Exhibit')) && function_exists('exhibit_builder_random_featured_exhibit')):
?>
</div>
<?php
echo exhibit_builder_display_featured_exhibit();
?>
<?php
endif;
?>
</div><!-- end primary -->
<footer>
<?php
echo foot();
?></footer>