feat(*): add image grids for album and associated media displays
This commit is contained in:
parent
9b4baad5fb
commit
9fa00a53a6
51 changed files with 1176 additions and 754 deletions
|
@ -9,14 +9,14 @@ schema: artist
|
|||
<img
|
||||
class="media-image"
|
||||
srcset="
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($artist["image"]) ?>?class=w200&type=webp 200w,
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($artist["image"]) ?>?class=w600&type=webp 400w,
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($artist["image"]) ?>?class=w800&type=webp 800w
|
||||
<?= htmlspecialchars($artist["image"]) ?>?class=w200&type=webp 200w,
|
||||
<?= htmlspecialchars($artist["image"]) ?>?class=w600&type=webp 400w,
|
||||
<?= htmlspecialchars($artist["image"]) ?>?class=w800&type=webp 800w
|
||||
"
|
||||
sizes="(max-width: 450px) 200px,
|
||||
(max-width: 850px) 400px,
|
||||
800px"
|
||||
src="{{ globals.cdn_url }}<?= htmlspecialchars($artist["image"]) ?>?class=w200&type=webp"
|
||||
src="<?= htmlspecialchars($artist["image"]) ?>?class=w200&type=webp"
|
||||
alt="<?= htmlspecialchars($artist["name"]) ?> • <?= htmlspecialchars(parseCountryField($artist["country"])) ?>"
|
||||
decoding="async"
|
||||
width="200"
|
||||
|
@ -108,7 +108,7 @@ schema: artist
|
|||
<?= getTablerIcon('vinyl') ?>
|
||||
Albums
|
||||
</h3>
|
||||
<?php renderMediaGrid($artist["albums"], $globals["cdn_url"]); ?>
|
||||
<?php renderMediaGrid($artist["albums"]); ?>
|
||||
<?php endif; ?>
|
||||
</article>
|
||||
<?php
|
||||
|
|
|
@ -9,15 +9,15 @@ schema: book
|
|||
<img
|
||||
class="media-image"
|
||||
srcset="
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($book["image"]) ?>?class=verticalsm&type=webp 200w,
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($book["image"]) ?>?class=verticalmd&type=webp 400w,
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($book["image"]) ?>?class=verticalbase&type=webp 800w
|
||||
<?= htmlspecialchars($book["image"]) ?>?class=verticalsm&type=webp 200w,
|
||||
<?= htmlspecialchars($book["image"]) ?>?class=verticalmd&type=webp 400w,
|
||||
<?= htmlspecialchars($book["image"]) ?>?class=verticalbase&type=webp 800w
|
||||
"
|
||||
sizes="(max-width: 450px) 203px,
|
||||
(max-width: 850px) 406px,
|
||||
(max-width: 1000px) 812px,
|
||||
812px"
|
||||
src="{{ globals.cdn_url }}<?= htmlspecialchars($book["image"]) ?>?class=verticalsm&type=webp"
|
||||
src="<?= htmlspecialchars($book["image"]) ?>?class=verticalsm&type=webp"
|
||||
alt="<?= htmlspecialchars($book["title"]) ?> by <?= htmlspecialchars($book["author"]) ?>"
|
||||
decoding="async"
|
||||
width="200"
|
||||
|
|
|
@ -7,14 +7,14 @@ schema: movie
|
|||
<article class="watching-focus">
|
||||
<img
|
||||
srcset="
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($movie["backdrop"]) ?>?class=bannersm&type=webp 256w,
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($movie["backdrop"]) ?>?class=bannermd&type=webp 512w,
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($movie["backdrop"]) ?>?class=bannerbase&type=webp 1024w
|
||||
<?= htmlspecialchars($movie["backdrop"]) ?>?class=bannersm&type=webp 256w,
|
||||
<?= htmlspecialchars($movie["backdrop"]) ?>?class=bannermd&type=webp 512w,
|
||||
<?= htmlspecialchars($movie["backdrop"]) ?>?class=bannerbase&type=webp 1024w
|
||||
"
|
||||
sizes="(max-width: 450px) 256px,
|
||||
(max-width: 850px) 512px,
|
||||
1024px"
|
||||
src="{{ globals.cdn_url }}<?= htmlspecialchars($movie["backdrop"]) ?>?class=bannersm&type=webp"
|
||||
src="<?= htmlspecialchars($movie["backdrop"]) ?>?class=bannersm&type=webp"
|
||||
alt="<?= htmlspecialchars($movie["title"]) ?> (<?= htmlspecialchars($movie["year"]) ?>)"
|
||||
class="image-banner"
|
||||
decoding="async"
|
||||
|
|
|
@ -7,14 +7,14 @@ schema: show
|
|||
<article class="watching-focus">
|
||||
<img
|
||||
srcset="
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($show["backdrop"]) ?>?class=bannersm&type=webp 256w,
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($show["backdrop"]) ?>?class=bannermd&type=webp 512w,
|
||||
{{ globals.cdn_url }}<?= htmlspecialchars($show["backdrop"]) ?>?class=bannerbase&type=webp 1024w
|
||||
<?= htmlspecialchars($show["backdrop"]) ?>?class=bannersm&type=webp 256w,
|
||||
<?= htmlspecialchars($show["backdrop"]) ?>?class=bannermd&type=webp 512w,
|
||||
<?= htmlspecialchars($show["backdrop"]) ?>?class=bannerbase&type=webp 1024w
|
||||
"
|
||||
sizes="(max-width: 450px) 256px,
|
||||
(max-width: 850px) 512px,
|
||||
1024px"
|
||||
src="{{ globals.cdn_url }}<?= htmlspecialchars($show["backdrop"]) ?>?class=bannersm&type=webp"
|
||||
src="<?= htmlspecialchars($show["backdrop"]) ?>?class=bannersm&type=webp"
|
||||
alt="<?= htmlspecialchars($show["title"]) ?> (<?= htmlspecialchars($show["year"]) ?>)"
|
||||
class="image-banner"
|
||||
decoding="async"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue