Skip to content

Commit 2cb0daa

Browse files
authored
Tidy copy and fix PHP syntax (hestiacp#4242)
1 parent d9de3d8 commit 2cb0daa

File tree

8 files changed

+20
-19
lines changed

8 files changed

+20
-19
lines changed

docs/docs/user-guide/notifications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
To view your notifications, click the <i class="fas fa-lg fa-fw fa-bell"><span class="visually-hidden">notification</span></i> icon in the top right.
44

5-
You can delete a notification by clicking the small red "X" on the top right.
5+
You can delete a notification by clicking the <i class="fas fa-lg fa-fw fa-xmark"></i><span class="visually-hidden">delete</span></i> icon on the top right.

web/templates/pages/add_cron.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<div class="u-side-by-side-tablet u-mb20">
2626
<h1><?= _("Add Cron Job") ?></h1>
2727
<p>
28-
<?= _('System time') ?>:
28+
<?= _("System time") ?>:
2929
<time datetime="<?= date("c", $current_timestamp) ?>" class="u-text-bold">
3030
<?= date("d M Y, H:i", $current_timestamp) ?>
3131
</time>

web/templates/pages/add_firewall_ipset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function generate_iplist($country, $type) {
7373
</div>
7474
<div class="u-mb10">
7575
<label for="v_datasource" class="form-label">
76-
<?= _("Data Source") ?> <span class="optional">(<?= _("url, script or file") ?>)</span>
76+
<?= _("Data Source") ?> <span class="optional">(<?= _("URL, script or file") ?>)</span>
7777
</label>
7878
<div class="u-pos-relative">
7979
<select

web/templates/pages/edit_cron.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<div class="u-side-by-side-tablet u-mb20">
2626
<h1><?= _("Edit Cron Job") ?></h1>
2727
<p>
28-
<?= _('System time') ?>:
28+
<?= _("System time") ?>:
2929
<time datetime="<?= date("c", $current_timestamp) ?>" class="u-text-bold">
3030
<?= date("d M Y, H:i", $current_timestamp) ?>
3131
</time>

web/templates/pages/list_firewall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class="units-table-row-action-link data-controls js-confirm-action"
149149
href="/delete/firewall/?rule=<?= $key ?>&token=<?= $_SESSION["token"] ?>"
150150
title="<?= _("Delete") ?>"
151151
data-confirm-title="<?= _("Delete") ?>"
152-
data-confirm-message="<?= sprintf(_("Are you sure you want to delete rule %s"), $key) ?>"
152+
data-confirm-message="<?= sprintf(_("Are you sure you want to delete rule #%s?"), $key) ?>"
153153
>
154154
<i class="fas fa-trash icon-red"></i>
155155
<span class="u-hide-desktop"><?= _("Delete") ?></span>

web/templates/pages/list_services.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class="button button-secondary button-danger data-controls js-confirm-action"
2424
href="/restart/system/?hostname=<?= $sys["sysinfo"]["HOSTNAME"] ?>&token=<?= $_SESSION["token"] ?>&system_reset_token=<?= time() ?>"
2525
data-confirm-title="<?= _("Restart") ?>"
26-
data-confirm-message="<?= sprintf(_("Are you sure you want to restart %s?"), "Server") ?>"
26+
data-confirm-message="<?= _("Are you sure you want to restart the server?") ?>"
2727
>
2828
<i class="fas fa-arrow-rotate-left icon-red"></i><?= _("Restart") ?>
2929
</a>
@@ -168,7 +168,7 @@ class="units-table-row-action-link data-controls js-confirm-action"
168168
href="/restart/service/?srv=<?= $key ?>&token=<?= $_SESSION["token"] ?>"
169169
title="<?= _("Restart") ?>"
170170
data-confirm-title="<?= _("Restart") ?>"
171-
data-confirm-message="<?= sprintf(_("Are you sure you want to restart %s?"), $key) ?>"
171+
data-confirm-message="<?= sprintf(_("Are you sure you want to restart the %s service?"), $key) ?>"
172172
>
173173
<i class="fas fa-arrow-rotate-left icon-highlight"></i>
174174
<span class="u-hide-desktop"><?= _("Restart") ?></span>
@@ -178,11 +178,12 @@ class="units-table-row-action-link data-controls js-confirm-action"
178178
<a
179179
class="units-table-row-action-link data-controls js-confirm-action"
180180
href="/<?= $action ?>/service/?srv=<?= $key ?>&token=<?= $_SESSION["token"] ?>"
181-
title="<?=$action_text ?>"
182-
data-confirm-message="<?php if ($action == 'stop'){ echo sprintf(_('Are you sure you want to stop service %s?'), $key); } else { echo sprintf(_('Are you sure you want to start service %s?'), $key); }?>"
181+
title="<?= $action_text ?>"
182+
data-confirm-title="<?= $action_text ?>"
183+
data-confirm-message="<?php if ($action == 'stop') { echo sprintf(_('Are you sure you want to stop the %s service?'), $key); } else { echo sprintf(_('Are you sure you want to start the %s service?'), $key); }?>"
183184
>
184185
<i class="fas <?= $spnd_icon ?> <?= $spnd_icon_class ?>"></i>
185-
<span class="u-hide-desktop"><?=$action_text ?></span>
186+
<span class="u-hide-desktop"><?= $action_text ?></span>
186187
</a>
187188
</li>
188189
</ul>

web/templates/pages/list_updates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<div class="units-table js-units-container">
3232
<div class="units-table-header">
33-
<div class="units-table-cell"><?= _("Package Names") ?></div>
33+
<div class="units-table-cell"><?= _("Package Name") ?></div>
3434
<div class="units-table-cell"><?= _("Description") ?></div>
3535
<div class="units-table-cell u-text-center"><?= _("Version") ?></div>
3636
<div class="units-table-cell u-text-center"><?= _("Status") ?></div>

web/templates/pages/list_web.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
<?php } ?>
4545
<option value="suspend"><?= _("Suspend") ?></option>
4646
<option value="unsuspend"><?= _("Unsuspend") ?></option>
47-
<?php if (($_SESSION['PROXY_SYSTEM'] == 'nginx') || ($_SESSION['WEB_SYSTEM'] == 'nginx')){?>}
48-
<option value="purge"><?= _('Purge Nginx Cache');?></option>
49-
<? } ?>
47+
<?php if ($_SESSION["PROXY_SYSTEM"] == "nginx" || $_SESSION["WEB_SYSTEM"] == "nginx") { ?>}
48+
<option value="purge"><?= _("Purge Nginx Cache") ?></option>
49+
<?php } ?>
5050
<option value="delete"><?= _("Delete") ?></option>
5151
</select>
5252
<button type="submit" class="toolbar-input-submit" title="<?= _("Apply to selected") ?>">
@@ -187,11 +187,11 @@
187187
}
188188
?>
189189
<div class="units-table-row <?php if ($data[$key]['SUSPENDED'] == 'yes') echo 'disabled'; ?> js-unit"
190-
data-sort-ip="<?= str_replace('.', '', $data[$key]['IP']) ?>"
191-
data-sort-date="<?= strtotime($data[$key]['DATE'].' '.$data[$key]['TIME']) ?>"
190+
data-sort-ip="<?= str_replace(".", "", $data[$key]["IP"]) ?>"
191+
data-sort-date="<?= strtotime($data[$key]["DATE"] . " " . $data[$key]["TIME"]) ?>"
192192
data-sort-name="<?= $key ?>"
193-
data-sort-bandwidth="<?= $data[$key]['U_BANDWIDTH'] ?>"
194-
data-sort-disk="<?= $data[$key]['U_DISK'] ?>">
193+
data-sort-bandwidth="<?= $data[$key]["U_BANDWIDTH"] ?>"
194+
data-sort-disk="<?= $data[$key]["U_DISK"] ?>">
195195
<div class="units-table-cell">
196196
<div>
197197
<input id="check<?= $i ?>" class="js-unit-checkbox" type="checkbox" title="<?= _("Select") ?>" name="domain[]" value="<?= $key ?>" <?= $display_mode ?>>
@@ -265,7 +265,7 @@ class="units-table-row-action-link"
265265
<li class="units-table-row-action" data-key-action="href">
266266
<a
267267
class="units-table-row-action-link"
268-
href="/download/site/?site=<?=$key?>&token=<?= $_SESSION['token'] ?>"
268+
href="/download/site/?site=<?= $key ?>&token=<?= $_SESSION["token"] ?>"
269269
title="<?= _("Download Site") ?>"
270270
>
271271
<i class="fas fa-download icon-orange"></i>

0 commit comments

Comments
 (0)