[+] добавлен бутстрап и шапка меню
This commit is contained in:
1 parent
4e517a4076
commit
43c0b94c4e
1 file changed
+42
-6
@@ -6,10 +6,45 @@
|
|||||||
use Core\Helpers\{SystemFunctions, Cache, Log, Mail, Zip, Pagination};
|
use Core\Helpers\{SystemFunctions, Cache, Log, Mail, Zip, Pagination};
|
||||||
|
|
||||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/core/bootstrap.php';
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/core/bootstrap.php';
|
||||||
echo '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css">';
|
?>
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="ru">
|
||||||
|
<head>
|
||||||
|
<!-- Обязательные метатеги -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css">
|
||||||
|
<title>Главная тестовая</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<nav class="navbar navbar-expand-md navbar-dark bg-dark" aria-label="Fourth navbar example">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<a class="navbar-brand" href="#">Delta Framework</a>
|
||||||
|
<button class="navbar-toggler collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navbarsExample04" aria-controls="navbarsExample04" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
echo '<a href="/admin/">{{ADMIN_PANEL_LINK_NAME}}</a> | <a href="/?clear_cache=Y">{{CLEAR_CACHE_LINK_NAME}}</a> | <a href="/">{{REFRESH_PAGE_LINK_NAME}}</a> <br>';
|
<div class="navbar-collapse collapse" id="navbarsExample04" style="">
|
||||||
|
<ul class="navbar-nav me-auto mb-2 mb-md-0">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link active" aria-current="page" href="/">Главная</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="/admin/">{{ADMIN_PANEL_LINK_NAME}}</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="/?clear_cache=Y">{{CLEAR_CACHE_LINK_NAME}}</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<?php
|
||||||
Telegram::init('5232660453:AAGfMWu6EcRfBGSSURJsEEvGPmAqhCyzYHU', './');
|
Telegram::init('5232660453:AAGfMWu6EcRfBGSSURJsEEvGPmAqhCyzYHU', './');
|
||||||
|
|
||||||
$userId = User::getCurrentUserId();
|
$userId = User::getCurrentUserId();
|
||||||
@@ -28,10 +63,6 @@
|
|||||||
|
|
||||||
//echo SystemFunctions::arrayToTable(Cache::getCacheInfo(), 'Информация о кэше');
|
//echo SystemFunctions::arrayToTable(Cache::getCacheInfo(), 'Информация о кэше');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$count = (int)(DB::getInstance())->query('select count(*) as count from d_posts where post_type="post" and post_status="publish"')[0]['count'];
|
$count = (int)(DB::getInstance())->query('select count(*) as count from d_posts where post_type="post" and post_status="publish"')[0]['count'];
|
||||||
Pagination::execute($_REQUEST['page'], $count, 3);
|
Pagination::execute($_REQUEST['page'], $count, 3);
|
||||||
$limit = Pagination::getLimit();
|
$limit = Pagination::getLimit();
|
||||||
@@ -54,3 +85,8 @@ Pagination::show('page');
|
|||||||
echo '</nav>';
|
echo '</nav>';
|
||||||
|
|
||||||
echo SystemFunctions::arrayToTable($arResult, 'Статьи');
|
echo SystemFunctions::arrayToTable($arResult, 'Статьи');
|
||||||
|
?>
|
||||||
|
</main>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in new issue
Block a user