Edit shared headers and footers as page types
This commit is contained in:
@@ -13,6 +13,16 @@ $studio = $canvas ? ' data-studio-section="' . $e($section['version']) . '" data
|
||||
if ($canvas && $dynamic) {
|
||||
$studio .= ' data-studio-dynamic data-studio-feed="' . $e($section['feed']) . '" tabindex="0"';
|
||||
}
|
||||
if ($section['style'] === 'layout'):
|
||||
?>
|
||||
<section class="studio-layout-block<?= $style('section') ?>" id="<?= $e($section['key']) ?>"<?= $studio ?>>
|
||||
<?php if ($canvas): ?><span data-studio-part="title" hidden><?= $text('title') ?></span><span data-studio-part="lead" hidden><?= $text('lead') ?></span><?php endif ?>
|
||||
<div class="<?= trim($style('body')) ?>"<?= $canvas ? ' data-studio-part="body"' : '' ?>><?= $body ?></div>
|
||||
</section>
|
||||
<?php
|
||||
return;
|
||||
endif;
|
||||
|
||||
if ($section['style'] === 'hero-links'):
|
||||
?>
|
||||
<div class="wrap hero-directory-slot<?= $style('section') ?>" id="<?= $e($section['key']) ?>"<?= $studio ?>>
|
||||
|
||||
Reference in New Issue
Block a user