-
Notifications
You must be signed in to change notification settings - Fork 1
/
js.php
34 lines (30 loc) · 893 Bytes
/
js.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
<?php
$siteurl = get_option('siteurl');
$url = $siteurl . '/wp-content/plugins/' . basename(dirname(__FILE__));
?>
<script type='text/javascript' src='<?php echo $url; ?>/slides/js/slides.min.jquery.js'></script>
<script type='text/javascript' src='<?php echo $url; ?>/colorbox/jquery.colorbox-min.js'></script>
<script type="text/javascript">
var $ = jQuery.noConflict();
$(document).ready(function(){
$(".colorbox").colorbox({
rel: 'colorbox',
maxHeight: '90%',
maxWidth: '90%'
});
$('.sliderly-slideshow').each(function(){
if (!$(this).hasClass("set"))
{
$(this).slides({
preload: true,
preloadImage: '<?php echo $url; ?>/slides/img/loading.gif',
play: <?php echo $duration; ?>,
pause: 1000,
hoverPause: true,
effect: "<?php echo $effect; ?>"
});
$(".sliderly-slideshow").addClass("set");
}
});
});
</script>