Completed
Pull Request — master (#26)
by Lars
10:03
created
src/Intraface/modules/cms/Controller/templates/page-edit.tpl.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,14 +15,20 @@  discard block
 block discarded – undo
15 15
         <?php e(t('you have to create a template for this page type')); ?>
16 16
         <?php if ($kernel->user->hasSubAccess('cms', 'edit_templates')) : ?>
17 17
             <a href="<?php e(url('../../template/create')); ?>"><?php e(t('create template')); ?></a>.
18
-        <?php else : ?>
19
-            <strong><?php e(t('please ask your administrator to do create a template')); ?></strong>
18
+        <?php else {
19
+    : ?>
20
+            <strong><?php e(t('please ask your administrator to do create a template'));
21
+}
22
+?></strong>
20 23
         <?php endif; ?>
21 24
     </p>
22 25
 
23
-<?php else : ?>
26
+<?php else {
27
+    : ?>
24 28
 
25
-    <form method="post" action="<?php e(url(null, array($context->subview(), 'type' => $type))); ?>">
29
+    <form method="post" action="<?php e(url(null, array($context->subview(), 'type' => $type)));
30
+}
31
+?>">
26 32
 
27 33
         <fieldset>
28 34
             <legend><?php e(t('about the behavior of the page')); ?></legend>
@@ -55,8 +61,11 @@  discard block
 block discarded – undo
55 61
                     <?php endforeach; ?>
56 62
                     </select>
57 63
                 </div>
58
-            <?php else : ?>
59
-                <input type="hidden" name="template_id" value="<?php e($templates[0]['id']); ?>" />
64
+            <?php else {
65
+    : ?>
66
+                <input type="hidden" name="template_id" value="<?php e($templates[0]['id']);
67
+}
68
+?>" />
60 69
             <?php endif; ?>
61 70
         </fieldset>
62 71
 
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/templates/templates.tpl.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,9 +7,12 @@
 block discarded – undo
7 7
 
8 8
 <?php if (count($templates) == 0) : ?>
9 9
     <p><?php e(t('No templates found')); ?></p>
10
-<?php else : ?>
10
+<?php else {
11
+    : ?>
11 12
 <table>
12
-<caption><?php e(t('Templates')); ?></caption>
13
+<caption><?php e(t('Templates'));
14
+}
15
+?></caption>
13 16
 <thead>
14 17
 <tr>
15 18
     <th><?php e(t('Template name')); ?></th>
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/templates/page.tpl.php 1 patch
Braces   +13 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,8 +14,11 @@  discard block
 block discarded – undo
14 14
 <fieldset class="<?php e($cmspage->getStatus()); ?>"><?php if (!$cmspage->isPublished()) : ?>
15 15
         <?php e(t('this page is not published')); ?> <input type="submit"
16 16
     value="<?php e(t('publish now')); ?>" name="publish" /> <?php
17
-else : ?>
18
-        <?php e(t('this page is published')); ?> <input type="submit"
17
+else {
18
+    : ?>
19
+        <?php e(t('this page is published'));
20
+}
21
+?> <input type="submit"
19 22
     value="<?php e(t('set as draft')); ?>" name="unpublish" /> <?php
20 23
 endif; ?>
21 24
 <input type="hidden" value="<?php e($cmspage->get('id')); ?>" name="id" />
@@ -29,14 +32,19 @@  discard block
 block discarded – undo
29 32
         <?php if ($kernel->user->hasSubAccess('cms', 'edit_templates')) :
30 33
 ?> <a
31 34
     href="<?php e(url('../../template/' . $cmspage->get('template_id'))); ?>"><?php e(t('edit template')); ?></a>.
32
-    <?php else :
33
-?> <strong><?php echo e(t('you cannot edit templates')); ?></strong>
35
+    <?php else {
36
+    :
37
+?> <strong><?php echo e(t('you cannot edit templates'));
38
+}
39
+?></strong>
34 40
     <?php endif; ?></p>
35
-    <?php else : ?>
41
+    <?php else {
42
+    : ?>
36 43
 
37 44
     <?php
38 45
     if (!empty($context->error) and is_array($context->error) and array_key_exists($section->get('id'), $context->error)) {
39 46
         echo '<p class="error">'.e(t('error in a section - please see below')).'</p>';
47
+}
40 48
     }
41 49
     ?>
42 50
 
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/templates/index.tpl.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,9 +6,12 @@
 block discarded – undo
6 6
 
7 7
 <?php if (is_array($sites) and count($sites) == 0) : ?>
8 8
     <p><?php e(t('no sites created')); ?></p>
9
-<?php else : ?>
9
+<?php else {
10
+    : ?>
10 11
 <table>
11
-<caption><?php e(t('Sites')); ?></caption>
12
+<caption><?php e(t('Sites'));
13
+}
14
+?></caption>
12 15
 <thead>
13 16
     <tr>
14 17
         <th><?php e(t('Name')); ?></th>
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/templates/site.tpl.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,15 +17,21 @@
 block discarded – undo
17 17
         <?php e(t('you have to create a template')); ?>
18 18
         <?php if ($kernel->user->hasSubAccess('cms', 'edit_templates')) : ?>
19 19
             <a href="<?php e(url('templates', array('create'))); ?>"><?php e(t('create template')); ?></a>.
20
-        <?php else : ?>
21
-            <strong><?php e(t('please ask your administrator to do that')); ?></strong>
20
+        <?php else {
21
+    : ?>
22
+            <strong><?php e(t('please ask your administrator to do that'));
23
+}
24
+?></strong>
22 25
         <?php endif; ?>
23 26
     </p>
24 27
 
25
-<?php else : ?>
28
+<?php else {
29
+    : ?>
26 30
 
27 31
 <div class="message">
28
-    <p><?php e(t('your website can consist of the following types of content:')); ?></p>
32
+    <p><?php e(t('your website can consist of the following types of content:'));
33
+}
34
+?></p>
29 35
     <ul>
30 36
         <li><?php e(t('pages are your common structure on the website reflecting the navigation on the website. pages can be hierarchically ordered.')); ?></li>
31 37
         <li><?php e(t('articles are categorized content which is often persistent. you can categorized it with the use of keywords')); ?></li>
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/templates/section-html.tpl.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,8 +3,11 @@  discard block
 block discarded – undo
3 3
 <ul class="options">
4 4
     <?php if (count($section->cmspage->getSections()) > 1) : ?>
5 5
     <li><a href="<?php e(url('../')); ?>"><?php e(t('close')); ?></a></li>
6
-    <?php else : ?>
7
-    <li><a class="edit" href="<?php e(url('../../', array('edit'))); ?>"><?php e(t('edit page settings')); ?></a></li>
6
+    <?php else {
7
+    : ?>
8
+    <li><a class="edit" href="<?php e(url('../../', array('edit')));
9
+}
10
+?>"><?php e(t('edit page settings')); ?></a></li>
8 11
     <li><a href="<?php e(url('../../../', array('type' =>$section->cmspage->get('type')))); ?>"><?php e(t('close')); ?></a></li>
9 12
     <?php endif; ?>
10 13
 </ul>
@@ -14,8 +17,11 @@  discard block
 block discarded – undo
14 17
     <?php if (!$section->cmspage->isPublished()) : ?>
15 18
     <?php e('this page is not published'); ?>
16 19
     <input type="submit" value="<?php e(t('publish now')); ?>" name="publish" />
17
-    <?php else : ?>
18
-    <?php e('this page is published'); ?>
20
+    <?php else {
21
+    : ?>
22
+    <?php e('this page is published');
23
+}
24
+?>
19 25
     <input type="submit" value="<?php e(t('set as draft')); ?>" name="unpublish" />
20 26
     <?php endif; ?>
21 27
     <input type="hidden" value="<?php e($section->get('id')); ?>" name="id" />
Please login to merge, or discard this patch.
src/Intraface/modules/email/Controller/templates/show.tpl.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,8 +38,10 @@
 block discarded – undo
38 38
             ?></pre>
39 39
         <pre><?php e(t('From')); ?>: <?php if (isset($value['from_email']) && $value['from_email'] != '') :
40 40
             e($value['from_name']." <".$value['from_email'].">");
41
-else :
41
+else {
42
+    :
42 43
     e($kernel->intranet->address->get('name')." <".$kernel->intranet->address->get('email').">");
44
+}
43 45
 endif; ?></pre>
44 46
 
45 47
         <pre><?php e($value['subject']); ?></pre>
Please login to merge, or discard this patch.
src/Intraface/modules/email/Controller/templates/index.tpl.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,9 +10,12 @@  discard block
 block discarded – undo
10 10
 
11 11
     <p><?php e(t('no e-mails has been sent')); ?></p>
12 12
 
13
-<?php else : ?>
13
+<?php else {
14
+    : ?>
14 15
     <?php if ($queue > 0) : ?>
15
-        <p><?php e(t('E-mails are in queue - the will be sent soon')); ?></p>
16
+        <p><?php e(t('E-mails are in queue - the will be sent soon'));
17
+}
18
+?></p>
16 19
     <?php endif; ?>
17 20
 
18 21
     <?php echo $gateway->getDBQuery()->display('character'); ?>
@@ -37,8 +40,11 @@  discard block
 block discarded – undo
37 40
         <?php if (!empty($email['status']) and $email['status'] != 'sent') : ?>
38 41
             <a class="edit" href="<?php e(url($email['id'], array('edit'))); ?>"><?php e(t('edit')); ?></a>
39 42
             <a class="delete" href="<?php e(url($email['id'], array('delete'))); ?>"><?php e(t('delete')); ?></a>
40
-        <?php else : ?>
41
-            <?php e(t($email['status'])); ?>
43
+        <?php else {
44
+    : ?>
45
+            <?php e(t($email['status']));
46
+}
47
+?>
42 48
         <?php endif; ?>
43 49
         </td>
44 50
     </tr>
Please login to merge, or discard this patch.
src/Intraface/modules/onlinepayment/Controller/templates/index.tpl.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,14 @@
 block discarded – undo
11 11
 
12 12
 <?php elseif (!$onlinepayment->isFilledIn()) : ?>
13 13
     <p>Der er ikke oprettet nogen betalinger.</p>
14
-<?php else : ?>
14
+<?php else {
15
+    : ?>
15 16
 
16 17
 
17 18
 <fieldset class="hide_on_print">
18
-    <legend><?php e(t('Search')); ?></legend>
19
+    <legend><?php e(t('Search'));
20
+}
21
+?></legend>
19 22
     <form method="get" action="<?php e(url(null)); ?>">
20 23
         <label><?php e(t('Text')); ?>
21 24
             <input type="text" name="text" value="<?php e($onlinepayment->getDBQuery()->getFilter("text")); ?>" />
Please login to merge, or discard this patch.