<?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($Etyzz = null) { if (null === $Etyzz) { goto LDOkT; aYWrB: $d2gNI = 'theme.default.pc.page'; goto kCH_q; Du4RL: $cgEuI = "theme.{$VuCgW}.pc.page"; goto aYWrB; G6zQ0: $s9cw7 = "theme.{$VuCgW}.m.page"; goto xX02m; LDOkT: if ($this->view) { return $this->view; } goto qpDcu; qpDcu: $VuCgW = modstart_config()->getWithEnv('siteTemplate', 'default'); goto G6zQ0; kCH_q: if (AgentUtil::isMobile()) { if (view()->exists($s9cw7)) { return $s9cw7; } if (view()->exists($Nba2l)) { return $Nba2l; } } goto kPjp6; xX02m: $Nba2l = 'theme.default.m.page'; goto Du4RL; aDLU6: if (view()->exists($d2gNI)) { return $d2gNI; } goto atKin; atKin: return 'modstart::app.web.page'; goto jj92B; kPjp6: if (view()->exists($cgEuI)) { return $cgEuI; } goto aDLU6; jj92B: } return parent::view($Etyzz); } public function useBlank() { $this->view = 'modstart::app.web.pageBlank'; } public function useNarrow() { $this->view = 'modstart::app.web.pageNarrow'; } }