@@ -285,7 +285,9 @@ |
||
285 | 285 | public $options; |
286 | 286 | function options() |
287 | 287 | { |
288 | - if (empty($this->options)) return array(); |
|
288 | + if (empty($this->options)) { |
|
289 | + return array(); |
|
290 | + } |
|
289 | 291 | return $this->options; |
290 | 292 | } |
291 | 293 | } |
@@ -72,9 +72,13 @@ |
||
72 | 72 | $contacts = $contact->getList(); |
73 | 73 | $i = 0; |
74 | 74 | foreach ($contacts as $contact) { |
75 | - if (empty($contact['email'])) continue; |
|
76 | - if ($subscriber->addContact(new Contact($kernel, $contact['id']))) $i++; |
|
77 | -} |
|
75 | + if (empty($contact['email'])) { |
|
76 | + continue; |
|
77 | + } |
|
78 | + if ($subscriber->addContact(new Contact($kernel, $contact['id']))) { |
|
79 | + $i++; |
|
80 | + } |
|
81 | + } |
|
78 | 82 | echo $i; |
79 | 83 | |
80 | 84 |
@@ -251,7 +251,9 @@ |
||
251 | 251 | foreach ($web_files AS $file) { |
252 | 252 | $src_file = substr($file, 4); |
253 | 253 | $formatted_file = substr($file, strlen($web_dir . '/')); |
254 | - if (in_array($src_file, $ignore)) continue; |
|
254 | + if (in_array($src_file, $ignore)) { |
|
255 | + continue; |
|
256 | + } |
|
255 | 257 | $pfm->addInstallAs($src_file, $formatted_file); |
256 | 258 | } |
257 | 259 |
@@ -15,9 +15,11 @@ |
||
15 | 15 | <?php if (isset($value['name'])) { |
16 | 16 | echo '<div>'.htmlentities($value['name']).'</div>'; |
17 | 17 | } ?> |
18 | - <?php else : ?> |
|
18 | + <?php else { |
|
19 | + : ?> |
|
19 | 20 | <input type="text" name="name" id="name" value="<?php if (isset($value['name'])) { |
20 | 21 | e($value['name']); |
22 | +} |
|
21 | 23 | } ?>" /> <span><?php e(t('allowed characters')); ?>: a-z 0-9 _ -</span> |
22 | 24 | <?php endif; ?> |
23 | 25 | </div> |
@@ -21,8 +21,11 @@ |
||
21 | 21 | <?php if ($this_filemanager->get('is_picture')) : ?> |
22 | 22 | <?php $this_filemanager->createInstance('small');?> |
23 | 23 | <img src="<?php e($this_filemanager->instance->get('file_uri')); ?>" alt="" /> |
24 | - <?php else : ?> |
|
25 | - <img src="<?php e($this_filemanager->get('icon_uri')); ?>" alt="" /> |
|
24 | + <?php else { |
|
25 | + : ?> |
|
26 | + <img src="<?php e($this_filemanager->get('icon_uri')); |
|
27 | +} |
|
28 | +?>" alt="" /> |
|
26 | 29 | <?php endif; ?> |
27 | 30 | </td> |
28 | 31 | </tr> |
@@ -86,8 +86,10 @@ |
||
86 | 86 | <td> |
87 | 87 | <input type="<?php if ($context->multiple_choice) : |
88 | 88 | e('checkbox'); |
89 | -else : |
|
89 | +else { |
|
90 | + : |
|
90 | 91 | print('radio'); |
92 | +} |
|
91 | 93 | endif; ?>" value="<?php echo $file["id"]; ?>" id="<?php echo $file["id"]; ?>" class="input-select_file" name="selected[]" <?php if (in_array($file['id'], $selected_files)) { |
92 | 94 | print("checked=\"checked\""); |
93 | 95 | } ?> /> |
@@ -18,10 +18,13 @@ |
||
18 | 18 | |
19 | 19 | <?php if (empty($files) and !$context->query('search')) : ?> |
20 | 20 | <p><?php e(t('No files uploaded')); ?></p> |
21 | -<?php else : ?> |
|
21 | +<?php else { |
|
22 | + : ?> |
|
22 | 23 | |
23 | 24 | |
24 | -<form method="get" action="<?php e(url('./')); ?>"> |
|
25 | +<form method="get" action="<?php e(url('./')); |
|
26 | +} |
|
27 | +?>"> |
|
25 | 28 | <fieldset> |
26 | 29 | <legend><?php e(t('Search')); ?></legend> |
27 | 30 | <label><?php e(t('Search text')); ?>: |
@@ -24,8 +24,11 @@ discard block |
||
24 | 24 | $module_administration = $context->getKernel()->useModule('administration'); |
25 | 25 | ?> |
26 | 26 | <a href="<?php e(url('../../../administration/intranet', array('edit'))); ?>"><?php e(t('Fill in address')); ?></a>. |
27 | - <?php else : ?> |
|
28 | - <?php e(t('You do not have access to edit the address information. Please ask your administrator to do that.')); ?> |
|
27 | + <?php else { |
|
28 | + : ?> |
|
29 | + <?php e(t('You do not have access to edit the address information. Please ask your administrator to do that.')); |
|
30 | +} |
|
31 | +?> |
|
29 | 32 | <?php e(strtolower(t($debtor->getType()))); ?>. |
30 | 33 | <?php endif; ?> |
31 | 34 | </p> |
@@ -35,19 +38,28 @@ discard block |
||
35 | 38 | <p> |
36 | 39 | <?php e(t('You have not created any. Credit notes are created from invoices.')); ?> |
37 | 40 | </p> |
38 | - <?php else : ?> |
|
41 | + <?php else { |
|
42 | + : ?> |
|
39 | 43 | |
40 | - <p><?php e(t('None has been created yet')); ?>. <a href="<?php e(url(null, array('create'))); ?>"><?php e(t('Create '.$context->getType())); ?></a>.</p> |
|
44 | + <p><?php e(t('None has been created yet')); |
|
45 | +} |
|
46 | +?>. <a href="<?php e(url(null, array('create'))); ?>"><?php e(t('Create '.$context->getType())); ?></a>.</p> |
|
41 | 47 | |
42 | 48 | <?php endif; ?> |
43 | -<?php else : ?> |
|
49 | +<?php else { |
|
50 | + : ?> |
|
44 | 51 | |
45 | 52 | <ul class="options"> |
46 | 53 | <?php if (!empty($contact) and is_object($contact) and $debtor->getType() != "credit_note") : ?> |
47 | - <li><a href="<?php e(url(null, array('create', 'contact_id' => $contact->get("id")))); ?>"><?php e(t('Create')); ?></a></li> |
|
48 | - <?php else : ?> |
|
54 | + <li><a href="<?php e(url(null, array('create', 'contact_id' => $contact->get("id")))); |
|
55 | +} |
|
56 | +?>"><?php e(t('Create')); ?></a></li> |
|
57 | + <?php else { |
|
58 | + : ?> |
|
49 | 59 | <?php if (isset($variation) && isset($product)) : ?> |
50 | - <?php $module_product = $context->getKernel()->useModule('product'); ?> |
|
60 | + <?php $module_product = $context->getKernel()->useModule('product'); |
|
61 | +} |
|
62 | +?> |
|
51 | 63 | <li><a href="<?php e(url($module_product->getPath().$product->get('id').'/variation/'.$variation->getId())); ?>"><?php e(t('Show product')); ?></a></li> |
52 | 64 | <?php elseif (isset($product)) : ?> |
53 | 65 | <?php $module_product = $context->getKernel()->useModule('product'); ?> |
@@ -18,10 +18,12 @@ |
||
18 | 18 | |
19 | 19 | <p>Der er ikke oprettet nogen rykkere endnu. Du har nok nogle gode kunder. Rykkere oprettes fra en faktura.</p> |
20 | 20 | |
21 | -<?php else : ?> |
|
21 | +<?php else { |
|
22 | + : ?> |
|
22 | 23 | |
23 | 24 | <?php |
24 | 25 | echo $context->getReminder()->error->view(); |
26 | +} |
|
25 | 27 | ?> |
26 | 28 | |
27 | 29 | <?php |