forked from xwolfde/Piratenkleider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
73 lines (65 loc) · 3.4 KB
/
footer.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
<div class="section footer">
<div class="row">
<?php get_sidebar( 'footer' ); ?>
<?php get_sidebar( 'footer-secondary' ); ?>
</div>
</div>
<?php
global $defaultoptions;
wp_footer();
$options = get_option( 'piratenkleider_theme_options' );
if (!isset($options['slider-slideshowSpeed']))
$options['slider-slideshowSpeed'] = $defaultoptions['slider-slideshowSpeed'];
if (!isset($options['slider-animationDuration']))
$options['slider-animationDuration'] = $defaultoptions['slider-animationDuration'];
if (!isset($options['slider-Direction']))
$options['slider-Direction'] = $defaultoptions['slider-Direction'];
if (!isset($options['slider-animationType']))
$options['slider-animationType'] = $defaultoptions['slider-animationType'];
if (!isset($options['slider-aktiv']))
$options['slider-aktiv'] = $defaultoptions['slider-aktiv'];
if (!isset($options['slider-defaultwerbeplakate']))
$options['slider-defaultwerbeplakate'] = $defaultoptions['slider-defaultwerbeplakate'];
$slideshowSpeed = $options['slider-slideshowSpeed'];
$animationDuration = $options['slider-animationDuration'];
$slideDirection = $options['slider-Direction'];
$animationType = $options['slider-animationType'];
if (($options['slider-aktiv']==1) || ($options['slider-defaultwerbeplakate']==1)) {
if ($slideshowSpeed <1000) {$slideshowSpeed=8000;}
if ($animationDuration <100) {$animationDuration=600;}
if (! isset($slideDirection)) $slideDirection = 'horizontal';
if (! isset($animationType)) $animationType = 'slide';
?>
<script src="<?php echo get_template_directory_uri(); ?>/js/flexslider.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
$(window).load(function() {
$('.flexslider').flexslider({
slideshowSpeed: <?php echo $slideshowSpeed ?>,
animationDuration: <?php echo $animationDuration ?>,
slideDirection: "<?php echo $slideDirection ?>",
animation: "<?php echo $animationType ?>",
pausePlay: true,
});
});
/* ]]> */
</script>
<?php }
if (!isset($options['aktiv-dynamic-sidebar']))
$options['aktiv-dynamic-sidebar'] = $defaultoptions['aktiv-dynamic-sidebar'];
if ($options['aktiv-dynamic-sidebar']==1) {
?>
<script type="text/javascript">
/* <![CDATA[ */
var $htmlOnSwitch = '<div class="switchoff"><a href="#"><img src="<?php echo get_template_directory_uri(); ?>/images/ausblenden.png" width="18" height="18" alt="<?php _e('Leiste ausblenden','piratenkleider'); ?>"></a></div>';
var $htmlOffSwitch = '<div class="switchon" ><a href="#"><img src="<?php echo get_template_directory_uri(); ?>/images/einblenden.png" width="18" height="18" alt="<?php _e('Leiste anzeigen','piratenkleider'); ?>"></a></div>';
/* ]]> */
</script>
<?php }
$designspecials = get_option( 'piratenkleider_theme_designspecials' );
if (isset($designspecials['html-eigene-anweisungen'])
&& strlen(trim($designspecials['html-eigene-anweisungen'])) > 0) {
echo $designspecials['html-eigene-anweisungen'];
} ?>
</body>
</html>