Commit 1ceb333844d97ca7df5651ac1270f93d372b08c8
1 parent
63296d61
-Added gallery
Showing
16 changed files
with
96 additions
and
52 deletions
Show diff stats
backend/config/main.php
backend/views/layouts/menu_items.php
backend/views/settings/_social_tab.php
... | ... | @@ -10,11 +10,11 @@ |
10 | 10 | */ |
11 | 11 | echo $form->field($model, 'facebook') |
12 | 12 | ->textInput(); |
13 | - echo $form->field($model, 'vk') | |
14 | - ->textInput(); | |
13 | +// echo $form->field($model, 'vk') | |
14 | +// ->textInput(); | |
15 | 15 | echo $form->field($model, 'google') |
16 | 16 | ->textInput(); |
17 | 17 | echo $form->field($model, 'twitter') |
18 | 18 | ->textInput(); |
19 | - echo $form->field($model, 'ok') | |
20 | - ->textInput(); | |
21 | 19 | \ No newline at end of file |
20 | +// echo $form->field($model, 'ok') | |
21 | +// ->textInput(); | |
22 | 22 | \ No newline at end of file | ... | ... |
common/config/.gitignore
common/config/SitemapDynamic.php deleted
common/config/SitemapStatic.php deleted
common/config/main.php
1 | 1 | <?php |
2 | 2 | use artbox\core\components\SeoComponent; |
3 | 3 | |
4 | - $mail = require( 'mail.php' ); | |
4 | + $mail = require( 'filedb/mail.php' ); | |
5 | 5 | |
6 | 6 | return [ |
7 | 7 | 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', |
... | ... | @@ -36,7 +36,7 @@ |
36 | 36 | ], |
37 | 37 | 'filedb' => [ |
38 | 38 | 'class' => 'yii2tech\filedb\Connection', |
39 | - 'path' => '@common/config', | |
39 | + 'path' => '@common/config/filedb', | |
40 | 40 | ], |
41 | 41 | 'sitemapdb' => [ |
42 | 42 | 'class' => 'yii2tech\filedb\Connection', | ... | ... |
common/config/settings.php deleted
1 | -<?php | |
2 | - | |
3 | -return [ | |
4 | - 1 => [ | |
5 | - 'phone' => '+38 (044) 593-73-76', | |
6 | - 'phone2' => '+38 (098) 468-07-64', | |
7 | - 'skype' => 'artwebstudio', | |
8 | - 'email' => 'kennen.md@gmail.com', | |
9 | - 'house' => '1-М', | |
10 | - 'street' => 'пр. М. Бажана', | |
11 | - 'office' => '25', | |
12 | - 'city' => 'Киев', | |
13 | - 'country' => 'Украина', | |
14 | - 'lat' => '50.403696', | |
15 | - 'lon' => '30.641481', | |
16 | - 'facebook' => 'https://www.facebook.com/ArtWeb.ua/', | |
17 | - 'vk' => 'https://vk.com/artwebua', | |
18 | - 'ok' => 'https://ok.ru/artwebua', | |
19 | - 'google' => 'https://plus.google.com/+ArtwebUaAgency', | |
20 | - 'twitter' => 'https://twitter.com/ArtWeb_ua', | |
21 | - 'name' => 'Artweb', | |
22 | - 'logo' => null, | |
23 | - 'about' => 'Строим бизнес в онлайне', | |
24 | - 'analytics_key' => '119240817', | |
25 | - 'robots' => 'User-agent: Google | |
26 | -Disallow: | |
27 | -', | |
28 | - 'ga_code' => '796967', | |
29 | - 'ya_code' => '08908908', | |
30 | - 'tag_manager' => '', | |
31 | - 'id' => 1, | |
32 | - ], | |
33 | -]; | |
34 | 0 | \ No newline at end of file |
common/config/mail.php renamed to environments/dev/common/config/filedb/mail.php
1 | +<?php | |
2 | + | |
3 | +return [ | |
4 | + 1 => [ | |
5 | + 'phone' => '', | |
6 | + 'phone2' => '', | |
7 | + 'skype' => '', | |
8 | + 'email' => '', | |
9 | + 'house' => '', | |
10 | + 'street' => '', | |
11 | + 'office' => '', | |
12 | + 'city' => '', | |
13 | + 'country' => '', | |
14 | + 'lat' => '', | |
15 | + 'lon' => '', | |
16 | + 'facebook' => '', | |
17 | + 'vk' => '', | |
18 | + 'ok' => '', | |
19 | + 'google' => '', | |
20 | + 'twitter' => '', | |
21 | + 'name' => '', | |
22 | + 'logo' => null, | |
23 | + 'about' => '', | |
24 | + 'analytics_key' => '', | |
25 | + 'robots' => 'User-agent: Google | |
26 | +Disallow: | |
27 | +', | |
28 | + 'ga_code' => '', | |
29 | + 'ya_code' => '', | |
30 | + 'tag_manager' => '', | |
31 | + 'id' => 1, | |
32 | + ], | |
33 | +]; | |
0 | 34 | \ No newline at end of file | ... | ... |
environments/index.php
... | ... | @@ -36,6 +36,8 @@ return [ |
36 | 36 | 'backend/web/assets', |
37 | 37 | 'frontend/runtime', |
38 | 38 | 'frontend/web/assets', |
39 | + 'common/config/filedb', | |
40 | + 'storage', | |
39 | 41 | ], |
40 | 42 | 'setExecutable' => [ |
41 | 43 | 'yii', |
... | ... | @@ -54,6 +56,8 @@ return [ |
54 | 56 | 'backend/web/assets', |
55 | 57 | 'frontend/runtime', |
56 | 58 | 'frontend/web/assets', |
59 | + 'common/config/filedb', | |
60 | + 'storage', | |
57 | 61 | ], |
58 | 62 | 'setExecutable' => [ |
59 | 63 | 'yii', | ... | ... |
environments/prod/common/config/filedb/settings.php
0 → 100755
1 | +<?php | |
2 | + | |
3 | +return [ | |
4 | + 1 => [ | |
5 | + 'phone' => '', | |
6 | + 'phone2' => '', | |
7 | + 'skype' => '', | |
8 | + 'email' => '', | |
9 | + 'house' => '', | |
10 | + 'street' => '', | |
11 | + 'office' => '', | |
12 | + 'city' => '', | |
13 | + 'country' => '', | |
14 | + 'lat' => '', | |
15 | + 'lon' => '', | |
16 | + 'facebook' => '', | |
17 | + 'vk' => '', | |
18 | + 'ok' => '', | |
19 | + 'google' => '', | |
20 | + 'twitter' => '', | |
21 | + 'name' => '', | |
22 | + 'logo' => null, | |
23 | + 'about' => '', | |
24 | + 'analytics_key' => '', | |
25 | + 'robots' => 'User-agent: Google | |
26 | +Disallow: | |
27 | +', | |
28 | + 'ga_code' => '', | |
29 | + 'ya_code' => '', | |
30 | + 'tag_manager' => '', | |
31 | + 'id' => 1, | |
32 | + ], | |
33 | +]; | |
0 | 34 | \ No newline at end of file | ... | ... |
frontend/views/layouts/main.php
... | ... | @@ -77,6 +77,7 @@ |
77 | 77 | <body> |
78 | 78 | <?php $this->beginBody() ?> |
79 | 79 | <!-- Google Analytics --> |
80 | + <?php if (!empty($settings->ga_code)) { ?> | |
80 | 81 | <script> |
81 | 82 | (function(i, s, o, g, r, a, m) { |
82 | 83 | i[ 'GoogleAnalyticsObject' ] = r; |
... | ... | @@ -93,6 +94,7 @@ |
93 | 94 | ga('send', 'pageview'); |
94 | 95 | |
95 | 96 | </script> |
97 | + <?php } ?> | |
96 | 98 | <div id="all"> |
97 | 99 | <header> |
98 | 100 | <!-- *** TOP *** | ... | ... |
frontend/web/.gitignore
frontend/web/sitemap.xml deleted
1 | -<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>http://www.artbox.dev/</loc><lastmod>2017-03-30</lastmod><changefreq>monthly</changefreq><priority>1</priority></url><url><loc>http://www.artbox.dev/site/contacts</loc><lastmod>2017-03-30</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>http://www.artbox.dev/en/text-en</loc><lastmod>2017-03-30</lastmod><changefreq>hourly</changefreq><priority>0.7</priority></url></urlset> | |
2 | 0 | \ No newline at end of file |