save before move tabs outside from header

This commit is contained in:
isUnknown 2024-03-10 12:03:31 +01:00
parent f9397935bd
commit 94d404288f
13 changed files with 116 additions and 64 deletions

View file

@ -1,10 +1,11 @@
<?php
$left['slug'] = Str::slug($left['label']);
$authorFilter = isset($authorFilter) ? $authorFilter : false;
$activeTab = isset($activeTab) ? Str::slug($activeTab) : '';
?>
<div id="tabs" x-data="{
activeTab: ''
activeTab: '<?= $activeTab ?>'
}">
<div class="toggle-btns | flex space-between" style="
--content:space-between;
@ -20,7 +21,7 @@ $authorFilter = isset($authorFilter) ? $authorFilter : false;
@click="toggleTab($data, 'texts')"
>textes</button>
</div>
<div class="active-tab">
<div class="active-tab" x-show="activeTab.length > 0">
<section
x-show="activeTab === '<?=$left['slug'] ?>'">
<?= $left['content'] ?>