當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Theme::set方法代碼示例

本文整理匯總了PHP中Theme::set方法的典型用法代碼示例。如果您正苦於以下問題:PHP Theme::set方法的具體用法?PHP Theme::set怎麽用?PHP Theme::set使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Theme的用法示例。


在下文中一共展示了Theme::set方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _

 /**
  * @param string $theme
  * @param array $vars
  */
 public static function _($theme, $vars = array())
 {
     $instance = new Theme();
     foreach ($vars as $key => $value) {
         $instance->set($key, $value);
     }
     $instance->dispatch($theme);
 }
開發者ID:joksnet,項目名稱:php-old,代碼行數:12,代碼來源:Theme.php

示例2: handle

 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  \Closure  $next
  * @param  string  $themeName
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     if ($request->is('admin') || $request->is('admin/*')) {
         $theme_locale = 'backend/';
     } else {
         $theme_locale = 'frontend/';
     }
     $themeName = Session::get('themeName') != '' ? $theme_locale . Session::get('themeName') : \Theme::get();
     //if(Theme::exists($themeName)){
     \Theme::set($themeName);
     //}
     return $next($request);
 }
開發者ID:tigerx8,項目名稱:ltheme,代碼行數:21,代碼來源:setTheme.php

示例3: handle

 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $modules = Module::getOrdered();
     $this->info('Generate Key');
     $this->call('key:generate');
     $this->info('Migrations Basics');
     $this->call('migrate');
     $this->info('Executing Seeders');
     $this->call('db:seed');
     $this->info('Executing Migrations Modules');
     $this->call('module:migrate');
     $this->info('Executing Seeders Modules');
     foreach ($modules as $module) {
         $this->info("Executing Seed for module {$module->name}");
         $this->call('module:seed', ['module' => $module->name]);
     }
     $this->info('Activate theme: Default');
     \Theme::set('default');
     $this->info('Publish assets themes');
     $this->call('theme:publish');
 }
開發者ID:mrcoco,項目名稱:LMS-Laravel,代碼行數:26,代碼來源:InstallApp.php

示例4: ucwords

<?php

Theme::asset()->add('timeline', 'assets/css/components/timeline.css');
Theme::asset()->add('profile', 'assets/css/components/profile.css');
Theme::set('bodyClass', 'client profile');
?>

{!! Theme::partial('head') !!}
<style>
    .ui.post.feed > .event > .label + .content {
        margin: .2em 0 2em .75em;
    }

    .ui.feed .ui.pointing.dropdown > .menu:after {
        left: 25%;
    }
</style>
<div id="main-container" class="pusher">
    <div class="full height margin-bottom-30 padding-top-20">
        <div class="ui container  profile-container">
            <div class="ui top attached teal segment profile-header">
                <div class="ui grid">
                    <div class="three wide computer four wide tablet sixteen wide mobile column text-center">
                        <img src="/assets/img/avatar/d/150.png" alt="" class="rounded centered ui imageheader-avatar">
                    </div>
                    <div class="eight wide computer twelve wide tablet sixteen wide mobile column profile-info">
                        <div class="ui header ">{{ ucwords($client->name) }}</div>
                        <a href="#" class="right floated ui basic button">
                            <i class="edit icon"></i>
                            Edit
                        </a>
開發者ID:spetross,項目名稱:ugvoice,代碼行數:31,代碼來源:dashboard.blade.php

示例5: handle

 /**
  * @param $request
  * @param Closure $next
  * @param $themeName
  * @return mixed
  */
 public function handle($request, Closure $next, $themeName)
 {
     \Theme::set($themeName);
     return $next($request);
 }
開發者ID:shopvel,項目名稱:shopvel,代碼行數:11,代碼來源:ThemeMiddleware.php

示例6:

<?php 
Theme::asset()->add('timeline', 'assets/css/components/timeline.css');
Theme::asset()->add('profile', 'assets/css/components/profile.css');
Theme::set('bodyClass', 'client');
?>

{!! Theme::partial('head') !!}
<div id="main-container" class="pusher">
    <div class="full height margin-bottom-30 padding-top-20">
        <div class="ui vertical segment">
            <div class="ui text container">
                <div class="ui header">
                    <img src="/assets/img/savethechildren.jpg">

                    <div class="content">{{ $client->name }}</div>
                </div>
            </div>
        </div>
        <div class="ui stackable column text container grid margin-top-10">
            <div class="five wide side column">
                {!! Theme::partial('client.sidebar') !!}
            </div>
            <div class="eleven wide main column">
                {!! Theme::content() !!}
            </div>
        </div>
    </div>
</div>

{!! Theme::partial('footer') !!}
開發者ID:spetross,項目名稱:ugvoice,代碼行數:30,代碼來源:admin.blade.php


注:本文中的Theme::set方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。