<?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($FOcXW = null) { if (null === $FOcXW) { goto FgG8C; f51kq: $mQfSB = 'theme.default.m.page'; goto q_Dkx; NKuuE: if (view()->exists($ozwhI)) { return $ozwhI; } goto yBU3S; tzfvG: if (view()->exists($SvnCQ)) { return $SvnCQ; } goto NKuuE; P16AP: $UMXQQ = modstart_config()->getWithEnv('siteTemplate', 'default'); goto e3WRR; e3WRR: $XTN9Q = "theme.{$UMXQQ}.m.page"; goto f51kq; FgG8C: if ($this->view) { return $this->view; } goto P16AP; AM2xm: $ozwhI = 'theme.default.pc.page'; goto H269Y; yBU3S: return 'modstart::app.web.page'; goto MkFDM; q_Dkx: $SvnCQ = "theme.{$UMXQQ}.pc.page"; goto AM2xm; H269Y: if (AgentUtil::isMobile()) { if (view()->exists($XTN9Q)) { return $XTN9Q; } if (view()->exists($mQfSB)) { return $mQfSB; } } goto tzfvG; MkFDM: } return parent::view($FOcXW); } public function useBlank() { $this->view = 'modstart::app.web.pageBlank'; } public function useNarrow() { $this->view = 'modstart::app.web.pageNarrow'; } }