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


PHP Asset::container方法代码示例

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


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

示例1: get_edit

 public function get_edit($id)
 {
     //SORTING
     Asset::container('footer')->add('sortable', 'bundles/cms/js/jquery.sortable.js', 'jquery');
     Asset::container('footer')->add('serialize', 'bundles/cms/js/jquery.serializetree.js', 'sortable');
     //LOAD FANCYBOX LIBS
     Asset::container('header')->add('fancyboxcss', 'bundles/cms/css/fancybox.css', 'main');
     Asset::container('footer')->add('fancybox', 'bundles/cms/js/jquery.fancybox.js', 'jquery');
     //DATETIME PICKER
     Asset::container('header')->add('jqueryuicss', 'bundles/cms/css/jquery.ui.css', 'main');
     if (LANG !== 'en') {
         Asset::container('footer')->add('local', 'bundles/cms/js/i18n/jquery.ui.datepicker-' . LANG . '.js', 'jquery');
     }
     Asset::container('footer')->add('datepicker', 'bundles/cms/js/jquery.datepicker.js', 'local');
     //LOAD JS LIBS
     Asset::container('footer')->add('form', 'bundles/cms/js/jquery.form.js', 'jquery');
     Asset::container('footer')->add('banner', 'bundles/cms/js/sections/banner_edit.js', 'cms');
     $this->layout->header_data = array('title' => LL('cms::title.banner_edit', CMSLANG));
     $this->layout->top_data = array('search' => false);
     //GET BANNER DATA
     $banner = CmsBanner::with(array('files'))->find($id);
     //GET FILE DATA
     $files = CmsFile::where_is_image(1)->where_is_valid(1)->order_by('name', 'asc')->order_by('id', 'asc')->paginate(Config::get('cms::settings.pag'));
     $this->layout->content = View::make('cms::interface.pages.banner_new_edit')->with('title', LL('cms::title.banner_edit', CMSLANG))->with('banner_id', $id)->with('banner_lang', $banner->lang)->with('banner_name', $banner->name)->with('files', $files)->with('files_select', $banner->files);
 }
开发者ID:SerdarSanri,项目名称:PongoCMS-Laravel-cms-bundle,代码行数:25,代码来源:banner.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     Config::set('auth.driver', 'adminauth');
     Asset::container('header')->bundle('admin');
     Asset::container('header')->add('bootstrap', 'css/bootstrap.min.css');
 }
开发者ID:farhan4648gul,项目名称:developer-side,代码行数:7,代码来源:login.php

示例3: get_edit

 public function get_edit($id)
 {
     //SORTING
     Asset::container('footer')->add('sortable', 'bundles/cms/js/jquery.sortable.js', 'jquery');
     Asset::container('footer')->add('serialize', 'bundles/cms/js/jquery.serializetree.js', 'sortable');
     //LOAD JS LIBS
     Asset::container('footer')->add('form', 'bundles/cms/js/jquery.form.js', 'jquery');
     Asset::container('footer')->add('files', 'bundles/cms/js/sections/menus_edit.js', 'cms');
     $this->layout->header_data = array('title' => LL('cms::title.menu_edit', CMSLANG));
     $this->layout->top_data = array('search' => false);
     //GET MENU DATA
     $menu = CmsMenu::find($id);
     //GET PAGE DATA
     $data = CmsPage::with(array('menus'))->where_lang($menu->lang)->where_parent_id(0)->order_by('lang', 'asc')->order_by('is_home', 'desc')->order_by('order_id', 'asc')->get();
     $new_data = array();
     foreach ($data as $obj) {
         $new_data[$obj->id] = $obj;
         $recursive = call_user_func_array('CmsPage::recursive_menuspages', array($obj->id));
         $new_data = $new_data + $recursive;
     }
     if (empty($new_data)) {
         $new_data = array();
     }
     //GET PAGES IN MENU
     $pages = CmsMenu::find($id)->pages;
     $this->layout->content = View::make('cms::interface.pages.menu_new_edit')->with('title', LL('cms::title.menu_edit', CMSLANG))->with('menu_id', $id)->with('menu_name', $menu->name)->with('menu_lang', $menu->lang)->with('menu_is_nested', (bool) $menu->is_nested)->with('menu_parent_start', CmsPage::select_top_slug($menu->lang, 0, true))->with('menu_parent_start_selected', $menu->parent_start)->with('pages', $pages)->with('menu_pages', $new_data);
 }
开发者ID:SerdarSanri,项目名称:PongoCMS-Laravel-cms-bundle,代码行数:27,代码来源:menu.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     Config::set('auth.driver', 'dojoauth');
     Asset::container('header')->bundle('dojo');
     Asset::container('header')->add('bootstrap', 'css/bootstrap.min.css');
     //Asset::container('header')->add('bootstrap','css/bootstrap-responsive.min.css');
     Asset::container('header')->add('login', 'css/login.css');
 }
开发者ID:SerdarSanri,项目名称:Dojo,代码行数:9,代码来源:login.php

示例5: __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

示例6: get_edit

 public function get_edit($id)
 {
     //LOAD JS LIBS
     Asset::container('footer')->add('form', 'bundles/cms/js/jquery.form.js', 'jquery');
     Asset::container('footer')->add('users', 'bundles/cms/js/sections/users_edit.js', 'cms');
     $this->layout->header_data = array('title' => LL('cms::title.users_edit', CMSLANG));
     $this->layout->top_data = array('search' => false);
     //GET PAGE DATA
     $user = CmsUser::find($id);
     $this->layout->content = View::make('cms::interface.pages.user_new_edit')->with('title', LL('cms::title.users_edit', CMSLANG))->with('user_id', $id)->with('user_username', $user->username)->with('user_email', $user->email)->with('user_role', CmsRole::select_user_roles())->with('user_role_selected', $user->role_id)->with('user_lang', Config::get('cms::settings.interface'))->with('user_lang_selected', $user->lang)->with('user_is_valid', (bool) $user->is_valid);
 }
开发者ID:BGCX262,项目名称:zweer-laravel-svn-to-git,代码行数:11,代码来源:user.php

示例7: get_edit

 public function get_edit($id)
 {
     //LOAD JS LIBS
     Asset::container('footer')->add('form', 'bundles/cms/js/jquery.form.js', 'jquery');
     Asset::container('footer')->add('users', 'bundles/cms/js/sections/users_edit.js', 'cms');
     $this->layout->header_data = array('title' => LL('cms::title.users_edit', CMSLANG));
     $this->layout->top_data = array('search' => false);
     //GET PAGE DATA
     $user = CmsUser::find($id);
     $has_details = !is_null($user->details);
     $this->layout->content = View::make('cms::interface.pages.user_new_edit')->with('title', LL('cms::title.users_edit', CMSLANG))->with('user_id', $id)->with('user_username', $user->username)->with('user_email', $user->email)->with('user_role', CmsRole::select_user_roles())->with('user_role_selected', $user->role_id)->with('user_lang', Config::get('cms::settings.interface'))->with('user_lang_selected', $user->lang)->with('user_editor', Config::get('cms::settings.editor'))->with('user_editor_selected', $user->editor)->with('user_is_valid', (bool) $user->is_valid)->with('detail_id', $has_details ? $user->details->id : '')->with('user_name', $has_details ? $user->details->name : '')->with('user_surname', $has_details ? $user->details->surname : '')->with('user_address', $has_details ? $user->details->address : '')->with('user_info', $has_details ? $user->details->info : '')->with('user_number', $has_details ? $user->details->number : '')->with('user_city', $has_details ? $user->details->city : '')->with('user_zip', $has_details ? $user->details->zip : '')->with('user_state', $has_details ? $user->details->state : '')->with('user_country', $has_details ? $user->details->country : '')->with('user_tel', $has_details ? $user->details->tel : '')->with('user_cel', $has_details ? $user->details->cel : '');
 }
开发者ID:SerdarSanri,项目名称:PongoCMS-Laravel-cms-bundle,代码行数:12,代码来源:user.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     // Bootstrap CSS Framework
     Asset::container('header')->bundle('flyswatter');
     Asset::container('header')->add('bootstrap', 'css/bootstrap.min.css');
     Asset::container('header')->add('bootstrap-responsive', 'css/bootstrap-responsive.min.css');
     Asset::container('header')->add('flyswatter', 'css/flyswatter.css');
     // jQuery & Bootstrap JS Frameworks
     Asset::container('footer')->bundle('flyswatter');
     Asset::container('footer')->add('jquery', 'http://code.jquery.com/jquery-latest.min.js');
     Asset::container('footer')->add('bootstrapjs', 'js/bootstrap.min.js');
 }
开发者ID:SerdarSanri,项目名称:flyswatter,代码行数:13,代码来源:base.php

示例9: get_edit

 public function get_edit($id)
 {
     //SORTING
     Asset::container('footer')->add('sortable', 'bundles/cms/js/jquery.sortable.js', 'jquery');
     Asset::container('footer')->add('serialize', 'bundles/cms/js/jquery.serializetree.js', 'sortable');
     //LOAD JS LIBS
     Asset::container('footer')->add('form', 'bundles/cms/js/jquery.form.js', 'jquery');
     Asset::container('footer')->add('files', 'bundles/cms/js/sections/download_edit.js', 'cms');
     $this->layout->header_data = array('title' => LL('cms::title.download_edit', CMSLANG));
     $this->layout->top_data = array('search' => false);
     //GET DOWNLOAD DATA
     $download = CmsDownload::with(array('files'))->find($id);
     $this->layout->content = View::make('cms::interface.pages.download_new_edit')->with('title', LL('cms::title.download_edit', CMSLANG))->with('download_id', $id)->with('download_name', $download->name)->with('files', $download->files);
 }
开发者ID:SerdarSanri,项目名称:PongoCMS-Laravel-cms-bundle,代码行数:14,代码来源:download.php

示例10: __construct

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

示例11: get_index

 public function get_index($lang_to = 'en')
 {
     //LOAD JS LIBS
     Asset::container('footer')->add('form', 'bundles/cms/js/jquery.form.js', 'jquery');
     Asset::container('footer')->add('translations', 'bundles/cms/js/sections/translations_list.js', 'cms');
     $this->layout->header_data = array('title' => LL('cms::title.translations', CMSLANG));
     $this->layout->top_data = array('search' => false);
     $langs = CmsPage::select_lang_translation();
     $my_lang = LANG;
     array_shift($langs);
     //GET DATA
     $data = CmsTranslation::where('lang_from', '=', $my_lang)->where('lang_to', '=', $lang_to)->order_by('word', 'asc')->get();
     $this->layout->content = View::make('cms::interface.pages.translation_list')->with('langs', $langs)->with('lang_from', $my_lang)->with('lang_to', $lang_to)->with('data', $data);
 }
开发者ID:SerdarSanri,项目名称:PongoCMS-Laravel-cms-bundle,代码行数:14,代码来源:translation.php

示例12: post_results

 public function post_results()
 {
     $rules = array('sample' => 'required|image');
     //Validate input
     $validation = Validator::make(Input::all(), $rules);
     if ($validation->fails()) {
         return Redirect::back()->with_errors($validation)->with_input();
     }
     $url = array();
     //save files if exists
     foreach (array('sample', 'control') as $image) {
         if (File::exists(Input::file($image . '.tmp_name'))) {
             $name = Input::file($image . '.name');
             $ext = strtolower(File::extension($name));
             $url[$image] = $this->upload_path . '/' . $image . "." . $ext;
             $url[$image] = $this->image_url . '/' . $image . "." . $ext;
             Input::upload($image, $this->upload_path, $image . "." . $ext);
         }
     }
     //end foreach
     //analyze images submitted
     $litmus = new Litmus($this->LITMUS_ACCOUNT, $this->LITMUS_TOKEN);
     if (isset($url['sample'])) {
         $litmus->set_sample_url($url['sample']);
     }
     if (isset($url['control'])) {
         $litmus->set_control_url($url['control']);
     }
     if (Input::has('scale_id')) {
         $litmus->set_scale_id(Input::get('scale_id'));
     }
     $response = $litmus->analyze();
     if ($response->status == 'error') {
         echo $response->message;
         exit;
     }
     //recursive function for outputting a heirarchial data tree
     $string = "<ul>" . Mockup\Util::recursiveTree($response) . "</ul>";
     $data = array();
     $data['title'] = "Image Analysis";
     $data['lead'] = "Response from Litmus API";
     $tabs = array(array('Swatch', '#swatch', 'active'), array('Code', '#code'));
     $data['tabs'] = View::make('mockup::partials.tabs')->with('tabs', $tabs)->render();
     $data['code'] = $string;
     $data['response'] = $response;
     Asset::container('scripts')->add('colorbox', 'bundles/mockup/assets/js/colorbox.js');
     return View::make('mockup::pages.result', $data);
 }
开发者ID:aaronbullard,项目名称:litmus,代码行数:48,代码来源:home.php

示例13: get_edit

 public function get_edit($id)
 {
     //SORTING
     Asset::container('footer')->add('sortable', 'bundles/cms/js/jquery.sortable.js', 'jquery');
     Asset::container('footer')->add('serialize', 'bundles/cms/js/jquery.serializetree.js', 'sortable');
     //LOAD JS LIBS
     Asset::container('footer')->add('form', 'bundles/cms/js/jquery.form.js', 'jquery');
     Asset::container('footer')->add('files', 'bundles/cms/js/sections/download_edit.js', 'cms');
     $this->layout->header_data = array('title' => LL('cms::title.download_edit', CMSLANG));
     $this->layout->top_data = array('search' => false);
     //GET DOWNLOAD DATA
     $download = CmsDownload::with(array('files'))->find($id);
     //GET FILE DATA
     $files = CmsFile::where_is_image(0)->where_is_valid(1)->order_by('name', 'asc')->order_by('id', 'asc')->paginate(Config::get('cms::settings.pag'));
     $this->layout->content = View::make('cms::interface.pages.download_new_edit')->with('title', LL('cms::title.download_edit', CMSLANG))->with('download_id', $id)->with('download_name', $download->name)->with('files', $files)->with('files_select', $download->files);
 }
开发者ID:BGCX262,项目名称:zweer-laravel-svn-to-git,代码行数:16,代码来源:download.php

示例14: get_index

 public function get_index()
 {
     $analytics = Config::get('cms::settings.analytics.profile_id');
     if (!empty($analytics)) {
         //LOAD JS LIBS
         Asset::container('footer')->add('flot', 'bundles/cms/js/jquery.flot.js', 'jquery');
         Asset::container('footer')->add('blog', 'bundles/cms/js/sections/dashboard_list.js', 'cms');
     }
     $this->layout->header_data = array('title' => 'Dashboard');
     $this->layout->top_data = array('search' => false);
     $files = CmsUtility::mediasize(0);
     $images = CmsUtility::mediasize(1);
     $thumbs = CmsUtility::pathsize(path('public'), Config::get('cms::settings.data') . 'img/thumb/');
     $cache = CmsUtility::pathsize(path('storage'), 'cache/');
     $total = $files + $images + $thumbs + $cache;
     $this->layout->content = View::make('cms::interface.pages.dashboard')->with('files', $files)->with('images', $images)->with('thumbs', $thumbs)->with('cache', $cache)->with('total', $total);
 }
开发者ID:SerdarSanri,项目名称:PongoCMS-Laravel-cms-bundle,代码行数:17,代码来源:dashboard.php

示例15: get_edit

 public function get_edit($id)
 {
     //SORTING
     Asset::container('footer')->add('sortable', 'bundles/cms/js/jquery.sortable.js', 'jquery');
     Asset::container('footer')->add('serialize', 'bundles/cms/js/jquery.serializetree.js', 'sortable');
     //LOAD FANCYBOX LIBS
     Asset::container('header')->add('fancyboxcss', 'bundles/cms/css/fancybox.css', 'main');
     Asset::container('footer')->add('fancybox', 'bundles/cms/js/jquery.fancybox.js', 'jquery');
     //LOAD JS LIBS
     Asset::container('footer')->add('form', 'bundles/cms/js/jquery.form.js', 'jquery');
     Asset::container('footer')->add('files', 'bundles/cms/js/sections/gallery_edit.js', 'cms');
     $this->layout->header_data = array('title' => LL('cms::title.gallery_edit', CMSLANG));
     $this->layout->top_data = array('search' => false);
     //GET GALLERY DATA
     $gallery = CmsGallery::with(array('files'))->find($id);
     $this->layout->content = View::make('cms::interface.pages.gallery_new_edit')->with('title', LL('cms::title.gallery_edit', CMSLANG))->with('gallery_id', $id)->with('gallery_name', $gallery->name)->with('gallery_thumb', $gallery->thumb)->with('gallery_thumbs', CmsGallery::select_thumb())->with('files', $gallery->files);
 }
开发者ID:SerdarSanri,项目名称:PongoCMS-Laravel-cms-bundle,代码行数:17,代码来源:gallery.php


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