@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -$text_input = function ($name, $type="text") use ($errors) { |
|
2 | +$text_input = function($name, $type = "text") use ($errors) { |
|
3 | 3 | ?> |
4 | 4 | <input |
5 | 5 | name="<?= $name ?>" |
@@ -36,12 +36,15 @@ |
||
36 | 36 | You can change it till 2017-01-15 21:00. |
37 | 37 | </div> |
38 | 38 | </div> |
39 | - <?php else: ?> |
|
39 | + <?php else { |
|
40 | + : ?> |
|
40 | 41 | <form class="pure-form pure-form-stacked row" method="post" action=""> |
41 | 42 | <fieldset class="offset3 col6"> |
42 | 43 | <?php if (isset($errors['common'])): ?> |
43 | 44 | <div class="error pure-input-1-1"><?= $errors['common'] ?></div> |
44 | - <?php endif; ?> |
|
45 | + <?php endif; |
|
46 | +} |
|
47 | +?> |
|
45 | 48 | |
46 | 49 | <label><?= __('Drive Link') ?></label> |
47 | 50 | <?php $text_input('paper_link', 'url'); ?> |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | -$text_input = function ($name, $large_text=false, $required=true) use ($errors) { |
|
2 | +$text_input = function($name, $large_text = false, $required = true) use ($errors) { |
|
3 | 3 | ?> |
4 | 4 | <?php if ($large_text): ?> |
5 | 5 | <textarea name="<?= $name ?>" class="pure-input-1" <?php if ($required): ?>required=""<?php endif; ?> ><?= isset($_POST[$name]) ? $_POST[$name] : '' ?></textarea> |
6 | - <?php else: ?> |
|
6 | + <?php else : ?> |
|
7 | 7 | <input |
8 | 8 | name="<?= $name ?>" |
9 | 9 | value="<?= isset($_POST[$name]) ? $_POST[$name] : '' ?>" |
@@ -3,13 +3,16 @@ discard block |
||
3 | 3 | ?> |
4 | 4 | <?php if ($large_text): ?> |
5 | 5 | <textarea name="<?= $name ?>" class="pure-input-1" <?php if ($required): ?>required=""<?php endif; ?> ><?= isset($_POST[$name]) ? $_POST[$name] : '' ?></textarea> |
6 | - <?php else: ?> |
|
6 | + <?php else { |
|
7 | + : ?> |
|
7 | 8 | <input |
8 | 9 | name="<?= $name ?>" |
9 | 10 | value="<?= isset($_POST[$name]) ? $_POST[$name] : '' ?>" |
10 | 11 | <?php if ($required): ?> |
11 | 12 | required="" |
12 | - <?php endif; ?> |
|
13 | + <?php endif; |
|
14 | +} |
|
15 | +?> |
|
13 | 16 | type="text" |
14 | 17 | class="pure-input-1"> |
15 | 18 | <?php endif; ?> |
@@ -41,7 +44,8 @@ discard block |
||
41 | 44 | But your payment is unsuccessful. If you think this is a mistake, please email us at <a href="mailto:[email protected]" class="underlined">[email protected]</a> |
42 | 45 | </p> |
43 | 46 | <a class="btn" href="<?= locale_base_url() ?>cultural-Colosseum/bob/pay_again/"> Click here to pay again.</a> |
44 | - <?php else: ?> |
|
47 | + <?php else { |
|
48 | + : ?> |
|
45 | 49 | <p class="text-center lead success"> |
46 | 50 | Payment Successful. You're registered for the event. |
47 | 51 | </p> |
@@ -49,13 +53,18 @@ discard block |
||
49 | 53 | Kindly carry your payment receipt which is mailed to you while atteding riders on the storm.<br/> |
50 | 54 | If you think this is a mistake, please email us at <a href="mailto:[email protected]" class="underlined">[email protected]</a> |
51 | 55 | </p> |
52 | - <?php endif; ?> |
|
53 | - <?php else: ?> |
|
56 | + <?php endif; |
|
57 | +} |
|
58 | +?> |
|
59 | + <?php else { |
|
60 | + : ?> |
|
54 | 61 | <form class="pure-form pure-form-stacked row" method="post" action=""> |
55 | 62 | <fieldset class="offset3 col6"> |
56 | 63 | <?php if (isset($errors['common'])): ?> |
57 | 64 | <div class="error pure-input-1-1"><?= $errors['common'] ?></div> |
58 | - <?php endif; ?> |
|
65 | + <?php endif; |
|
66 | +} |
|
67 | +?> |
|
59 | 68 | |
60 | 69 | <label><?= __('Name of the Band (*)') ?></label> |
61 | 70 | <?php $text_input('name'); ?> |
@@ -11,7 +11,7 @@ |
||
11 | 11 | You're registered for the event |
12 | 12 | <?php if ($team_info['nick2']): ?> |
13 | 13 | as a team with <?= $team_info['nick2'] == $user_nick ? $team_info['nick1'] : $team_info['nick2'] ?>. |
14 | - <?php else: ?> |
|
14 | + <?php else : ?> |
|
15 | 15 | as individual. |
16 | 16 | <?php endif; ?> |
17 | 17 | <?php if ($team_info['team_name']): ?> |
@@ -11,14 +11,18 @@ discard block |
||
11 | 11 | You're registered for the event |
12 | 12 | <?php if ($team_info['nick2']): ?> |
13 | 13 | as a team with <?= $team_info['nick2'] == $user_nick ? $team_info['nick1'] : $team_info['nick2'] ?>. |
14 | - <?php else: ?> |
|
14 | + <?php else { |
|
15 | + : ?> |
|
15 | 16 | as individual. |
16 | - <?php endif; ?> |
|
17 | + <?php endif; |
|
18 | +} |
|
19 | +?> |
|
17 | 20 | <?php if ($team_info['team_name']): ?> |
18 | 21 | <br>Your team name is <?= $team_info['team_name'] ?>. |
19 | 22 | <?php endif; ?> |
20 | 23 | </p> |
21 | - <?php else: ?> |
|
24 | + <?php else { |
|
25 | + : ?> |
|
22 | 26 | <p class="text-center lead"> |
23 | 27 | You can register as an individual too. |
24 | 28 | </p> |
@@ -29,7 +33,9 @@ discard block |
||
29 | 33 | <input name="team" value="<?= isset($_POST['team']) ? $_POST['team'] : '' ?>" type="text" placeholder="Your awesome team's name" class="pure-input-1-2" autofocus="" required=""> |
30 | 34 | <?php if (isset($errors['team'])): ?> |
31 | 35 | <div class="error pure-input-1-2" style="margin-left: 11.2em;"><?= $errors['team'] ?></div> |
32 | - <?php endif; ?> |
|
36 | + <?php endif; |
|
37 | +} |
|
38 | +?> |
|
33 | 39 | </div> |
34 | 40 | <div class="pure-control-group"> |
35 | 41 | <label>Your nick(*)</label> |
@@ -35,12 +35,15 @@ |
||
35 | 35 | This is <a href="<?= $user_details['paper_link'] ?>" target="_blank" class="underlined">link</a> to your paper |
36 | 36 | </div> |
37 | 37 | </div> |
38 | - <?php else: ?> |
|
38 | + <?php else { |
|
39 | + : ?> |
|
39 | 40 | <form class="pure-form pure-form-stacked row" method="post" action=""> |
40 | 41 | <fieldset class="offset3 col6"> |
41 | 42 | <?php if (isset($errors['common'])): ?> |
42 | 43 | <div class="error pure-input-1-1"><?= $errors['common'] ?></div> |
43 | - <?php endif; ?> |
|
44 | + <?php endif; |
|
45 | +} |
|
46 | +?> |
|
44 | 47 | |
45 | 48 | <label><?= __('Contact number') ?></label> |
46 | 49 | <?php $text_input('contact_number'); ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -$text_input = function ($name, $type="text") use ($errors) { |
|
2 | +$text_input = function($name, $type = "text") use ($errors) { |
|
3 | 3 | ?> |
4 | 4 | <input |
5 | 5 | name="<?= $name ?>" |
@@ -34,9 +34,12 @@ discard block |
||
34 | 34 | <span class="pull-left"> |
35 | 35 | <?php if ($file['type'] == 'file'): ?> |
36 | 36 | <i class="fa fa-file-text-o"></i> |
37 | - <?php else: ?> |
|
37 | + <?php else { |
|
38 | + : ?> |
|
38 | 39 | <i class="fa fa-folder-o"></i> |
39 | - <?php endif; ?> |
|
40 | + <?php endif; |
|
41 | +} |
|
42 | +?> |
|
40 | 43 | <?= $file['slug'] ?> |
41 | 44 | <span class="grey"><?= $file['path'] ?></span><br> |
42 | 45 | <span class="grey"> |
@@ -58,11 +61,13 @@ discard block |
||
58 | 61 | </button> |
59 | 62 | </form> |
60 | 63 | <?php |
61 | - else: |
|
64 | + else { |
|
65 | + : |
|
62 | 66 | ?> |
63 | 67 | <span class="grey"><?= $file['reason'] ?></span> |
64 | 68 | <?php |
65 | 69 | endif; |
70 | + } |
|
66 | 71 | ?> |
67 | 72 | </span> |
68 | 73 | </li> |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php $this->load_fragment('skeleton_template/header'); ?> |
2 | 2 | <article class="page team"> |
3 | 3 | <?php |
4 | -function img($img_name, $name=null) { |
|
4 | +function img($img_name, $name = null) { |
|
5 | 5 | ?> |
6 | 6 | <div class="img-container<?=$name ? '' : ' group-pic' ?>" style="transform: rotate(<?= 2 - rand(1, 4) ?>deg)"> |
7 | 7 | <img src="<?=base_url()?>static/images/team/<?=$img_name?>"> |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | <?php foreach ($sponsors as $sponsor): ?> |
201 | 201 | <div class="col3 container"> |
202 | 202 | <p><?= $sponsor['name'] ?></p> |
203 | - <img src="<?= base_url() .'static/images/sponsors/'. $sponsor['image'] ?>" alt="<?= $sponsor['name'] ?> Logo" /> |
|
203 | + <img src="<?= base_url() . 'static/images/sponsors/' . $sponsor['image'] ?>" alt="<?= $sponsor['name'] ?> Logo" /> |
|
204 | 204 | </div> |
205 | 205 | <?php endforeach; ?> |
206 | 206 | </div> |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | <div class="row some-top-margin"> |
231 | 231 | <?php foreach ($sponsors as $sponsor): ?> |
232 | 232 | <div class="col3 container"> |
233 | - <img src="<?= base_url() .'static/images/sponsors/'. $sponsor['image'] ?>" alt="<?= $sponsor['name'] ?> Logo" /> |
|
233 | + <img src="<?= base_url() . 'static/images/sponsors/' . $sponsor['image'] ?>" alt="<?= $sponsor['name'] ?> Logo" /> |
|
234 | 234 | <p><?= $sponsor['name'] ?></p> |
235 | 235 | </div> |
236 | 236 | <?php endforeach; ?> |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | <div class="row"> |
242 | 242 | <?php foreach ($sponsors as $sponsor): ?> |
243 | 243 | <div class="col3 container"> |
244 | - <img src="<?= base_url() .'static/images/sponsors/'. $sponsor['image'] ?>" alt="<?= $sponsor['name'] ?> Logo" /> |
|
244 | + <img src="<?= base_url() . 'static/images/sponsors/' . $sponsor['image'] ?>" alt="<?= $sponsor['name'] ?> Logo" /> |
|
245 | 245 | <p><?= $sponsor['name'] ?></p> |
246 | 246 | </div> |
247 | 247 | <?php endforeach; ?> |
@@ -41,11 +41,14 @@ discard block |
||
41 | 41 | <?php $datetime = date_parse($start_time); ?> |
42 | 42 | <?php if ($datetime['error_count']): ?> |
43 | 43 | <?= __($start_time) ?> |
44 | - <?php else: ?> |
|
44 | + <?php else { |
|
45 | + : ?> |
|
45 | 46 | <a class="date-time" target="_blank" href="http://www.timeanddate.com/worldclock/fixedtime.html?day=<?= $datetime['day']?>&month=<?= $datetime['month']?>&year=<?= $datetime['year']?>&hour=<?= $datetime['hour']?>&min=<?= $datetime['minute']?>&sec=<?= $datetime['second']?>&p1=505&msg=<?= urlencode($name) ?>"> |
46 | 47 | <?= $start_time ?> |
47 | 48 | </a> |
48 | - <?php endif; ?> |
|
49 | + <?php endif; |
|
50 | +} |
|
51 | +?> |
|
49 | 52 | </div> |
50 | 53 | </div> |
51 | 54 | <div class="row padded"> |
@@ -56,11 +59,14 @@ discard block |
||
56 | 59 | <?php $datetime = date_parse($end_time); ?> |
57 | 60 | <?php if ($datetime['error_count']): ?> |
58 | 61 | <?= __($end_time) ?> |
59 | - <?php else: ?> |
|
62 | + <?php else { |
|
63 | + : ?> |
|
60 | 64 | <a class="date-time" target="_blank" href="http://www.timeanddate.com/worldclock/fixedtime.html?day=<?= $datetime['day']?>&month=<?= $datetime['month']?>&year=<?= $datetime['year']?>&hour=<?= $datetime['hour']?>&min=<?= $datetime['minute']?>&sec=<?= $datetime['second']?>&p1=505&msg=<?= urlencode($name) ?>"> |
61 | 65 | <?= $end_time ?> |
62 | 66 | </a> |
63 | - <?php endif; ?> |
|
67 | + <?php endif; |
|
68 | +} |
|
69 | +?> |
|
64 | 70 | </div> |
65 | 71 | </div> |
66 | 72 | <div class="row padded"> |
@@ -8,11 +8,11 @@ |
||
8 | 8 | $events_to_display = []; |
9 | 9 | |
10 | 10 | foreach ($events_data as $event) { |
11 | - if ( substr($event['path'], 1, $len) == $page_slug && $event['template'] == 'event' ) { |
|
11 | + if (substr($event['path'], 1, $len) == $page_slug && $event['template'] == 'event') { |
|
12 | 12 | $events_to_display[] = $event; |
13 | 13 | } |
14 | 14 | } |
15 | -usort($events_to_display, function ($e1, $e2) { |
|
15 | +usort($events_to_display, function($e1, $e2) { |
|
16 | 16 | if (!$e2['data']['start_time']) { |
17 | 17 | return -1; |
18 | 18 | } |
@@ -15,8 +15,7 @@ discard block |
||
15 | 15 | usort($events_to_display, function ($e1, $e2) { |
16 | 16 | if (!$e2['data']['start_time']) { |
17 | 17 | return -1; |
18 | - } |
|
19 | - else if (!$e1['data']['start_time']) { |
|
18 | + } else if (!$e1['data']['start_time']) { |
|
20 | 19 | return 1; |
21 | 20 | } |
22 | 21 | return strcmp($e1['data']['start_time'], $e2['data']['start_time']); |
@@ -44,9 +43,12 @@ discard block |
||
44 | 43 | <p><small><?= ($d = $event['data']['start_time']) ? strftime('%B %e', date_timestamp_get(date_create($d))) : __('To be announced') ?></small></p> |
45 | 44 | </a> |
46 | 45 | <?php endforeach; ?> |
47 | - <?php else: ?> |
|
46 | + <?php else { |
|
47 | + : ?> |
|
48 | 48 | Coming soon |
49 | - <?php endif; ?> |
|
49 | + <?php endif; |
|
50 | +} |
|
51 | +?> |
|
50 | 52 | </div> |
51 | 53 | </div> |
52 | 54 | </div> |