index.php
3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
/* @var $this yii\web\View
* @var \common\models\Book $books;
* @var \common\models\blog\Article[] $articles
*/
use artbox\core\helpers\ImageHelper;
use artbox\core\helpers\Url;
$this->title = 'My Yii Application';
?>
<section class="first-bg-wrapp">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="title-p-first-bg-wr">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="bottom"><h1 class="title-first-bg">Моя війна</h1></td>
</tr>
<tr>
<td><span class="p-first-bg">Бібліотека під редакцією Юрія Бутусова</span></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</section>
<?php if (!empty($books)){?>
<section class="section-books">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="title-blocks first-title-blocks">Книги</div>
</div>
</div>
<div class="row">
<?php foreach ($books as $book){ ?>
<div class="col-xs-12 col-sm-12 col-md-6 books-wrapp">
<?=$this->render('@frontend/views/book/_book', [
'model' => $book
])?>
</div>
<?php } ?>
</div>
<div class="row">
<div class="col-xs-12">
<div class="style all-projects-link">
<a href="<?=Url::to(['book/index'])?>">Всі проекти</a>
</div>
</div>
</div>
</div>
</section>
<?php }?>
<section class="books-bg-links">
<div class="container">
<div class="row">
<div class="col-xs-12">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<div class="books-bg-links-title">Правдиво про війну в Україні</div>
<div class="books-bg-links-text">Підтримуємо талановитих авторів та робимо доступним видавництво книг без посередників</div>
</td>
<td>
<div class="books-bg-links-link">
<a href="<?=Url::to(['site/about'])?>" class="btn_">Як це працює</a>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</section>
<?php if (!empty($articles)){?>
<section class="box-news">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="title-blocks first-title-blocks">Останні публікації</div>
</div>
</div>
<div class="row">
<?php foreach($articles as $article){?>
<div class="col-xs-12 col-sm-4 box-items-news">
<a href="<?=Url::to(['alias' => $article->language->alias])?>">
<div class="box-items-news-img">
<!--360x230-->
<?php echo ImageHelper::set(!empty($article->image) ? $article->image->getPath() : null)->cropResize(360, 230)->renderImage()
?>
</div>
<div class="box-items-news-title"><?=$article->language->title?></div>
</a>
</div>
<?php } ?>
</div>
</div>
</section>
<?php } ?>