/** * Shows a page with the views that have been previously given. * Views will be displayed in the order they were added. */ public function showWithMenu() { MenuBuilder::buildMenu($this); array_unshift($this->views, 'menu/MenuBarView'); require_once __DIR__ . '/../views/common/Header.html'; foreach ($this->views as $view) { require_once __DIR__ . '/../views/' . $view . '.html'; } require_once __DIR__ . '/../views/common/Footer.html'; }
// no break case '': continue 2; } // Resource specific Chunks: if (strpos($property, 'chunkWrapperResource') === 0) { $d = (int) substr($property, strlen('chunkWrapperResource')); $menuBuilder->setChunk('chunkWrapperResource', $value, $d); } if (strpos($property, 'chunkItemResource') === 0) { $d = (int) substr($property, strlen('chunkItemResource')); $menuBuilder->setChunk('chunkItemResource', $value, $d); } // Level specific Chunks: // Optional wrapper depth ones: if (strpos($property, 'chunkWrapper') === 0) { $d = (int) substr($property, strlen('chunkWrapper')); $menuBuilder->setChunk('chunkWrapper', $value, $d); } // Optional item depth ones: if (strpos($property, 'chunkItem') === 0) { $d = (int) substr($property, strlen('chunkItem')); $menuBuilder->setChunk('chunkItem', $value, $d); } } $output = $menuBuilder->buildMenu((int) $modx->getOption('startId', $scriptProperties, 0), (int) $modx->getOption('level', $scriptProperties, 0)); if (!empty($placeholder)) { $modx->setPlaceholder($placeholder, $output); } else { return $output; }