-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
251 lines (196 loc) · 7.92 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
</div>
</div>
</div>
<!-- curtain call :p -->
<div class="curtain">
<div class="curtainhead"></div>
<div class="curtainbg"></div>
<div class="curtain-loader"></div>
</div>
<?php
$musicplaylist = j_get_option('musicplaylist');
if( !empty($musicplaylist) && jeg_run_music_ie() && !jeg_mobile_device() ) :
?>
<div class="mpnotif"></div>
<div id="mplist">
<div id="jquery_jplayer" class="jp-jplayer"></div>
<div id="jp_container" class="jp-audio">
<div class="musicplaylist">
<h2><?php j_e('music_playlist_lang'); ?></h2>
<div class="pwdcls mpcls" alt="Close">
<div class="icon-remove icon-white"> </div>
</div>
</div>
<div class="jp-type-playlist">
<div class="jp-gui jp-interface">
<ul class="jp-controls">
<li><div href="javascript:;" data-tourl="false" class="jp-play" tabindex="1"> </div></li>
<li><div href="javascript:;" data-tourl="false" class="jp-pause" tabindex="1"> </div></li>
</ul>
<div class="jp-current-time"></div>
<div class="jp-progress">
<div class="jp-seek-bar">
<div class="jp-play-bar"></div>
</div>
</div>
<div class="jp-duration"></div>
<div href="javascript:;" data-tourl="false" class="jp-mute" tabindex="1" title="mute"> </div>
<div class="jp-volume-bar">
<div class="jp-volume-bar-value"></div>
</div>
<ul class="jp-toggles">
<li><div href="javascript:;" class="jp-shuffle" tabindex="1" title="shuffle"> </div></li>
<li><div href="javascript:;" class="jp-shuffle-off" tabindex="1" title="shuffle off"> </div></li>
<li><div href="javascript:;" class="jp-repeat" tabindex="1" title="repeat"> </div></li>
<li><div href="javascript:;" class="jp-repeat-off" tabindex="1" title="repeat off"> </div></li>
</ul>
</div>
<div class="jp-playlist">
<ul>
<li></li>
</ul>
</div>
<div class="jp-no-solution">
<span>Update Required</span>
To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
</div>
</div>
</div>
</div>
<?php
$postid = $wp_query->post->ID;
?>
<script type="text/javascript">
var mplang = {
playlistmuted : "<?php echo j_e('playlist_muted_lang', 'Music Playlist Muted')?>",
playlistunmuted : "<?php echo j_e('playlist_unmuted_lang', 'Music Playlist Unmuted')?>",
playliststartplay : "<?php echo j_e('playlist_start_play', 'Playlist started')?>",
};
var musicplayer = new jPlayerPlaylist({
jPlayer: "#jquery_jplayer",
cssSelectorAncestor: "#jp_container"
}, <?php echo json_encode($musicplaylist); ?> , {
swfPath: "js",
supplied: "mp3, oga",
wmode: "window",
loop: true,
volume: <?php echo j_get_option('music_volume', '2') / 10; ?>,
ready : function() {
<?php if(j_get_option('music_autoplay')) : ?>
mpnotifbox(mplang.playliststartplay);
<?php if ( $postid===1989 ) { ?>
jQuery(this).jPlayer("play");
<?php } ?>
<?php endif; ?>
},
playlistOptions: {
enableRemoveControls: false,
loopOnPrevious: false
}
});
</script>
<?php
endif;
?>
<footer>
<nav class="foot-left">
<ul>
<?php
$miscs = j_get_option('misc_icon');
if(isset($miscs) && !empty($miscs)) :
foreach ($miscs as $misc) :
?>
<li>
<a href="<?php echo $misc->url ; ?>">
<i class="<?php echo $misc->icon; ?>"></i>
<div class="text-social"><?php echo trim($misc->title); ?></div>
</a>
</li>
<?php
endforeach;
endif;
?>
<li>
<a href="#" id="stopmusic" data-tourl="false" class="stp">
<img src="<?php bloginfo('template_directory');?>/css/img/bars.gif">
</a>
</li>
<?php
function languages_list_footer()
{
if(function_exists('icl_get_languages'))
{
echo '<div class="langwrapper">';
$languages = icl_get_languages('skip_missing=0&orderby=code');
if(!empty($languages))
{
foreach($languages as $l) {
echo '<li class="avalang">';
echo '<a href="' . $l['url'] . '" data-tourl="false">';
echo '<i class="langflag" style="background-image: url(' . $l['country_flag_url'] . ');"></i>';
echo '<div class="text-social">' . $l['native_name'] . '</div>';
echo '</a>';
echo '</li>';
}
}
echo '</div>';
}
}
languages_list_footer();
?>
<?php
if(j_get_option('show_music_icon')) :
if(!empty($musicplaylist) && jeg_run_music_ie() && !jeg_mobile_device()) :
$playlisticon = j_get_option('misc_playlist_icon');
?>
<?php endif;
endif;
?>
</ul>
</nav>
<nav class="foot-right">
<ul>
<?php
$socials = j_get_option('social_icon');
if(isset($socials) && !empty($socials)) :
foreach ($socials as $social) :
?>
<li>
<a href="<?php echo $social->url ; ?>" target="_blank">
<i class="<?php echo $social->icon; ?>"></i>
<div class="text-social"><?php echo trim($social->title); ?></div>
</a>
</li>
<?php
endforeach;
endif;
?>
</ul>
</nav>
<p class="footercopy">
<?php echo j_get_option('footer_copy'); ?>
</p>
</footer>
<!-- JavaScript at the bottom for fast page loading -->
<!-- scripts concatenated and minified via build script -->
<!-- end scripts -->
<?php if(j_get_option('google_analytic')) : ?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<?php echo j_get_option('google_analytic');?>']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<?php endif; ?>
<?php if(j_get_option('additional_js')) : ?>
<script type="text/javascript">
<?php echo j_get_option('additional_js');?>
</script>
<?php endif; ?>
<?php wp_footer(); ?>
</body>
</html>