<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\App\Web\Layout; use ModStart\Core\Util\AgentUtil; use ModStart\Layout\Page; class WebPage extends Page { public function view($cBZiy = null) { if (null === $cBZiy) { goto zmgHg; Zk20e: $TfipM = "theme.{$hI8gQ}.m.page"; goto AZ3ek; V70_j: if (view()->exists($dgu7c)) { return $dgu7c; } goto vvNef; vvNef: if (view()->exists($dGI1f)) { return $dGI1f; } goto lbSVP; lbSVP: return 'modstart::app.web.page'; goto TcEVW; zmgHg: if ($this->view) { return $this->view; } goto lweTE; AZ3ek: $O_Tdp = 'theme.default.m.page'; goto GTvBc; LHQif: $dGI1f = 'theme.default.pc.page'; goto yuu2j; lweTE: $hI8gQ = modstart_config('siteTemplate', 'default'); goto Zk20e; GTvBc: $dgu7c = "theme.{$hI8gQ}.pc.page"; goto LHQif; yuu2j: if (AgentUtil::isMobile()) { if (view()->exists($TfipM)) { return $TfipM; } if (view()->exists($O_Tdp)) { return $O_Tdp; } } goto V70_j; TcEVW: } return parent::view($cBZiy); } public function useBlank() { $this->view = 'modstart::app.web.pageBlank'; } public function useNarrow() { $this->view = 'modstart::app.web.pageNarrow'; } }