s
This commit is contained in:
@@ -194,6 +194,15 @@ function api_cats(){
|
||||
|
||||
}
|
||||
|
||||
function api_parts(){
|
||||
|
||||
$result = db_get(
|
||||
"SELECT * FROM priceparts"
|
||||
);
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
function book_slug($book){
|
||||
|
||||
|
||||
@@ -16,6 +16,25 @@ body.books-body {
|
||||
margin: 5px 0;
|
||||
background: #e4e4e4;
|
||||
}
|
||||
#book-menu {
|
||||
list-style-type: none;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
padding: 0px;
|
||||
justify-content: left;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
#book-menu li {
|
||||
margin-right: 2px;
|
||||
padding: 10px;
|
||||
background: #7f7f7f;
|
||||
margin-top: 2px;
|
||||
}
|
||||
#book-menu li a {
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
#book_id {
|
||||
width: calc(33.333% - 14px);
|
||||
box-sizing: border-box;
|
||||
|
||||
@@ -65,6 +65,8 @@ function category_kuri($category = '', $filter = 'all', $page = 1){
|
||||
|
||||
$cats = api_cats();
|
||||
|
||||
$parts = api_parts();
|
||||
|
||||
$books = api_books_kuri($filter, $page);
|
||||
|
||||
$baseurl = SITE."category/$category/$filter/";
|
||||
@@ -91,7 +93,7 @@ function category_kuri($category = '', $filter = 'all', $page = 1){
|
||||
if (isset($cats[$category])){
|
||||
$breadcrumbs['page'] = $pagetitle;
|
||||
}
|
||||
|
||||
|
||||
$tempcontent = VIEWPATH.'books.phtml';
|
||||
include VIEWPATH.'layout.phtml';
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
<ul id="book-menu">
|
||||
<?foreach ($parts as $part):?>
|
||||
<li><a href="/knigi/<?=$part['partalias']?>"><?=$part['partname']?></a></li>
|
||||
<?endforeach?>
|
||||
</ul>
|
||||
<div class="lib_container">
|
||||
<?foreach ($books['books'] as $book):?>
|
||||
<div class="book_skeleton">
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<script src="/pub/scripts/pdf.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.4.4/mobile-detect.min.js"></script>
|
||||
<script src="/pub/scripts/klanviewer.js?ver=34"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=245">
|
||||
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=247">
|
||||
<link rel="icon" type="image/ico" href="https://argumenti.ru/favicon.ico">
|
||||
<?if (isset($description)):?>
|
||||
<meta name="description" content="<?=$description?>">
|
||||
@@ -82,31 +82,6 @@ else {
|
||||
|
||||
</header>
|
||||
|
||||
<?if ($checklogin['error'] == 'client not found'):?>
|
||||
<div class="adv">
|
||||
<!-- Yandex.RTB R-A-50615-61 -->
|
||||
<div id="yandex_rtb_R-A-50615-61"></div>
|
||||
<script type="text/javascript">
|
||||
(function(w, d, n, s, t) {
|
||||
w[n] = w[n] || [];
|
||||
w[n].push(function() {
|
||||
Ya.Context.AdvManager.render({
|
||||
blockId: "R-A-50615-61",
|
||||
renderTo: "yandex_rtb_R-A-50615-61",
|
||||
async: true
|
||||
});
|
||||
});
|
||||
t = d.getElementsByTagName("script")[0];
|
||||
s = d.createElement("script");
|
||||
s.type = "text/javascript";
|
||||
s.src = "//an.yandex.ru/system/context.js";
|
||||
s.async = true;
|
||||
t.parentNode.insertBefore(s, t);
|
||||
})(this, this.document, "yandexContextAsyncCallbacks");
|
||||
</script>
|
||||
</div>
|
||||
<?endif?>
|
||||
|
||||
<div id="lk-menu">
|
||||
<? include VIEWPATH.'menus/menucategory.phtml';?>
|
||||
<? include VIEWPATH.'menus/lkmenu.phtml';?>
|
||||
@@ -116,20 +91,5 @@ else {
|
||||
include($tempcontent);
|
||||
?>
|
||||
|
||||
<?if ($checklogin['error'] == 'client not found'):?>
|
||||
|
||||
|
||||
|
||||
<script type="text/JavaScript" encoding="utf8">
|
||||
(function() {
|
||||
var sm = document.createElement("script");
|
||||
sm.type = "text/javascript";
|
||||
sm.async = true;
|
||||
sm.src = "//jsn.24smi.net/a/8/13132.js";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(sm, s);})();
|
||||
</script>
|
||||
<?endif?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user