remove gitlab ci, add forgejo ci
Some checks failed
Deploy / Deploy to Production (push) Failing after 6s
Some checks failed
Deploy / Deploy to Production (push) Failing after 6s
This commit is contained in:
parent
778265feab
commit
ac2ccf01e2
7 changed files with 128 additions and 38 deletions
42
site/templates/product.php
Normal file
42
site/templates/product.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php snippet('header') ?>
|
||||
<main>
|
||||
<section class="product-panel">
|
||||
<header>
|
||||
<h1><?= $page->title() ?></h1>
|
||||
<p><?= $page->price() ?></p>
|
||||
</header>
|
||||
|
||||
<div class="product-description">
|
||||
<?= $page->description() ?>
|
||||
</div>
|
||||
|
||||
<?php if ($page->options()->isNotEmpty()): ?>
|
||||
<div class="product-options">
|
||||
<?php foreach($page->options()->toEntries() as $option): ?>
|
||||
<label for="<?= $option ?>">
|
||||
<input type="checkbox" id="<?= $option ?>" name="<?= $option ?>"> <?= $option ?>
|
||||
</label>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<button
|
||||
class="snipcart-add-item"
|
||||
data-item-id="<?= $page->uri() ?>"
|
||||
data-item-price="<?= $page->price() ?>"
|
||||
data-item-description="<?= $page->infos() ?>"
|
||||
data-item-image="<?= $page->file()->url() ?>"
|
||||
data-item-name="<?= $page->title() ?>"
|
||||
>Ajouter au panier</button>
|
||||
</section>
|
||||
<section class="product-gallery">
|
||||
<?php foreach($page->files() as $image): ?>
|
||||
<figure>
|
||||
<?php snippet('picture', ['file' => $image,
|
||||
'size' => 40
|
||||
]) ?>
|
||||
</figure>
|
||||
<?php endforeach ?>
|
||||
</section>
|
||||
</main>
|
||||
<?php snippet('footer') ?>
|
||||
|
|
@ -153,7 +153,7 @@
|
|||
<?php endif ?>
|
||||
<p><?= $product->title() ?></p>
|
||||
<?= $product->description() ?>
|
||||
<a href="#" class="link-block" aria-hidden="true"></a>
|
||||
<a href="<?= $product->url() ?>" class="link-block" aria-hidden="true"></a>
|
||||
</article>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue