Skip to content

Commit 7326e0f

Browse files
author
Jens Krumsieck
committed
worx ;D
1 parent 81b9b60 commit 7326e0f

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

acptemplates/pageAdd.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@
177177
<dt><label for="position">{lang}cms.acp.page.optional.sidebarOrientation{/lang}</label></dt>
178178
<dd>
179179
<select id="sidebarOrientation" name="sidebarOrientation">
180-
<option value="sidebar" {if $sidebarOrientation =="right"}selected="selected"{/if}">{lang}cms.acp.page.sidebarOrientation.right{/lang}</option>
181-
<option value="body" {if $sidebarOrientation =="left"}selected="selected"{/if}>{lang}cms.acp.page.sidebarOrientation.left{/lang}</option>
180+
<option value="right" {if $sidebarOrientation =="right"}selected="selected"{/if}">{lang}cms.acp.page.sidebarOrientation.right{/lang}</option>
181+
<option value="left" {if $sidebarOrientation =="left"}selected="selected"{/if}>{lang}cms.acp.page.sidebarOrientation.left{/lang}</option>
182182
</select>
183183
</dd>
184184
</dl>

files/lib/acp/form/PageAddForm.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ public function save(){
101101
'showOrder' => $this->showOrder,
102102
'layoutID' => $this->layoutID,
103103
'parentID' => $this->parentID,
104-
'showSidebar' =>$this->showSidebar,
105-
'sidebarOrientation' =>$this->sidebarOrientation,
104+
'showSidebar' => $this->showSidebar,
105+
'sidebarOrientation' => $this->sidebarOrientation,
106106
'robots' => $this->robots,
107107
'isCommentable' => $this->isCommentable);
108108

files/lib/acp/form/PageEditForm.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ public function save(){
125125
'menuItem' => serialize($this->menuItem),
126126
'parentID' => $this->parentID,
127127
'layoutID' => $this->layoutID,
128-
'showSidebar' =>$this->showSidebar,
129-
'sidebarOrientation' =>$this->sidebarOrientation,
128+
'showSidebar' => $this->showSidebar,
129+
'sidebarOrientation' => $this->sidebarOrientation,
130130
'robots' => $this->robots,
131131
'isCommentable' => $this->isCommentable)));
132132
$objectAction->executeAction();
@@ -181,8 +181,8 @@ public function assignVariables(){
181181
'metaDescription' => $this->metaDescription,
182182
'metaKeywords' => $this->metaKeywords,
183183
'menuItem' => $this->menuItem['has'],
184-
'showSidebar' =>$this->showSidebar,
185-
'sidebarOrientation' =>$this->sidebarOrientation,
184+
'showSidebar' => $this->showSidebar,
185+
'sidebarOrientation' => $this->sidebarOrientation,
186186
'menuID' => isset($this->menuItem['id']) ? $this->menuItem['id'] : 0,
187187
'page' => $this->page,
188188
'layoutList' => $this->layoutList,

package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<instruction type="sql">install.sql</instruction>
4545
</instructions>
4646

47-
<instructions type="update" fromversion="1.0.0 Alpha 4">
47+
<instructions type="update" fromversion="1.0.0 Alpha 3">
4848
<!--lang-->
4949
<instruction type="language">language/*.xml</instruction>
5050

updateA3-A4.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTER TABLE cms1_page ADD sidebarOrientation ENUM('left', 'right') NOT NULL DEFAULT 'right' AFTER showSidebar;
2+
3+
ALTER TABLE cms1_content ADD position ENUM('body', 'sidebar') NOT NULL DEFAULT 'body' AFTER cssClasses;

0 commit comments

Comments
 (0)