forked from omeka/theme-centerrow
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
46 lines (41 loc) · 1.69 KB
/
index.php
File metadata and controls
46 lines (41 loc) · 1.69 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
<?php
$autoplay = (get_theme_option('home_slider_autoplay') !== null) ? get_theme_option('home_slider_autoplay') : '1';
$autoplaySpeed = (get_theme_option('home_slider_autoplay_speed') !== null) ? (int) get_theme_option('home_slider_autoplay_speed') : 5000;
$autoplayOptions = ($autoplay == '1') ? 'autoplay: true, autoplaySpeed: ' . $autoplaySpeed . ',' : 'autoplay: false,';
queue_css_file('slick');
queue_js_file('slick.min', 'js');
queue_js_string('
jQuery(document).ready(function(){
jQuery("#featured").slick({
slidesToShow: 1,
slidesToScroll: 1,' .
$autoplayOptions .
'arrows: false,
centerMode: true,
fade: true,
dots: true
});
});
');
?>
<?php echo head(array('bodyid'=>'home')); ?>
<!-- Featured Item -->
<div id="featured">
<?php if (get_theme_option('Display Featured Item') !== '0' && count(get_random_featured_items()) > 0): ?>
<?php echo random_featured_items(3); ?>
<?php endif; ?>
<?php if (get_theme_option('Display Featured Collection') !== '0' && get_random_featured_collection()): ?>
<?php echo random_featured_collection(); ?>
<?php endif; ?>
<?php if ((get_theme_option('Display Featured Exhibit') !== '0')
&& plugin_is_active('ExhibitBuilder')
&& function_exists('mashare_display_featured_exhibit')): ?>
<!-- Featured Exhibit -->
<?php echo mashare_display_featured_exhibit(); ?>
<?php endif; ?>
</div><!--end featured-item-->
<?php if (get_theme_option('Homepage Text')): ?>
<div id="homepage-text"><?php echo get_theme_option('Homepage Text'); ?></div>
<?php endif; ?>
<?php fire_plugin_hook('public_home', array('view' => $this)); ?>
<?php echo foot(); ?>