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


PHP View::withAppLocale方法代碼示例

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


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

示例1: compose

 /**
  * Index page view composer.
  *
  * @param \Illuminate\Contracts\View\View $view
  *
  * @return void
  */
 public function compose(View $view)
 {
     $view->withAboutApp(Markdown::convertToHtml(Config::get('setting.app_about')));
     $view->withAppAnalytics(Config::get('setting.app_analytics'));
     $view->withAppAnalyticsGoSquared(Config::get('setting.app_analytics_go_squared'));
     $view->withAppAnalyticsPiwikUrl(Config::get('setting.app_analytics_piwik_url'));
     $view->withAppAnalyticsPiwikSiteId(Config::get('setting.app_analytics_piwik_site_id'));
     $view->withAppBanner(Config::get('setting.app_banner'));
     $view->withAppBannerStyleFullWidth(Config::get('setting.style_fullwidth_header'));
     $view->withAppBannerType(Config::get('setting.app_banner_type'));
     $view->withAppDomain(Config::get('setting.app_domain'));
     $view->withAppGraphs(Config::get('setting.display_graphs'));
     $view->withAppLocale(Config::get('setting.app_locale'));
     $view->withAppStylesheet(Config::get('setting.stylesheet'));
     $view->withAppUrl(Config::get('app.url'));
     $view->withAppHeader(Config::get('setting.header'));
     $view->withAppFooter(Config::get('setting.footer'));
     $view->withAppName($name = Config::get('setting.app_name'));
     $view->withShowSupport($support = Config::get('setting.show_support'));
     if ($support) {
         $view->withSiteTitle(Config::get('setting.app_name') . ' | Cachet');
     } else {
         $view->withSiteTitle(Config::get('setting.app_name'));
     }
 }
開發者ID:uwm-appbrewery,項目名稱:Cachet,代碼行數:32,代碼來源:AppComposer.php

示例2: compose

 /**
  * Index page view composer.
  *
  * @param \Illuminate\Contracts\View\View $view
  *
  * @return void
  */
 public function compose(View $view)
 {
     $view->withAboutApp(Markdown::convertToHtml($this->config->get('setting.app_about')));
     $view->withAppAnalytics($this->config->get('setting.app_analytics'));
     $view->withAppAnalyticsGoSquared($this->config->get('setting.app_analytics_gs'));
     $view->withAppAnalyticsPiwikUrl($this->config->get('setting.app_analytics_piwik_url'));
     $view->withAppAnalyticsPiwikSiteId($this->config->get('setting.app_analytics_piwik_site_id'));
     $view->withAppBanner($this->config->get('setting.app_banner'));
     $view->withAppBannerStyleFullWidth($this->config->get('setting.style_fullwidth_header'));
     $view->withAppBannerType($this->config->get('setting.app_banner_type'));
     $view->withAppDomain($this->config->get('setting.app_domain'));
     $view->withAppGraphs($this->config->get('setting.display_graphs'));
     $view->withAppLocale($this->config->get('setting.app_locale'));
     $view->withAppStylesheet($this->config->get('setting.stylesheet'));
     $view->withAppUrl($this->config->get('app.url'));
     $view->withAppHeader($this->config->get('setting.header'));
     $view->withAppFooter($this->config->get('setting.footer'));
     $view->withAppName($this->config->get('setting.app_name'));
     $view->withShowSupport($this->config->get('setting.show_support'));
     $view->withAutomaticLocalization($this->config->get('setting.automatic_localization'));
     $view->withEnableExternalDependencies($this->config->get('setting.enable_external_dependencies'));
     $view->withShowTimezone($this->config->get('setting.show_timezone'));
     $view->withTimezone($this->dates->getTimezone());
     $view->withSiteTitle($this->config->get('setting.app_name'));
     $view->withFontSubset($this->config->get('langs.' . $this->config->get('app.locale') . '.subset', 'latin'));
 }
開發者ID:aksalj,項目名稱:Cachet,代碼行數:33,代碼來源:AppComposer.php

示例3: compose

 /**
  * Index page view composer.
  *
  * @param \Illuminate\Contracts\View\View $view
  *
  * @return void
  */
 public function compose(View $view)
 {
     $view->withAppBanner(Setting::get('app_banner'));
     $view->withAppBannerStyleFullWidth(Setting::get('style_fullwidth_header'));
     $view->withAppBannerType(Setting::get('app_banner_type'));
     $view->withAppDomain(Setting::get('app_domain'));
     $view->withGitClientPath(Setting::get('git_client_path'));
     $view->withGitRepositoriesPath(Setting::get('git_repositories_path'));
     $view->withAppLocale(Setting::get('app_locale'));
     $view->withAppName(Setting::get('app_name'));
     $view->withAppStylesheet(Setting::get('app_stylesheet'));
     $view->withAppUrl(Config::get('app.url'));
 }
開發者ID:xiuchanghu,項目名稱:Gitamin,代碼行數:20,代碼來源:AppComposer.php

示例4: compose

 /**
  * Index page view composer.
  *
  * @param \Illuminate\Contracts\View\View $view
  *
  * @return void
  */
 public function compose(View $view)
 {
     $view->withAboutApp(Markdown::convertToHtml(Setting::get('app_about')));
     $view->withAppAnalytics(Setting::get('app_analytics'));
     $view->withAppAnalyticsGoSquared(Setting::get('app_analytics_gs'));
     $view->withAppAnalyticsPiwikUrl(Setting::get('app_analytics_piwik_url'));
     $view->withAppAnalyticsPiwikSiteId(Setting::get('app_analytics_piwik_siteid'));
     $view->withAppBanner(Setting::get('app_banner'));
     $view->withAppBannerStyleFullWidth(Setting::get('style_fullwidth_header'));
     $view->withAppBannerType(Setting::get('app_banner_type'));
     $view->withAppDomain(Setting::get('app_domain'));
     $view->withAppGraphs(Setting::get('display_graphs'));
     $view->withAppLocale(Setting::get('app_locale'));
     $view->withAppName(Setting::get('app_name'));
     $view->withAppStylesheet(Setting::get('app_stylesheet'));
     $view->withAppUrl(Config::get('app.url'));
     $view->withShowSupport(Setting::get('show_support'));
 }
開發者ID:guduchango,項目名稱:Cachet,代碼行數:25,代碼來源:AppComposer.php


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