当前位置: 首页>>代码示例>>PHP>>正文


PHP Assets::script方法代码示例

本文整理汇总了PHP中Assets::script方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::script方法的具体用法?PHP Assets::script怎么用?PHP Assets::script使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Assets的用法示例。


在下文中一共展示了Assets::script方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: script

 /**
  * @return Assets_Scripts
  */
 public static function script()
 {
     if (null === self::$script) {
         self::$script = new Assets_Scripts();
         self::$script->setOutput(Nano::config('assets')->path);
     }
     return self::$script;
 }
开发者ID:studio-v,项目名称:nano,代码行数:11,代码来源:Assets.php

示例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');
 }
开发者ID:studio-v,项目名称:nano,代码行数:13,代码来源:ControlPanelAssets.php

示例3: test_script_should_respect_url_parameters

 function test_script_should_respect_url_parameters()
 {
     $expected = '<script ' . 'src="' . STATIC_ASSETS_URL . 'javascripts/scriptaculous.js?load=effects,dragdrop">' . '</script>' . "\n";
     $this->assertEquals($expected, Assets::script('scriptaculous.js?load=effects,dragdrop'));
 }
开发者ID:ratbird,项目名称:hope,代码行数:5,代码来源:AssetsClassTest.php

示例4:

<div class="grid_16"><div id="tabs"><div class="container"><ul><?php 
    echo Nano_Render::script($controller, '_tabs', $variables, false);
    ?>
</ul></div></div></div><?php 
}
?>
		<div class="grid_16" id="content">
			<div class="grid_9"><h1 class="<?php 
echo $pageClass;
?>
"><?php 
echo $pageTitle;
?>
</h1></div>
			<div class="clear"></div>
			<?php 
echo $content;
?>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
	</div>
	<div class="container_16" id="footer">
		<div class="grid_8" style="text-align: left;">&copy; studio-v</div>
		<div class="grid_8" style="text-align: right;">Website Administration Share by <a href="http://nicetheme.net/">Nice Theme</a></div>
	</div>
	<?php 
echo Assets::script()->import(), $helper->scripts()->captured();
?>
</body>
</html>
开发者ID:studio-v,项目名称:nano,代码行数:31,代码来源:control-panel.php


注:本文中的Assets::script方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。