當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。