getAdminOptions(); // print_r($devOptions); if (isset($_POST['update_iframe-loader'])) { //save option changes $adminSettings = array('securitykey', 'src', 'width', 'height', 'scrolling', 'marginwidth', 'marginheight', 'frameborder', 'transparency', 'content_id', 'content_styles', 'hide_elements', 'class', 'shortcode_attributes', 'url_forward_parameter'); if (!wp_verify_nonce($_POST['twg-options'], 'twg-options')) die('Sorry, your nonce did not verify.'); foreach ($adminSettings as $item) { $devOptions[$item] = trim($_POST[$item]); } update_option($this->adminOptionsName, $devOptions); ?>


[advanced_iframe securitykey=""]

Editor -> Click on \'Sidebar\' on the right side. Then look for the first \'div\' you find. The id of this div is the one you need. For some common templates the id is e.g. #menu, #sidebar, or #primary. For Twenty Ten and iNove you can remove the sidebar directly: Page attributes -> Template -> no sidebar. Wordpress default: \'#sidebar\'. I recommend to use firebug (see below) to find the elements and ids. You can use any valid jQuery selector pattern here! Shortcode attribute: hide_elements=""', 'advanced-iframe')); ?>

How to find the id and the attributes:

  1. Manually: Go to Appearance -> Editor and select the page template. The you have to look with div elements are defined. e.g. container, content, main. Also classes can be defined here. Then you have to select the style sheet below and search for this ids and classes and look which one does define the width of you content.
  2. Firebug: For Firefox you can use the plugin firebug to select the content element directly in the page. On the right side the styles are always shown. Look for the styles that set the width or any bigger margins. This are the values you can then overwrite by the settings above.
', 'advanced-iframe'); ?>


www.tinywebgallery.com for details.', 'advanced-iframe'); ?>


' . $label . ' '; echo ' ' . __('Yes', 'advanced-iframe') . '   ' . __('No', 'advanced-iframe') . '
' . $description . ' '; } function printAutoNo($options, $label, $id, $description) { echo ' ' . $label . ' '; echo ' ' . __('Yes', 'advanced-iframe') . '   ' . __('No', 'advanced-iframe') . '
' . $description . ' '; } function printTextInput($options, $label, $id, $description, $type = 'text') { echo ' ' . $label . '
' . $description . ' '; } function printNumberInput($options, $label, $id, $description, $type = 'text') { echo ' ' . $label . '
' . $description . ' '; } ?>