本文整理汇总了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;
}
示例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: 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'));
}
示例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;">© 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>