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


PHP Asset::add方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     Config::set('auth.driver', 'adminauth');
     Asset::add('bootstrap', 'bundles/adminify/css/bootstrap.min.css');
     Asset::add('style', 'bundles/adminify/css/style.css');
 }
开发者ID:SerdarSanri,项目名称:Adminify,代码行数:7,代码来源:loginbase.php

示例2: __construct

 public function __construct()
 {
     // Asset::add('jquery.dropdown.css', 'css/jquery.dropdown.css');
     Asset::add('bootstrap', 'css/bootstrap.min.css');
     Asset::add('bootstrap-responsive', 'css/bootstrap-responsive.css');
     Asset::add('common', 'css/common.css');
     // Asset::add('style', 'css/style.css');
     Asset::add('fontawsome', 'css/fontawesome.css');
     Asset::add('flickcss', 'css/flick/jquery-ui-1.10.2.custom.css');
     Asset::add('jquery', 'js/jquery-1.9.1.js');
     Asset::add('jquery-migrate-1.1.1.js', 'js/jquery-migrate-1.1.1.js');
     Asset::add('bootstrap-js', 'js/bootstrap.js');
     Asset::add('jqueryui', 'js/jquery-ui-1.10.2.custom.min.js');
     Asset::add('jquery.tablesorter.js', 'js/jquery.tablesorter.js');
     Asset::add('jquery.tablesorter.pager.js', 'js/jquery.tablesorter.pager.js');
     // $files = glob("public/css/pikachoose/*.css", GLOB_BRACE);
     // foreach($files as $file)
     // {
     // 	Asset::add($file, substr($file, 7));
     // }
     if (Session::has('id') && Auth::check()) {
         $account = Account::find(Session::get('id'));
         if ($account->admin == 1) {
             Session::put('admin', '1');
         } else {
             Session::put('admin', '0');
         }
         if ($account->blocked == 1) {
             Session::put('alert', "Your account has been banned. Please contact the admin for more details");
             Session::forget('id');
             Auth::logout();
         } else {
         }
     }
 }
开发者ID:angmark0309,项目名称:remarket,代码行数:35,代码来源:base.php

示例3: __construct

 public function __construct()
 {
     /* Set the Language Based on Agent Browser */
     $languages = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
     $lang = substr($languages[0], 0, 2);
     App::setLocale($lang);
     /* Load Assets */
     Asset::add('bootstraptheme', 'assets/css/bootstrap-spacelab.css');
     Asset::add('bootstrapresponsive', 'assets/css/bootstrap-responsive.css');
     Asset::add('charisma', 'assets/css/charisma-app.css');
     Asset::add('uniform', 'assets/css/uniform.default.css');
     Asset::add('elfinder', 'assets/css/elfinder.min.css');
     Asset::add('opaicons', 'assets/css/opa-icons.css');
     Asset::add('famfam', 'assets/css/famfam.css');
     Asset::add('jqueryloadermin', 'assets/css/jquery.loader-min.css');
     Asset::add('reportula', 'assets/css/reportula.css');
     Asset::add('jquery', 'assets/js/jquery-2.0.3.min.js');
     Asset::add('datatables', 'assets/js/jquery.dataTables.min.js', 'jquery');
     Asset::add('jqueryloader', 'assets/js/jquery.loader-min.js', 'jquery');
     Asset::add('main', 'assets/js/main.js', 'TableTools');
     Asset::add('modal', 'assets/js/bootstrap-modal.js', 'jquery');
     /* Get Monolog instance from Laravel */
     $monolog = Log::getMonolog();
     /* Add the FirePHP handler */
     $monolog->pushHandler(new \Monolog\Handler\FirePHPHandler());
     /* Resolve Database Names Myslq and Postgres */
     if (Config::get('database.default') == 'mysql') {
         $this->tables = array('job' => 'Job', 'client' => 'Client', 'files' => 'Files', 'media' => 'Media', 'pool' => 'Pool', 'path' => 'Path', 'filename' => 'Filename', 'file' => 'File', 'jobfiles' => 'JobFiles', 'jobmedia' => 'JobMedia');
     } else {
         $this->tables = array('job' => 'job', 'client' => 'client', 'files' => 'files', 'media' => 'media', 'pool' => 'pool', 'path' => 'path', 'filename' => 'filename', 'file' => 'file', 'jobfiles' => 'jobfiles', 'jobmedia' => 'jobmedia');
     }
 }
开发者ID:erpio,项目名称:Reportula,代码行数:32,代码来源:BaseController.php

示例4: get_edit

 /**
  * Edit an issue
  *
  * @return View
  */
 public function get_edit($tag_id)
 {
     Asset::add('spectrum-js', '/app/assets/js/spectrum.js', array('jquery'));
     Asset::add('spectrum-css', '/app/assets/css/spectrum.css');
     $tag = Tag::find($tag_id);
     return $this->layout->with('active', 'dashboard')->nest('content', 'tags.edit', array('tag' => $tag));
 }
开发者ID:eliasyanni,项目名称:bugs,代码行数:12,代码来源:tags.php

示例5: __construct

 public function __construct()
 {
     // add styles
     Asset::add('vendor-style', 'css/vendor.min.css', array(), '1.0', 'screen');
     Asset::add('eenvoud-style', 'css/style.min.css', array(), '1.0', 'screen');
     // // add scripts in footer
     Asset::add('vendor-scripts', 'js/vendor.min.js', ['jquery'], '1.0', false);
     Asset::add('eenvoud-scripts', 'js/scripts.min.js', ['jquery'], '1.0', false);
 }
开发者ID:strikles,项目名称:php,代码行数:9,代码来源:ReportingController.php

示例6: __construct

 public function __construct()
 {
     //Assets
     Asset::add('jquery', 'js/jquery-1.7.2.min.js');
     Asset::add('bootstrap-js', 'js/bootstrap.min.js');
     Asset::add('bootstrap-css', 'css/bootstrap.min.css');
     Asset::add('bootstrap-css-responsive', 'css/bootstrap-responsive.min.css', 'bootstrap-css');
     Asset::add('style', 'css/style.css');
     parent::__construct();
 }
开发者ID:reeceballano,项目名称:Mayaten-Blog,代码行数:10,代码来源:base.php

示例7: __construct

 public function __construct()
 {
     // POST and PUT methods should always have CSRF tokens
     $this->filter('before', 'csrf')->on(array('post', 'put'));
     // assets
     Asset::container('footer')->add('dojo', 'https://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/dojo.js', array(), array('data-dojo-config' => 'async: true'));
     Asset::container('footer')->add('application-js', 'js/application.js');
     Asset::add('bootstrap-css', 'css/bootstrap.min.css');
     Asset::add('style', 'css/style.css');
     parent::__construct();
 }
开发者ID:netcon-source,项目名称:clementia,代码行数:11,代码来源:base.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->writeable_files[] = 'application' . DS . 'config' . DS . 'application.php';
     $this->writeable_files[] = 'application' . DS . 'config' . DS . 'database.php';
     $this->writeable_directories[] = basename(path('public')) . DS . 'bundles';
     $this->writeable_directories[] = basename(path('public')) . DS . 'themes';
     Asset::add('jquery', 'js/jquery.js')->bundle('install');
     Asset::add('installer', 'js/installer.js')->bundle('install');
     $this->layout->title = 'Sagui - Myopengrid Web Interface Installer';
 }
开发者ID:juaniiie,项目名称:mwi,代码行数:11,代码来源:install.php

示例9: __construct

 public function __construct()
 {
     Asset::add('style', 'css/style.css');
     Asset::add('glyphicons', 'css/glyphicons.css');
     Asset::add('jqueryui', 'css/jquery-ui.min.css');
     Asset::add('jqueryui_structure', 'css/jquery-ui.structure.min.css');
     Asset::add('jqueryui_theme', 'css/jquery-ui.theme.min.css');
     Asset::add('jquery', 'js/jquery.min.js');
     Asset::add('jquery_ui', 'js/jquery-ui.min.js');
     Asset::add('jshelper', 'js/jshelper.js');
     parent::__construct();
 }
开发者ID:kit9,项目名称:agenda,代码行数:12,代码来源:base.php

示例10: getRules

 public function getRules()
 {
     // layouts variables
     $this->layout->title = 'Правила | Нещо Шантаво';
     $this->layout->canonical = 'https://neshto.shantavo.com/rules';
     $this->layout->robots = 'index,follow,noodp,noydir';
     $this->layout->description = 'Това са правилата на сайта';
     $this->layout->keywords = 'начало, нещо шантаво, team navy pier, правила';
     Asset::add('css/Login.css');
     // nesting the view into the layout
     $this->layout->nest('content', 'home.rules');
 }
开发者ID:straho99,项目名称:NeshtoShantavo,代码行数:12,代码来源:HomeController.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     Config::set('auth.driver', 'adminauth');
     Asset::add('bootstrap', 'bundles/adminify/css/bootstrap.min.css');
     Asset::add('style', 'bundles/adminify/css/style.css');
     Asset::add('jquery', 'http://code.jquery.com/jquery-latest.min.js');
     Asset::add('bootstrapjs', 'bundles/adminify/js/bootstrap.min.js');
     $this->layout->name = Config::get('adminify::settings.name');
     $this->layout->models = Adminify\Libraries\Helpers::getModels();
     $this->filter('before', 'auth');
 }
开发者ID:SerdarSanri,项目名称:Adminify,代码行数:12,代码来源:base.php

示例12: get_edit

 /**
  * Edit a issue
  *
  * @return View
  */
 public function get_edit()
 {
     Asset::add('tag-it-js', '/app/assets/js/tag-it.min.js', array('jquery', 'jquery-ui'));
     Asset::add('tag-it-css-base', '/app/assets/css/jquery.tagit.css');
     Asset::add('tag-it-css-zendesk', '/app/assets/css/tagit.ui-zendesk.css');
     /* Get tags as string */
     $issue_tags = '';
     foreach (Project\Issue::current()->tags as $tag) {
         $issue_tags .= (!empty($issue_tags) ? ',' : '') . $tag->tag;
     }
     return $this->layout->nest('content', 'project.issue.edit', array('issue' => Project\Issue::current(), 'issue_tags' => $issue_tags, 'project' => Project::current()));
 }
开发者ID:eliasyanni,项目名称:bugs,代码行数:17,代码来源:issue.php

示例13: getLogin

 public function getLogin()
 {
     if (!Auth::guest()) {
         return Redirect::secure('/');
     }
     // layouts variables
     $this->layout->title = 'Вход | Нещо Шантаво';
     $this->layout->canonical = 'https://neshto.shantavo.com/login';
     $this->layout->robots = 'noindex,nofollow,noodp,noydir';
     $this->layout->description = 'Това е логин форма';
     Asset::add('css/Login.css');
     // nesting the view into the layout
     $this->layout->nest('content', 'user.login');
 }
开发者ID:straho99,项目名称:NeshtoShantavo,代码行数:14,代码来源:UserController.php

示例14: getView

 public function getView($id)
 {
     $picture = Picture::where('id', '=', $id)->first();
     // layouts variables
     $this->layout->title = $picture->title . ' | Нещо Шантаво';
     $this->layout->canonical = 'https://neshto.shantavo.com/picture/' . $id;
     $this->layout->robots = 'index,follow,noodp,noydir';
     $this->layout->description = 'Шантава картинка, която ще разведри твоето настроение.';
     $this->layout->keywords = 'начало, нещо шантаво, team navy pier';
     // scripts for this view
     Asset::add('https://ws.sharethis.com/button/buttons.js');
     Asset::addScript('var disqus_config=function(){this.language="bg";};', 'footer');
     Asset::add('js/disqus.js');
     // nesting the view into the layout
     $this->layout->nest('content', 'picture.view', array('picture' => $picture));
 }
开发者ID:straho99,项目名称:NeshtoShantavo,代码行数:16,代码来源:PictureController.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     define('SOLDER_STREAM', 'DEV');
     define('SOLDER_VERSION', '0.6');
     Asset::add('jquery', 'js/jquery-1.10.2.js');
     Asset::add('bootstrap-js', 'js/bootstrap.min.js');
     Asset::add('bootstrap-css', 'css/bootstrap.min.css');
     Asset::add('font-awesome-css', 'font-awesome/css/font-awesome.css');
     Asset::add('sb-admin', 'css/sb-admin.css');
     Asset::add('metis-menu', 'js/plugins/metisMenu/jquery.metisMenu.js');
     Asset::add('sb-admin-js', 'js/sb-admin.js');
     Asset::add('datatables', 'js/plugins/dataTables/jquery.dataTables.js');
     Asset::add('datatables-bs', 'js/plugins/dataTables/dataTables.bootstrap.js');
     Asset::add('datatables-css', 'css/dataTables.bootstrap.css');
     Asset::add('slugify', 'js/jquery.slugify.js');
 }
开发者ID:kreezxil,项目名称:TechnicSolder,代码行数:17,代码来源:base.php


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