Example #1
0
 function grandmusic($atts)
 {
     extract(shortcode_atts(array('playlist' => '', 'w' => '', 'h' => '', 'skin' => '', 'is_widget' => 0), $atts));
     $out = sprintf(__('[Playlist %s not found]', 'flash-album-gallery'), $playlist);
     if ($playlist) {
         $flag_options = get_option('flag_options');
         if (!file_exists(ABSPATH . $flag_options['galleryPath'] . 'playlists/' . $playlist . '.xml')) {
             return $out;
         }
         $this->flag_shortcode = true;
         $this->flag_add_mousewheel = true;
         $out = flagShowMPlayer($playlist, $w, $h, $wmode = '', $skin, $is_widget);
     }
     return $out;
 }
Example #2
0
        echo plugins_url('/flash-album-gallery/admin/js/script.js');
        ?>
" type="text/javascript"></script>

<?php 
    }
}
?>


<?php 
if (isset($_GET['m'])) {
    $file = sanitize_flagname($_GET['m']);
    $playlistpath = $flag_options['galleryPath'] . 'playlists/' . $file . '.xml';
    if (file_exists($playlistpath)) {
        echo flagShowMPlayer($file, $width = '', $height = '', $wmode = 'opaque');
    } else {
        _e("Can't find playlist");
    }
}
?>

<?php 
if (isset($_GET['v'])) {
    $height = isset($_GET['h']) ? intval($_GET['h']) : '';
    $width = isset($_GET['w']) ? '100%' : '';
    $file = sanitize_flagname($_GET['v']);
    $playlistpath = $flag_options['galleryPath'] . 'playlists/video/' . $file . '.xml';
    if (file_exists($playlistpath)) {
        echo flagShowVPlayer($file, $width, $height, $wmode = 'opaque');
    } else {