getAdminOptions(); and adjust the variables $yt_js, $yt_cookie and $yt_theme so they don't use $devOptions */ add_shortcode('audiotube', 'bsf_atp_shortcode'); function bsf_atp_shortcode($atts) { global $atp_pluginSeries; $devOptions = $atp_pluginSeries->getAdminOptions(); extract( shortcode_atts( array( 'bar' => 'yes', 'time' => 'yes', 'tiny' => '', 'auto' => '', 'loop' => '', 'theme' => '', 'size' => 'small', 'invisible' => '', 'id' => '' ), $atts ) ); if($id=='') return; $yt_width = 225; $yt_height = 25; if($invisible==='yes') { $yt_height = 0; $yt_width = 0; } elseif ($tiny==='yes') { $yt_width = 30; } elseif ($bar==='no') { $yt_width = 62; } elseif ($size==='large') { if($time==='no') $yt_width = 224; else $yt_width = 299; } elseif ($size==='medium') { if($time==='no') $yt_width = 187; else $yt_width = 262; } else { if($time==='no') $yt_width = 150; else $yt_width = 225; } $yt_auto = ''; if($auto==='yes') $yt_auto = '&autoplay=1'; $yt_loop = ''; if($loop==='yes') $yt_loop = '&loop=1'; $yt_js = ''; if ($devOptions['javascript']) $yt_js = '&enablejsapi=1'; $yt_cookie = 'youtube-nocookie'; if ($devOptions['cookies']) $yt_cookie = 'youtube'; $yt_theme = ''; if ($devOptions['theme']) $yt_theme = '&theme=light'; if ($theme!='') $yt_theme = '&theme='.$theme; $noembed_image = BSF_ATP_URL."images/play-tub.png"; $bsf_atp_shortcode = <<<a href="http://www.youtube.com/watch?v={$id}?hl=en"><img src="{$noembed_image}" alt="Play" style="border:0px;" /></a> EOT; return $bsf_atp_shortcode; }