function lw_iframe_link($name = '', $path = '', $options = array()) { static $is_included = false; if (!$is_included) { $response = sfContext::getInstance()->getResponse(); $response->addJavascript(sfConfig::get('sf_lightwindow_prototype_dir') . 'prototype.js'); } $options = _parse_attributes($options); $options['lw_class'] = 'lightwindow_iframe_link'; $options['lwAddResources'] = false; return lw_link($name, $path, $options); }
echo lw_link('<strong>Fluid Page</strong> - This page does not have a width, the content is flexible.</a>', 'sfLightWindow/blank', 'class=page-options'); ?> <?php echo lw_link('<strong>Fixed Page</strong> - This page has a defined amount of space it needs or it will cause a horizontal scroll.', 'sfLightWindow/wide', 'class=page-options'); ?> <?php echo lw_link('<strong>Monster Fixed Page</strong> - This page is just plain too big for the browser window unless you maximize a 30 inch monitor.', 'sfLightWindow/huge', 'class=page-options title=Sample Title'); ?> <?php echo lw_link('<strong>Set Dimensions</strong> - Set the dimensions of the window.', 'sfLightWindow/wide', 'class=page-options width=800 height=350'); ?> </p> <h2>Inline Content <span>They call this a gimme :)</span></h2> <p> <?php echo lw_link('<strong>Inline Content</strong> - Not a fan of AJAX? No worries, here you go.', '#inline-sample', 'class=page-options'); ?> </p> </div> <div class="page-footer"> <p>LightWindow © Copyright 2007 <a href="http://www.stickmanlabs.com/"><small>stickmanlabs</small></a></p> <p>sfLightWindowPlugin © Copyright 2007 <a href="http://blog.stereodevelopment.com">Stereo Interactive & Design</a></p> <p>LightWindow and sfLightWindowPlugin are freely distributable under the terms of an MIT-style license.</p> </div> <!-- Hidden stuff for demos --> <div id="inline-sample" >