<?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 FZIAh; x5Qz2: return $YzPP3; goto sUesj; qBHX0: static $YzPP3 = null; goto ZDAFY; ZDAFY: if (null !== $YzPP3) { return $YzPP3; } goto I9y_K; tCEZo: if (empty($HPglu)) { $L6ATm = modstart_config()->getWithEnv('siteTemplate', 'default'); $HPglu = SiteTemplateProvider::get($L6ATm); } goto hP5Er; I9y_K: static $L6ATm = 'default'; goto tJ9br; Fb2je: if (empty($HPglu)) { $Z9g3h = Session::get('msSiteTemplate', null); if (!empty($Z9g3h)) { $HPglu = SiteTemplateProvider::get($Z9g3h); if (empty($HPglu)) { Session::forget('msSiteTemplate'); } } } goto tCEZo; hP5Er: if ($HPglu && $HPglu->root()) { $YzPP3 = $HPglu->root(); } else { $YzPP3 = "theme.{$L6ATm}"; } goto x5Qz2; FZIAh: static $HPglu = null; goto qBHX0; QWJ5S: if (!empty($Z9g3h)) { $HPglu = SiteTemplateProvider::get($Z9g3h); if (!empty($HPglu)) { Session::put('msSiteTemplate', $Z9g3h); } } goto Fb2je; tJ9br: $Z9g3h = Input::get('msSiteTemplate', null); goto QWJ5S; sUesj: } public static function templateRootRealpath($JHuzz) { goto Z3Ugj; NMoep: if (Str::startsWith($Bhs5s, 'module::')) { $Bhs5s = str_replace(array('::', '.'), '/', $Bhs5s); $Bhs5s = base_path($Bhs5s); } else { if (Str::startsWith($Bhs5s, 'theme.')) { goto Yg5MS; lNfIu: $Bhs5s = base_path($Bhs5s); goto G8Qb7; G8Qb7: if (!file_exists($Bhs5s)) { $Bhs5s = base_path('module/' . $JHuzz . '/View'); } goto ArQGn; ArQGn: if (!file_exists($Bhs5s)) { $Bhs5s = base_path('resources/views/theme/default'); } goto FfL7D; Yg5MS: $Bhs5s = 'resources/views/' . str_replace(array('.'), '/', $Bhs5s); goto lNfIu; FfL7D: } else { $Bhs5s = base_path($Bhs5s); } } goto h2Lni; Z3Ugj: $Bhs5s = self::templateRoot(); goto NMoep; h2Lni: return rtrim($Bhs5s, '\\/') . '/'; goto tNnUW; tNnUW: } }