function grandbanner($atts) { extract(shortcode_atts(array('xml' => '', 'w' => '', 'h' => ''), $atts)); $out = sprintf(__('[XML %s not found]', 'flash-album-gallery'), $xml); if ($xml) { $flag_options = get_option('flag_options'); if (!file_exists(ABSPATH . $flag_options['galleryPath'] . 'playlists/banner/' . $xml . '.xml')) { return $out; } $data = file_get_contents(ABSPATH . $flag_options['galleryPath'] . 'playlists/banner/' . $xml . '.xml'); $swfmousewheel = false; $swfmousewheel = flagGetBetween($data, '<swfmousewheel>', '</swfmousewheel>'); if ($swfmousewheel == 'true') { $this->flag_add_mousewheel = true; } $this->flag_shortcode = true; $out = flagShowBanner($xml, $w, $h); } return $out; }
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'); } ?> <?php if (isset($_GET['b'])) { $file = sanitize_flagname($_GET['b']); $playlistpath = $flag_options['galleryPath'] . 'playlists/banner/' . $file . '.xml'; if (file_exists($playlistpath)) { echo flagShowBanner($file, $width = '', $height = '', $wmode = 'opaque'); } else { _e("Can't find playlist"); } } ?> </div> </body> </html>