mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-06 08:16:46 +02:00
feat: add podcast banner field for each podcast + refactor images configuration
- rename image fields on podcast, episode and persons for better clarity - set different sizes config for podcast cover, banner and persons avatars - add tiny size for covers - fix responsive on admin forms
This commit is contained in:
parent
5c56f3e6f0
commit
4a8147bfbb
79 changed files with 506 additions and 419 deletions
|
|
@ -200,11 +200,11 @@ class EpisodeController extends BaseController
|
|||
'" width="100%" height="144" frameborder="0" scrolling="no"></iframe>',
|
||||
'width' => 600,
|
||||
'height' => 144,
|
||||
'thumbnail_url' => $this->episode->image->large_url,
|
||||
'thumbnail_url' => $this->episode->cover->large_url,
|
||||
'thumbnail_width' => config('Images')
|
||||
->largeSize,
|
||||
->podcastCoverSizes['large'][0],
|
||||
'thumbnail_height' => config('Images')
|
||||
->largeSize,
|
||||
->podcastCoverSizes['large'][1],
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
@ -219,9 +219,9 @@ class EpisodeController extends BaseController
|
|||
$oembed->addChild('provider_url', $this->podcast->link);
|
||||
$oembed->addChild('author_name', $this->podcast->title);
|
||||
$oembed->addChild('author_url', $this->podcast->link);
|
||||
$oembed->addChild('thumbnail', $this->episode->image->large_url);
|
||||
$oembed->addChild('thumbnail_width', config('Images')->largeSize);
|
||||
$oembed->addChild('thumbnail_height', config('Images')->largeSize);
|
||||
$oembed->addChild('thumbnail', $this->episode->cover->large_url);
|
||||
$oembed->addChild('thumbnail_width', config('Images')->podcastCoverSizes['large'][0]);
|
||||
$oembed->addChild('thumbnail_height', config('Images')->podcastCoverSizes['large'][1]);
|
||||
$oembed->addChild(
|
||||
'html',
|
||||
htmlentities(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue