@@ -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> |
@@ -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'); ?> |
@@ -393,8 +393,11 @@ discard block |
||
393 | 393 | <a href="<?php e(url('../' . $payment['id'] . '/state')); ?>"><?php e(t('state credit note')); ?></a> |
394 | 394 | <?php elseif ($payment['type'] == 'depreciation') : ?> |
395 | 395 | <a href="<?php e(url('../' . $context->getDebtor()->get('id') . '/depreciation/'.$payment['id'].'/state')); ?>"><?php e(t('state depreciation')); ?></a> |
396 | - <?php else : ?> |
|
397 | - <a href="<?php e(url('../' . $context->getDebtor()->get('id') . '/payment/' . $payment['id'] . '/state')); ?>"><?php e(t('state payment')); ?></a> |
|
396 | + <?php else { |
|
397 | + : ?> |
|
398 | + <a href="<?php e(url('../' . $context->getDebtor()->get('id') . '/payment/' . $payment['id'] . '/state')); |
|
399 | +} |
|
400 | +?>"><?php e(t('state payment')); ?></a> |
|
398 | 401 | <?php endif; ?> |
399 | 402 | </td> |
400 | 403 | <?php endif; ?> |
@@ -526,9 +529,12 @@ discard block |
||
526 | 529 | <div class="warning"> |
527 | 530 | <?php e(t('An online payment should be present. However it has not been created from the shop. If you want to make it possible to pay online, you should create the order from your shop, edit it, and then return to this page and send the payment link to the customer')); ?>. |
528 | 531 | </div> |
529 | - <?php else : ?> |
|
532 | + <?php else { |
|
533 | + : ?> |
|
530 | 534 | <div class="warning"> |
531 | - <?php e(t('An onlinepayment should be present. You can supply a payment link from the shop. Supplying a link would make it possible to automatically writing an email to the contact with the payment link')); ?>. |
|
535 | + <?php e(t('An onlinepayment should be present. You can supply a payment link from the shop. Supplying a link would make it possible to automatically writing an email to the contact with the payment link')); |
|
536 | +} |
|
537 | +?>. |
|
532 | 538 | </div> |
533 | 539 | <?php endif; |
534 | 540 | } |
@@ -284,8 +284,11 @@ |
||
284 | 284 | <a href="<?php e(url('../../../accounting/search', array('voucher_id' => $payments[$i]['voucher_id']))); ?>"><?php e(t('voucher')); ?></a> |
285 | 285 | <?php elseif ($payments[$i]['type'] == 'depreciation') : ?> |
286 | 286 | <a href="<?php e(url('depreciation/' . $payments[$i]['id'] . '/state')); ?>"><?php e(t('state depreciation')); ?></a> |
287 | - <?php else : ?> |
|
288 | - <a href="<?php e(url('payment/' . $payments[$i]['id'] . '/state')); ?>"><?php e(t('state payment')); ?></a> |
|
287 | + <?php else { |
|
288 | + : ?> |
|
289 | + <a href="<?php e(url('payment/' . $payments[$i]['id'] . '/state')); |
|
290 | +} |
|
291 | +?>"><?php e(t('state payment')); ?></a> |
|
289 | 292 | <?php endif; ?> |
290 | 293 | </td> |
291 | 294 | <?php endif; ?> |