<?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($XlNhR = null) { if (null === $XlNhR) { goto aFD4P; YHmnR: $pTO5I = modstart_config()->getWithEnv('siteTemplate', 'default'); goto Tj2si; EhbaA: $dixDG = 'theme.default.pc.page'; goto JTfu_; aRfJ_: $z2nuL = 'theme.default.m.page'; goto PXmR6; uEl3I: return 'modstart::app.web.page'; goto EgNi0; Tj2si: $BDPfQ = "theme.{$pTO5I}.m.page"; goto aRfJ_; H_3rC: if (view()->exists($dixDG)) { return $dixDG; } goto uEl3I; VQjNd: if (view()->exists($kL9wH)) { return $kL9wH; } goto H_3rC; JTfu_: if (AgentUtil::isMobile()) { if (view()->exists($BDPfQ)) { return $BDPfQ; } if (view()->exists($z2nuL)) { return $z2nuL; } } goto VQjNd; PXmR6: $kL9wH = "theme.{$pTO5I}.pc.page"; goto EhbaA; aFD4P: if ($this->view) { return $this->view; } goto YHmnR; EgNi0: } return parent::view($XlNhR); } public function useBlank() { $this->view = 'modstart::app.web.pageBlank'; } public function useNarrow() { $this->view = 'modstart::app.web.pageNarrow'; } }