Rename horizontalgallery block to horizontal-gallery
All checks were successful
Deploy / Deploy to Production (push) Successful in 13s
All checks were successful
Deploy / Deploy to Production (push) Successful in 13s
- Follow Kirby naming convention with dashes - Update all references (blueprint, snippet, plugin registration) - Rebuild plugin with new name Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a01323be39
commit
6d71b353f3
6 changed files with 8 additions and 8 deletions
|
|
@ -1,38 +0,0 @@
|
|||
<?php
|
||||
/** @var \Kirby\Cms\Block $block */
|
||||
$images = $block->images()->toFiles();
|
||||
$text = $block->text()->value();
|
||||
?>
|
||||
|
||||
<div class="subsection-w-hscroll">
|
||||
|
||||
<div class="horizontal-scroll-spacer"></div>
|
||||
|
||||
<div class="horizontal-scroll">
|
||||
<div class="horizontal-scroll-wrapper">
|
||||
<?php foreach ($images as $image): ?>
|
||||
<div class="horizontal-scroll-slide">
|
||||
<div class="horizontal-scroll-slide__inner">
|
||||
<figure>
|
||||
<img src="<?= $image->url() ?>" alt="<?= $image->alt()->esc() ?>" />
|
||||
</figure>
|
||||
<?php if ($image->caption()->isNotEmpty()): ?>
|
||||
<p class="caption"><?= $image->caption()->html() ?></p>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
||||
<div class="horizontal-scroll-button-prev"></div>
|
||||
<div class="horizontal-scroll-button-next"></div>
|
||||
<div class="horizontal-scroll-pagination"></div>
|
||||
</div>
|
||||
|
||||
<?php if ($text): ?>
|
||||
<div class="subsection-txt">
|
||||
<?= $text ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue