figures simples + outdoor computer club
This commit is contained in:
parent
76dc174fca
commit
868a5b702c
18 changed files with 531 additions and 352 deletions
|
|
@ -13,11 +13,14 @@ if ($block->location() == 'web') {
|
|||
$src = $image->url();
|
||||
}
|
||||
|
||||
$GLOBALS['figCount'] = ($GLOBALS['figCount'] ?? 0) + 1;
|
||||
$figId = 'fig-' . Str::slug($page->author()) . '-' . $GLOBALS['figCount'];
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($src): ?>
|
||||
<div class="full-bleed-image full-page">
|
||||
<figure id="<?= $block->id() ?>" class="<?= $fullWidth ? 'full-width' : '' ?>">
|
||||
<figure id="<?= $figId ?>" class="<?= $fullWidth ? 'full-width' : '' ?>">
|
||||
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
|
||||
<?php if ($caption->isNotEmpty()): ?>
|
||||
<figcaption><?= $caption ?></figcaption>
|
||||
|
|
|
|||
|
|
@ -3,8 +3,11 @@
|
|||
$caption = $block->caption();
|
||||
$crop = $block->crop()->isTrue();
|
||||
$ratio = $block->ratio()->or('auto');
|
||||
|
||||
$GLOBALS['figCount'] = ($GLOBALS['figCount'] ?? 0) + 1;
|
||||
$figId = 'fig-' . Str::slug($block->parent()->author()) . '-' . $GLOBALS['figCount'];
|
||||
?>
|
||||
<figure id="<?= $block->id() ?>"<?= Html::attr(['data-ratio' => $ratio, 'data-crop' => $crop], null, ' ') ?>>
|
||||
<figure id="<?= $figId ?>"<?= Html::attr(['data-ratio' => $ratio, 'data-crop' => $crop], null, ' ') ?>>
|
||||
<ul>
|
||||
<?php foreach ($block->images()->toFiles() as $image): ?>
|
||||
<li class="<?= $image->taille()->esc()?> <?= $image->orientation()?>">
|
||||
|
|
|
|||
|
|
@ -5,10 +5,13 @@ $alt = $block->alt();
|
|||
$caption = $block->caption();
|
||||
$src = $block->image()->toFile()->url();
|
||||
|
||||
$GLOBALS['figCount'] = ($GLOBALS['figCount'] ?? 0) + 1;
|
||||
$figId = 'fig-' . Str::slug($block->parent()->author()) . '-' . $GLOBALS['figCount'];
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($src): ?>
|
||||
<figure id="<?= $block->id() ?>" class="print-image full-page <?= $block->taille()->esc() ?>">
|
||||
<figure id="<?= $figId ?>">
|
||||
|
||||
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,13 @@ $alt = $block->alt();
|
|||
$caption = $block->caption();
|
||||
$src = $block->image()->toFile()->url();
|
||||
|
||||
$GLOBALS['figCount'] = ($GLOBALS['figCount'] ?? 0) + 1;
|
||||
$figId = 'fig-' . Str::slug($block->parent()->author()) . '-' . $GLOBALS['figCount'];
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($src): ?>
|
||||
<figure id="<?= $block->id() ?>" class="float-image">
|
||||
<figure id="<?= $figId ?>" class="float-image">
|
||||
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
|
||||
<?php if ($caption->isNotEmpty()): ?>
|
||||
<figcaption>
|
||||
|
|
|
|||
|
|
@ -13,11 +13,14 @@ if ($block->location() == 'web') {
|
|||
$src = $image->url();
|
||||
}
|
||||
|
||||
$GLOBALS['figCount'] = ($GLOBALS['figCount'] ?? 0) + 1;
|
||||
$figId = 'fig-' . Str::slug($block->parent()->author()) . '-' . $GLOBALS['figCount'];
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($src): ?>
|
||||
<div class="spread-image">
|
||||
<figure id="<?= $block->id() ?>" class="<?= $fullWidth ? 'full-width' : '' ?>">
|
||||
<figure id="<?= $figId ?>" class="<?= $fullWidth ? 'full-width' : '' ?>">
|
||||
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
|
||||
<?php if ($caption->isNotEmpty()): ?>
|
||||
<figcaption><?= $caption ?></figcaption>
|
||||
|
|
|
|||
|
|
@ -32,11 +32,11 @@
|
|||
"assets/pagedjs/interface.js",
|
||||
"assets/pagedjs/reload-in-place.js",
|
||||
"assets/js/plugins/csstree.js",
|
||||
"assets/js/plugins/beforeParsed.js",
|
||||
"assets/js/plugins/smartquote.js",
|
||||
"assets/js/plugins/fix-justif.js",
|
||||
# "assets/js/plugins/fix-justif.js",
|
||||
"assets/js/plugins/moveElems.js",
|
||||
"assets/js/plugins/fullpage.js",
|
||||
"assets/js/plugins/full-page.js",
|
||||
// "assets/js/plugins/margin-notes.js",
|
||||
"assets/js/plugins/followingNotes.js",
|
||||
"assets/js/plugins/decor-blockquote.js",
|
||||
"assets/js/plugins/decor-num-pages.js",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue