@@ -3,7 +3,8 @@ discard block |
||
3 | 3 | ?> |
4 | 4 | <?php if ($sent): ?> |
5 | 5 | <div class="success"><?= __('Mail sent!') ?></div> |
6 | -<?php else: ?> |
|
6 | +<?php else { |
|
7 | + : ?> |
|
7 | 8 | <p><?= __('Please enter your email address.') ?></p> |
8 | 9 | <form action="" method="post" class="pure-form pure-form-stacked"> |
9 | 10 | <fieldset> |
@@ -13,5 +14,7 @@ discard block |
||
13 | 14 | <input type="submit" name="register" value="<?= __('Next') ?>" class="pure-button pure-button-primary"> |
14 | 15 | </fieldset> |
15 | 16 | </form> |
16 | -<?php endif; ?> |
|
17 | +<?php endif; |
|
18 | +} |
|
19 | +?> |
|
17 | 20 | <?php $this->load_fragment('auth/form_footer'); ?> |
@@ -6,7 +6,8 @@ discard block |
||
6 | 6 | <span class="success" style="display:inline-block"><?= __('Verification mail sent!') ?></span> |
7 | 7 | <p style="margin-top: 1em;"><?= __('To proceed, you must verify your email address by clicking on the link sent to your inbox.') ?></p> |
8 | 8 | </div> |
9 | -<?php else: ?> |
|
9 | +<?php else { |
|
10 | + : ?> |
|
10 | 11 | <div> |
11 | 12 | <p><?= __('We will send an email to this address to verify it.') ?></p> |
12 | 13 | <form action="register_email/" method="post" class="pure-form pure-form-stacked"> |
@@ -17,5 +18,7 @@ discard block |
||
17 | 18 | </fieldset> |
18 | 19 | </form> |
19 | 20 | </div> |
20 | -<?php endif; ?> |
|
21 | +<?php endif; |
|
22 | +} |
|
23 | +?> |
|
21 | 24 | <?php $this->load_fragment('auth/form_footer'); ?> |
@@ -10,7 +10,8 @@ discard block |
||
10 | 10 | <div class="success"><?= __('Password successfully set!') ?></div> |
11 | 11 | <a href="<?= locale_base_url() . "auth/login/" ?>" class="some-top-margin pure-button pure-button-primary"><?= __('Continue to a magical journey') ?></a> |
12 | 12 | <?php |
13 | - else: |
|
13 | + else { |
|
14 | + : |
|
14 | 15 | ?> |
15 | 16 | <form action="<?= locale_base_url() . "auth/register/password_reset/" ?>" method="post" class="pure-form pure-form-stacked"> |
16 | 17 | <fieldset> |
@@ -29,5 +30,6 @@ discard block |
||
29 | 30 | </form> |
30 | 31 | <?php |
31 | 32 | endif; |
32 | -?> |
|
33 | + } |
|
34 | + ?> |
|
33 | 35 | <?php $this->load_fragment('auth/form_footer'); ?> |
@@ -37,9 +37,12 @@ |
||
37 | 37 | <a href="<?= $file['slug'] ?>"> |
38 | 38 | <?php if ($file['type'] == 'file'): ?> |
39 | 39 | <i class="fa fa-file-text-o"></i> |
40 | - <?php else: ?> |
|
40 | + <?php else { |
|
41 | + : ?> |
|
41 | 42 | <i class="fa fa-folder-o"></i> |
42 | - <?php endif; ?> |
|
43 | + <?php endif; |
|
44 | +} |
|
45 | +?> |
|
43 | 46 | <?= $file['slug'] ?> |
44 | 47 | </a> |
45 | 48 | </li> |
@@ -56,12 +56,18 @@ |
||
56 | 56 | <?php if ($is_authenticated): ?> |
57 | 57 | <?php if (!empty($user_nick)): ?> |
58 | 58 | <div class="nick"><?= sprintf(__('Hello, %s'), $user_nick) ?> <a href="<?= locale_base_url() . "auth/logout/" ?>"><?= __('Logout') ?></a></div> |
59 | - <?php else: ?> |
|
59 | + <?php else { |
|
60 | + : ?> |
|
60 | 61 | <div><a href="<?= locale_base_url() . "auth/logout/" ?>" class="pure-button btn"><?= __('Logout') ?></a></div> |
61 | - <?php endif; ?> |
|
62 | - <?php else: ?> |
|
62 | + <?php endif; |
|
63 | +} |
|
64 | +?> |
|
65 | + <?php else { |
|
66 | + : ?> |
|
63 | 67 | <div><a href="<?= locale_base_url() . "auth/login/" ?>" class="pure-button btn"><?= __('Login / Register') ?></a></div> |
64 | - <?php endif; ?> |
|
68 | + <?php endif; |
|
69 | +} |
|
70 | +?> |
|
65 | 71 | </div> |
66 | 72 | <?php endif; ?> |
67 | 73 |
@@ -637,8 +637,7 @@ |
||
637 | 637 | $this->load_view('contest/unsubscribe', [ |
638 | 638 | 'message' => 'You have been successfully unsubscribe from our mailing list.' |
639 | 639 | ]); |
640 | - } |
|
641 | - else { |
|
640 | + } else { |
|
642 | 641 | $this->load_view('contest/unsubscribe', [ |
643 | 642 | 'message' => 'Unable to process your request.' |
644 | 643 | ]); |
@@ -148,7 +148,9 @@ |
||
148 | 148 | $data = $this->jugaad_model->get_file_data($file_id, $template_meta, $this->user, true); |
149 | 149 | |
150 | 150 | foreach ($data as $value) { |
151 | - if (!$value) continue; |
|
151 | + if (!$value) { |
|
152 | + continue; |
|
153 | + } |
|
152 | 154 | if (is_array($value)) { |
153 | 155 | foreach ($value as $val) { |
154 | 156 | $strings[] = $val; |
@@ -57,8 +57,7 @@ |
||
57 | 57 | $redirect_url = $this->get_ttt_payment_url($user_nick, $_POST['contact_number']); |
58 | 58 | $this->load_library('http_lib', 'http'); |
59 | 59 | $this->http->redirect( $redirect_url ); |
60 | - } |
|
61 | - else { |
|
60 | + } else { |
|
62 | 61 | $errors['common'] = 'Some unexpected error occured'; |
63 | 62 | } |
64 | 63 | } |
@@ -45,8 +45,7 @@ discard block |
||
45 | 45 | ); |
46 | 46 | if (!$stmt) { |
47 | 47 | return false; |
48 | - } |
|
49 | - else { |
|
48 | + } else { |
|
50 | 49 | return true; |
51 | 50 | } |
52 | 51 | } |
@@ -63,8 +62,7 @@ discard block |
||
63 | 62 | $this->ttt_dump_data($nick, 'callback', $payment_data); |
64 | 63 | if (!$stmt) { |
65 | 64 | return false; |
66 | - } |
|
67 | - else { |
|
65 | + } else { |
|
68 | 66 | return true; |
69 | 67 | } |
70 | 68 | } |
@@ -272,8 +270,7 @@ discard block |
||
272 | 270 | $this->webdev_dump_data($nick, 'callback', $payment_data); |
273 | 271 | if (!$stmt) { |
274 | 272 | return false; |
275 | - } |
|
276 | - else { |
|
273 | + } else { |
|
277 | 274 | return true; |
278 | 275 | } |
279 | 276 | } |
@@ -341,8 +338,7 @@ discard block |
||
341 | 338 | $this->riderofstorms_dump_data($nick, 'callback', $payment_data); |
342 | 339 | if (!$stmt) { |
343 | 340 | return false; |
344 | - } |
|
345 | - else { |
|
341 | + } else { |
|
346 | 342 | return true; |
347 | 343 | } |
348 | 344 | } |
@@ -396,8 +392,7 @@ discard block |
||
396 | 392 | $this->arvr_dump_data($nick, 'callback', $payment_data); |
397 | 393 | if (!$stmt) { |
398 | 394 | return false; |
399 | - } |
|
400 | - else { |
|
395 | + } else { |
|
401 | 396 | return true; |
402 | 397 | } |
403 | 398 | } |
@@ -525,8 +520,7 @@ discard block |
||
525 | 520 | $this->artuino_dump_data($team_id, 'callback', $payment_data); |
526 | 521 | if (!$stmt) { |
527 | 522 | return false; |
528 | - } |
|
529 | - else { |
|
523 | + } else { |
|
530 | 524 | return true; |
531 | 525 | } |
532 | 526 | } |
@@ -582,8 +576,7 @@ discard block |
||
582 | 576 | $this->mun_dump_data($nick, 'callback', $payment_data); |
583 | 577 | if (!$stmt) { |
584 | 578 | return false; |
585 | - } |
|
586 | - else { |
|
579 | + } else { |
|
587 | 580 | return true; |
588 | 581 | } |
589 | 582 | } |