forked from libmanuk/Spokedb-O
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
237 lines (215 loc) · 7.45 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<?php echo head(array('bodyid'=>'home', 'bodyclass' =>'two-col')); ?>
<div id="primary">
<?php if ($homepageText = get_theme_option('Homepage Text Gen')): ?>
<p><?php echo $homepageText; ?></p>
<?php endif; ?>
<div id="container">
<div id="row">
<?php if ($homepageText16 = get_theme_option('Homepage Text16')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText16);
$htmlchnk1 = '<div id="left"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell01 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell01;
?>
<?php endif; ?>
<?php if ($homepageText01 = get_theme_option('Homepage Text01')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText01);
$htmlchnk1 = '<div id="middle"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell02 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell02;
?>
<?php endif; ?>
<?php if ($homepageText02 = get_theme_option('Homepage Text02')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText02);
$htmlchnk1 = '<div id="middle"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell03 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell03;
?>
<?php endif; ?>
<?php if ($homepageText03 = get_theme_option('Homepage Text03')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText03);
$htmlchnk1 = '<div id="right"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell04 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell04;
?>
<?php endif; ?>
</div></div>
<div id="container">
<div id="row">
<?php if ($homepageText04 = get_theme_option('Homepage Text04')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText04);
$htmlchnk1 = '<div id="left"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell01 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell01;
?>
<?php endif; ?>
<?php if ($homepageText05 = get_theme_option('Homepage Text05')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText05);
$htmlchnk1 = '<div id="middle"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell02 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell02;
?>
<?php endif; ?>
<?php if ($homepageText06 = get_theme_option('Homepage Text06')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText06);
$htmlchnk1 = '<div id="middle"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell03 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell03;
?>
<?php endif; ?>
<?php if ($homepageText07 = get_theme_option('Homepage Text07')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText07);
$htmlchnk1 = '<div id="right"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell04 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell04;
?>
<?php endif; ?>
</div></div>
<div id="container">
<div id="row">
<?php if ($homepageText08 = get_theme_option('Homepage Text08')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText08);
$htmlchnk1 = '<div id="left"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell01 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell01;
?>
<?php endif; ?>
<?php if ($homepageText09 = get_theme_option('Homepage Text09')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText09);
$htmlchnk1 = '<div id="middle"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell02 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell02;
?>
<?php endif; ?>
<?php if ($homepageText10 = get_theme_option('Homepage Text10')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText10);
$htmlchnk1 = '<div id="middle"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell03 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell03;
?>
<?php endif; ?>
<?php if ($homepageText11 = get_theme_option('Homepage Text11')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText11);
$htmlchnk1 = '<div id="right"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell04 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell04;
?>
<?php endif; ?>
</div></div>
<div id="container">
<div id="row">
<?php if ($homepageText12 = get_theme_option('Homepage Text12')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText12);
$htmlchnk1 = '<div id="left"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell01 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell01;
?>
<?php endif; ?>
<?php if ($homepageText13 = get_theme_option('Homepage Text13')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText13);
$htmlchnk1 = '<div id="middle"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell02 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell02;
?>
<?php endif; ?>
<?php if ($homepageText14 = get_theme_option('Homepage Text14')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText14);
$htmlchnk1 = '<div id="middle"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell03 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell03;
?>
<?php endif; ?>
<?php if ($homepageText15 = get_theme_option('Homepage Text15')): ?>
<?php
list($parts0, $parts1) = explode(',', $homepageText15);
$htmlchnk1 = '<div id="right"><p><a href="';
$htmlchnk2 = '"><img width="100%" src="';
$htmlchnk3 = '"/></a></div>';
$cell04 = $htmlchnk1 . $parts1 . $htmlchnk2 . $parts0 . $htmlchnk3;
echo $cell04;
?>
<?php endif; ?>
</div></div>
<?php if (get_theme_option('Display Featured Item') == 1): ?>
<!-- Featured Item -->
<h4>Item Spotlight:</h4>
<div id="featured-item" class="featured">
<h2><?php echo __('Featured Item'); ?></h2>
<?php echo random_featured_items(1); ?>
</div><!--end featured-item-->
<?php endif; ?>
<?php if (get_theme_option('Display Featured Collection')): ?>
<!-- Featured Collection -->
<h4>Collection Spotlight:</h4>
<div id="featured-collection" class="featured">
<h2><?php echo __('Featured Collection'); ?></h2>
<?php echo random_featured_collection(); ?>
</div><!-- end featured collection -->
<?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; ?>
<?php
$recentItems = get_theme_option('Homepage Recent Items');
if ($recentItems === null || $recentItems === ''):
$recentItems = 3;
else:
$recentItems = (int) $recentItems;
endif;
if ($recentItems):
?>
<h4>Latest Additions:</h4>
<div id="recent-items">
<h2><?php echo __('Recently Added Items'); ?></h2>
<?php echo recent_items($recentItems); ?>
<p class="view-items-link"><a href="<?php echo html_escape(url('items')); ?>"><?php echo __('View All Items'); ?></a></p>
</div><!--end recent-items -->
<?php endif; ?>
</div><!-- end primary -->
<?php echo foot(); ?>