@@ -281,7 +281,7 @@ |
||
| 281 | 281 | $this->save_element($var); |
| 282 | 282 | |
| 283 | 283 | return $this->id; |
| 284 | - } |
|
| 284 | + } |
|
| 285 | 285 | |
| 286 | 286 | /** |
| 287 | 287 | * Deactivates an element |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | $this->addPreloadFile('Section.php');
|
| 45 | 45 | |
| 46 | - $this->includeSettingFile('settings.php');
|
|
| 46 | + $this->includeSettingFile('settings.php');
|
|
| 47 | 47 | |
| 48 | 48 | $this->addSetting('status', array(
|
| 49 | 49 | 1 => 'draft', |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | function map($name) |
| 5 | 5 | { |
| 6 | 6 | if (is_numeric($name)) { |
| 7 | - return 'Intraface_modules_cms_Controller_TemplateSectionEdit'; |
|
| 7 | + return 'Intraface_modules_cms_Controller_TemplateSectionEdit'; |
|
| 8 | 8 | } elseif ($name == 'create') { |
| 9 | 9 | return 'Intraface_modules_cms_Controller_TemplateSectionEdit'; |
| 10 | 10 | } |
@@ -109,9 +109,9 @@ |
||
| 109 | 109 | $this->document->addScript('cms/parseUrlIdentifier.js');
|
| 110 | 110 | |
| 111 | 111 | $data = array('value' => $value,
|
| 112 | - 'type' => $type, |
|
| 113 | - 'cmspage' => $cmspage, |
|
| 114 | - 'translation' => $this->getKernel()->getTranslation('cms'),
|
|
| 112 | + 'type' => $type, |
|
| 113 | + 'cmspage' => $cmspage, |
|
| 114 | + 'translation' => $this->getKernel()->getTranslation('cms'),
|
|
| 115 | 115 | 'templates' => $templates, |
| 116 | 116 | 'cmssite' => $cmssite, |
| 117 | 117 | 'kernel' => $this->getKernel(), |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | } elseif ($this->getElement()->get('type') == 'filelist') { |
| 43 | 43 | return $append_file = new AppendFile($this->getKernel(), 'cms_element_filelist', $this->getElement()->get('id')); |
| 44 | 44 | } elseif ($this->getElement()->get('type') == 'picture') { |
| 45 | - return new AppendFile($this->getKernel(), 'cms_element_picture', $this->getElement()->get('id')); |
|
| 45 | + return new AppendFile($this->getKernel(), 'cms_element_picture', $this->getElement()->get('id')); |
|
| 46 | 46 | } |
| 47 | 47 | throw new Exception('No valid fileappender present'); |
| 48 | 48 | } |
@@ -121,9 +121,9 @@ discard block |
||
| 121 | 121 | if ($element->get('type') == 'picture') { |
| 122 | 122 | return new k_SeeOther($this->url('filehandler/selectfile', array('images' => 1))); |
| 123 | 123 | } elseif ($element->get('type') == 'gallery') { |
| 124 | - return new k_SeeOther($this->url('filehandler/selectfile', array('images' => 1, 'multiple_choice' => 1))); |
|
| 124 | + return new k_SeeOther($this->url('filehandler/selectfile', array('images' => 1, 'multiple_choice' => 1))); |
|
| 125 | 125 | } elseif ($element->get('type') == 'filelist') { |
| 126 | - return new k_SeeOther($this->url('filehandler/selectfile', array('images' => 0, 'multiple_choice' => 1))); |
|
| 126 | + return new k_SeeOther($this->url('filehandler/selectfile', array('images' => 0, 'multiple_choice' => 1))); |
|
| 127 | 127 | } else { |
| 128 | 128 | throw new Exception("Det er ikke en gyldig elementtype til at lave redirect fra"); |
| 129 | 129 | } |
@@ -47,8 +47,8 @@ |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | $data = array( |
| 50 | - 'cmspage' => $cmspage, |
|
| 51 | - 'sections' => $sections, |
|
| 50 | + 'cmspage' => $cmspage, |
|
| 51 | + 'sections' => $sections, |
|
| 52 | 52 | 'kernel' => $this->getKernel(), |
| 53 | 53 | 'error' => $this->error |
| 54 | 54 | ); |
@@ -14,9 +14,9 @@ |
||
| 14 | 14 | |
| 15 | 15 | function map($name) |
| 16 | 16 | { |
| 17 | - if (is_numeric($name)) { |
|
| 18 | - return 'Intraface_modules_cms_Controller_Site'; |
|
| 19 | - } elseif ($name == 'create') { |
|
| 17 | + if (is_numeric($name)) { |
|
| 18 | + return 'Intraface_modules_cms_Controller_Site'; |
|
| 19 | + } elseif ($name == 'create') { |
|
| 20 | 20 | return 'Intraface_modules_cms_Controller_SiteEdit'; |
| 21 | 21 | } |
| 22 | 22 | } |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | $news = $cmsnews->getList(); |
| 86 | 86 | |
| 87 | 87 | $data = array( |
| 88 | - 'type' => $type, |
|
| 89 | - 'page_types_plural' => $page_types_plural, |
|
| 88 | + 'type' => $type, |
|
| 89 | + 'page_types_plural' => $page_types_plural, |
|
| 90 | 90 | 'cmssite' => $cmssite, |
| 91 | 91 | 'cmspage' => $cmspage, |
| 92 | 92 | 'pages' => $pages, |
@@ -139,9 +139,9 @@ discard block |
||
| 139 | 139 | $this->document->addScript('cms/parseUrlIdentifier.js');
|
| 140 | 140 | |
| 141 | 141 | $data = array('value' => $value,
|
| 142 | - 'type' => $type, |
|
| 143 | - 'cmspage' => $cmspage, |
|
| 144 | - 'template' => $template, |
|
| 142 | + 'type' => $type, |
|
| 143 | + 'cmspage' => $cmspage, |
|
| 144 | + 'template' => $template, |
|
| 145 | 145 | 'translation' => $this->getKernel()->getTranslation('cms'),
|
| 146 | 146 | 'templates' => $templates, |
| 147 | 147 | 'cmssite' => $cmssite, |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | function getSiteId() |
| 21 | 21 | {
|
| 22 | - return $this->context->name(); |
|
| 22 | + return $this->context->name(); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | function renderHtml() |