index.php
4.22 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?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">Книги</div>
</div>
</div>
<div class="row">
<?php foreach ($books as $book){ ?>
<div class="col-xs-12 col-sm-12 col-md-6 books-wrapp">
<div class="row">
<div class="col-xs-12 col-sm-4 col-md-5 col-lg-6 books-wrapp-img">
<img src="images/books/book-1.jpg" alt="">
</div>
<div class="col-xs-12 col-sm-8 col-md-7 col-lg-6 books-wrapp-text">
<div class="style books-title"><?=$book->title?></div>
<div class="style books-autor">Автор: <?=$book->author->name?> <?=$book->author->secondname?></div>
<div class="style books-text">
<?=$book->preview?>
</div>
<div class="style percent-price-block-wrapp">
<div class="percent-block">
<div class="percent-bl green" data-width="60" data-lineWidth="6">34</div>
</div>
<div class="price-block-wrapp">
<div class="price-block">
<p><b>110000</b> грн. <span>необхідно</span></p>
<p><b>37620</b> грн. <span class="have">зібрано</span></p>
</div>
<div class="caldendar-books">
<p><b>20</b> дн. лишилось</p>
</div>
</div>
</div>
<div class="style books-btn">
<a href="#" class="btn_">Підтримати</a>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<div class="row">
<div class="col-xs-12">
<div class="style all-projects-link">
<a href="#">Всі проекти</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="#" 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">Останні публікації</div>
</div>
</div>
<div class="row">
<?php foreach($articles as $article){?>
<div class="col-xs-12 col-sm-4 box-items-news">
<a href="#">
<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 } ?>