<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\View; use Illuminate\Support\Facades\View; use ModStart\Core\Util\AgentUtil; trait ResponsiveViewTrait { protected $_viewBase = null; public function getModule() { goto nbqXH; nbqXH: static $l2LYK = null; goto vA3wF; vA3wF: if (null === $l2LYK) { $c37e9 = get_class($this); if (preg_match('/^Module\\\\([\\w]+).*?/', $c37e9, $zhVL6)) { $l2LYK = $zhVL6[1]; } else { $l2LYK = ''; } } goto uvPco; uvPco: return $l2LYK; goto klOSz; klOSz: } protected function viewPaths($cBZiy) { goto V8fLr; HJNKH: if (!view()->exists($ZuclF)) { $ZuclF = $dGI1f; if ($l2LYK) { if (!view()->exists($ZuclF)) { $ZuclF = $yk7l5; } } } goto vE1rH; aJ5To: if ($this->isMobile()) { goto cy6_r; vaPiD: if (!view()->exists($ZuclF)) { $ZuclF = $O_Tdp; if ($l2LYK) { if (!view()->exists($ZuclF)) { $ZuclF = $BVcAR; } } } goto jdo7x; jdo7x: $t9192 = $oPY6h; goto ahoOu; cy6_r: $ZuclF = $TfipM; goto vaPiD; ahoOu: if (!view()->exists($t9192)) { $t9192 = $uiAPC; } goto GH1qz; GH1qz: } goto HJNKH; cXtQF: $t9192 = $J6hcQ; goto aJ5To; Wj43H: View::share('_viewFrame', $t9192); goto UwVH1; gl57J: if ($l2LYK) { $yk7l5 = "module::{$l2LYK}.View.pc.{$cBZiy}"; } goto DoXFJ; zSDWT: $aqHRE = 'theme.default.pc.frame'; goto Oj3lY; QQMO3: $dGI1f = "theme.default.pc.{$cBZiy}"; goto gl57J; q8l53: $J6hcQ = "theme.{$hI8gQ}.pc.frame"; goto zSDWT; QD8Kh: $TfipM = "theme.{$hI8gQ}.m.{$cBZiy}"; goto FBeib; vE1rH: if (!view()->exists($t9192)) { $t9192 = $aqHRE; } goto Wj43H; UwVH1: return array($ZuclF, $t9192); goto CUFmu; Q23GO: $l2LYK = $this->getModule(); goto QD8Kh; r_yLC: $uiAPC = 'theme.default.m.frame'; goto q8l53; FBeib: $O_Tdp = "theme.default.m.{$cBZiy}"; goto q85EH; DoXFJ: $oPY6h = "theme.{$hI8gQ}.m.frame"; goto r_yLC; q85EH: if ($l2LYK) { $BVcAR = "module::{$l2LYK}.View.m.{$cBZiy}"; } goto wEhUW; V8fLr: $hI8gQ = modstart_config('siteTemplate', 'default'); goto Q23GO; Oj3lY: $ZuclF = $dgu7c; goto cXtQF; wEhUW: $dgu7c = "theme.{$hI8gQ}.pc.{$cBZiy}"; goto QQMO3; CUFmu: } protected function shareDialogPageViewFrame() { list($TVbj2, $wsDBG) = $this->viewPaths('dialogPage'); View::share('_viewFrameDialog', $TVbj2); } protected function view($cBZiy, $wXxyZ = array()) { list($cBZiy, $TxX2M) = $this->viewPaths($cBZiy); return view($cBZiy, $wXxyZ); } protected function viewRealpath($cBZiy) { return View::getFinder()->find($cBZiy); } protected function isMobile() { return AgentUtil::isMobile(); } protected function isPC() { return AgentUtil::isPC(); } }