diff --git a/templates/Binarity/Resources/views/modules/blog-article/visitor/default.blade.php b/templates/Binarity/Resources/views/modules/article/visitor/default.blade.php similarity index 90% rename from templates/Binarity/Resources/views/modules/blog-article/visitor/default.blade.php rename to templates/Binarity/Resources/views/modules/article/visitor/default.blade.php index 5f00b171..2a8276c2 100644 --- a/templates/Binarity/Resources/views/modules/blog-article/visitor/default.blade.php +++ b/templates/Binarity/Resources/views/modules/article/visitor/default.blade.php @@ -17,14 +17,15 @@ @if($page->category)
- {{$page->category->name}} + {{$page->category->name}}
@endif - @if(isset($page->moduleSettings->allowComments) && $page->moduleSettings->allowComments != 0) + @if(isset($page->moduleSettings['allowComments']) && $page->moduleSettings['allowComments'] != 0)
- {{$page->comments->count()}} + {{count($page->comments)}}
@endif @@ -36,11 +37,9 @@ - @if(isset($page->moduleSettings->allowComments) && $page->moduleSettings->allowComments != 0) + @if(isset($page->moduleSettings['allowComments']) && $page->moduleSettings['allowComments'] != 0)
- -

Komentáře

@foreach($page->comments as $comment) @@ -81,7 +80,7 @@
@endif -
+ {!! csrf_field() !!} @if(!$loggedUser) diff --git a/templates/Binarity/Resources/views/modules/blog-articlelist/visitor/default.blade.php b/templates/Binarity/Resources/views/modules/articlelist/visitor/default.blade.php similarity index 94% rename from templates/Binarity/Resources/views/modules/blog-articlelist/visitor/default.blade.php rename to templates/Binarity/Resources/views/modules/articlelist/visitor/default.blade.php index 6226ff86..695dc768 100644 --- a/templates/Binarity/Resources/views/modules/blog-articlelist/visitor/default.blade.php +++ b/templates/Binarity/Resources/views/modules/articlelist/visitor/default.blade.php @@ -37,7 +37,7 @@ více - @if(isset($article->moduleSettings->allowComments) && $article->moduleSettings->allowComments != 0 || $article->category) + @if(isset($article->moduleSettings['allowComments']) && $article->moduleSettings['allowComments'] != 0 || $article->category)