-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
43 lines (36 loc) · 1.52 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
<?php
$featuredHtml = centerrow_featured_html();
$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_url('//cdn.jsdelivr.net/npm/@accessible360/accessible-slick@1.0.1/slick/slick.min.css');
queue_css_url('//cdn.jsdelivr.net/npm/@accessible360/accessible-slick@1.0.1/slick/accessible-slick-theme.min.css');
queue_js_string('
jQuery(document).ready(function(){
jQuery("#featured-slides").slick({
dots: true,
slidesToShow: 1,
slidesToScroll: 1,' .
$autoplayOptions .
'arrows: false,
centerMode: true,
fade: true,
});
});
');
?>
<?php echo head(array('bodyid'=>'home')); ?>
<!-- Featured Item -->
<?php if (centerrow_check_for_featured_records()): ?>
<div id="featured">
<div id="featured-slides">
<?php echo centerrow_featured_html(); ?>
</div>
</div>
<?php endif; ?>
<?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)); ?>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/@accessible360/accessible-slick@1.0.1/slick/slick.min.js"></script>
<?php echo foot(); ?>