Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
elisad5791 committed Jul 5, 2024
0 parents commit ac030b3
Show file tree
Hide file tree
Showing 53 changed files with 3,435 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php [L]
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/textbook.local.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
### Битрикс-сниппеты № 1
10 changes: 10 additions & 0 deletions css/github.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
code {
background-color: #f8f9fa!important;
}
Binary file added favicon.ico
Binary file not shown.
12 changes: 12 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
</div>
</div>
</div>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="/js/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</body>

</html>
46 changes: 46 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Битрикс - сниппеты</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/github.min.css">
<link rel="stylesheet" href="/css/styles.css">
</head>
<body>
<div>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img src="/images/logo.png" alt="" width="30" height="30">
<span>Битрикс - сниппеты</span>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="/basic/user-operations">Основные темы</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/db/directs">Работа с БД</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/ui/grid">Элементы интерфейса</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/crm/leads-operations">CRM</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/rest/start">REST</a>
</li>
</ul>
</div>
</nav>
</div>
Binary file added images/generaciya_orm_classa.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/orm_class.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/smart-product.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/usability.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
include_once 'header.php';

$path = trim($_SERVER['REQUEST_URI'], '/');
$parts = explode('/', $path);
$category = $parts[0] ?? null;
$page = $parts[1] ?? null;

if ($category && $page) {
include_once($_SERVER['DOCUMENT_ROOT'] . '/sidebars/' . $parts[0] . '.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/pages/' . $parts[0] . '/' . $parts[1] . '.php');
} else {
include_once($_SERVER['DOCUMENT_ROOT'] . '/pages/main.php');
}

include_once 'footer.php';
?>
31 changes: 31 additions & 0 deletions js/css.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ac030b3

Please sign in to comment.