<?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($EdxNA = null) { if (null === $EdxNA) { goto A_dzP; u0Hw4: $MkIxA = "theme.{$h31aC}.pc.page"; goto YdFza; fOay2: $h31aC = modstart_config()->getWithEnv('siteTemplate', 'default'); goto IJBOF; IJBOF: $MtKOn = "theme.{$h31aC}.m.page"; goto QQFhk; Cz40C: if (view()->exists($MkIxA)) { return $MkIxA; } goto vGVZ6; QQFhk: $cP1UM = 'theme.default.m.page'; goto u0Hw4; vGVZ6: if (view()->exists($U6sk9)) { return $U6sk9; } goto WX8B8; WX8B8: return 'modstart::app.web.page'; goto hFPrI; A_dzP: if ($this->view) { return $this->view; } goto fOay2; YdFza: $U6sk9 = 'theme.default.pc.page'; goto Nrpnh; Nrpnh: if (AgentUtil::isMobile()) { if (view()->exists($MtKOn)) { return $MtKOn; } if (view()->exists($cP1UM)) { return $cP1UM; } } goto Cz40C; hFPrI: } return parent::view($EdxNA); } public function useBlank() { $this->view = 'modstart::app.web.pageBlank'; } public function useNarrow() { $this->view = 'modstart::app.web.pageNarrow'; } }