@@ -38,9 +38,12 @@ |
||
| 38 | 38 | <div class="col-sm-2"> |
| 39 | 39 | <?php if ($user->isExists()) : ?> |
| 40 | 40 | <label for="user_pass"><?= EBB\escHTML(d__('winry', 'New Password')) ?></label> |
| 41 | - <?php else : ?> |
|
| 41 | + <?php else { |
|
| 42 | + : ?> |
|
| 42 | 43 | <label for="user_pass"><?= EBB\escHTML(d__('winry', 'Password')) ?> <span class="form-required">*</span></label> |
| 43 | - <?php endif; ?> |
|
| 44 | + <?php endif; |
|
| 45 | +} |
|
| 46 | +?> |
|
| 44 | 47 | </div> |
| 45 | 48 | <div class="col-sm-4"> |
| 46 | 49 | <input type="password" name="user_pass_1" id="user_pass_1" class="form-control" value="" placeholder="<?= EBB\escAttr(d__('winry', 'Type the password')) ?>" autocomplete="off" /> |
@@ -30,9 +30,12 @@ |
||
| 30 | 30 | |
| 31 | 31 | <?php if ($number == $view->get('current')) : ?> |
| 32 | 32 | <li class="active"><span><?= EBB\escHTML(number_format($number)) ?></span></li> |
| 33 | - <?php else : ?> |
|
| 33 | + <?php else { |
|
| 34 | + : ?> |
|
| 34 | 35 | <li><a href="<?= EBB\escURL($url) ?>"><?= EBB\escHTML(number_format($number)) ?></a></li> |
| 35 | - <?php endif; ?> |
|
| 36 | + <?php endif; |
|
| 37 | +} |
|
| 38 | +?> |
|
| 36 | 39 | |
| 37 | 40 | <?php endforeach; ?> |
| 38 | 41 | |
@@ -20,10 +20,13 @@ |
||
| 20 | 20 | <?= EBB\getAddCityLink(['content' => EBB\escHTML(d__('winry', 'Add City')), 'atts' => ['class' => 'btn btn-lg btn-default']], $context) ?> |
| 21 | 21 | <?= EBB\getAddDistrictLink(['content' => EBB\escHTML(d__('winry', 'Add District')), 'atts' => ['class' => 'btn btn-lg btn-default']], $context) ?> |
| 22 | 22 | <?= EBB\getAddUserLink(['content' => EBB\escHTML(d__('winry', 'Add User')), 'atts' => ['class' => 'btn btn-lg btn-default']], $context) ?> |
| 23 | - <?php else : ?> |
|
| 23 | + <?php else { |
|
| 24 | + : ?> |
|
| 24 | 25 | <?= EBB\getSignupLink(['atts' => ['class' => 'btn btn-lg btn-primary']]) ?> |
| 25 | 26 | <?= EBB\getLoginLink(['atts' => ['class' => 'btn btn-lg btn-default']]) ?> |
| 26 | - <?php endif; ?> |
|
| 27 | + <?php endif; |
|
| 28 | +} |
|
| 29 | +?> |
|
| 27 | 30 | </div> |
| 28 | 31 | </div> |
| 29 | 32 | |
@@ -55,10 +55,13 @@ |
||
| 55 | 55 | <?php if ($currentUser) : ?> |
| 56 | 56 | <?= EBB\getEditUserLink(['user' => $currentUser, 'content' => sprintf(d__('winry', 'Hello, <b>%s</b>!'), EBB\escHTML($currentUser->get('name'))), 'before' => '<li>', 'after' => '</li>'], $context) ?> |
| 57 | 57 | <?= EBB\getLogoutLink(['before' => '<li>', 'after' => '</li>'], $context) ?> |
| 58 | - <?php else : ?> |
|
| 58 | + <?php else { |
|
| 59 | + : ?> |
|
| 59 | 60 | <?= EBB\getLoginLink(['content' => EBB\escHTML(d__('winry', 'Anonymous, Log In?')), 'before' => '<li>', 'after' => '</li>'], $context) ?> |
| 60 | 61 | <?= EBB\getSignupLink(['before' => '<li>', 'after' => '</li>']) ?> |
| 61 | - <?php endif; ?> |
|
| 62 | + <?php endif; |
|
| 63 | +} |
|
| 64 | +?> |
|
| 62 | 65 | </ul> |
| 63 | 66 | </div> |
| 64 | 67 | <!-- /.navbar-collapse --> |
@@ -41,16 +41,22 @@ discard block |
||
| 41 | 41 | <dt><?= EBB\escHTML(d__('winry', 'E-mail')) ?></dt> |
| 42 | 42 | <?php if ($currentUser && $acl->canReadEntity($currentUser, $donor)) : ?> |
| 43 | 43 | <dd><?= EBB\escHTML($donor->getMeta('email')) ?></dd> |
| 44 | - <?php else : ?> |
|
| 44 | + <?php else { |
|
| 45 | + : ?> |
|
| 45 | 46 | <dd><span class="text-warning"><?= EBB\escHTML(d__('winry', 'Only site members can view this donor e-mail address.')) ?></span></dd> |
| 46 | - <?php endif; ?> |
|
| 47 | + <?php endif; |
|
| 48 | +} |
|
| 49 | +?> |
|
| 47 | 50 | <?php elseif ('staff' === $donorEmailVisibility) : ?> |
| 48 | 51 | <dt><?= EBB\escHTML(d__('winry', 'E-mail')) ?></dt> |
| 49 | 52 | <?php if ($currentUser && $acl->canEditEntity($currentUser, $donor)) : ?> |
| 50 | 53 | <dd><?= EBB\escHTML($donor->getMeta('email')) ?></dd> |
| 51 | - <?php else : ?> |
|
| 54 | + <?php else { |
|
| 55 | + : ?> |
|
| 52 | 56 | <dd><span class="text-warning"><?= EBB\escHTML(d__('winry', 'Only site staff can view this donor e-mail address.')) ?></span></dd> |
| 53 | - <?php endif; ?> |
|
| 57 | + <?php endif; |
|
| 58 | +} |
|
| 59 | +?> |
|
| 54 | 60 | <?php endif; ?> |
| 55 | 61 | |
| 56 | 62 | <?php $donorPhoneVisibility = $donor->getMeta('phone_visibility') ?> |
@@ -62,16 +68,22 @@ discard block |
||
| 62 | 68 | <dt><?= EBB\escHTML(d__('winry', 'Phone')) ?></dt> |
| 63 | 69 | <?php if ($currentUser && $acl->canReadEntity($currentUser, $donor)) : ?> |
| 64 | 70 | <dd><?= EBB\escHTML($donor->getMeta('phone')) ?></dd> |
| 65 | - <?php else : ?> |
|
| 71 | + <?php else { |
|
| 72 | + : ?> |
|
| 66 | 73 | <dd><span class="text-warning"><?= EBB\escHTML(d__('winry', 'Only site members can view this donor phone number.')) ?></span></dd> |
| 67 | - <?php endif; ?> |
|
| 74 | + <?php endif; |
|
| 75 | +} |
|
| 76 | +?> |
|
| 68 | 77 | <?php elseif ('staff' === $donorPhoneVisibility) : ?> |
| 69 | 78 | <dt><?= EBB\escHTML(d__('winry', 'Phone')) ?></dt> |
| 70 | 79 | <?php if ($currentUser && $acl->canEditEntity($currentUser, $donor)) : ?> |
| 71 | 80 | <dd><?= EBB\escHTML($donor->getMeta('phone')) ?></dd> |
| 72 | - <?php else : ?> |
|
| 81 | + <?php else { |
|
| 82 | + : ?> |
|
| 73 | 83 | <dd><span class="text-warning"><?= EBB\escHTML(d__('winry', 'Only site staff can view this donor phone number.')) ?></span></dd> |
| 74 | - <?php endif; ?> |
|
| 84 | + <?php endif; |
|
| 85 | +} |
|
| 86 | +?> |
|
| 75 | 87 | <?php endif; ?> |
| 76 | 88 | |
| 77 | 89 | <dt><?= EBB\escHTML(d__('winry', 'City\District')) ?></dt> |