@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'sections' => $this->getModel()->getSections() |
52 | 52 | ); |
53 | 53 | |
54 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/template'); |
|
54 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/template'); |
|
55 | 55 | return $tpl->render($this, $data); |
56 | 56 | } |
57 | 57 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | 'translation' => $this->getKernel()->getTranslation() |
64 | 64 | ); |
65 | 65 | |
66 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/template-edit'); |
|
66 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/template-edit'); |
|
67 | 67 | return $tpl->render($this, $data); |
68 | 68 | } |
69 | 69 |
@@ -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 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | 'translation' => $this->getKernel()->getTranslation('cms') |
102 | 102 | ); |
103 | 103 | |
104 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/section-html-edit'); |
|
104 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/section-html-edit'); |
|
105 | 105 | return $tpl->render($this, $data); |
106 | 106 | |
107 | 107 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } elseif (!empty($_POST['close'])) { |
132 | 132 | return new k_SeeOther($this->url('../../')); |
133 | 133 | } else { |
134 | - return new k_SeeOther($this->url('../../element/' . $element->get('id'))); |
|
134 | + return new k_SeeOther($this->url('../../element/'.$element->get('id'))); |
|
135 | 135 | } |
136 | 136 | } else { |
137 | 137 | $value = $_POST; |
@@ -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 | ); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | 'kernel' => $this->getKernel(), |
53 | 53 | 'error' => $this->error |
54 | 54 | ); |
55 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/page'); |
|
55 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/page'); |
|
56 | 56 | return $tpl->render($this, $data); |
57 | 57 | } |
58 | 58 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | } |
98 | 98 | */ |
99 | 99 | if (!$section->save($value)) { |
100 | - $this->error[$section->get('id')] = $this->t('error in section') . ' ' . strtolower(implode($section->error->message, ', ')); |
|
100 | + $this->error[$section->get('id')] = $this->t('error in section').' '.strtolower(implode($section->error->message, ', ')); |
|
101 | 101 | } |
102 | 102 | } |
103 | 103 | } |
@@ -119,14 +119,14 @@ discard block |
||
119 | 119 | |
120 | 120 | return new k_SeeOther($url); |
121 | 121 | */ |
122 | - return new k_SeeOther($this->url($section_id . '/filehandler/selectfile')); |
|
122 | + return new k_SeeOther($this->url($section_id.'/filehandler/selectfile')); |
|
123 | 123 | } elseif ($this->body('edit_html')) { |
124 | 124 | $keys = array_keys($_POST['edit_html']); |
125 | 125 | return new k_SeeOther($this->url($keys[0])); |
126 | 126 | } elseif ($this->body('close')) { |
127 | 127 | return new k_SeeOther($this->url('../../', array('type' => $this->context->getModel()->get('type'), 'id' => $this->context->getModel()->cmssite->get('id')))); |
128 | 128 | } else { |
129 | - return new k_SeeOther($this->url('../../' . $this->context->getModel()->get('id'))); |
|
129 | + return new k_SeeOther($this->url('../../'.$this->context->getModel()->get('id'))); |
|
130 | 130 | } |
131 | 131 | } else { |
132 | 132 | $cmspage = $section->cmspage; |
@@ -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 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | 'sites' => $sites |
32 | 32 | ); |
33 | 33 | |
34 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/index'); |
|
34 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/index'); |
|
35 | 35 | return $tpl->render($this, $data); |
36 | 36 | } |
37 | 37 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | 'cms_module' => $cms_module |
51 | 51 | ); |
52 | 52 | |
53 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/site-edit'); |
|
53 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/site-edit'); |
|
54 | 54 | return $tpl->render($this, $data); |
55 | 55 | } |
56 | 56 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | if (is_numeric($name)) { |
18 | 18 | return 'Intraface_modules_cms_Controller_Site'; |
19 | - } elseif ($name == 'create') { |
|
19 | + } elseif ($name == 'create') { |
|
20 | 20 | return 'Intraface_modules_cms_Controller_SiteEdit'; |
21 | 21 | } |
22 | 22 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | 'cmssite' => $cmssite |
20 | 20 | ); |
21 | 21 | |
22 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/stylesheet-edit'); |
|
22 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/stylesheet-edit'); |
|
23 | 23 | return $tpl->render($this, $data); |
24 | 24 | } |
25 | 25 |
@@ -71,7 +71,7 @@ |
||
71 | 71 | 'element_types' => $element_types |
72 | 72 | ); |
73 | 73 | |
74 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/section-html'); |
|
74 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/section-html'); |
|
75 | 75 | return $tpl->render($this, $data); |
76 | 76 | } |
77 | 77 |
@@ -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, |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | 'news' => $news |
95 | 95 | ); |
96 | 96 | |
97 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/pages'); |
|
97 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/pages'); |
|
98 | 98 | return $tpl->render($this, $data); |
99 | 99 | } |
100 | 100 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | 'kernel' => $this->getKernel(), |
149 | 149 | 'cmspages' => $cmspages); |
150 | 150 | |
151 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/page-edit'); |
|
151 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/page-edit'); |
|
152 | 152 | return $tpl->render($this, $data); |
153 | 153 | } |
154 | 154 | |
@@ -160,12 +160,12 @@ discard block |
||
160 | 160 | |
161 | 161 | if ($cmspage->save($_POST)) { |
162 | 162 | if (!empty($_POST['choose_file']) && $this->getKernel()->user->hasModuleAccess('filemanager')) { |
163 | - return new k_SeeOther($this->url($cmspage->get('id') . '/filehandler/selectfile', array('images' => 1))); |
|
163 | + return new k_SeeOther($this->url($cmspage->get('id').'/filehandler/selectfile', array('images' => 1))); |
|
164 | 164 | } elseif (!empty($_POST['close'])) { |
165 | 165 | return new k_SeeOther($this->url($cmspage->get('id'))); |
166 | 166 | } elseif (!empty($_POST['add_keywords'])) { |
167 | 167 | $keyword_shared = $this->getKernel()->useShared('keyword'); |
168 | - return new k_SeeOther($this->url($cmspage->get('id') . '/keyword/connect')); |
|
168 | + return new k_SeeOther($this->url($cmspage->get('id').'/keyword/connect')); |
|
169 | 169 | } else { |
170 | 170 | return new k_SeeOther($this->url(null, array('type' => $cmspage->get('type')))); |
171 | 171 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | 'kernel' => $this->getKernel() |
36 | 36 | ); |
37 | 37 | |
38 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/template-section-edit'); |
|
38 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/template-section-edit'); |
|
39 | 39 | return $tpl->render($this, $data); |
40 | 40 | } |
41 | 41 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | $webshop_module = $this->getKernel()->module('cms'); |
16 | 16 | |
17 | - $this->document->setTitle('Navigation for ' . $this->getSite()->get('name')); |
|
17 | + $this->document->setTitle('Navigation for '.$this->getSite()->get('name')); |
|
18 | 18 | |
19 | 19 | $data['categories'] = $this->getNavigationGateway()->findBySite($this->getSite()); |
20 | 20 |