function grandvideo($atts) { extract(shortcode_atts(array('playlist' => '', 'w' => '', 'h' => ''), $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/video/' . $playlist . '.xml')) { return $out; } $data = file_get_contents(ABSPATH . $flag_options['galleryPath'] . 'playlists/video/' . $playlist . '.xml'); $swfmousewheel = false; $swfmousewheel = flagGetBetween($data, '<swfmousewheel>', '</swfmousewheel>'); if ($swfmousewheel == 'true') { $this->flag_add_mousewheel = true; } $this->flag_shortcode = true; $out = flagShowVPlayer($playlist, $w, $h); } return $out; }
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 { _e("Can't find playlist"); } } ?> <?php if (isset($_GET['mv'])) { $height = isset($_GET['h']) ? intval($_GET['h']) : ''; $width = '100%'; $mv = intval($_GET['mv']); echo flagShowVmPlayer($mv, $width, $height, $autoplay = 'true'); } ?>