/** * Returns markup for referencing all the scripts added so far * * @param string $slot_name * Optional. If provided, returns only the stylesheets added while filling this slot. * @return string * the script tags and their contents inline */ static function scriptsInline($slot_name = null) { $scripts = self::scriptsArray($slot_name, false); if (empty($scripts)) { return ''; } $scripts_str = ''; foreach ($scripts as $script) { $src = ''; extract($script, EXTR_IF_EXISTS); $ob = new Pie_OutputBuffer(); if (Pie_Valid::url($src)) { try { include $src; } catch (Exception $e) { } } else { list($src, $filename) = Pie_Html::themedUrlAndFilename($src); try { Pie::includeFile($filename); } catch (Exception $e) { } } $scripts_str .= "\n/* Included inline from {$src} */\n" . $ob->getClean(); } return Pie_Html::script($scripts_str); }
echo $dashboard; ?> </div> <?php if ($notices) { ?> <div id="notices_slot"> <?php echo $notices; ?> </div> <?php } ?> <div id="content_slot"> <?php echo $content; ?> </div> <br style="clear: both;"> </div> <?php echo Pie_Html::script(Pie_Response::scriptLines()); echo Pie_html::script("Pie.ready();"); ?> </fb:fbml>