<?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($r7m3R = null) { if (null === $r7m3R) { goto zRYRa; IyA0f: $OE9QM = 'theme.default.m.page'; goto Iio3K; vPoWP: if (view()->exists($tmVRS)) { return $tmVRS; } goto IMiRf; Iio3K: $q7rd4 = "theme.{$Lsv15}.pc.page"; goto oezwp; W_D6j: $rtr34 = "theme.{$Lsv15}.m.page"; goto IyA0f; IMiRf: return 'modstart::app.web.page'; goto H_hoJ; qYX3q: if (AgentUtil::isMobile()) { if (view()->exists($rtr34)) { return $rtr34; } if (view()->exists($OE9QM)) { return $OE9QM; } } goto Pb5b4; Pb5b4: if (view()->exists($q7rd4)) { return $q7rd4; } goto vPoWP; VlhI2: $Lsv15 = modstart_config()->getWithEnv('siteTemplate', 'default'); goto W_D6j; oezwp: $tmVRS = 'theme.default.pc.page'; goto qYX3q; zRYRa: if ($this->view) { return $this->view; } goto VlhI2; H_hoJ: } return parent::view($r7m3R); } public function useBlank() { $this->view = 'modstart::app.web.pageBlank'; } public function useNarrow() { $this->view = 'modstart::app.web.pageNarrow'; } }