<?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 uhuD1; zDRpT: if (empty($ksqio)) { $TIcMV = modstart_config()->getWithEnv('siteTemplate', 'default'); $ksqio = SiteTemplateProvider::get($TIcMV); } goto dUyi2; AYsnz: if (!empty($vDQuJ)) { $ksqio = SiteTemplateProvider::get($vDQuJ); if (!empty($ksqio)) { Session::put('msSiteTemplate', $vDQuJ); } } goto XUwL1; qpWV6: return $M80Tt; goto MeVL2; uhuD1: static $ksqio = null; goto Mgu2M; XUwL1: if (empty($ksqio)) { $vDQuJ = Session::get('msSiteTemplate', null); if (!empty($vDQuJ)) { $ksqio = SiteTemplateProvider::get($vDQuJ); if (empty($ksqio)) { Session::forget('msSiteTemplate'); } } } goto zDRpT; fpDBI: if (null !== $M80Tt) { return $M80Tt; } goto AO8wa; dUyi2: if ($ksqio && $ksqio->root()) { $M80Tt = $ksqio->root(); } else { $M80Tt = "theme.{$TIcMV}"; } goto qpWV6; Mgu2M: static $M80Tt = null; goto fpDBI; Z8baL: $vDQuJ = Input::get('msSiteTemplate', null); goto AYsnz; AO8wa: static $TIcMV = 'default'; goto Z8baL; MeVL2: } public static function templateRootRealpath($GVDx3) { goto C46zg; zozwv: if (Str::startsWith($VHhEW, 'module::')) { $VHhEW = str_replace(array('::', '.'), '/', $VHhEW); $VHhEW = base_path($VHhEW); } else { if (Str::startsWith($VHhEW, 'theme.')) { goto SLSIC; hQQX3: $VHhEW = base_path($VHhEW); goto hfV25; SLSIC: $VHhEW = 'resources/views/' . str_replace(array('.'), '/', $VHhEW); goto hQQX3; hfV25: if (!file_exists($VHhEW)) { $VHhEW = base_path('module/' . $GVDx3 . '/View'); } goto Ba0cM; Ba0cM: if (!file_exists($VHhEW)) { $VHhEW = base_path('resources/views/theme/default'); } goto hzU1W; hzU1W: } else { $VHhEW = base_path($VHhEW); } } goto KzvT7; C46zg: $VHhEW = self::templateRoot(); goto zozwv; KzvT7: return rtrim($VHhEW, '\\/') . '/'; goto OwcMk; OwcMk: } }