This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
forked from korbinian/Piratenkleider
-
Notifications
You must be signed in to change notification settings - Fork 24
/
footer.php
93 lines (86 loc) · 3.55 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
global $options;
global $defaultoptions;
?>
</div> <!-- #content-body -->
<div class="section footer">
<div class="row">
<?php get_sidebar( 'footer' ); ?>
<?php get_sidebar( 'footer-secondary' ); ?>
</div>
<nav role="navigation">
<ul class="nav skiplinks">
<li><a class="p3-skip" id="skiplink-top" href="#top"><?php _e( 'Back to top.', 'piratenkleider' ); ?></a></li>
<li><a class="p3-skip" id="skiplink-content-bottom" href="#main-content"><?php _e( 'Back to start of content.', 'piratenkleider' ); ?></a></li>
<?php if ( $options['aktiv-suche'] == "1" ){ ?>
<li><a class="p3-skip" id="skiplink-search-bottom" href="#searchform"><?php _e( 'Back to search form.', 'piratenkleider' ); ?></a></li>
<?php } ?>
</ul>
</nav>
</div>
<?php
wp_footer();
$slideshowSpeed = $options['slider-slideshowSpeed'];
$animationDuration = $options['slider-animationDuration'];
$slideDirection = $options['slider-Direction'];
$animationType = $options['slider-animationType'];
if ( (($options['slider-aktiv']==1) && (is_home() || is_front_page()))
|| (is_category() && ($options['category-teaser']==1))
|| ( get_page_template_slug( ) )
|| ($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 $defaultoptions['src-flexslider'] ?>"></script>
<script type="text/javascript">
/* <![CDATA[ */
jQuery(document).ready(function($) {
<?php if ($options['slider-aktiv']==1) { ?>
$('.flexslider').flexslider({
slideshowSpeed: <?php echo $slideshowSpeed ?>,
animationSpeed: <?php echo $animationDuration ?>,
direction: "<?php echo $slideDirection ?>",
animation: "<?php echo $animationType ?>",
pausePlay: true,
keyboard: true,
multipleKeyboard: true,
touch: true,
directionNav: false,
controlNav: true,
pauseText: "<?php _e('Stop','piratenkleider'); ?>",
playText: "<?php _e('Start','piratenkleider'); ?>",
});
<?php }
if ($options['slider-defaultwerbeplakate']==1) { ?>
var breite = $(window).width();
if (breite > 600) {
$('.slidersidebar').flexslider({
slideshowSpeed: <?php echo $slideshowSpeed ?>,
animationSpeed: <?php echo $animationDuration ?>,
animation: "fade",
pausePlay: true,
keyboard: true,
multipleKeyboard: true,
touch: true,
smoothHeight: true,
directionNav: true,
controlNav: false,
nextText: "<?php _e('Next','piratenkleider'); ?>",
prevText: "<?php _e('Back','piratenkleider'); ?>",
pauseText: "<?php _e('Stop','piratenkleider'); ?>",
playText: "<?php _e('Start','piratenkleider'); ?>",
});
}
<?php } ?>
});
/* ]]> */
</script>
<?php }
if (isset($options['html-eigene-anweisungen'])
&& strlen(trim($options['html-eigene-anweisungen'])) > 0) {
echo $options['html-eigene-anweisungen'];
} ?>
</body>
</html>