<?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($d1G11 = null) { if (null === $d1G11) { goto qVRyH; Rmstb: $DG9PG = 'theme.default.m.page'; goto BXzh1; qVRyH: if ($this->view) { return $this->view; } goto j2wRh; hPs2V: if (view()->exists($WKa3Y)) { return $WKa3Y; } goto uJ3Do; Q9pt_: $eVkCx = "theme.{$zsGPi}.m.page"; goto Rmstb; j2wRh: $zsGPi = modstart_config()->getWithEnv('siteTemplate', 'default'); goto Q9pt_; FR5cO: if (AgentUtil::isMobile()) { if (view()->exists($eVkCx)) { return $eVkCx; } if (view()->exists($DG9PG)) { return $DG9PG; } } goto ddu4w; ddu4w: if (view()->exists($tT8ZL)) { return $tT8ZL; } goto hPs2V; wx1XX: $WKa3Y = 'theme.default.pc.page'; goto FR5cO; uJ3Do: return 'modstart::app.web.page'; goto IN2eu; BXzh1: $tT8ZL = "theme.{$zsGPi}.pc.page"; goto wx1XX; IN2eu: } return parent::view($d1G11); } public function useBlank() { $this->view = 'modstart::app.web.pageBlank'; } public function useNarrow() { $this->view = 'modstart::app.web.pageNarrow'; } }