-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathindex.php
More file actions
54 lines (45 loc) · 1.72 KB
/
Copy pathindex.php
File metadata and controls
54 lines (45 loc) · 1.72 KB
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
<?php echo head(array('bodyid'=>'home')); ?>
<?php if (get_theme_option('Homepage Text')): ?>
<p><?php echo get_theme_option('Homepage Text'); ?></p>
<?php endif; ?>
<h1 class="sr-only"><?php echo __('Featured'); ?></h1>
<?php if (get_theme_option('Display Featured Item') !== '0'): ?>
<!-- Featured Item -->
<div id="featured-item">
<h2><?php echo __('Featured Item'); ?></h2>
<?php echo display_records('Item', 1); ?>
</div><!--end featured-item-->
<?php endif; ?>
<?php fire_plugin_hook('public_content_top', array('view'=>$this)); ?>
<?php if (get_theme_option('Display Featured Collection') !== '0'): ?>
<!-- Featured Collection -->
<div id="featured-collection">
<h2><?php echo __('Featured Collection'); ?></h2>
<?php echo display_records('Collection', 1); ?>
</div><!-- end featured collection -->
<?php endif; ?>
<?php if ((get_theme_option('Display Featured Exhibit') !== '0')
&& plugin_is_active('ExhibitBuilder')): ?>
<!-- Featured Exhibit -->
<div id="featured-exhibit">
<h2><?php echo __('Featured Exhibit'); ?></h2>
<?php echo display_records('Exhibit', 1, 'exhibits/single.php', ); ?>
</div>
<?php endif; ?>
<?php
$recentItems = get_theme_option('Homepage Recent Items');
if ($recentItems === null || $recentItems === ''):
$recentItems = 3;
else:
$recentItems = (int) $recentItems;
endif;
if ($recentItems):
?>
<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; ?>
<?php fire_plugin_hook('public_home', array('view' => $this)); ?>
<?php echo foot(); ?>