本文整理汇总了PHP中Assets::style方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::style方法的具体用法?PHP Assets::style怎么用?PHP Assets::style使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Assets
的用法示例。
在下文中一共展示了Assets::style方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: style
/**
* @return Assets_Styles
*/
public static function style()
{
if (null === self::$style) {
self::$style = new Assets_Styles();
self::$style->setOutput(Nano::config('assets')->path);
}
return self::$style;
}
示例2: init
/**
* @return void
* @param Nano_C $controller
*/
public function init(Nano_C $controller)
{
if ('control-panel' !== $controller->layout) {
return;
}
Nano::message()->load('control-panel');
Assets::style()->variable('images', WEB_URL . '/resources/images')->append(WEB_ROOT . '/resources/styles/960.css')->append(WEB_ROOT . '/resources/styles/reset.css')->append(WEB_ROOT . '/resources/styles/text.css')->append(WEB_ROOT . '/resources/styles/default.css')->append(WEB_ROOT . '/resources/styles/blue.css')->append(WEB_ROOT . '/resources/styles/smoothness-ui.css');
Assets::script()->append(WEB_ROOT . '/resources/scripts/jquery.min.js')->append(WEB_ROOT . '/resources/scripts/jquery.blend.js')->append(WEB_ROOT . '/resources/scripts/ui.core.js')->append(WEB_ROOT . '/resources/scripts/ui.sortable.js')->append(WEB_ROOT . '/resources/scripts/ui.dialog.js')->append(WEB_ROOT . '/resources/scripts/ui.datepicker.js')->append(WEB_ROOT . '/resources/scripts/effects.js')->append(WEB_ROOT . '/resources/scripts/cp.js');
}
示例3: loginAction
public function loginAction()
{
Nano::message()->load('control-panel');
$this->pageTitle = Nano::message()->m('cp-login');
Assets::style()->variable('images', WEB_URL . '/resources/images')->append(WEB_ROOT . '/resources/styles/960.css')->append(WEB_ROOT . '/resources/styles/reset.css')->append(WEB_ROOT . '/resources/styles/text.css')->append(WEB_ROOT . '/resources/styles/login.css');
}
示例4: isset
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php
echo Nano::message()->m('cp-title');
?>
: <?php
echo $pageTitle;
?>
</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
echo Assets::style()->import(), isset($head) ? $head : '';
?>
<script type="text/javascript">/*<![CDATA[*/ var email = function(s) { var r = function ( t, u, v ) { return String.fromCharCode(((t - u + v ) % (v * 2)) + u); }, b = [], c, i = s.length, a = "a".charCodeAt(), z = a + 26, A = "A".charCodeAt(), Z = A + 26; while (i--) { c = s.charCodeAt(i); if (c >= a && c < z) { b[i] = r(c, a, 13); } else if (c >= A && c < Z) { b[i] = r(c, A, 13); } else { b[i] = s.charAt(i); } }; return b.join(""); }; /*]]>*/</script>
</head>
<body>
<div class="container_16" id="wrapper">
<div class="grid_8" id="logo"><a href="/cp" style="color: #fff"><?php
echo Nano::message()->m('cp-title');
?>
</a></div>
<div class="grid_8">
<div id="user_tools"><span>Welcome <a href="#">Admin Username</a> | <a href="/logout">Logout</a></span></div>
</div>
<div class="grid_16" id="header">
<div id="menu">
<ul class="group" id="menu_group_main">
<li class="item first" id="one"><a href="/cp" class="main current"><span class="outer"><span class="inner dashboard">Dashboard</span></span></a></li>
<li class="item middle" id="two"><a href="/cp/content" class="main"><span class="outer"><span class="inner content">Content</span></span></a></li>