<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\View; use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Session; use Illuminate\Support\Str; use Module\Vendor\Provider\SiteTemplate\SiteTemplateProvider; class ResponsiveView { public static function templateRoot() { goto Xj0O5; oE7Fi: return $Grm92; goto ooVmh; FKQU_: if ($reHGq && $reHGq->root()) { $Grm92 = $reHGq->root(); } else { $Grm92 = "theme.{$x4t3E}"; } goto oE7Fi; RKM97: static $Grm92 = null; goto zcHDD; ZHVvD: $MCi0I = Input::get('msSiteTemplate', null); goto c6CYx; zcHDD: if (null !== $Grm92) { return $Grm92; } goto s_ToL; c6CYx: if (!empty($MCi0I)) { $reHGq = SiteTemplateProvider::get($MCi0I); if (!empty($reHGq)) { Session::put('msSiteTemplate', $MCi0I); } } goto TJMBJ; s_ToL: static $x4t3E = 'default'; goto ZHVvD; Xj0O5: static $reHGq = null; goto RKM97; TJMBJ: if (empty($reHGq)) { $MCi0I = Session::get('msSiteTemplate', null); if (!empty($MCi0I)) { $reHGq = SiteTemplateProvider::get($MCi0I); if (empty($reHGq)) { Session::forget('msSiteTemplate'); } } } goto yD3hq; yD3hq: if (empty($reHGq)) { $x4t3E = modstart_config()->getWithEnv('siteTemplate', 'default'); $reHGq = SiteTemplateProvider::get($x4t3E); } goto FKQU_; ooVmh: } public static function templateRootRealpath($tUxPr) { goto EvqON; c7iqv: if (Str::startsWith($Av85E, 'module::')) { $Av85E = str_replace(array('::', '.'), '/', $Av85E); $Av85E = base_path($Av85E); } else { if (Str::startsWith($Av85E, 'theme.')) { goto rUJbr; dqpU0: $Av85E = base_path($Av85E); goto yn0XC; rUJbr: $Av85E = 'resources/views/' . str_replace(array('.'), '/', $Av85E); goto dqpU0; yn0XC: if (!file_exists($Av85E)) { $Av85E = base_path('module/' . $tUxPr . '/View'); } goto tdQTe; tdQTe: if (!file_exists($Av85E)) { $Av85E = base_path('resources/views/theme/default'); } goto jWeeK; jWeeK: } else { $Av85E = base_path($Av85E); } } goto CpKQn; EvqON: $Av85E = self::templateRoot(); goto c7iqv; CpKQn: return rtrim($Av85E, '\\/') . '/'; goto DR8yz; DR8yz: } }