本文整理汇总了PHP中Q_Response::stylesheets方法的典型用法代码示例。如果您正苦于以下问题:PHP Q_Response::stylesheets方法的具体用法?PHP Q_Response::stylesheets怎么用?PHP Q_Response::stylesheets使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Q_Response
的用法示例。
在下文中一共展示了Q_Response::stylesheets方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Platform_iframe_response
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;
}
示例2:
<title><?php
echo $title;
?>
</title>
<link rel="shortcut icon" href="<?php
echo Q_Request::baseUrl();
?>
/favicon.ico" type="image/x-icon">
<script type="text/javascript">
document.getElementsByTagName('html')[0].className += ' Q_js'; // better than noscript
</script>
<!-- scripts have been moved to the bottom of the body -->
<?php
echo Q_Response::stylesheets(true, "\n\t");
?>
<?php
echo Q_Response::styles(true, "\n\t");
?>
</head>
<body>
<div id="dashboard_slot">
<!-- - - - - - - - - - - - - begin dashboard slot- - - - - - - - - - - - - - - - -->
<?php
echo $dashboard;
?>
<!-- - - - - - - - - - - - - - end dashboard slot- - - - - - - - - - - - - - - - -->
示例3:
echo Q_Response::htmlAttributes();
?>
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php
echo $title;
?>
</title>
<link rel="shortcut icon" href="<?php
echo Q_Request::proxyBaseUrl();
?>
/favicon.ico" type="image/x-icon">
<?php
echo Q_Response::stylesheets("\n\t", true);
?>
<?php
echo Q_Response::scripts("\n\t", true);
?>
<style type="text/css">
<?php
echo Q_Response::stylesInline(true);
?>
</style>
</head>
<body>
<?php