<?php

if (jeg_music_bg_enabled()) {
    ?>
<div class="music_toggle" data-toogle="on" data-on="fa-volume-up" data-off="fa-volume-off">
	<i class="fa fa-volume-up"></i>
</div>

<div class="backgroundaudio">
    <audio id="backgroundaudioplayer" loop>
        <source src="<?php 
    echo vp_metabox('jkreativ_music_player.music_bg_group.0.music_mp3');
    ?>
" type="audio/mpeg">
        <source src="<?php 
    echo vp_metabox('jkreativ_music_player.music_bg_group.0.music_ogg');
    ?>
" type="audio/music_ogg">
    </audio>
</div>
<?php 
}
Exemplo n.º 2
0
function jeg_init_script()
{
    jeg_register_script();
    if (!jeg_is_login_page()) {
        wp_enqueue_script('jquery');
        wp_enqueue_script('jkreativ_common');
        wp_enqueue_script('jkreativ_main');
        wp_enqueue_script('jkreativ_mediaelement');
        wp_enqueue_script('jkreativ_plugin');
        wp_localize_script('jkreativ_plugin', 'joption', jeg_get_js_option());
        // smooth scroll
        if (!vp_option('joption.disable_smoothscroll')) {
            wp_enqueue_script('jkreativ_smoothscroll');
        }
        if (jeg_is_using_loading()) {
            wp_enqueue_script('jkreativ_pageload');
            wp_enqueue_script('jkreativ_nprogress');
        }
        if (is_singular()) {
            wp_enqueue_script('comment-reply');
        }
        if (jeg_music_bg_enabled()) {
            wp_enqueue_script('jkreativ_jmusic');
        }
        jeg_load_page_spesific_script();
    }
}