@@ -66,7 +66,8 @@ discard block |
||
| 66 | 66 | <?php elseif ($task['submission']['done'] == 1): ?> |
| 67 | 67 | <p class="text-success"><strong>Done! :)</strong></p> |
| 68 | 68 | <?php endif; ?> |
| 69 | - <?php else: ?> |
|
| 69 | + <?php else { |
|
| 70 | + : ?> |
|
| 70 | 71 | <form class="block" method="post" action="./submittask/"> |
| 71 | 72 | <p><?= linkify(nl2br(htmlspecialchars($task['description']))) ?></p> |
| 72 | 73 | <?php if (isset($task['submission']) && $task['submission']['done'] == 2): ?> |
@@ -76,7 +77,9 @@ discard block |
||
| 76 | 77 | <strong>Reason given</strong>:<br> |
| 77 | 78 | <?= nl2br(htmlspecialchars($task['submission']['reason'])) ?> |
| 78 | 79 | </p> |
| 79 | - <?php endif; ?> |
|
| 80 | + <?php endif; |
|
| 81 | +} |
|
| 82 | +?> |
|
| 80 | 83 | <?php endif; ?> |
| 81 | 84 | <?php if ($task['has_text_answer']): ?> |
| 82 | 85 | <textarea name="text-answer" required></textarea> |
@@ -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 | } |