Skip to content

Commit

Permalink
Updated bootstrap to v5.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
simba77 committed Sep 24, 2022
1 parent b5eefc9 commit f8207d8
Show file tree
Hide file tree
Showing 128 changed files with 695 additions and 615 deletions.
8 changes: 4 additions & 4 deletions modules/admin/templates/ads_index.phtml
Expand Up @@ -53,10 +53,10 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<div><?= __('Style settings') ?>: <?= ! empty($item['styles']) ? $item['styles'] : __('Default') ?></div>
</div>
<div>
<a href="?mod=up&amp;id=<?= $item['id'] ?>" class="mr-2"><?= __('Up') ?></a>
<a href="?mod=down&amp;id=<?= $item['id'] ?>" class="mr-2"><?= __('Down') ?></a>
<a href="?mod=edit&amp;id=<?= $item['id'] ?>" class="mr-2"><?= __('Edit') ?></a>
<a href="?mod=del&amp;id=<?= $item['id'] ?>" class="text-danger mr-2"><?= __('Delete') ?></a>
<a href="?mod=up&amp;id=<?= $item['id'] ?>" class="me-2"><?= __('Up') ?></a>
<a href="?mod=down&amp;id=<?= $item['id'] ?>" class="me-2"><?= __('Down') ?></a>
<a href="?mod=edit&amp;id=<?= $item['id'] ?>" class="me-2"><?= __('Edit') ?></a>
<a href="?mod=del&amp;id=<?= $item['id'] ?>" class="text-danger me-2"><?= __('Delete') ?></a>
<a href="?mod=show&amp;id=<?= $item['id'] ?>" class="text-danger"><?= ($item['to'] ? __('Show') : __('Hide')) ?></a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions modules/admin/templates/antispy.phtml
Expand Up @@ -27,13 +27,13 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<div class="list-group">
<a href="?mod=snapscan" class="list-group-item list-group-item-action">
<div class="d-flex w-100 justify-content-between">
<h4 class="mb-1 font-weight-bold"><?= __('Snapshot scan') ?></h4>
<h4 class="mb-1 fw-bold"><?= __('Snapshot scan') ?></h4>
</div>
<p class="mb-1"><?= __('Compare the list of files and checksums with pre-made way. Allows you to identify unknow files, and unauthorized changes.') ?></p>
</a>
<a href="?mod=snap" class="list-group-item list-group-item-action">
<div class="d-flex w-100 justify-content-between">
<h4 class="mb-1 font-weight-bold"><?= __('Create snapshot') ?></h4>
<h4 class="mb-1 fw-bold"><?= __('Create snapshot') ?></h4>
</div>
<p class="mb-1"><?= __('Takes a snapshot of all script files from the site calculates their checksums and stored in the database.') ?></p>
</a>
Expand Down
8 changes: 4 additions & 4 deletions modules/admin/templates/counters.phtml
Expand Up @@ -56,10 +56,10 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
</div>
</div>
<div class="mt-2">
<a href="?mod=up&amp;id=<?= $item['id'] ?>" class="mr-2"><?= __('Up') ?></a>
<a href="?mod=down&amp;id=<?= $item['id'] ?>" class="mr-2"><?= __('Down') ?></a>
<a href="?mod=edit&amp;id=<?= $item['id'] ?>" class="mr-2"><?= __('Edit') ?></a>
<a href="?mod=del&amp;id=<?= $item['id'] ?>" class="mr-2 text-danger"><?= __('Delete') ?></a>
<a href="?mod=up&amp;id=<?= $item['id'] ?>" class="me-2"><?= __('Up') ?></a>
<a href="?mod=down&amp;id=<?= $item['id'] ?>" class="me-2"><?= __('Down') ?></a>
<a href="?mod=edit&amp;id=<?= $item['id'] ?>" class="me-2"><?= __('Edit') ?></a>
<a href="?mod=del&amp;id=<?= $item['id'] ?>" class="me-2 text-danger"><?= __('Delete') ?></a>
</div>
</div>
<?php endforeach; ?>
Expand Down
2 changes: 1 addition & 1 deletion modules/admin/templates/counters_form.phtml
Expand Up @@ -73,7 +73,7 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
</div>

<div class="alert alert-info mb-3 mt-3">
<div class="font-weight-bold"><?= __('WARNING!') ?></div>
<div class="fw-bold"><?= __('WARNING!') ?></div>
<div><?= __('Make sure you have correctly entered the code. It must meet the standard of XML') ?></div>
<div><?= __('If you click &quot;View&quot; and XHTML errors occured, then click &quot;Back&quot; button in your browser, return to this form and correct the errors.') ?></div>
</div>
Expand Down
16 changes: 8 additions & 8 deletions modules/admin/templates/forum/hidden_posts.phtml
Expand Up @@ -37,9 +37,9 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<div class="post-header d-flex justify-content-between border-bottom pb-1">
<div class="d-flex align-items-end">
<?php if (! empty($item['user_profile_link'])): ?>
<a href="<?= $item['user_profile_link'] ?>" class="user-login mr-2"><?= $item['user_name'] ?></a>
<a href="<?= $item['user_profile_link'] ?>" class="user-login me-2"><?= $item['user_name'] ?></a>
<?php else: ?>
<a class="user-login mr-2"><?= $item['user_name'] ?></a>
<a class="user-login me-2"><?= $item['user_name'] ?></a>
<?php endif; ?>
<span class="post-date"><?= $item['display_date'] ?></span>
</div>
Expand All @@ -50,15 +50,15 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
</div>
</div>
<div class="post-body d-flex align-items-start pt-3 pb-3">
<div class="user-avatar mr-2 mr-md-4">
<div class="user-avatar me-2 me-md-4">
<div class="avatar-image rounded-circle overflow-hidden">
<img src="<?= $this->avatar($item['id']) ?>" class="img-fluid" alt=".">
</div>
<div class="user-status <?= $item['user_is_online'] ? 'online' : 'offline' ?> shadow"></div>
</div>
<div class="overflow-auto flex-grow-1">
<div class="mb-2 d-flex align-items-center">
<span class="mr-1"><?= __('Topic:') ?></span>
<span class="me-1"><?= __('Topic:') ?></span>
<a href="<?= $item['topic_url'] ?>"><?= $item['topic_name'] ?></a>
</div>
<?= $item['formatted_text'] ?>
Expand All @@ -67,7 +67,7 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<div class="post-footer d-flex justify-content-between border-top pt-2">
<div class="post-user-info d-flex overflow-hidden small align-items-center">
<?php if ($user->rights >= $item['rights']): ?>
<div class="user-ip mr-2">
<div class="user-ip me-2">
<a href="<?= $item['search_ip_url'] ?>"><?= $item['ip'] ?></a>
<?php if (! empty($item['ip_via_proxy'])): ?>
/ <a href="<?= $item['search_ip_via_proxy_url'] ?>"><?= $item['ip_via_proxy'] ?></a>
Expand All @@ -80,7 +80,7 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<?php endif; ?>
</div>
<div class="text-nowrap post-actions">
<span class="text-muted pr-2 flex-grow-1">
<span class="text-muted pe-2 flex-grow-1">
<?php if (! empty($item['edit_count'])): ?>
<?= __('Edited:') ?> <?= $item['editor_name'] ?> (<?= $item['edit_time'] ?>) [<?= $item['edit_count'] ?>]
<?php endif; ?>
Expand All @@ -92,9 +92,9 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<?php endif; ?>
</span>
<?php if (! empty($item['buttons'])): ?>
<span class="pr-1"><?= __('Filter:') ?></span>
<span class="pe-1"><?= __('Filter:') ?></span>
<?php foreach ($item['buttons'] as $button): ?>
<a href="<?= $button['url'] ?>" class="btn btn-secondary btn-sm mr-1"><?= $button['name'] ?></a>
<a href="<?= $button['url'] ?>" class="btn btn-secondary btn-sm me-1"><?= $button['name'] ?></a>
<?php endforeach; ?>
<?php endif; ?>
</div>
Expand Down
20 changes: 10 additions & 10 deletions modules/admin/templates/forum/hidden_topics.phtml
Expand Up @@ -37,30 +37,30 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<div class="post-header d-flex justify-content-between border-bottom pb-1">
<div class="d-flex align-items-end">
<?php if (! empty($item['user_profile_link'])): ?>
<a href="<?= $item['user_profile_link'] ?>" class="user-login mr-2"><?= $item['user_name'] ?></a>
<a href="<?= $item['user_profile_link'] ?>" class="user-login me-2"><?= $item['user_name'] ?></a>
<?php else: ?>
<a class="user-login mr-2"><?= $item['user_name'] ?></a>
<a class="user-login me-2"><?= $item['user_name'] ?></a>
<?php endif; ?>
<span class="post-date"><?= $item['display_date'] ?></span>
</div>
<div class="post-actions"></div>
</div>
<div class="post-body d-flex align-items-start pt-3 pb-3">
<div class="user-avatar mr-2 mr-md-4">
<div class="user-avatar me-2 me-md-4">
<div class="avatar-image rounded-circle overflow-hidden">
<img src="<?= $this->avatar($item['id']) ?>" class="img-fluid" alt=".">
</div>
<div class="user-status <?= $item['user_is_online'] ? 'online' : 'offline' ?> shadow"></div>
</div>
<div class="overflow-auto flex-grow-1">
<div class="mb-2 d-flex align-items-center">
<span class="mr-1"><?= __('Topic:') ?></span>
<span class="me-1"><?= __('Topic:') ?></span>
<a href="<?= $item['topic_url'] ?>"><?= $item['topic_name'] ?></a>
</div>
<div class="d-flex align-items-center">
<span class="mr-1"><?= __('Path:') ?></span>
<span class="me-1"><?= __('Path:') ?></span>
<?php foreach ($item['path'] as $k => $path_item): ?>
<?= ($k > 0 ? '<span class="mr-1 ml-1"> / </span>' : '') ?>
<?= ($k > 0 ? '<span class="me-1 ms-1"> / </span>' : '') ?>
<a href="<?= $path_item['url'] ?>"><?= $path_item['name'] ?></a>
<?php endforeach; ?>
</div>
Expand All @@ -69,7 +69,7 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<div class="post-footer d-flex justify-content-between border-top pt-2">
<div class="post-user-info d-flex overflow-hidden small align-items-center">
<?php if ($user->rights >= $item['rights']): ?>
<div class="user-ip mr-2">
<div class="user-ip me-2">
<a href="<?= $item['search_ip_url'] ?>"><?= $item['ip'] ?></a>
<?php if (! empty($item['ip_via_proxy'])): ?>
/ <a href="<?= $item['search_ip_via_proxy_url'] ?>"><?= $item['ip_via_proxy'] ?></a>
Expand All @@ -82,15 +82,15 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<?php endif; ?>
</div>
<div class="text-nowrap post-actions">
<span class="text-muted pr-2 flex-grow-1">
<span class="text-muted pe-2 flex-grow-1">
<?php if (! empty($item['deleted'])): ?>
<?= __('Topic deleted:') ?> <?= $item['deleted_by'] ?>
<?php endif; ?>
</span>
<?php if (! empty($item['buttons'])): ?>
<span class="pr-1"><?= __('Filter:') ?></span>
<span class="pe-1"><?= __('Filter:') ?></span>
<?php foreach ($item['buttons'] as $button): ?>
<a href="<?= $button['url'] ?>" class="btn btn-secondary btn-sm mr-1"><?= $button['name'] ?></a>
<a href="<?= $button['url'] ?>" class="btn btn-secondary btn-sm me-1"><?= $button['name'] ?></a>
<?php endforeach; ?>
<?php endif; ?>
</div>
Expand Down
6 changes: 3 additions & 3 deletions modules/admin/templates/forum/structure.phtml
Expand Up @@ -37,10 +37,10 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<div class="new_post-item without_avatar">
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<span class="text-muted mr-1">[<?= $item['sort'] ?>]</span>
<span class="text-muted me-1">[<?= $item['sort'] ?>]</span>
<a href="<?= $item['list_url'] ?>"><?= $item['name'] ?></a>
<?php if (! empty($item['counter'])): ?>
<span class="badge badge-pill badge-light border ml-2"><?= $item['counter'] ?></span>
<span class="badge badge-pill badge-light border ms-2"><?= $item['counter'] ?></span>
<?php endif; ?>
</div>
<div>
Expand All @@ -52,7 +52,7 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<?php endif; ?>
<div class="mt-2">
<a href="<?= $item['edit_url'] ?>" class=""><?= __('Edit') ?></a>
<a href="<?= $item['delete_url'] ?>" class="text-danger ml-2"><?= __('Delete') ?></a>
<a href="<?= $item['delete_url'] ?>" class="text-danger ms-2"><?= __('Delete') ?></a>
</div>
</div>
<?php endforeach; ?>
Expand Down
6 changes: 3 additions & 3 deletions modules/admin/templates/index.phtml
Expand Up @@ -10,23 +10,23 @@
<div class="col mt-3">
<div class="card text-center h-100">
<div class="card-body">
<div class="h1 font-weight-bold"><?= $data['last_day_users'] ?></div>
<div class="h1 fw-bold"><?= $data['last_day_users'] ?></div>
<div class="mt-2 h4"><?= __('registered visitors today') ?></div>
</div>
</div>
</div>
<div class="col mt-3">
<div class="card text-center h-100">
<div class="card-body">
<div class="h1 font-weight-bold"><?= $data['registered_users'] ?></div>
<div class="h1 fw-bold"><?= $data['registered_users'] ?></div>
<div class="mt-2 h4"><?= __('users registered today') ?></div>
</div>
</div>
</div>
<div class="col mt-3">
<div class="card text-center h-100">
<div class="card-body">
<div class="h1 font-weight-bold"><?= $data['forum_messages'] ?></div>
<div class="h1 fw-bold"><?= $data['forum_messages'] ?></div>
<div class="mt-2 h4"><?= __('posts on the forum today') ?></div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions modules/admin/templates/ipban_add.phtml
Expand Up @@ -66,9 +66,9 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',

<div class="alert alert-info">
<b><?= __('Example:') ?></b><br>
<div><span class="font-weight-bold">10.5.7.1</span> &mdash; <?= __('Ban one address') ?></div>
<div><span class="font-weight-bold">10.5.7.1-10.5.7.100</span> &mdash; <?= __('Ban range of address') ?></div>
<div><span class="font-weight-bold">10.5.*.*</span> &mdash; <?= __('Ban on a mask. There will banned from the entrie subnet, begining with address 0 and ending with 255') ?></div>
<div><span class="fw-bold">10.5.7.1</span> &mdash; <?= __('Ban one address') ?></div>
<div><span class="fw-bold">10.5.7.1-10.5.7.100</span> &mdash; <?= __('Ban range of address') ?></div>
<div><span class="fw-bold">10.5.*.*</span> &mdash; <?= __('Ban on a mask. There will banned from the entrie subnet, begining with address 0 and ending with 255') ?></div>
</div>

<div class="mt-3">
Expand Down
12 changes: 6 additions & 6 deletions modules/admin/templates/languages/manage.phtml
Expand Up @@ -15,15 +15,15 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
<div class="d-flex justify-content-between">
<div>
<?php if (! empty($val['flag'])): ?>
<img src="<?= $val['flag'] ?>" alt="." class="mr-2 icon icon-flag">
<img src="<?= $val['flag'] ?>" alt="." class="me-2 icon icon-flag">
<?php endif ?>
<?= $val['name'] ?>
</div>
</div>
<div class="post-body">
<span class="mr-2"><?= __('Version:') ?> <?= number_format($val['version'], 1) ?></span>
<span class="me-2"><?= __('Version:') ?> <?= number_format($val['version'], 1) ?></span>
<?php if (! empty($val['need_update'])): ?>
<span class="mr-2 font-weight-bold"><?= __('New version:') ?> <?= number_format($val['new_version'], 1) ?></span>
<span class="me-2 fw-bold"><?= __('New version:') ?> <?= number_format($val['new_version'], 1) ?></span>
<?php endif; ?>
<?php if (! empty($val['installed'])): ?>
<span class="text-success"><?= __('Installed') ?></span>
Expand All @@ -33,12 +33,12 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
</div>
<div class="post-meta">
<?php if ($val['access_problem']): ?>
<div class="font-weight-bold text-danger"><?= __('The language files of this language are not writable! ') ?></div>
<div class="fw-bold text-danger"><?= __('The language files of this language are not writable! ') ?></div>
<?php else: ?>
<?php if (! empty($val['installed'])): ?>
<a href="/admin/languages/?action=delete&code=<?= $key ?>" class="mr-2"><?= __('Delete') ?></a>
<a href="/admin/languages/?action=delete&code=<?= $key ?>" class="me-2"><?= __('Delete') ?></a>
<?php else: ?>
<a href="/admin/languages/?action=install&code=<?= $key ?>" class="mr-2"><?= __('Install') ?></a>
<a href="/admin/languages/?action=install&code=<?= $key ?>" class="me-2"><?= __('Install') ?></a>
<?php endif; ?>
<?php if (! empty($val['need_update'])): ?>
<a href="/admin/languages/?action=update&code=<?= $key ?>"><?= __('Update') ?></a>
Expand Down
6 changes: 3 additions & 3 deletions modules/admin/templates/search_ip.phtml
Expand Up @@ -43,9 +43,9 @@ $this->sectionReplace('sidebar-menu', $this->fetch('admin::sidebar-admin-menu',
</div>
<div class="text-muted mb-2 small">
<b><?= __('Sample queries:') ?></b><br>
<div><span class="font-weight-bold">10.5.7.1</span> &mdash; <?= __('Search for a single address') ?></div>
<div><span class="font-weight-bold">10.5.7.1-10.5.7.100</span> &mdash; <?= __('Search a range address (forbidden to use mask symbol *)') ?></div>
<div><span class="font-weight-bold">10.5.*.*</span> &mdash; <?= __('Search mask. Will be found all subnet addresses starting with 0 and ending with 255') ?></div>
<div><span class="fw-bold">10.5.7.1</span> &mdash; <?= __('Search for a single address') ?></div>
<div><span class="fw-bold">10.5.7.1-10.5.7.100</span> &mdash; <?= __('Search a range address (forbidden to use mask symbol *)') ?></div>
<div><span class="fw-bold">10.5.*.*</span> &mdash; <?= __('Search mask. Will be found all subnet addresses starting with 0 and ending with 255') ?></div>

</div>
</form>
Expand Down

0 comments on commit f8207d8

Please sign in to comment.