Esempio n. 1
0
function Platform_iframe_response()
{
    if (empty($_POST['html'])) {
        echo "POST field 'html' is empty";
        return false;
    }
    if ($stylesheet = Q::ifset($_POST, 'stylesheet', null)) {
        Q_Response::addStylesheet($stylesheet, '@end');
    }
    $html = $_POST['html'];
    // use a regular layout, add all the scripts for Users and Streams and whatever
    // and then call Q.activate()
    // either that, or change html to a template that is rendered with handlebars in PHP
    Q_Response::addScriptLine('Q.init();', '@end');
    $stylesheets = Q_Response::stylesheets(true, "\n\t");
    $scripts = Q_Response::scripts(true, "\n\t");
    $templates = Q_Response::templates(true, "\n\t");
    $scriptLines = Q_Response::scriptLines(true);
    echo <<<EOT
<!doctype html>
<html>
    <head>
        <title>Qbix Platform</title>
\t\t{$stylesheets}
\t\t{$scripts}
\t\t<style>
\t\thtml { height: 100%; }
\t\tbody { height: 100%; }
\t\t</style>
    </head>
    <body>
\t\t<div id="Platform_parsed_html">
\t\t\t{$html}
\t\t</div>
\t\t{$scriptLines}
    </body>
</html>
EOT;
    return false;
}
Esempio n. 2
0
<!-- - - - - - - - - - - - - - begin content slot- - - - - - - - - - - - - - - - -->
<?php 
echo $content;
?>
 
<!-- - - - - - - - - - - - - - - end content slot- - - - - - - - - - - - - - - - -->
		</div>
		<div id="dialogs_slot">
<!-- - - - - - - - - - - - - - begin dialogs slot- - - - - - - - - - - - - - - - -->
<?php 
echo $dialogs;
?>
 
<!-- - - - - - - - - - - - - - - end dialogs slot- - - - - - - - - - - - - - - - -->
		</div>
	</div>
	<?php 
echo Q_Response::scripts(true, "\n\t");
?>
 
	<?php 
echo Q_Response::templates(true, "\n\t");
?>
 
	<?php 
echo Q_Response::scriptLines(true);
?>
 
</body>
</html>