<parent>wcf.acp.menu.link.cms</parent>
<permissions>admin.content.cms.canManagePage</permissions>
</acpmenuitem>
-
+ <acpmenuitem name="wcf.acp.menu.link.cms.page.landing">
+ <controller><![CDATA[wcf\acp\form\PageLandingForm]]></controller>
+ <parent>wcf.acp.menu.link.cms.page.list</parent>
+ <permissions>admin.content.cms.canManagePage</permissions>
+ <icon>fa-home</icon>
+ </acpmenuitem>
-
<acpmenuitem name="wcf.acp.menu.link.cms.page.add">
<controller><![CDATA[wcf\acp\form\PageAddForm]]></controller>
<parent>wcf.acp.menu.link.cms.page.list</parent>
}
public function getMenu() {
- // @todo
+ if ($this->menu === null) {
+ $this->menu = MenuCache::getInstance()->getMenuByID($this->menuID);
+ }
+
+ return $this->menu;
}
+ /**
+ * Returns the image of this box.
+ *
+ * @return \wcf\data\media\Media
+ */
+ public function getImage() {
+ if ($this->boxType == 'system') {
+ return $this->getController()->getImage();
+ }
+ else if ($this->boxType == 'menu') {
+ return null;
+ }
+ else {
+ // @todo
+ }
+
+ return null;
+ }
+
+ /**
+ * Returns true if this box has an image.
+ *
+ * @return boolean
+ */
+ public function hasImage() {
+ if ($this->boxType == 'system') {
+ return $this->getController()->hasImage();
+ }
+ else if ($this->boxType == 'menu') {
+ return false;
+ }
+ else {
+ // @todo
+ }
+
+ return false;
+ }
+
+ public function getLink() {
+ // @todo
+ return '';
+ }
+
+ public function hasLink() {
+ // @todo
+ return false;
+ }
+
/**
* Returns the box with the given name.
*