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


PHP Assets::get方法代码示例

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


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

示例1: render

 public function render()
 {
     $asset = Assets::get();
     $this->addData(['css' => $asset->Css(), 'js' => $asset->Js(), 'internalCss' => $asset->InternalCss(), 'jsReady' => $asset->OnLoadJs()]);
     $tpl = Template::get()->loadTemplate($this->template);
     return $tpl->render($this->data);
 }
开发者ID:balucio,项目名称:smac,代码行数:7,代码来源:main.php

示例2: __construct

    public function __construct($model)
    {
        parent::__construct($model, self::TPL);
        Assets::get()->addJs(['/js/parsley.js', '/js/parsley-i18n/it.js', '/js/bootstrap-timepicker.js', '/js/confirm-delete.js', '/js/sensor-settings.js']);
        Assets::get()->addCss(['/css/sensor-settings.css']);
        Assets::get()->addOnReadyJs('
			$(function () {
				$(\'[data-toggle="tooltip"]\').tooltip({trigger : "click", container : "body"});
			})
		');
    }
开发者ID:balucio,项目名称:smac,代码行数:11,代码来源:sensorsettings.php

示例3: __construct

    public function __construct($model)
    {
        parent::__construct($model);
        $asset = Assets::get();
        $asset->addJs('/js/rainbow.js');
        $asset->addJs('/js/statosistema.js');
        $asset->addInternalCss('
			.btn-group.pull-right {margin-top: -0.2em;}
			.status { text-shadow: 1px 1px 1px black; }
			.status.on { color: red; }
			.status.off { color: lightseagreen; }
			.status.undefined { color : red; }
		');
    }
开发者ID:balucio,项目名称:smac,代码行数:14,代码来源:statosistema.php

示例4: __construct

 public function __construct($model)
 {
     parent::__construct($model, self::TPL);
     Assets::get()->addJs(['/js/highcharts.js', '/js/highcharts-i18n/it_IT.js']);
 }
开发者ID:balucio,项目名称:smac,代码行数:5,代码来源:situazione.php

示例5: assets_body

 /**
  * Get the assets for <body> (shortly before </body>).
  * @return array
  */
 public function assets_body()
 {
     return $this->_assets->get('body');
 }
开发者ID:modulargaming,项目名称:core,代码行数:8,代码来源:View.php

示例6: assets_get

 /**
  * Retrieve URL of asset path
  *
  * @author Casper Rasmussen <cr@nodes.dk>
  *
  * @param                                 $path
  * @param \Nodes\Assets\Url\Settings|null $settings
  * @return string $url
  */
 function assets_get($path, \Nodes\Assets\Url\Settings $settings = null)
 {
     return \Assets::get($path, $settings);
 }
开发者ID:Casperhr,项目名称:assets,代码行数:13,代码来源:URL.php

示例7: __construct

 public function __construct($model)
 {
     parent::__construct($model);
     Assets::get()->addJs('/js/situazione.js');
 }
开发者ID:balucio,项目名称:smac,代码行数:5,代码来源:statosensori.php

示例8: __construct

 public function __construct($model)
 {
     parent::__construct($model, self::TPL);
     Assets::get()->addJs([]);
 }
开发者ID:balucio,项目名称:smac,代码行数:5,代码来源:statistiche.php

示例9: __construct

 public function __construct($model)
 {
     parent::__construct($model, self::TPL);
     Assets::get()->addJs(['/js/parsley.js', '/js/parsley-i18n/it.js', '/js/bootstrap-timepicker.js', '/js/confirm-delete.js', '/js/program-settings.js']);
     Assets::get()->addCss(['/css/bootstrap-timepicker.css', '/css/program-settings.css']);
 }
开发者ID:balucio,项目名称:smac,代码行数:6,代码来源:programsettings.php


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