'300', 'width' => '400', 'alt' => '

The Flash plugin is required to view this object.

', 'allowfullscreen' => 'false', 'required_player_version' => '8.0.0', 'express_install_swf' => get_bloginfo('wpurl').'/wp-content/plugins/swfobj/'.'expressInstall.swf' ); $saved_options = get_option($this->admin_options_saved); if (!empty($saved_options)) { foreach($saved_options as $key => $val) { $admin_options[$key] = $val; } } update_option($this->admin_options_saved, $admin_options); return $admin_options; } function init() { $this->get_options(); ?>

Options saved.

'."\n"; } // Add Javascript to end of page to register all swf objects. function swfobj_footer() { global $registered_objects; // register any swf files on the page if (count($registered_objects) > 0) { echo ' '."\n"; } } // [swfobj] shortcode handler function swfobj_func($atts, $content='') { global $registered_objects; $defaults = $this->get_options(); extract(shortcode_atts(array( 'src' => '', 'width' => $defaults['width'], 'height' => $defaults['height'], 'alt' => $defaults['alt'], 'allowfullscreen' => $defaults['allowfullscreen'], 'id' => 'swfobj_'.count($registered_objects), 'name' => false, 'class' => false, 'align' => false, 'required_player_version' => $defaults['required_player_version'], 'express_install_swf' => $defaults['express_install_swf'] /*, // these options are not yet supported * play * loop * menu * quality * scale * salign * wmode * bgcolor * base * swliveconnect * flashvars * devicefont [ http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_13331 ] * allowscriptaccess [ http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16494 ] and [ http://www.adobe.com/go/kb402975 ] * seamlesstabbing [ http://www.adobe.com/support/documentation/en/flashplayer/7/releasenotes.html ] * allownetworking [ http://livedocs.adobe.com/flash/9.0/main/00001079.html ] */ ), $atts)); // Add this object to the array so it will be registered in the header $registered_objects[] = array('id' => $id, 'required_player_version' => $required_player_version, 'express_install_swf' => $express_install_swf); $swfobj = ' '.(($allowfullscreen=='true')?' ':'').'

'.$alt.'

'; return $swfobj; } function swfobj_options_page() { $options = $this->get_options(); if ($_POST['options_update']) { // Update current options to the values submitted foreach ($options as $option => $value) { if (isset($_POST[$option])) { $options[$option] = $_POST[$option]; } } update_option($this->admin_options_saved, $options); ?>

Options Updated.

false, 'class' => false, 'align' => false, */ ?>

SwfObj Default Settings

Default Width Default width of embedded Flash content.
Default Height Default height of embedded Flash content.
Alternative Content Alternative HTML content to display if Flash plugin is not installed in the browser.
Required Flash Player Default minimum Flash player required by the browser.
Object CSS Class The CSS class to apply to the embedded Flash object.
Express Install Swf Swf shown when viewer needs to upgrade their player.
Allow Fullscreen Mode       Allow fullscreen mode by default.