Commit cd5c4aa479bc4dd06fb0f88d6310f311bb93f1c3

Authored by Yarik
2 parents d7374030 e66561dc

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	common/config/bootstrap.php
backend/config/main.php
... ... @@ -31,11 +31,12 @@
31 31 'variant-option-group-exclusion' => 'artbox\catalog\controllers\VariantOptionGroupExclController',
32 32 'product-option-group-complementary' => 'artbox\catalog\controllers\ProductOptionGroupComplController',
33 33 'product-option-group-exclusion' => 'artbox\catalog\controllers\ProductOptionGroupExclController',
34   - 'variant-option-complementary' => 'artbox\catalog\controllers\VariantOptionComplController',
35   - 'variant-option-exclusion' => 'artbox\catalog\controllers\VariantOptionExclController',
36   - 'product-option-complementary' => 'artbox\catalog\controllers\ProductOptionComplController',
37   - 'product-option-exclusion' => 'artbox\catalog\controllers\ProductOptionExclController',
38   - 'import' => 'artbox\catalog\controllers\ImportController',
  34 + 'variant-option-complementary' => 'artbox\catalog\controllers\VariantOptionComplController',
  35 + 'variant-option-exclusion' => 'artbox\catalog\controllers\VariantOptionExclController',
  36 + 'product-option-complementary' => 'artbox\catalog\controllers\ProductOptionComplController',
  37 + 'product-option-exclusion' => 'artbox\catalog\controllers\ProductOptionExclController',
  38 + 'import' => 'artbox\catalog\controllers\ImportController',
  39 + 'blog-article' => 'artbox\weblog\controllers\ArticleController',
39 40 ],
40 41 'components' => [
41 42 'assetManager' => [
... ...
backend/views/layouts/menu_items.php
... ... @@ -126,5 +126,17 @@
126 126 ],
127 127 ],
128 128 ],
  129 + [
  130 + 'label' => \Yii::t('app', 'Blog'),
  131 + 'url' => '#',
  132 + 'icon' => 'pencil-square',
  133 + 'items' => [
  134 + [
  135 + 'label' => \Yii::t('catalog', 'Articles'),
  136 + 'url' => [ 'blog-article/index' ],
  137 + 'icon' => 'file-text',
  138 + ],
  139 + ],
  140 + ],
129 141 ]
130 142 );
131 143 \ No newline at end of file
... ...
common/config/bootstrap.php
... ... @@ -12,4 +12,7 @@
12 12 }
13 13 if (!Yii::getAlias('@artbox/order', false)) {
14 14 Yii::setAlias('@artbox/order', dirname(dirname(__DIR__)) . '/artweb/artbox-order');
  15 + }
  16 + if (!Yii::getAlias('@artbox/weblog', false)) {
  17 + Yii::setAlias('@artbox/weblog', dirname(dirname(__DIR__)) . '/artweb/artbox-weblog');
15 18 }
16 19 \ No newline at end of file
... ...
common/config/main.php
... ... @@ -35,6 +35,10 @@
35 35 'class' => 'yii\i18n\PhpMessageSource',
36 36 'basePath' => '@common/messages',
37 37 ],
  38 + 'blog' => [
  39 + 'class' => 'yii\i18n\PhpMessageSource',
  40 + 'basePath' => '@artbox/weblog/messages',
  41 + ],
38 42 ],
39 43 ],
40 44 'filedb' => [
... ...
frontend/views/layouts/main.php
... ... @@ -240,6 +240,7 @@ _________________________________________________________ -->
240 240 <!--/.nav-collapse -->
241 241  
242 242 <div class="cart-item" id="cart">
  243 + <span class="badge">0</span>
243 244 <?php
244 245 echo Html::a(
245 246 Html::tag(
... ...
frontend/web/css/style.css
... ... @@ -4538,4 +4538,9 @@ a.list-group-item.active &gt; .badge,
4538 4538 padding-right: 20px;
4539 4539 outline: none;
4540 4540 margin-bottom: 20px;
  4541 +}
  4542 +#cart .badge{
  4543 + position: absolute;
  4544 + top: 2px;
  4545 + right: 4px;
4541 4546 }
4542 4547 \ No newline at end of file
... ...