Commit 7927174082b34905faf4fb402dcae618307dff4f
1 parent
aa6e6170
Доделал мелкие правки 3
Showing
20 changed files
with
14 additions
and
1546 deletions
Show diff stats
common/messages/ua/app.php
... | ... | @@ -82,7 +82,7 @@ return [ |
82 | 82 | |
83 | 83 | 'Stable' => 'Стійкий', |
84 | 84 | 'Compare' => 'Порівняти', |
85 | - 'SuperGluable' => 'Суперклейкий', | |
85 | + 'SuperGluable' => 'Суперклейкiсть', | |
86 | 86 | 'Sales' => 'знижок', |
87 | 87 | 'Creating sites' => 'Створення сайтів', |
88 | 88 | 'Thanks for request' => 'Дякуємо за Ваш запит!', |
... | ... | @@ -103,13 +103,16 @@ return [ |
103 | 103 | 'Company Title' => 'ArtPlast', |
104 | 104 | |
105 | 105 | |
106 | - 'Description 1' => 'Завод-виробник «Артпласт» пропонує чудовий професійний скотч. | |
107 | - Наш продукт витримує розтягування, високі нагрузки, | |
108 | - не втрачає свої якості при низьких та високих температурах.', | |
109 | - 'Description 2' => 'Удобство використання упаковочного скотча, стійкість і відмінні характеристики клейкості | |
110 | - до більшості видів поверхонь, дає можливість використовувати його | |
111 | - для швидкої та надійної упаковки товарів в картонні коробки, пластикову та іншу | |
112 | - тару для подальшого зберігання на складі або транспортування.', | |
106 | + 'Description 1' => 'Завод-виробник «Артпласт» пропонує вам професійний скотч. | |
107 | + Наш продукт витримує розтягнення, високе | |
108 | + навантаження, та не втрачає своїх якостей при | |
109 | + низьких або високих температурах.', | |
110 | + 'Description 2' => 'Зручність застосування пакувального скотча, | |
111 | + міцність та ідеальні характеристики клейкості | |
112 | + (до більшості видів поверхонь), дає можливість | |
113 | + використовувати його для швидкої та надійної | |
114 | + упаковки товарів в картонні короби, | |
115 | + пластикову або іншу тару для подальшого зберігання на складі чи транспортуванні.', | |
113 | 116 | 'Address 1' => 'Україна, Київ, Магнітогорська 1', |
114 | 117 | |
115 | 118 | ... | ... |
frontend/controllers/BlogController.php deleted
1 | -<?php | |
2 | - | |
3 | - namespace frontend\controllers; | |
4 | - | |
5 | - use common\models\blog\Article; | |
6 | - use common\models\blog\Category; | |
7 | - use common\models\blog\Tag; | |
8 | - use yii\data\ActiveDataProvider; | |
9 | - use yii\web\Controller; | |
10 | - use yii\web\NotFoundHttpException; | |
11 | - | |
12 | - /** | |
13 | - * Class BlogController | |
14 | - * | |
15 | - * @package frontend\controllers | |
16 | - */ | |
17 | - class BlogController extends Controller | |
18 | - { | |
19 | - public function actionIndex($q = '') | |
20 | - { | |
21 | - $tags = Tag::find() | |
22 | - ->with( | |
23 | - [ | |
24 | - 'language', | |
25 | - ] | |
26 | - ) | |
27 | - ->orderBy([ 'sort' => SORT_ASC ]) | |
28 | - ->all(); | |
29 | - | |
30 | - $categories = Category::find() | |
31 | - ->with( | |
32 | - [ | |
33 | - 'language', | |
34 | - ] | |
35 | - ) | |
36 | - ->where(['status' => true]) | |
37 | - ->orderBy([ 'sort' => SORT_ASC ]) | |
38 | - ->all(); | |
39 | - | |
40 | - $dataProvider = new ActiveDataProvider( | |
41 | - [ | |
42 | - 'query' => Article::find() | |
43 | - ->orderBy( | |
44 | - [ | |
45 | - 'created_at' => SORT_DESC, | |
46 | - ] | |
47 | - ) | |
48 | - ->with( | |
49 | - [ | |
50 | - 'categories.language', | |
51 | - ] | |
52 | - | |
53 | - ) | |
54 | - ->joinWith('language') | |
55 | - ->where([ 'blog_article.status' => true ]) | |
56 | - ->andFilterWhere( | |
57 | - [ | |
58 | - 'ilike', | |
59 | - 'blog_article_lang.title', | |
60 | - $q, | |
61 | - ] | |
62 | - ) | |
63 | - ->distinct(), | |
64 | - 'pagination' => [ | |
65 | - 'pageSize' => 3, | |
66 | - ], | |
67 | - ] | |
68 | - ); | |
69 | - | |
70 | - return $this->render( | |
71 | - 'index', | |
72 | - [ | |
73 | - 'tags' => $tags, | |
74 | - 'categories' => $categories, | |
75 | - 'dataProvider' => $dataProvider, | |
76 | - ] | |
77 | - ); | |
78 | - } | |
79 | - | |
80 | - public function actionView($id) | |
81 | - { | |
82 | - $model = $this->findModel($id); | |
83 | - | |
84 | - $tags = Tag::find() | |
85 | - ->with([ 'language' ]) | |
86 | - ->orderBy([ 'sort' => SORT_ASC ]) | |
87 | - ->all(); | |
88 | - | |
89 | - return $this->render( | |
90 | - 'view', | |
91 | - [ | |
92 | - 'tags' => $tags, | |
93 | - 'model' => $model, | |
94 | - ] | |
95 | - ); | |
96 | - } | |
97 | - | |
98 | - public function actionCategory($id) | |
99 | - { | |
100 | - $tags = Tag::find() | |
101 | - ->with( | |
102 | - [ | |
103 | - 'language', | |
104 | - ] | |
105 | - ) | |
106 | - ->orderBy([ 'sort' => SORT_ASC ]) | |
107 | - ->all(); | |
108 | - | |
109 | - /** | |
110 | - * @var Category $model | |
111 | - */ | |
112 | - $model = Category::find() | |
113 | - ->where( | |
114 | - [ | |
115 | - 'id' => $id, | |
116 | - ] | |
117 | - ) | |
118 | - ->with( | |
119 | - [ | |
120 | - 'articles', | |
121 | - ] | |
122 | - ) | |
123 | - ->where(['status' => true]) | |
124 | - ->orderBy([ 'sort' => SORT_ASC ]) | |
125 | - ->one(); | |
126 | - | |
127 | - $dataProvider = new ActiveDataProvider( | |
128 | - [ | |
129 | - 'query' => $model->getArticles() | |
130 | - ->with( | |
131 | - [ | |
132 | - 'language', | |
133 | - 'categories.language', | |
134 | - ] | |
135 | - ) | |
136 | - ->where(['blog_article.status' => true]) | |
137 | - ->orderBy( | |
138 | - [ | |
139 | - 'created_at' => SORT_DESC, | |
140 | - ] | |
141 | - ), | |
142 | - 'pagination' => [ | |
143 | - 'pageSize' => 3, | |
144 | - ], | |
145 | - ] | |
146 | - ); | |
147 | - | |
148 | - return $this->render( | |
149 | - 'category', | |
150 | - [ | |
151 | - 'tags' => $tags, | |
152 | - 'dataProvider' => $dataProvider, | |
153 | - 'model' => $model, | |
154 | - ] | |
155 | - ); | |
156 | - } | |
157 | - | |
158 | - public function actionTag($id) | |
159 | - { | |
160 | - $tags = Tag::find() | |
161 | - ->with( | |
162 | - [ | |
163 | - 'language', | |
164 | - ] | |
165 | - ) | |
166 | - ->orderBy([ 'sort' => SORT_ASC ]) | |
167 | - ->all(); | |
168 | - | |
169 | - /** | |
170 | - * @var Category $model | |
171 | - */ | |
172 | - $model = Tag::find() | |
173 | - ->where( | |
174 | - [ | |
175 | - 'id' => $id, | |
176 | - ] | |
177 | - ) | |
178 | - ->with( | |
179 | - [ | |
180 | - 'articles', | |
181 | - ] | |
182 | - ) | |
183 | - ->one(); | |
184 | - | |
185 | - $dataProvider = new ActiveDataProvider( | |
186 | - [ | |
187 | - 'query' => $model->getArticles() | |
188 | - ->with( | |
189 | - [ | |
190 | - 'language', | |
191 | - 'categories.language', | |
192 | - ] | |
193 | - ) | |
194 | - ->where(['blog_article.status' => true]) | |
195 | - ->orderBy( | |
196 | - [ | |
197 | - 'created_at' => SORT_DESC, | |
198 | - ] | |
199 | - ), | |
200 | - 'pagination' => [ | |
201 | - 'pageSize' => 3, | |
202 | - ], | |
203 | - ] | |
204 | - ); | |
205 | - | |
206 | - return $this->render( | |
207 | - 'tag', | |
208 | - [ | |
209 | - 'tags' => $tags, | |
210 | - 'dataProvider' => $dataProvider, | |
211 | - 'model' => $model, | |
212 | - ] | |
213 | - ); | |
214 | - } | |
215 | - | |
216 | - /** | |
217 | - * @param $id | |
218 | - * | |
219 | - * @return Article | |
220 | - * @throws \yii\web\NotFoundHttpException | |
221 | - */ | |
222 | - protected function findModel($id) | |
223 | - { | |
224 | - /** | |
225 | - * @var Article | null $model | |
226 | - */ | |
227 | - $model = Article::find() | |
228 | - ->where([ 'id' => $id ]) | |
229 | - ->with( | |
230 | - [ | |
231 | - 'language', | |
232 | - 'categories.language', | |
233 | - 'tags.language', | |
234 | - ] | |
235 | - ) | |
236 | - ->andWhere([ 'status' => true ]) | |
237 | - ->one(); | |
238 | - | |
239 | - if (empty($model)) { | |
240 | - throw new NotFoundHttpException(\Yii::t('app', 'Article not found')); | |
241 | - } else { | |
242 | - return $model; | |
243 | - } | |
244 | - } | |
245 | - } | |
246 | 0 | \ No newline at end of file |
frontend/controllers/PageController.php deleted
1 | -<?php | |
2 | - namespace frontend\controllers; | |
3 | - | |
4 | - use artbox\core\components\SeoComponent; | |
5 | - use artbox\core\models\Image; | |
6 | - use common\models\page\Page; | |
7 | - use yii\helpers\Json; | |
8 | - use yii\web\Controller; | |
9 | - use yii\web\NotFoundHttpException; | |
10 | - use Yii; | |
11 | - | |
12 | - /** | |
13 | - * Class PageController | |
14 | - * | |
15 | - * @package frontend\controllers | |
16 | - */ | |
17 | - class PageController extends Controller | |
18 | - { | |
19 | - public function actionView($id) | |
20 | - { | |
21 | - $model = $this->findModel($id); | |
22 | - | |
23 | - /** | |
24 | - * @var SeoComponent $seo | |
25 | - */ | |
26 | - $mages = null; | |
27 | - $seo = Yii::$app->get('seo'); | |
28 | - $seo->setModel($model->language); | |
29 | - $images = null; | |
30 | - if (!empty($model->gallery)){ | |
31 | - $images = Image::find()->where(['id' => Json::decode($model->gallery)])->all(); | |
32 | - } | |
33 | - | |
34 | - return $this->render( | |
35 | - 'view', | |
36 | - [ | |
37 | - 'model' => $model, | |
38 | - 'images' => $images | |
39 | - ] | |
40 | - ); | |
41 | - } | |
42 | - | |
43 | - protected function findModel($id) | |
44 | - { | |
45 | - /** | |
46 | - * @var Page $model | |
47 | - * @var SeoComponent $seo | |
48 | - */ | |
49 | - $seo = \Yii::$app->get('seo'); | |
50 | - $model = Page::find() | |
51 | - ->where( | |
52 | - [ | |
53 | - 'id' => $id, | |
54 | - ] | |
55 | - ) | |
56 | - ->with('language') | |
57 | - ->one(); | |
58 | - | |
59 | - if (!empty($model)) { | |
60 | - return $model; | |
61 | - } else { | |
62 | - throw new NotFoundHttpException('Model not found'); | |
63 | - } | |
64 | - } | |
65 | - } | |
66 | 0 | \ No newline at end of file |
frontend/controllers/SiteController.php
... | ... | @@ -67,32 +67,7 @@ |
67 | 67 | ]); |
68 | 68 | } |
69 | 69 | |
70 | - /** | |
71 | - * Displays contact page. | |
72 | - * | |
73 | - * @return mixed | |
74 | - */ | |
75 | - public function actionContact() | |
76 | - { | |
77 | - $contact = new Feedback(); | |
78 | - return $this->render( | |
79 | - 'contact', | |
80 | - [ | |
81 | - 'contact' => $contact, | |
82 | - ] | |
83 | - ); | |
84 | - } | |
85 | - | |
86 | - /** | |
87 | - * Displays about page. | |
88 | - * | |
89 | - * @return mixed | |
90 | - */ | |
91 | - public function actionAbout() | |
92 | - { | |
93 | - return $this->render('about'); | |
94 | - } | |
95 | - | |
70 | + | |
96 | 71 | /** |
97 | 72 | * Action to view robots.txt file dinamycli |
98 | 73 | * |
... | ... | @@ -114,49 +89,5 @@ |
114 | 89 | return $this->renderFile($meta[ 'uri' ]); |
115 | 90 | } |
116 | 91 | |
117 | - public function actionFeedback() | |
118 | - { | |
119 | - Yii::$app->response->format = Response::FORMAT_JSON; | |
120 | - | |
121 | - /** | |
122 | - * @var Mailer $mailer | |
123 | - */ | |
124 | - $mailer = \Yii::$app->get('smtpmailer'); | |
125 | - $settings = Settings::getInstance(); | |
126 | - | |
127 | - if (empty(Yii::$app->request->post())) { | |
128 | - throw new BadRequestHttpException(); | |
129 | - } else { | |
130 | - $model = new Feedback(); | |
131 | - if ($model->load(Yii::$app->request->post()) && $model->save()) { | |
132 | - | |
133 | - $mailer->compose( | |
134 | - 'feedback', | |
135 | - [ | |
136 | - 'model' => $model, | |
137 | - ] | |
138 | - ) | |
139 | - ->setFrom('artbox@domain.com') | |
140 | - ->setTo($settings->email) | |
141 | - ->setSubject(\Yii::t('app', 'Feedback')) | |
142 | - ->send(); | |
143 | - | |
144 | - return [ | |
145 | - 'success' => true, | |
146 | - 'message' => 'Success message', | |
147 | - 'alert' => '<div class="alert alert-success"> | |
148 | - <h3>Success</h3> | |
149 | - <p> | |
150 | - Success text | |
151 | - </p> | |
152 | - </div>', | |
153 | - ]; | |
154 | - } else { | |
155 | - return [ | |
156 | - 'success' => false, | |
157 | - 'error' => $model->errors, | |
158 | - ]; | |
159 | - } | |
160 | - } | |
161 | - } | |
92 | + | |
162 | 93 | } | ... | ... |
frontend/views/blog/_article.php deleted
1 | -<?php | |
2 | - | |
3 | - use artbox\core\helpers\ImageHelper; | |
4 | - use yii\bootstrap\Html; | |
5 | - use artbox\core\helpers\Url; | |
6 | - | |
7 | - /** | |
8 | - * @var \common\models\blog\Article $model | |
9 | - */ | |
10 | - | |
11 | -?> | |
12 | - | |
13 | -<section class="post"> | |
14 | - <div class="row"> | |
15 | - <div class="col-xs-4 col-sm-4 col-md-4"> | |
16 | - <div class="image"> | |
17 | - <a href="<?= Url::to( | |
18 | - [ | |
19 | - 'alias' => $model->alias | |
20 | - ] | |
21 | - ) ?>"> | |
22 | - <?= ImageHelper::set($model->image ? $model->image->getPath() : '@frontend/web/img/no-image.png') | |
23 | - ->cropResize(263, 197) | |
24 | - ->renderImage( | |
25 | - [ | |
26 | - 'class' => 'img-responsive', | |
27 | - 'alt' => $model->title, | |
28 | - ] | |
29 | - ) ?> | |
30 | - </a> | |
31 | - </div> | |
32 | - </div> | |
33 | - <div class="col-xs-8 col-sm-8 col-md-8"> | |
34 | - <h2><a href="<?= Url::to( | |
35 | - [ | |
36 | - 'alias' => $model->alias | |
37 | - ] | |
38 | - ) ?>"><?= $model->title; ?></a></h2> | |
39 | - <div class="clearfix"> | |
40 | - <?php if (empty($model->categories)) { ?> | |
41 | - <p class="author-category">Без категории </p> | |
42 | - <?php } else { | |
43 | - $i = 0; | |
44 | - foreach ($model->categories as $category) { | |
45 | - $i++; | |
46 | - ?> | |
47 | - <p class="author-category"> | |
48 | - <a href="<?=Url::to(['alias' => $category->alias])?>"><?=$category->title?></a> | |
49 | - <?php | |
50 | - | |
51 | - if ($i === count($model->categories)) { | |
52 | - echo ' '; | |
53 | - } else { | |
54 | - echo ', '; | |
55 | - } | |
56 | - ?></p> | |
57 | - <?php | |
58 | - } | |
59 | - } ?> | |
60 | - <p class="date-comments"> | |
61 | - <i class="fa fa-calendar-o"></i> <?= \Yii::$app->formatter->asDate($model->created_at); ?> | |
62 | - <!-- <a href="blog-post.html"><i class="fa fa-comment-o"></i> 8 комментариев</a>--> | |
63 | - </p> | |
64 | - </div> | |
65 | - <p class="intro"><?= $model->body_preview; ?></p> | |
66 | - <p class="read-more"> | |
67 | - <?= Html::a( | |
68 | - 'Продолжить чтение', | |
69 | - [ | |
70 | - '', 'alias' => $model->alias | |
71 | - ], | |
72 | - [ | |
73 | - 'class' => 'btn btn-template-main', | |
74 | - ] | |
75 | - ) ?> | |
76 | - </p> | |
77 | - </div> | |
78 | - </div> | |
79 | -</section> |
frontend/views/blog/category.php deleted
1 | -<?php | |
2 | - | |
3 | - use artbox\core\components\SeoComponent; | |
4 | - use frontend\widgets\BlogSearch; | |
5 | - use yii\data\ActiveDataProvider; | |
6 | - use artbox\core\helpers\Url; | |
7 | - use yii\web\View; | |
8 | - use yii\widgets\ListView; | |
9 | - | |
10 | - /** | |
11 | - * @var View $this | |
12 | - * @var ActiveDataProvider $dataProvider | |
13 | - * @var SeoComponent $seo | |
14 | - * @var \common\models\blog\Tag[] $tags | |
15 | - * @var \common\models\blog\Category $model | |
16 | - */ | |
17 | - $seo = \Yii::$app->get('seo'); | |
18 | - | |
19 | - $this->params[ 'breadcrumbs' ][] = [ | |
20 | - 'label' => \Yii::t('app', 'Блог'), | |
21 | - 'url' => [ 'blog/index' ], | |
22 | - ]; | |
23 | - | |
24 | - $this->params[ 'breadcrumbs' ][] = $seo->title; | |
25 | - | |
26 | -?> | |
27 | - | |
28 | -<div id="content"> | |
29 | - <div class="container"> | |
30 | - <div class="row"> | |
31 | - <!-- *** LEFT COLUMN *** | |
32 | -_________________________________________________________ --> | |
33 | - | |
34 | - | |
35 | - <!-- <ul class="pager">--> | |
36 | - <!-- <li class="previous"><a href="#">← Назад</a>--> | |
37 | - <!-- </li>--> | |
38 | - <!-- <li class="next disabled"><a href="#">Вперед →</a>--> | |
39 | - <!-- </li>--> | |
40 | - <!-- </ul>--> | |
41 | - | |
42 | - <!-- /.col-md-9 --> | |
43 | - | |
44 | - | |
45 | - <?= ListView::widget( | |
46 | - [ | |
47 | - 'dataProvider' => $dataProvider, | |
48 | - 'itemView' => '_article', | |
49 | - 'options' => [ | |
50 | - 'class' => 'col-md-9', | |
51 | - 'id' => 'blog-listing-medium', | |
52 | - ], | |
53 | - 'layout' => '{items}{pager}', | |
54 | - ] | |
55 | - ); ?> | |
56 | - | |
57 | - | |
58 | - <!-- *** LEFT COLUMN END *** --> | |
59 | - | |
60 | - <!-- *** RIGHT COLUMN *** | |
61 | -_________________________________________________________ --> | |
62 | - | |
63 | - <div class="col-md-3"> | |
64 | - | |
65 | - <!-- *** MENUS AND WIDGETS *** | |
66 | -_________________________________________________________ --> | |
67 | - <div class="panel panel-default sidebar-menu"> | |
68 | - | |
69 | - <div class="panel-heading"> | |
70 | - <h3 class="panel-title"><?=\Yii::t('app', 'Blog')?></h3> | |
71 | - </div> | |
72 | - | |
73 | - <div class="panel-body text-widget"> | |
74 | - <p> | |
75 | - Мы собираем полезные материалы по тематике бытовой техники и электроники | |
76 | - </p> | |
77 | - | |
78 | - </div> | |
79 | - </div> | |
80 | - | |
81 | - <?= BlogSearch::widget(); ?> | |
82 | - | |
83 | - <div class="panel sidebar-menu"> | |
84 | - <div class="panel-heading"> | |
85 | - <h3 class="panel-title">Поиск по тегам</h3> | |
86 | - </div> | |
87 | - | |
88 | - <div class="panel-body"> | |
89 | - <ul class="tag-cloud"> | |
90 | - <?php foreach ($tags as $tag) { ?> | |
91 | - <li><a href="<?= Url::to( | |
92 | - [ | |
93 | - 'alias' => $tag->alias | |
94 | - ] | |
95 | - ) ?>"><i class="fa fa-tags"></i> <?= $tag->label; ?></a> | |
96 | - </li> | |
97 | - <?php } ?> | |
98 | - </ul> | |
99 | - </div> | |
100 | - </div> | |
101 | - | |
102 | - <!-- *** MENUS AND FILTERS END *** --> | |
103 | - | |
104 | - </div> | |
105 | - <!-- /.col-md-3 --> | |
106 | - | |
107 | - <!-- *** RIGHT COLUMN END *** --> | |
108 | - | |
109 | - </div> | |
110 | - <!-- /.row --> | |
111 | - </div> | |
112 | - <!-- /.container --> | |
113 | -</div> | |
114 | -<!-- /#content --> | |
115 | 0 | \ No newline at end of file |
frontend/views/blog/index.php deleted
1 | -<?php | |
2 | - | |
3 | - use artbox\core\components\SeoComponent; | |
4 | - use yii\data\ActiveDataProvider; | |
5 | - use artbox\core\helpers\Url; | |
6 | - use yii\web\View; | |
7 | - use yii\widgets\ListView; | |
8 | - | |
9 | - /** | |
10 | - * @var View $this | |
11 | - * @var ActiveDataProvider $dataProvider | |
12 | - * @var SeoComponent $seo | |
13 | - * @var \common\models\blog\Tag[] $tags | |
14 | - * @var common\models\blog\Category[] $categories | |
15 | - */ | |
16 | - $seo = \Yii::$app->get('seo'); | |
17 | - | |
18 | - $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'Блог'); | |
19 | - | |
20 | -?> | |
21 | - | |
22 | -<div id="content"> | |
23 | - <div class="container"> | |
24 | - <div class="row"> | |
25 | - <!-- *** LEFT COLUMN *** | |
26 | -_________________________________________________________ --> | |
27 | - | |
28 | - | |
29 | - <!-- <ul class="pager">--> | |
30 | - <!-- <li class="previous"><a href="#">← Назад</a>--> | |
31 | - <!-- </li>--> | |
32 | - <!-- <li class="next disabled"><a href="#">Вперед →</a>--> | |
33 | - <!-- </li>--> | |
34 | - <!-- </ul>--> | |
35 | - | |
36 | - <!-- /.col-md-9 --> | |
37 | - | |
38 | - | |
39 | - <?= ListView::widget( | |
40 | - [ | |
41 | - 'dataProvider' => $dataProvider, | |
42 | - 'itemView' => '_article', | |
43 | - 'options' => [ | |
44 | - 'class' => 'col-md-9', | |
45 | - 'id' => 'blog-listing-medium', | |
46 | - ], | |
47 | - 'layout' => '{items}{pager}', | |
48 | - ] | |
49 | - ); ?> | |
50 | - | |
51 | - | |
52 | - <!-- *** LEFT COLUMN END *** --> | |
53 | - | |
54 | - <!-- *** RIGHT COLUMN *** | |
55 | -_________________________________________________________ --> | |
56 | - | |
57 | - <div class="col-md-3 blog-sidebar"> | |
58 | - | |
59 | - <!-- *** MENUS AND WIDGETS *** | |
60 | -_________________________________________________________ --> | |
61 | - <div class="panel panel-default sidebar-menu"> | |
62 | - | |
63 | - <div class="panel-heading"> | |
64 | - <h3 class="panel-title">Блог компании</h3> | |
65 | - </div> | |
66 | - | |
67 | - <div class="panel-body text-widget"> | |
68 | - <p> | |
69 | - Мы собираем полезные материалы по тематике бытовой техники и электроники | |
70 | - </p> | |
71 | - | |
72 | - </div> | |
73 | - </div> | |
74 | - | |
75 | -<!-- --><?//= BlogSearch::widget(); ?> | |
76 | - <?php if (!empty($categories)) { ?> | |
77 | - <div class="panel panel-default sidebar-menu"> | |
78 | - | |
79 | - <div class="panel-heading"> | |
80 | - <h3 class="panel-title">Категории</h3> | |
81 | - </div> | |
82 | - | |
83 | - <div class="panel-body text-widget"> | |
84 | - <ul class="categories-blog-index"> | |
85 | - | |
86 | - <?php foreach ($categories as $category) { ?> | |
87 | - <li> | |
88 | - <a href="<?= Url::to( | |
89 | - [ | |
90 | - 'alias' => $category->alias | |
91 | - ] | |
92 | - ) ?>"><?= $category->title; ?></a> | |
93 | - </li> | |
94 | - <?php } ?> | |
95 | - </ul> | |
96 | - | |
97 | - </div> | |
98 | - </div> | |
99 | - | |
100 | - <?php | |
101 | - } | |
102 | - if(!empty($tags)){ | |
103 | - ?> | |
104 | - <div class="panel sidebar-menu"> | |
105 | - <div class="panel-heading"> | |
106 | - <h3 class="panel-title">Поиск по тегам</h3> | |
107 | - </div> | |
108 | - | |
109 | - <div class="panel-body"> | |
110 | - <ul class="tag-cloud"> | |
111 | - <?php foreach ($tags as $tag) { ?> | |
112 | - <li><a href="<?= Url::to( | |
113 | - [ | |
114 | - 'alias' => $tag->alias | |
115 | - ] | |
116 | - ) ?>"><i class="fa fa-tag"></i> <?= $tag->label; ?></a> | |
117 | - </li> | |
118 | - <?php } ?> | |
119 | - </ul> | |
120 | - </div> | |
121 | - </div> | |
122 | - <?php | |
123 | - } | |
124 | - ?> | |
125 | - | |
126 | - | |
127 | - <!-- *** MENUS AND FILTERS END *** --> | |
128 | - | |
129 | - </div> | |
130 | - <!-- /.col-md-3 --> | |
131 | - | |
132 | - <!-- *** RIGHT COLUMN END *** --> | |
133 | - | |
134 | - </div> | |
135 | - <!-- /.row --> | |
136 | - </div> | |
137 | - <!-- /.container --> | |
138 | -</div> | |
139 | -<!-- /#content --> | |
140 | 0 | \ No newline at end of file |
frontend/views/blog/tag.php deleted
1 | -<?php | |
2 | - | |
3 | - use artbox\core\components\SeoComponent; | |
4 | - use common\models\blog\Tag; | |
5 | - use frontend\widgets\BlogSearch; | |
6 | - use yii\data\ActiveDataProvider; | |
7 | - use artbox\core\helpers\Url; | |
8 | - use yii\web\View; | |
9 | - use yii\widgets\ListView; | |
10 | - | |
11 | - /** | |
12 | - * @var View $this | |
13 | - * @var ActiveDataProvider $dataProvider | |
14 | - * @var SeoComponent $seo | |
15 | - * @var Tag[] $tags | |
16 | - * @var Tag $model | |
17 | - */ | |
18 | - $seo = \Yii::$app->get('seo'); | |
19 | - | |
20 | - $this->params[ 'breadcrumbs' ][] = [ | |
21 | - 'label' => \Yii::t('app', 'Блог'), | |
22 | - 'url' => [ 'blog/index' ], | |
23 | - ]; | |
24 | - | |
25 | - $this->params[ 'breadcrumbs' ][] = $seo->title; | |
26 | - | |
27 | -?> | |
28 | - | |
29 | -<div id="content"> | |
30 | - <div class="container"> | |
31 | - <div class="row"> | |
32 | - <!-- *** LEFT COLUMN *** | |
33 | -_________________________________________________________ --> | |
34 | - | |
35 | - | |
36 | - <!-- <ul class="pager">--> | |
37 | - <!-- <li class="previous"><a href="#">← Назад</a>--> | |
38 | - <!-- </li>--> | |
39 | - <!-- <li class="next disabled"><a href="#">Вперед →</a>--> | |
40 | - <!-- </li>--> | |
41 | - <!-- </ul>--> | |
42 | - | |
43 | - <!-- /.col-md-9 --> | |
44 | - | |
45 | - | |
46 | - <?= ListView::widget( | |
47 | - [ | |
48 | - 'dataProvider' => $dataProvider, | |
49 | - 'itemView' => '_article', | |
50 | - 'options' => [ | |
51 | - 'class' => 'col-md-9', | |
52 | - 'id' => 'blog-listing-medium', | |
53 | - ], | |
54 | - 'layout' => '{items}{pager}', | |
55 | - ] | |
56 | - ); ?> | |
57 | - | |
58 | - | |
59 | - <!-- *** LEFT COLUMN END *** --> | |
60 | - | |
61 | - <!-- *** RIGHT COLUMN *** | |
62 | -_________________________________________________________ --> | |
63 | - | |
64 | - <div class="col-md-3"> | |
65 | - | |
66 | - <!-- *** MENUS AND WIDGETS *** | |
67 | -_________________________________________________________ --> | |
68 | - <div class="panel panel-default sidebar-menu"> | |
69 | - | |
70 | - <div class="panel-heading"> | |
71 | - <h3 class="panel-title">Блог компании</h3> | |
72 | - </div> | |
73 | - | |
74 | - <div class="panel-body text-widget"> | |
75 | - <p> | |
76 | - Мы собираем полезные материалы по тематике бытовой техники и электроники | |
77 | - </p> | |
78 | - | |
79 | - </div> | |
80 | - </div> | |
81 | - | |
82 | - <?= BlogSearch::widget(); ?> | |
83 | - | |
84 | - <div class="panel sidebar-menu"> | |
85 | - <div class="panel-heading"> | |
86 | - <h3 class="panel-title">Поиск по тегам</h3> | |
87 | - </div> | |
88 | - | |
89 | - <div class="panel-body"> | |
90 | - <ul class="tag-cloud"> | |
91 | - <?php foreach ($tags as $tag) { ?> | |
92 | - <li><a href="<?= Url::to( | |
93 | - [ | |
94 | - 'alias' => $tag->alias | |
95 | - ] | |
96 | - ) ?>"><i class="fa fa-tags"></i> <?= $tag->label; ?></a> | |
97 | - </li> | |
98 | - <?php } ?> | |
99 | - </ul> | |
100 | - </div> | |
101 | - </div> | |
102 | - | |
103 | - <!-- *** MENUS AND FILTERS END *** --> | |
104 | - | |
105 | - </div> | |
106 | - <!-- /.col-md-3 --> | |
107 | - | |
108 | - <!-- *** RIGHT COLUMN END *** --> | |
109 | - | |
110 | - </div> | |
111 | - <!-- /.row --> | |
112 | - </div> | |
113 | - <!-- /.container --> | |
114 | -</div> | |
115 | -<!-- /#content --> | |
116 | 0 | \ No newline at end of file |
frontend/views/blog/view.php deleted
1 | -<?php | |
2 | - | |
3 | - use common\models\blog\Article; | |
4 | - use common\models\blog\Tag; | |
5 | - use frontend\widgets\BlogSearch; | |
6 | - use artbox\core\helpers\Url; | |
7 | - use yii\web\View; | |
8 | - | |
9 | - /** | |
10 | - * @var View $this | |
11 | - * @var Article $model | |
12 | - * @var Tag[] $tags | |
13 | - */ | |
14 | - | |
15 | - $this->params[ 'breadcrumbs' ][] = [ | |
16 | - 'label' => \Yii::t('app', 'Блог'), | |
17 | - 'url' => [ 'blog/index' ], | |
18 | - ]; | |
19 | - | |
20 | - $this->params[ 'breadcrumbs' ][] = $model->title; | |
21 | - | |
22 | -?> | |
23 | - | |
24 | -<div id="content"> | |
25 | - <div class="container"> | |
26 | - | |
27 | - <div class="row"> | |
28 | - | |
29 | - <!-- *** LEFT COLUMN *** | |
30 | -_________________________________________________________ --> | |
31 | - | |
32 | - <div class="col-md-9" id="blog-post"> | |
33 | - | |
34 | - <h2><?= $model->title; ?></h2> | |
35 | - | |
36 | - <?php if (!empty($model->tags)) { ?> | |
37 | - <div class="panel sidebar-menu"> | |
38 | - <div class="panel-body"> | |
39 | - <ul class="tag-cloud"> | |
40 | - <?php foreach ($model->tags as $tag) { ?> | |
41 | - <li><a href="<?= Url::to( | |
42 | - [ | |
43 | - 'alias' => $tag->alias | |
44 | - ] | |
45 | - ) ?>"><i class="fa fa-tags"></i> <?= $tag->label; ?></a> | |
46 | - </li> | |
47 | - <?php } ?> | |
48 | - </ul> | |
49 | - </div> | |
50 | - </div> | |
51 | - <?php } ?> | |
52 | - | |
53 | - <p class="text-muted text-uppercase mb-small text-left"><?= \Yii::$app->formatter->asDate( | |
54 | - $model->created_at | |
55 | - ); ?></p> | |
56 | - | |
57 | - <div id="post-content"> | |
58 | - | |
59 | - <?= $model->body; ?> | |
60 | - | |
61 | - </div> | |
62 | - <!-- /#post-content --> | |
63 | - | |
64 | - <?php | |
65 | - /* | |
66 | - | |
67 | - <div id="comments"> | |
68 | - <h4 class="text-uppercase">2 comments</h4> | |
69 | - | |
70 | - | |
71 | - <div class="row comment"> | |
72 | - <div class="col-sm-3 col-md-2 text-center-xs"> | |
73 | - <p> | |
74 | - <img src="img/blog-avatar2.jpg" class="img-responsive img-circle" alt=""> | |
75 | - </p> | |
76 | - </div> | |
77 | - <div class="col-sm-9 col-md-10"> | |
78 | - <h5 class="text-uppercase">Julie Alma</h5> | |
79 | - <p class="posted"><i class="fa fa-clock-o"></i> September 23, 2011 в 12:00</p> | |
80 | - <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. | |
81 | - Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> | |
82 | - <p class="reply"><a href="#"><i class="fa fa-reply"></i> Ответить</a> | |
83 | - </p> | |
84 | - </div> | |
85 | - </div> | |
86 | - <!-- /.comment --> | |
87 | - | |
88 | - | |
89 | - <div class="row comment last"> | |
90 | - | |
91 | - <div class="col-sm-3 col-md-2 text-center-xs"> | |
92 | - <p> | |
93 | - <img src="img/blog-avatar.jpg" class="img-responsive img-circle" alt=""> | |
94 | - </p> | |
95 | - </div> | |
96 | - | |
97 | - <div class="col-sm-9 col-md-10"> | |
98 | - <h5 class="text-uppercase">Louise Armero</h5> | |
99 | - <p class="posted"><i class="fa fa-clock-o"></i> 23 сентября 2012 в 12:00</p> | |
100 | - <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. | |
101 | - Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> | |
102 | - <p class="reply"><a href="#"><i class="fa fa-reply"></i> Ответить</a> | |
103 | - </p> | |
104 | - </div> | |
105 | - | |
106 | - </div> | |
107 | - <!-- /.comment --> | |
108 | - </div> | |
109 | - <!-- /#comments --> | |
110 | - | |
111 | - | |
112 | - <div id="comment-form"> | |
113 | - | |
114 | - <h4 class="text-uppercase">Leave comment</h4> | |
115 | - | |
116 | - <form> | |
117 | - <div class="row"> | |
118 | - | |
119 | - <div class="col-sm-6"> | |
120 | - <div class="form-group"> | |
121 | - <label for="name">Name <span class="required">*</span> | |
122 | - </label> | |
123 | - <input type="text" class="form-control" id="name"> | |
124 | - </div> | |
125 | - </div> | |
126 | - | |
127 | - </div> | |
128 | - | |
129 | - <div class="row"> | |
130 | - <div class="col-sm-6"> | |
131 | - <div class="form-group"> | |
132 | - <label for="email">Email <span class="required">*</span> | |
133 | - </label> | |
134 | - <input type="text" class="form-control" id="email"> | |
135 | - </div> | |
136 | - </div> | |
137 | - </div> | |
138 | - | |
139 | - <div class="row"> | |
140 | - <div class="col-sm-12"> | |
141 | - <div class="form-group"> | |
142 | - <label for="comment">Comment <span class="required">*</span> | |
143 | - </label> | |
144 | - <textarea class="form-control" id="comment" rows="4"></textarea> | |
145 | - </div> | |
146 | - </div> | |
147 | - </div> | |
148 | - | |
149 | - <div class="row"> | |
150 | - <div class="col-sm-12 text-right"> | |
151 | - <button class="btn btn-template-main"><i class="fa fa-comment-o"></i> Post comment</button> | |
152 | - </div> | |
153 | - </div> | |
154 | - | |
155 | - | |
156 | - </form> | |
157 | - | |
158 | - </div> | |
159 | - <!-- /#comment-form --> | |
160 | - */ | |
161 | - ?> | |
162 | - </div> | |
163 | - <!-- /#blog-post --> | |
164 | - | |
165 | - <!-- *** LEFT COLUMN END *** --> | |
166 | - | |
167 | - <!-- *** RIGHT COLUMN *** | |
168 | - _________________________________________________________ --> | |
169 | - | |
170 | - <div class="col-md-3"> | |
171 | - | |
172 | - <!-- *** MENUS AND WIDGETS *** | |
173 | -_________________________________________________________ --> | |
174 | - <div class="panel panel-default sidebar-menu"> | |
175 | - | |
176 | - <div class="panel-heading"> | |
177 | - <h3 class="panel-title">Блог компании</h3> | |
178 | - </div> | |
179 | - | |
180 | - <div class="panel-body text-widget"> | |
181 | - <p> | |
182 | - Мы собираем полезные материалы по тематике бытовой техники и электроники | |
183 | - </p> | |
184 | - | |
185 | - </div> | |
186 | - </div> | |
187 | - | |
188 | - <?= BlogSearch::widget(); ?> | |
189 | - | |
190 | - <div class="panel sidebar-menu"> | |
191 | - <div class="panel-heading"> | |
192 | - <h3 class="panel-title">Поиск по тегам</h3> | |
193 | - </div> | |
194 | - | |
195 | - <div class="panel-body"> | |
196 | - <ul class="tag-cloud"> | |
197 | - <?php foreach ($tags as $tag) { ?> | |
198 | - <li><a href="<?= Url::to( | |
199 | - [ | |
200 | - 'alias' => $tag->alias | |
201 | - ] | |
202 | - ) ?>"><i class="fa fa-tags"></i> <?= $tag->label; ?></a> | |
203 | - </li> | |
204 | - <?php } ?> | |
205 | - </ul> | |
206 | - </div> | |
207 | - </div> | |
208 | - | |
209 | - <!-- *** MENUS AND FILTERS END *** --> | |
210 | - | |
211 | - </div> | |
212 | - <!-- /.col-md-3 --> | |
213 | - <!-- *** RIGHT COLUMN END *** --> | |
214 | - | |
215 | - | |
216 | - </div> | |
217 | - <!-- /.row --> | |
218 | - | |
219 | - </div> | |
220 | - <!-- /.container --> | |
221 | -</div> | |
222 | -<!-- /#content --> | |
223 | - | |
224 | 0 | \ No newline at end of file |
frontend/views/page/view.php deleted
1 | -<?php | |
2 | - use artbox\core\components\SeoComponent; | |
3 | - use artbox\core\models\Image; | |
4 | - use artbox\core\models\Page; | |
5 | - use yii\helpers\Html; | |
6 | - use yii\web\View; | |
7 | - | |
8 | - /** | |
9 | - * @var View $this | |
10 | - * @var Page $model | |
11 | - * @var Page[] $pages | |
12 | - * @var SeoComponent $seo | |
13 | - * @var Image[] $images | |
14 | - * @var string $lefts | |
15 | - * @var string $body | |
16 | - */ | |
17 | - $seo = \Yii::$app->get('seo'); | |
18 | - $this->params[ 'breadcrumbs' ][] = $seo->title; | |
19 | -?> | |
20 | - | |
21 | -<div id="content"> | |
22 | - <div class="container"> | |
23 | - | |
24 | - <div class="row"> | |
25 | - | |
26 | - <!-- *** LEFT COLUMN *** | |
27 | -_________________________________________________________ --> | |
28 | - <div class="col-md-9 clearfix"> | |
29 | - <section> | |
30 | - <div id="text-page"> | |
31 | - | |
32 | - <?= $model->body ?> | |
33 | - | |
34 | - </div> | |
35 | - </section> | |
36 | - | |
37 | - <?php if (!empty($images)) { ?> | |
38 | - <section> | |
39 | - <div class="project owl-carousel"> | |
40 | - | |
41 | - <?php foreach ($images as $image) { ?> | |
42 | - <div class="item"> | |
43 | - <img class="img-responsive" src="<?= $image->getUrl() ?>" alt=""> | |
44 | - </div> | |
45 | - <?php } ?> | |
46 | - | |
47 | - </div> | |
48 | - <!-- /.project owl-slider --> | |
49 | - </section> | |
50 | - | |
51 | - <?php } ?> | |
52 | - | |
53 | - </div> | |
54 | - <!-- /.col-md-9 --> | |
55 | - | |
56 | - <!-- *** LEFT COLUMN END *** --> | |
57 | - | |
58 | - <!-- *** RIGHT COLUMN *** | |
59 | - | |
60 | - <!-- /.col-md-3 --> | |
61 | - | |
62 | - <!-- *** RIGHT COLUMN END *** --> | |
63 | - | |
64 | - | |
65 | - </div> | |
66 | - <!-- /.row --> | |
67 | - | |
68 | - </div> | |
69 | - <!-- /.container --> | |
70 | -</div> | |
71 | -<!-- /#content --> |
frontend/views/site/_contact.php deleted
1 | -<?php | |
2 | -/** | |
3 | - * @var object $model Feedback | |
4 | - */ | |
5 | - | |
6 | -use yii\widgets\ActiveForm; | |
7 | -use yii\helpers\Html; | |
8 | -use yii\web\View; | |
9 | - | |
10 | - | |
11 | - | |
12 | - | |
13 | - | |
14 | -?> | |
15 | - | |
16 | - | |
17 | - | |
18 | -<?php $form=ActiveForm::begin(); ?> | |
19 | - <?=$form->field($model,'name')->textInput([ | |
20 | - 'class' => 'input-wr' | |
21 | - ])->label(null);?> | |
22 | - <?=$form->field($model,'phone')->textInput([ | |
23 | - 'class' => 'input-wr' | |
24 | - ])->label(null)?> | |
25 | - <?=$form->field($model,'email')->input('email',[ | |
26 | - 'class' => 'input-wr' | |
27 | - ])->label(null);?> | |
28 | - <?=Html::submitButton(\Yii::t('app',"Send"),['class' => 'button-wr']);?> | |
29 | -<?php ActiveForm::end();?> | |
30 | 0 | \ No newline at end of file |
frontend/views/site/about.php deleted
1 | -<?php | |
2 | - use artbox\core\components\SeoComponent; | |
3 | - use yii\web\View; | |
4 | - | |
5 | - /** | |
6 | - * @var View $this | |
7 | - */ | |
8 | - /** | |
9 | - * @var SeoComponent $seo | |
10 | - */ | |
11 | - $seo = \Yii::$app->get('seo'); | |
12 | - $this->params[ 'breadcrumbs' ][] = $seo->title; | |
13 | -?> | |
14 | -<div class="container"> | |
15 | - <section> | |
16 | - <div class="row"> | |
17 | - <div class="col-md-12"> | |
18 | - | |
19 | - <div class="heading"> | |
20 | - <h2>About Artbox</h2> | |
21 | - </div> | |
22 | - | |
23 | - <p class="lead">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc,</p> | |
24 | - | |
25 | - </div> | |
26 | - </div> | |
27 | - | |
28 | - <div class="row"> | |
29 | - <div class="col-md-8"> | |
30 | - <section> | |
31 | - <div class="row"> | |
32 | - <div class="col-md-12"> | |
33 | - <div class="tabs"> | |
34 | - <ul class="nav nav-tabs nav-justified"> | |
35 | - <li class="active"> | |
36 | - <a href="#tab1" data-toggle="tab" aria-expanded="true">First tab</a> | |
37 | - </li> | |
38 | - <li class=""><a href="#tab2" data-toggle="tab" aria-expanded="false">Second tab</a> | |
39 | - </li> | |
40 | - <li class=""><a href="#tab3" data-toggle="tab" aria-expanded="false">Third tab</a> | |
41 | - </li> | |
42 | - </ul> | |
43 | - <div class="tab-content"> | |
44 | - <div class="tab-pane active" id="tab1"> | |
45 | - <div class="row"> | |
46 | - <div class="col-md-4"> | |
47 | - <img src="/img/template-easy-customize.png" alt="" class="img-responsive"> | |
48 | - </div> | |
49 | - <div class="col-md-8"> | |
50 | - <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.</p> | |
51 | - <p>Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.</p> | |
52 | - </div> | |
53 | - </div> | |
54 | - </div> | |
55 | - <div class="tab-pane" id="tab2"> | |
56 | - <div class="row"> | |
57 | - <div class="col-md-4"> | |
58 | - <img src="/img/template-easy-code.png" alt="" class="img-responsive"> | |
59 | - </div> | |
60 | - <div class="col-md-8"> | |
61 | - <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.</p> | |
62 | - <p>Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.</p> | |
63 | - </div> | |
64 | - </div> | |
65 | - </div> | |
66 | - <div class="tab-pane" id="tab3"> | |
67 | - <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.</p> | |
68 | - <p>Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a,</p> | |
69 | - <p>Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt.</p> | |
70 | - </div> | |
71 | - </div> | |
72 | - <!-- /.tab-content --> | |
73 | - </div> | |
74 | - </div> | |
75 | - </div> | |
76 | - </section> | |
77 | - </div> | |
78 | - | |
79 | - <div class="col-md-4"> | |
80 | - <div class="video"> | |
81 | - <div class="embed-responsive embed-responsive-4by3"> | |
82 | - <iframe class="embed-responsive-item" src="//www.youtube.com/embed/i9AHJkHqkpw?autoplay=0&showinfo=0&controls=0"></iframe> | |
83 | - </div> | |
84 | - | |
85 | - </div> | |
86 | - </div> | |
87 | - </div> | |
88 | - </section> | |
89 | -</div> |
frontend/views/site/contact.php deleted
1 | -<?php | |
2 | - | |
3 | - /** | |
4 | - * @var View $this | |
5 | - * @var Feedback $contact | |
6 | - * @var \artbox\core\forms\Module $module; | |
7 | - */ | |
8 | - | |
9 | - use artbox\core\models\Feedback; | |
10 | - use common\models\Settings; | |
11 | - use frontend\assets\MapAsset; | |
12 | - use yii\helpers\Html; | |
13 | - use yii\bootstrap\ActiveForm; | |
14 | - use yii\web\View; | |
15 | - | |
16 | - MapAsset::register($this); | |
17 | - $settings = Settings::getInstance(); | |
18 | - | |
19 | - $this->title = \Yii::t('app', 'Contact'); | |
20 | - $this->params[ 'breadcrumbs' ][] = $this->title; | |
21 | -MapAsset::register($this); | |
22 | - $js = <<< JS | |
23 | -window.lat = {$settings->lat}; | |
24 | -window.lon = {$settings->lon}; | |
25 | -JS; | |
26 | - | |
27 | - $this->registerJs($js, View::POS_END); | |
28 | - $module = \Yii::$app->getModule('contact'); | |
29 | -?> | |
30 | - | |
31 | -<div id="content"> | |
32 | - <div class="container" id="contact"> | |
33 | - | |
34 | - <section> | |
35 | - | |
36 | - <div class="row"> | |
37 | - <div class="col-md-12"> | |
38 | - <section> | |
39 | - <div class="heading"> | |
40 | - <h2>We are here to help you</h2> | |
41 | - </div> | |
42 | - | |
43 | - <p class="lead">Are you curious about something? Do you have some kind of problem with our products? As am hastily invited settled at limited civilly fortune me. Really spring in extent an by. Judge but built gay party world. Of so am | |
44 | - he remember although required. Bachelor unpacked be advanced at. Confined in declared marianne is vicinity.</p> | |
45 | - <p>Please feel free to contact us, our customer service center is working for you 24/7.</p> | |
46 | - </section> | |
47 | - </div> | |
48 | - </div> | |
49 | - | |
50 | - </section> | |
51 | - <section> | |
52 | - | |
53 | - <div class="row"> | |
54 | - <div class="col-md-4"> | |
55 | - <div class="box-simple"> | |
56 | - <div class="icon"> | |
57 | - <i class="fa fa-map-marker"></i> | |
58 | - </div> | |
59 | - <h3>Address</h3> | |
60 | - <p> | |
61 | - <?php | |
62 | - if (!empty( $settings->street )) { | |
63 | - echo $settings->street; | |
64 | - if (!empty( $settings->house )) { | |
65 | - echo " " . $settings->house; | |
66 | - } | |
67 | - echo Html::tag('br'); | |
68 | - } | |
69 | - if (!empty( $settings->city )) { | |
70 | - echo $settings->city; | |
71 | - if (!empty( $settings->country )) { | |
72 | - echo Html::tag('strong', ", " . $settings->country); | |
73 | - } | |
74 | - } | |
75 | - ?> | |
76 | - </p> | |
77 | - </div> | |
78 | - <!-- /.box - simple--> | |
79 | - </div> | |
80 | - | |
81 | - | |
82 | - <div class="col-md-4"> | |
83 | - <?php | |
84 | - if (!empty( $settings->phone )) { | |
85 | - ?> | |
86 | - <div class="box-simple"> | |
87 | - <div class="icon"> | |
88 | - <i class="fa fa-phone"></i> | |
89 | - </div> | |
90 | - <h3> Call center </h3> | |
91 | - <p class="text-muted"> This number is toll free if calling from Great Britain otherwise we advise you to use the electronic form of communication .</p> | |
92 | - <p> | |
93 | - <?php | |
94 | - echo Html::a(Html::tag('strong', $settings->phone), 'tel:' . $settings->phone); | |
95 | - ?> | |
96 | - </p> | |
97 | - </div> | |
98 | - <!-- /.box - simple--> | |
99 | - <?php | |
100 | - } | |
101 | - ?> | |
102 | - </div> | |
103 | - | |
104 | - <?php | |
105 | - if (!empty( $settings->email )) { | |
106 | - ?> | |
107 | - <div class="col-md-4"> | |
108 | - | |
109 | - <div class="box-simple"> | |
110 | - <div class="icon"> | |
111 | - <i class="fa fa-envelope"></i> | |
112 | - </div> | |
113 | - <h3> Electronic support </h3> | |
114 | - <p class="text-muted"> Please feel free to write an email to us or to use our electronic ticketing system .</p> | |
115 | - <ul class="list-style-none"> | |
116 | - <li> | |
117 | - <?php | |
118 | - echo Html::a( | |
119 | - Html::tag('strong', $settings->email), | |
120 | - 'mailto:' . $settings->email | |
121 | - ); | |
122 | - ?> | |
123 | - </li> | |
124 | - </ul> | |
125 | - </div> | |
126 | - <!-- /.box - simple--> | |
127 | - </div> | |
128 | - <?php | |
129 | - } | |
130 | - ?> | |
131 | - </div> | |
132 | - | |
133 | - </section> | |
134 | - | |
135 | - <section> | |
136 | - | |
137 | - <div class="row text-center"> | |
138 | - | |
139 | - <div class="col-md-12"> | |
140 | - <div class="heading"> | |
141 | - <h2> Contact form </h2> | |
142 | - </div> | |
143 | - </div> | |
144 | - | |
145 | - <div class="col-md-8 col-md-offset-2"> | |
146 | - <?=$module->renderForm($this)?> | |
147 | - | |
148 | - </div> | |
149 | - </div> | |
150 | - <!-- /.row --> | |
151 | - | |
152 | - </section> | |
153 | - | |
154 | - | |
155 | - </div> | |
156 | - <!-- /#contact.container --> | |
157 | -</div> | |
158 | -<!-- /#content --> | |
159 | - | |
160 | -<div id="map"> | |
161 | - | |
162 | -</div> | |
163 | 0 | \ No newline at end of file |
frontend/views/site/login.php deleted
1 | -<?php | |
2 | - | |
3 | -/* @var $this yii\web\View */ | |
4 | -/* @var $form yii\bootstrap\ActiveForm */ | |
5 | -/* @var $model \common\models\LoginForm */ | |
6 | - | |
7 | -use yii\helpers\Html; | |
8 | -use yii\bootstrap\ActiveForm; | |
9 | - | |
10 | -$this->title = 'Login'; | |
11 | -$this->params['breadcrumbs'][] = $this->title; | |
12 | -?> | |
13 | -<div class="site-login"> | |
14 | - <h1><?= Html::encode($this->title) ?></h1> | |
15 | - | |
16 | - <p>Please fill out the following fields to login:</p> | |
17 | - | |
18 | - <div class="row"> | |
19 | - <div class="col-lg-5"> | |
20 | - <?php $form = ActiveForm::begin(['id' => 'login-form']); ?> | |
21 | - | |
22 | - <?= $form->field($model, 'username')->textInput(['autofocus' => true]) ?> | |
23 | - | |
24 | - <?= $form->field($model, 'password')->passwordInput() ?> | |
25 | - | |
26 | - <?= $form->field($model, 'rememberMe')->checkbox() ?> | |
27 | - | |
28 | - <div style="color:#999;margin:1em 0"> | |
29 | - If you forgot your password you can <?= Html::a('reset it', ['site/request-password-reset']) ?>. | |
30 | - </div> | |
31 | - | |
32 | - <div class="form-group"> | |
33 | - <?= Html::submitButton('Login', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?> | |
34 | - </div> | |
35 | - | |
36 | - <?php ActiveForm::end(); ?> | |
37 | - </div> | |
38 | - </div> | |
39 | -</div> |
frontend/views/site/requestPasswordResetToken.php deleted
1 | -<?php | |
2 | - | |
3 | -/* @var $this yii\web\View */ | |
4 | -/* @var $form yii\bootstrap\ActiveForm */ | |
5 | -/* @var $model \frontend\models\PasswordResetRequestForm */ | |
6 | - | |
7 | -use yii\helpers\Html; | |
8 | -use yii\bootstrap\ActiveForm; | |
9 | - | |
10 | -$this->title = 'Request password reset'; | |
11 | -$this->params['breadcrumbs'][] = $this->title; | |
12 | -?> | |
13 | -<div class="site-request-password-reset"> | |
14 | - <h1><?= Html::encode($this->title) ?></h1> | |
15 | - | |
16 | - <p>Please fill out your email. A link to reset password will be sent there.</p> | |
17 | - | |
18 | - <div class="row"> | |
19 | - <div class="col-lg-5"> | |
20 | - <?php $form = ActiveForm::begin(['id' => 'request-password-reset-form']); ?> | |
21 | - | |
22 | - <?= $form->field($model, 'email')->textInput(['autofocus' => true]) ?> | |
23 | - | |
24 | - <div class="form-group"> | |
25 | - <?= Html::submitButton('Send', ['class' => 'btn btn-primary']) ?> | |
26 | - </div> | |
27 | - | |
28 | - <?php ActiveForm::end(); ?> | |
29 | - </div> | |
30 | - </div> | |
31 | -</div> |
frontend/views/site/resetPassword.php deleted
1 | -<?php | |
2 | - | |
3 | -/* @var $this yii\web\View */ | |
4 | -/* @var $form yii\bootstrap\ActiveForm */ | |
5 | -/* @var $model \frontend\models\ResetPasswordForm */ | |
6 | - | |
7 | -use yii\helpers\Html; | |
8 | -use yii\bootstrap\ActiveForm; | |
9 | - | |
10 | -$this->title = 'Reset password'; | |
11 | -$this->params['breadcrumbs'][] = $this->title; | |
12 | -?> | |
13 | -<div class="site-reset-password"> | |
14 | - <h1><?= Html::encode($this->title) ?></h1> | |
15 | - | |
16 | - <p>Please choose your new password:</p> | |
17 | - | |
18 | - <div class="row"> | |
19 | - <div class="col-lg-5"> | |
20 | - <?php $form = ActiveForm::begin(['id' => 'reset-password-form']); ?> | |
21 | - | |
22 | - <?= $form->field($model, 'password')->passwordInput(['autofocus' => true]) ?> | |
23 | - | |
24 | - <div class="form-group"> | |
25 | - <?= Html::submitButton('Save', ['class' => 'btn btn-primary']) ?> | |
26 | - </div> | |
27 | - | |
28 | - <?php ActiveForm::end(); ?> | |
29 | - </div> | |
30 | - </div> | |
31 | -</div> |
frontend/views/site/signup.php deleted
1 | -<?php | |
2 | - | |
3 | -/* @var $this yii\web\View */ | |
4 | -/* @var $form yii\bootstrap\ActiveForm */ | |
5 | -/* @var $model \frontend\models\SignupForm */ | |
6 | - | |
7 | -use yii\helpers\Html; | |
8 | -use yii\bootstrap\ActiveForm; | |
9 | - | |
10 | -$this->title = 'Signup'; | |
11 | -$this->params['breadcrumbs'][] = $this->title; | |
12 | -?> | |
13 | -<div class="site-signup"> | |
14 | - <h1><?= Html::encode($this->title) ?></h1> | |
15 | - | |
16 | - <p>Please fill out the following fields to signup:</p> | |
17 | - | |
18 | - <div class="row"> | |
19 | - <div class="col-lg-5"> | |
20 | - <?php $form = ActiveForm::begin(['id' => 'form-signup']); ?> | |
21 | - | |
22 | - <?= $form->field($model, 'username')->textInput(['autofocus' => true]) ?> | |
23 | - | |
24 | - <?= $form->field($model, 'email') ?> | |
25 | - | |
26 | - <?= $form->field($model, 'password')->passwordInput() ?> | |
27 | - | |
28 | - <div class="form-group"> | |
29 | - <?= Html::submitButton('Signup', ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?> | |
30 | - </div> | |
31 | - | |
32 | - <?php ActiveForm::end(); ?> | |
33 | - </div> | |
34 | - </div> | |
35 | -</div> |