Commit 222b0897ae8f88ac542b4e7e23210e2b28e9736b

Authored by Yarik
1 parent 8c6aa8ad

Artbox comment created

common/config/bootstrap.php
... ... @@ -15,4 +15,7 @@
15 15 }
16 16 if (!Yii::getAlias('@artbox/weblog', false)) {
17 17 Yii::setAlias('@artbox/weblog', dirname(dirname(__DIR__)) . '/artweb/artbox-weblog');
  18 + }
  19 + if (!Yii::getAlias('@artbox/webcomment', false)) {
  20 + Yii::setAlias('@artbox/webcomment', dirname(dirname(__DIR__)) . '/artweb/artbox-webcomment');
18 21 }
19 22 \ No newline at end of file
... ...
common/config/main.php
... ... @@ -5,7 +5,7 @@
5 5 return [
6 6 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
7 7 'modules' => [
8   - 'imagemanager' => [
  8 + 'imagemanager' => [
9 9 'class' => 'noam148\imagemanager\Module',
10 10 'canUploadImage' => true,
11 11 'canRemoveImage' => function () {
... ... @@ -16,6 +16,9 @@
16 16 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css',
17 17 ],
18 18 ],
  19 + 'artbox-comment' => [
  20 + 'class' => 'artbox\webcomment\Module',
  21 + ],
19 22 ],
20 23 'components' => [
21 24 'cache' => [
... ... @@ -23,26 +26,30 @@
23 26 ],
24 27 'i18n' => [
25 28 'translations' => [
26   - 'core' => [
  29 + 'core' => [
27 30 'class' => 'yii\i18n\PhpMessageSource',
28 31 'basePath' => '@artbox/core/messages',
29 32 ],
30   - 'catalog' => [
  33 + 'catalog' => [
31 34 'class' => 'yii\i18n\PhpMessageSource',
32 35 'basePath' => '@artbox/catalog/messages',
33 36 ],
34   - 'app' => [
  37 + 'app' => [
35 38 'class' => 'yii\i18n\PhpMessageSource',
36 39 'basePath' => '@common/messages',
37 40 ],
38   - 'blog' => [
  41 + 'blog' => [
39 42 'class' => 'yii\i18n\PhpMessageSource',
40 43 'basePath' => '@artbox/weblog/messages',
41 44 ],
42   - 'order' => [
  45 + 'order' => [
43 46 'class' => 'yii\i18n\PhpMessageSource',
44 47 'basePath' => '@artbox/order/messages',
45 48 ],
  49 + 'artbox-comment' => [
  50 + 'class' => 'yii\i18n\PhpMessageSource',
  51 + 'basePath' => '@artbox/webcomment/messages',
  52 + ],
46 53 ],
47 54 ],
48 55 'filedb' => [
... ...
common/models/PasswordResetRequestForm.php 100644 → 100755
common/models/ResetPasswordForm.php 100644 → 100755
common/models/SignupForm.php 100644 → 100755
frontend/controllers/AccountController.php 100644 → 100755
frontend/controllers/BlogController.php 100644 → 100755
frontend/controllers/SearchController.php 100644 → 100755
frontend/models/Order.php 100644 → 100755
frontend/views/account/_menu.php 100644 → 100755
frontend/views/account/_product.php 100644 → 100755
frontend/views/account/account.php 100644 → 100755
frontend/views/account/index.php 100644 → 100755
frontend/views/account/order.php 100644 → 100755
frontend/views/account/wishlist.php 100644 → 100755
frontend/views/blog/_article.php 100644 → 100755
frontend/views/blog/category.php 100644 → 100755
frontend/views/blog/index.php 100644 → 100755
frontend/views/blog/tag.php 100644 → 100755
frontend/views/blog/view.php 100644 → 100755
1 1 <?php
2 2  
  3 + use artbox\webcomment\widgets\CommentWidget;
3 4 use artbox\weblog\models\Article;
4 5 use artbox\weblog\models\Tag;
5 6 use frontend\widgets\BlogSearch;
... ... @@ -160,11 +161,18 @@ _________________________________________________________ --&gt;
160 161 <!-- /#comment-form -->
161 162 */
162 163 ?>
  164 + <?php
  165 + echo CommentWidget::widget(
  166 + [
  167 + 'model' => $model,
  168 + ]
  169 + );
  170 + ?>
163 171 </div>
164 172 <!-- /#blog-post -->
165 173  
166 174 <!-- *** LEFT COLUMN END *** -->
167   -
  175 +
168 176 <!-- *** RIGHT COLUMN ***
169 177 _________________________________________________________ -->
170 178  
... ...
frontend/views/checkout/confirm.php 100644 → 100755
frontend/views/checkout/delivery.php 100644 → 100755
frontend/views/checkout/index.php 100644 → 100755
frontend/views/checkout/info.php 100644 → 100755
frontend/views/checkout/payment.php 100644 → 100755
frontend/views/search/category.php 100644 → 100755
frontend/views/search/index.php 100644 → 100755
frontend/views/site/login.php 100644 → 100755
frontend/views/site/requestPasswordResetToken.php 100644 → 100755
frontend/views/site/resetPassword.php 100644 → 100755
frontend/widgets/BlogSearch.php 100644 → 100755
frontend/widgets/views/_blog_search.php 100644 → 100755