-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into new_files_from_core
- Loading branch information
Showing
51 changed files
with
3,594 additions
and
546 deletions.
There are no files selected for viewing
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<div class="block {{isset($block->theme) ? $block->theme : 'col-sm-12'}}"> | ||
@if(isset($translation)) | ||
<?php /* @var $block \Gzero\Cms\ViewModels\BlockViewModel */ ?> | ||
<div class="block {{ $block->theme('col-sm-12') }}"> | ||
@if($block->hasTitle()) | ||
<div class="block-title"> | ||
<h4>{{ $translation->title }}</h4> | ||
<h4>{{ $block->title() }}</h4> | ||
</div> | ||
@endif | ||
@if($block->hasBody()) | ||
<div class="block-body"> | ||
{!! $translation->body !!} | ||
{!! $block->body() !!} | ||
</div> | ||
@endif | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<div class="block {{isset($block->theme) ? $block->theme : 'col-sm-12'}}"> | ||
@if(isset($translation)) | ||
<?php /* @var $block \Gzero\Cms\ViewModels\BlockViewModel */ ?> | ||
<div class="block {{ $block->theme('col-sm-12') }}"> | ||
@if($block->hasTitle()) | ||
<div class="block-title"> | ||
<h2>{{ $translation->title }}</h2> | ||
<h4>{{ $block->title() }}</h4> | ||
</div> | ||
@endif | ||
@if($block->hasBody()) | ||
<div class="block-body"> | ||
{!! $translation->body !!} | ||
{!! $block->body() !!} | ||
</div> | ||
@endif | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<div class="block {{isset($block->theme) ? $block->theme : 'col-sm-12'}}"> | ||
@if(isset($translation)) | ||
<?php /* @var $block \Gzero\Cms\ViewModels\BlockViewModel */ ?> | ||
<div class="block {{ $block->theme('col-sm-12') }}"> | ||
@if($block->hasTitle()) | ||
<div class="block-title"> | ||
<h2>{{ $translation->title }}</h2> | ||
<h4>{{ $block->title() }}</h4> | ||
</div> | ||
@endif | ||
@if($block->hasBody()) | ||
<div class="block-body"> | ||
{!! $translation->body !!} | ||
{!! $block->body() !!} | ||
</div> | ||
@endif | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,48 @@ | ||
<?php $childTranslation = $child->translation($language->code); ?> | ||
@if($childTranslation) | ||
<?php $childUrl = $child->routeUrl($language->code); ?> | ||
<article class="{{ $child->is_sticky ? 'is-sticky' : '' }}{{ $child->is_promoted ? ' is-promoted' : '' }}"> | ||
<h2 class="article-title"> | ||
<a href="{{ $childUrl }}"> | ||
{{ $childTranslation->title }} | ||
</a> | ||
</h2> | ||
<div class="row justify-content-between article-meta"> | ||
<div class="col col-md-auto"> | ||
<p class="text-muted"> | ||
<small>@lang('gzero-core::common.posted_by') {{ $child->authorName() }}</small> | ||
<small>@lang('gzero-core::common.posted_on') {{ $child->publishDate() }}</small> | ||
</p> | ||
</div> | ||
@if(config('gzero-cms.disqus.enabled') && $child->is_comment_allowed) | ||
<div class="col-auto"> | ||
<a href="{{ $childUrl }}#disqus_thread" | ||
data-disqus-identifier="{{ $child->id }}" | ||
class="disqus-comment-count"> | ||
0 @lang('gzero-core::common.comments') | ||
</a> | ||
</div> | ||
@endif | ||
<?php /* @var $child \Gzero\Cms\ViewModels\ContentViewModel */ ?> | ||
<article class="{{ $child->isSticky() ? 'is-sticky' : '' }}{{ $child->isPromoted() ? ' is-promoted' : '' }}"> | ||
<h2 class="article-title"> | ||
<a href="{{ $child->url() }}"> | ||
{{ $child->title() }} | ||
</a> | ||
</h2> | ||
<div class="row justify-content-between article-meta"> | ||
<div class="col col-md-auto"> | ||
<p class="text-muted"> | ||
<small>@lang('gzero-core::common.posted_by') {{ $child->author()->displayName() }}</small> | ||
<small>@lang('gzero-core::common.posted_on') {{ $child->publishedAt() }}</small> | ||
</p> | ||
</div> | ||
@if($child->thumb) | ||
<?php $thumbTranslation = $child->thumb->translation($language->code); ?> | ||
<div class="row mb-2"> | ||
<div class="col"> | ||
<img class="img-fluid img-thumbnail" | ||
title="{{($thumbTranslation)? $thumbTranslation->title : ''}}" | ||
src="{{croppaUrl($child->thumb->getFullPath(), | ||
config('gzero.image.thumb.width'), config('gzero.image.thumb.height'), ['resize'])}}" | ||
alt="{{($thumbTranslation)? $thumbTranslation->title : ''}}"> | ||
</div> | ||
</div> | ||
@endif | ||
{!! $childTranslation->teaser !!} | ||
<div class="row justify-content-md-between"> | ||
<div class="col-12 col-md-auto mb-3 mb-md-0"> | ||
<a href="{{ $childUrl }}" class="btn btn-outline-primary"> | ||
@lang('gzero-core::common.read_more') | ||
@if(config('gzero-cms.disqus.enabled') && $child->isCommentAllowed()) | ||
<div class="col-auto"> | ||
<a href="{{ $child->url() }}#disqus_thread" | ||
data-disqus-identifier="{{ $child->id() }}" | ||
class="disqus-comment-count"> | ||
0 @lang('gzero-core::common.comments') | ||
</a> | ||
</div> | ||
<div class="col col-md-auto"> | ||
<ul class="list-inline text-muted"> | ||
<li class="list-inline-item"> | ||
@lang('gzero-core::common.rating') {!! $child->ratingStars() !!} | ||
</li> | ||
<li class="list-inline-item"> | ||
@lang('gzero-core::common.number_of_views') {{ $child->visits }} | ||
</li> | ||
</ul> | ||
@endif | ||
</div> | ||
@if($child->hasThumbnail()) | ||
<?php $thumbTranslation = $child->thumb->translation($language->code); ?> | ||
<div class="row mb-2"> | ||
<div class="col"> | ||
<img class="img-fluid img-thumbnail" | ||
title="{{($thumbTranslation)? $thumbTranslation->title : ''}}" | ||
src="{{croppaUrl($child->thumb->getFullPath(), | ||
config('gzero.image.thumb.width'), config('gzero.image.thumb.height'), ['resize'])}}" | ||
alt="{{($thumbTranslation)? $thumbTranslation->title : ''}}"> | ||
</div> | ||
</div> | ||
</article> | ||
@if($loop->remaining) | ||
<hr class="my-4"/> | ||
@endif | ||
{!! $child->teaser() !!} | ||
<div class="row justify-content-md-between"> | ||
<div class="col-12 col-md-auto mb-3 mb-md-0"> | ||
<a href="{{ $child->url() }}" class="btn btn-outline-primary"> | ||
@lang('gzero-core::common.read_more') | ||
</a> | ||
</div> | ||
</div> | ||
</article> | ||
@if($loop->remaining) | ||
<hr class="my-4"/> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php /* @var $content \Gzero\Cms\ViewModels\ContentViewModel */ ?> | ||
<script type="application/ld+json"> | ||
{ | ||
"@context": "http://schema.org", | ||
"@type": "Article", | ||
"publisher": { | ||
"@type": "Organization", | ||
"url": "{{ routeMl('home') }}", | ||
"name": "{{ config('app.name') }}", | ||
"logo": { | ||
"@type": "ImageObject", | ||
"url": "{{ asset('/images/logo.png') }}" | ||
} | ||
}, | ||
"mainEntityOfPage": { | ||
"@type": "WebPage", | ||
"@id": "{{ routeMl('home') }}" | ||
}, | ||
@if(isset($content)) | ||
"headline": "{{ $content->title()}}", | ||
"author": { | ||
"@type": "Person", | ||
"name": "{{ $content->author()->displayName() }}" | ||
}, | ||
"datePublished": "{{ $content->publishedAt() }}", | ||
"dateModified": "{{ $content->updatedAt() }}", | ||
"url": "{{ $content->url() }}", | ||
@if($content->hasAncestors()) | ||
"articleSection": "{{ implode(',', $content->ancestorsNames()) }}", | ||
@endif | ||
"image": { | ||
"@type": "ImageObject", | ||
@if($content->hasThumbnail()) | ||
"url": "{{ asset(croppaUrl($content->thumb->getFullPath())) }}", | ||
"width": "{{ isset($width) ? $width : config('gzero-cms.image.thumb.width') }}", | ||
"height": "{{ isset($height) ? $height : 'auto' }}" | ||
@else | ||
"url": "{{ $content->firstImageUrl($content->teaser(), asset('images/share-logo.png')) }}", | ||
"width": "{{ config('gzero-cms.image.thumb.width') }}", | ||
"height": "{{ 'auto' }}" | ||
@endif | ||
} | ||
@endif | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.