<?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 m7FY0; CtKQk: static $WAQ3g = 'default'; goto psyO3; psyO3: $LB476 = Input::get('msSiteTemplate', null); goto e4d_q; u7HuN: if ($hcBRx && $hcBRx->root()) { $DBWSN = $hcBRx->root(); } else { $DBWSN = "theme.{$WAQ3g}"; } goto wLql2; FPnI1: if (null !== $DBWSN) { return $DBWSN; } goto CtKQk; HJO6s: static $DBWSN = null; goto FPnI1; e4d_q: if (!empty($LB476)) { $hcBRx = SiteTemplateProvider::get($LB476); if (!empty($hcBRx)) { Session::put('msSiteTemplate', $LB476); } } goto xMMz6; xMMz6: if (empty($hcBRx)) { $LB476 = Session::get('msSiteTemplate', null); if (!empty($LB476)) { $hcBRx = SiteTemplateProvider::get($LB476); if (empty($hcBRx)) { Session::forget('msSiteTemplate'); } } } goto O0uCY; O0uCY: if (empty($hcBRx)) { $WAQ3g = modstart_config()->getWithEnv('siteTemplate', 'default'); $hcBRx = SiteTemplateProvider::get($WAQ3g); } goto u7HuN; m7FY0: static $hcBRx = null; goto HJO6s; wLql2: return $DBWSN; goto KJNJ3; KJNJ3: } public static function templateRootRealpath($uacrl) { goto zlhD3; TUA7J: return rtrim($eMsN6, '\\/') . '/'; goto h8qwo; hvN_a: if (Str::startsWith($eMsN6, 'module::')) { $eMsN6 = str_replace(array('::', '.'), '/', $eMsN6); $eMsN6 = base_path($eMsN6); } else { if (Str::startsWith($eMsN6, 'theme.')) { goto cXp6n; cXp6n: $eMsN6 = 'resources/views/' . str_replace(array('.'), '/', $eMsN6); goto v0WPX; v0WPX: $eMsN6 = base_path($eMsN6); goto FxXDA; djHh_: if (!file_exists($eMsN6)) { $eMsN6 = base_path('resources/views/theme/default'); } goto QnshW; FxXDA: if (!file_exists($eMsN6)) { $eMsN6 = base_path('module/' . $uacrl . '/View'); } goto djHh_; QnshW: } else { $eMsN6 = base_path($eMsN6); } } goto TUA7J; zlhD3: $eMsN6 = self::templateRoot(); goto hvN_a; h8qwo: } }