-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* change channel call banner header to layout and not index html * add Channel Types constants * add blog routes for channel * redirect to channel if relation does not exist * improve handling of redirects in channel blog post action * fixes based on review and change in header for channel blog post
- Loading branch information
Showing
12 changed files
with
155 additions
and
41 deletions.
There are no files selected for viewing
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,33 @@ | ||
<?php | ||
|
||
$image = $this->channel->logo ? $this->channel->logo->getLink(700, 700, false, true) : $this->asset('img/blog/header_default.png') ; | ||
|
||
$this->layout('channel/call/layout', [ | ||
'bodyClass' => 'blog channel-call', | ||
'title' => $this->post->title, | ||
'meta_description' => $this->post->subtitle ?: $this->post->title, | ||
'tw_image' => $image, | ||
'og_image' => $image | ||
]); | ||
?> | ||
|
||
<?php | ||
$this->section('header'); | ||
$this->replace(); | ||
?> | ||
|
||
|
||
<?php | ||
$this->section('channel-content'); | ||
?> | ||
|
||
<header class="banner-header"> | ||
<?= $this->insert('channel/call/partials/navbar') ?> | ||
</header> | ||
|
||
<?= $this->insert('blog/partials/blog_header') ?> | ||
<?= $this->insert('blog/partials/content') ?> | ||
<?= $this->insert('blog/partials/tags') ?> | ||
<?= $this->insert('blog/partials/related_posts') ?> | ||
|
||
<?php $this->replace() ?> |
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 |
---|---|---|
|
@@ -17,4 +17,4 @@ | |
|
||
<?= $this->insert('channel/call/partials/projects') ?> | ||
|
||
<?php $this->replace() ?> | ||
<?php $this->replace() ?> |
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
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.