当前位置: 首页>>代码示例>>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;未经允许,请勿转载。