<?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 Lz5H9; Wrtzh: if ($cCkMh && $cCkMh->root()) { $jpNhe = $cCkMh->root(); } else { $jpNhe = "theme.{$ihgSy}"; } goto fAV5m; Lci9F: if (!empty($w2uSl)) { $cCkMh = SiteTemplateProvider::get($w2uSl); if (!empty($cCkMh)) { Session::put('msSiteTemplate', $w2uSl); } } goto KOqLq; KOqLq: if (empty($cCkMh)) { $w2uSl = Session::get('msSiteTemplate', null); if (!empty($w2uSl)) { $cCkMh = SiteTemplateProvider::get($w2uSl); if (empty($cCkMh)) { Session::forget('msSiteTemplate'); } } } goto PByZl; KhQRP: if (null !== $jpNhe) { return $jpNhe; } goto MDBsa; Jdux8: static $jpNhe = null; goto KhQRP; oovQg: $w2uSl = Input::get('msSiteTemplate', null); goto Lci9F; PByZl: if (empty($cCkMh)) { $ihgSy = modstart_config()->getWithEnv('siteTemplate', 'default'); $cCkMh = SiteTemplateProvider::get($ihgSy); } goto Wrtzh; MDBsa: static $ihgSy = 'default'; goto oovQg; Lz5H9: static $cCkMh = null; goto Jdux8; fAV5m: return $jpNhe; goto wd56q; wd56q: } public static function templateRootRealpath($satFX) { goto tSoOw; tSoOw: $RFcbL = self::templateRoot(); goto KamQV; gLVlc: return rtrim($RFcbL, '\\/') . '/'; goto fMK_T; KamQV: if (Str::startsWith($RFcbL, 'module::')) { $RFcbL = str_replace(array('::', '.'), '/', $RFcbL); $RFcbL = base_path($RFcbL); } else { if (Str::startsWith($RFcbL, 'theme.')) { goto e_LPp; M9Vp5: if (!file_exists($RFcbL)) { $RFcbL = base_path('resources/views/theme/default'); } goto rcyhd; e_LPp: $RFcbL = 'resources/views/' . str_replace(array('.'), '/', $RFcbL); goto IfKS3; IfKS3: $RFcbL = base_path($RFcbL); goto gax3Q; gax3Q: if (!file_exists($RFcbL)) { $RFcbL = base_path('module/' . $satFX . '/View'); } goto M9Vp5; rcyhd: } else { $RFcbL = base_path($RFcbL); } } goto gLVlc; fMK_T: } }