diff --git a/app/routes/books.php b/app/routes/books.php index 28cc438..f030b5d 100644 --- a/app/routes/books.php +++ b/app/routes/books.php @@ -29,7 +29,7 @@ function product_kuri($slug){ $link_online = SITE.'checkout/'.$book['priceslug'].'/1'; $link_offline = SITE.'checkout/'.$book['priceslug'].'/2'; $link_subscript = SITE.'checkout/podpiska-na-elektronnuyu-versiyu-gazety-argumenty-nedeli-na-god/1'; - + $tempcontent = VIEWPATH.'book.phtml'; include VIEWPATH.'layout.phtml'; @@ -166,6 +166,8 @@ function knigi_kuri($slug, $page = 1){ $filter = "`price`.`pricepart_id` = ".$find_parts['pricepart_id']; $books = api_books_kuri($filter, $page); + $parts = api_parts(); + $category = 'knigi'; $baseurl = SITE."knigi/$slug/"; if ($books['pages'] > 1){ diff --git a/app/views/books.phtml b/app/views/books.phtml index 4b6210d..7bbdcc6 100644 --- a/app/views/books.phtml +++ b/app/views/books.phtml @@ -1,7 +1,7 @@