Skip to content

Commit b688c7d

Browse files
committed
Short echo syntax
1 parent ddd60fb commit b688c7d

74 files changed

Lines changed: 1177 additions & 1177 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎featherbb/View/admin/bans/add_ban.php‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
?>
1919

2020
<div class="blockform">
21-
<h2><span><?php _e('Ban advanced head') ?></span></h2>
21+
<h2><span><?= __('Ban advanced head') ?></span></h2>
2222
<div class="box">
2323
<form id="bans2" method="post" action="">
2424
<div class="inform">
@@ -28,72 +28,72 @@
2828
<?php endif; ?>
2929
<?php if ($ban['mode'] == 'add' && isset($ban['user_id'])): ?><input type="hidden" name="ban_user_id" value="<?= $ban['user_id'] ?>" />
3030
<?php endif; ?><fieldset>
31-
<legend><?php _e('Ban advanced subhead') ?></legend>
31+
<legend><?= __('Ban advanced subhead') ?></legend>
3232
<div class="infldset">
3333
<table class="aligntop">
3434
<tr>
35-
<th scope="row"><?php _e('Username label') ?></th>
35+
<th scope="row"><?= __('Username label') ?></th>
3636
<td>
3737
<input type="text" name="ban_user" size="25" maxlength="25" value="<?php if (isset($ban['ban_user'])) {
3838
echo Utils::escape($ban['ban_user']);
3939
} ?>" tabindex="1" autofocus />
40-
<span><?php _e('Username help') ?></span>
40+
<span><?= __('Username help') ?></span>
4141
</td>
4242
</tr>
4343
<tr>
44-
<th scope="row"><?php _e('IP label') ?></th>
44+
<th scope="row"><?= __('IP label') ?></th>
4545
<td>
4646
<input type="text" name="ban_ip" size="45" maxlength="255" value="<?php if (isset($ban['ip'])) {
4747
echo Utils::escape($ban['ip']);
4848
} ?>" tabindex="2" />
49-
<span><?php _e('IP help') ?><?php if ($ban['ban_user'] != '' && isset($ban['user_id'])) {
49+
<span><?= __('IP help') ?><?php if ($ban['ban_user'] != '' && isset($ban['user_id'])) {
5050
printf(' '.__('IP help link'), '<a href="'.Router::pathFor('usersIpStats', ['id' => $ban['user_id']]).'">'.__('here').'</a>');
5151
} ?></span>
5252
</td>
5353
</tr>
5454
<tr>
55-
<th scope="row"><?php _e('E-mail label') ?></th>
55+
<th scope="row"><?= __('E-mail label') ?></th>
5656
<td>
5757
<input type="text" name="ban_email" size="40" maxlength="80" value="<?php if (isset($ban['email'])) {
5858
echo Utils::escape($ban['email']);
5959
} ?>" tabindex="3" />
60-
<span><?php _e('E-mail help') ?></span>
60+
<span><?= __('E-mail help') ?></span>
6161
</td>
6262
</tr>
6363
</table>
64-
<p class="topspace"><strong class="warntext"><?php _e('Ban IP range info') ?></strong></p>
64+
<p class="topspace"><strong class="warntext"><?= __('Ban IP range info') ?></strong></p>
6565
</div>
6666
</fieldset>
6767
</div>
6868
<div class="inform">
6969
<fieldset>
70-
<legend><?php _e('Message expiry subhead') ?></legend>
70+
<legend><?= __('Message expiry subhead') ?></legend>
7171
<div class="infldset">
7272
<table class="aligntop">
7373
<tr>
74-
<th scope="row"><?php _e('Ban message label') ?></th>
74+
<th scope="row"><?= __('Ban message label') ?></th>
7575
<td>
7676
<input type="text" name="ban_message" size="50" maxlength="255" value="<?php if (isset($ban['message'])) {
7777
echo Utils::escape($ban['message']);
7878
} ?>" tabindex="4" />
79-
<span><?php _e('Ban message help') ?></span>
79+
<span><?= __('Ban message help') ?></span>
8080
</td>
8181
</tr>
8282
<tr>
83-
<th scope="row"><?php _e('Expire date label') ?></th>
83+
<th scope="row"><?= __('Expire date label') ?></th>
8484
<td>
8585
<input type="text" name="ban_expire" size="17" maxlength="10" value="<?php if (isset($ban['expire'])) {
8686
echo $ban['expire'];
8787
} ?>" tabindex="5" />
88-
<span><?php _e('Expire date help') ?></span>
88+
<span><?= __('Expire date help') ?></span>
8989
</td>
9090
</tr>
9191
</table>
9292
</div>
9393
</fieldset>
9494
</div>
9595
<?php Container::get('hooks')->fire('view.admin.bans.add.form'); ?>
96-
<p class="submitend"><input type="submit" name="add_edit_ban" value="<?php _e('Save') ?>" tabindex="6" /></p>
96+
<p class="submitend"><input type="submit" name="add_edit_ban" value="<?= __('Save') ?>" tabindex="6" /></p>
9797
</form>
9898
</div>
9999
</div>

‎featherbb/View/admin/bans/admin_bans.php‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
?>
1717

1818
<div class="blockform">
19-
<h2><span><?php _e('New ban head') ?></span></h2>
19+
<h2><span><?= __('New ban head') ?></span></h2>
2020
<div class="box">
2121
<form id="bans" method="post" action="<?= Router::pathFor('addBan') ?>">
2222
<input type="hidden" name="csrf_name" value="<?= $csrf_name; ?>"><input type="hidden" name="csrf_value" value="<?= $csrf_value; ?>">
2323
<div class="inform">
2424
<fieldset>
25-
<legend><?php _e('Add ban subhead') ?></legend>
25+
<legend><?= __('Add ban subhead') ?></legend>
2626
<div class="infldset">
2727
<table class="aligntop">
2828
<tr>
29-
<th scope="row"><?php _e('Username label') ?><div><input type="submit" name="add_ban" value="<?php _e('Add') ?>" tabindex="2" /></div></th>
29+
<th scope="row"><?= __('Username label') ?><div><input type="submit" name="add_ban" value="<?= __('Add') ?>" tabindex="2" /></div></th>
3030
<td>
3131
<input type="text" name="new_ban_user" size="25" maxlength="25" tabindex="1" autofocus />
32-
<span><?php _e('Username advanced help') ?></span>
32+
<span><?= __('Username advanced help') ?></span>
3333
</td>
3434
</tr>
3535
</table>
@@ -39,55 +39,55 @@
3939
</form>
4040
</div>
4141

42-
<h2 class="block2"><span><?php _e('Ban search head') ?></span></h2>
42+
<h2 class="block2"><span><?= __('Ban search head') ?></span></h2>
4343
<div class="box">
4444
<form id="find_bans" method="get" action="<?= Router::pathFor('adminBans') ?>">
45-
<p class="submittop"><input type="submit" name="find_ban" value="<?php _e('Submit search') ?>" tabindex="3" /></p>
45+
<p class="submittop"><input type="submit" name="find_ban" value="<?= __('Submit search') ?>" tabindex="3" /></p>
4646
<div class="inform">
4747
<fieldset>
48-
<legend><?php _e('Ban search subhead') ?></legend>
48+
<legend><?= __('Ban search subhead') ?></legend>
4949
<div class="infldset">
50-
<p><?php _e('Ban search info') ?></p>
50+
<p><?= __('Ban search info') ?></p>
5151
<table class="aligntop">
5252
<tr>
53-
<th scope="row"><?php _e('Username label') ?></th>
53+
<th scope="row"><?= __('Username label') ?></th>
5454
<td><input type="text" name="username" size="30" maxlength="25" tabindex="4" /></td>
5555
</tr>
5656
<tr>
57-
<th scope="row"><?php _e('IP label') ?></th>
57+
<th scope="row"><?= __('IP label') ?></th>
5858
<td><input type="text" name="ip" size="30" maxlength="255" tabindex="5" /></td>
5959
</tr>
6060
<tr>
61-
<th scope="row"><?php _e('E-mail label') ?></th>
61+
<th scope="row"><?= __('E-mail label') ?></th>
6262
<td><input type="text" name="email" size="30" maxlength="80" tabindex="6" /></td>
6363
</tr>
6464
<tr>
65-
<th scope="row"><?php _e('Message label') ?></th>
65+
<th scope="row"><?= __('Message label') ?></th>
6666
<td><input type="text" name="message" size="30" maxlength="255" tabindex="7" /></td>
6767
</tr>
6868
<tr>
69-
<th scope="row"><?php _e('Expire after label') ?></th>
69+
<th scope="row"><?= __('Expire after label') ?></th>
7070
<td><input type="text" name="expire_after" size="10" maxlength="10" tabindex="8" />
71-
<span><?php _e('Date help') ?></span></td>
71+
<span><?= __('Date help') ?></span></td>
7272
</tr>
7373
<tr>
74-
<th scope="row"><?php _e('Expire before label') ?></th>
74+
<th scope="row"><?= __('Expire before label') ?></th>
7575
<td><input type="text" name="expire_before" size="10" maxlength="10" tabindex="9" />
76-
<span><?php _e('Date help') ?></span></td>
76+
<span><?= __('Date help') ?></span></td>
7777
</tr>
7878
<tr>
79-
<th scope="row"><?php _e('Order by label') ?></th>
79+
<th scope="row"><?= __('Order by label') ?></th>
8080
<td>
8181
<select name="order_by" tabindex="10">
82-
<option value="username" selected="selected"><?php _e('Order by username') ?></option>
83-
<option value="ip"><?php _e('Order by ip') ?></option>
84-
<option value="email"><?php _e('Order by e-mail') ?></option>
85-
<option value="expire"><?php _e('Order by expire') ?></option>
82+
<option value="username" selected="selected"><?= __('Order by username') ?></option>
83+
<option value="ip"><?= __('Order by ip') ?></option>
84+
<option value="email"><?= __('Order by e-mail') ?></option>
85+
<option value="expire"><?= __('Order by expire') ?></option>
8686
</select>
8787
&#160;&#160;&#160;
8888
<select name="direction" tabindex="11">
89-
<option value="ASC" selected="selected"><?php _e('Ascending') ?></option>
90-
<option value="DESC"><?php _e('Descending') ?></option>
89+
<option value="ASC" selected="selected"><?= __('Ascending') ?></option>
90+
<option value="DESC"><?= __('Descending') ?></option>
9191
</select>
9292
</td>
9393
</tr>
@@ -96,7 +96,7 @@
9696
</div>
9797
</fieldset>
9898
</div>
99-
<p class="submitend"><input type="submit" name="find_ban" value="<?php _e('Submit search') ?>" tabindex="12" /></p>
99+
<p class="submitend"><input type="submit" name="find_ban" value="<?= __('Submit search') ?>" tabindex="12" /></p>
100100
</form>
101101
</div>
102102
</div>

‎featherbb/View/admin/bans/search_ban.php‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
<div class="linkst">
2121
<div class="inbox crumbsplus">
2222
<ul class="crumbs">
23-
<li><a href="<?= Router::pathFor('adminIndex') ?>"><?php _e('Admin'); echo ' '; _e('Index') ?></a></li>
24-
<li><span>»&#160;</span><a href="<?= Router::pathFor('addBan') ?>"><?php _e('Bans') ?></a></li>
25-
<li><span>»&#160;</span><strong><?php _e('Results head') ?></strong></li>
23+
<li><a href="<?= Router::pathFor('adminIndex') ?>"><?= __('Admin'); echo ' '; _e('Index') ?></a></li>
24+
<li><span>»&#160;</span><a href="<?= Router::pathFor('addBan') ?>"><?= __('Bans') ?></a></li>
25+
<li><span>»&#160;</span><strong><?= __('Results head') ?></strong></li>
2626
</ul>
2727
<div class="pagepost">
2828
<p class="pagelink"><?= $paging_links ?></p>
@@ -33,19 +33,19 @@
3333

3434

3535
<div id="bans1" class="blocktable">
36-
<h2><span><?php _e('Results head') ?></span></h2>
36+
<h2><span><?= __('Results head') ?></span></h2>
3737
<div class="box">
3838
<div class="inbox">
3939
<table>
4040
<thead>
4141
<tr>
42-
<th class="tcl" scope="col"><?php _e('Results username head') ?></th>
43-
<th class="tc2" scope="col"><?php _e('Results e-mail head') ?></th>
44-
<th class="tc3" scope="col"><?php _e('Results IP address head') ?></th>
45-
<th class="tc4" scope="col"><?php _e('Results expire head') ?></th>
46-
<th class="tc5" scope="col"><?php _e('Results message head') ?></th>
47-
<th class="tc6" scope="col"><?php _e('Results banned by head') ?></th>
48-
<th class="tcr" scope="col"><?php _e('Results actions head') ?></th>
42+
<th class="tcl" scope="col"><?= __('Results username head') ?></th>
43+
<th class="tc2" scope="col"><?= __('Results e-mail head') ?></th>
44+
<th class="tc3" scope="col"><?= __('Results IP address head') ?></th>
45+
<th class="tc4" scope="col"><?= __('Results expire head') ?></th>
46+
<th class="tc5" scope="col"><?= __('Results message head') ?></th>
47+
<th class="tc6" scope="col"><?= __('Results banned by head') ?></th>
48+
<th class="tcr" scope="col"><?= __('Results actions head') ?></th>
4949
</tr>
5050
</thead>
5151
<tbody>
@@ -82,9 +82,9 @@
8282
<p class="pagelink"><?= $paging_links ?></p>
8383
</div>
8484
<ul class="crumbs">
85-
<li><a href="<?= Router::pathFor('adminIndex') ?>"><?php _e('Admin'); echo ' '; _e('Index') ?></a></li>
86-
<li><span>»&#160;</span><a href="<?= Router::pathFor('adminBans') ?>"><?php _e('Bans') ?></a></li>
87-
<li><span>»&#160;</span><strong><?php _e('Results head') ?></strong></li>
85+
<li><a href="<?= Router::pathFor('adminIndex') ?>"><?= __('Admin'); echo ' '; _e('Index') ?></a></li>
86+
<li><span>»&#160;</span><a href="<?= Router::pathFor('adminBans') ?>"><?= __('Bans') ?></a></li>
87+
<li><span>»&#160;</span><strong><?= __('Results head') ?></strong></li>
8888
</ul>
8989
<div class="clearer"></div>
9090
</div>

0 commit comments

Comments
 (0)