示例#1
0
文件: Assets.php 项目: studio-v/nano
 /**
  * @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
0
 /**
  * @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
0
 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
0
<!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>