1<?php 2if(!defined('DOKU_INC')) die(); 3 4$tabs = \dokuwiki\template\sprintdoc\Template::getInstance()->getMetaBoxTabs(); 5 6?> 7<div class="tab-container"> 8 <ul class="meta-tabs"> 9 <li class="a11y"> </li> 10 <?php 11 foreach($tabs as $tab) { 12 if (empty($tab['tab']) || trim($tab['tab']) === '') { 13 continue; 14 } 15 echo '<li class="' . $tab['id'] . '">'; 16 echo '<a href="#' . $tab['id'] . '" aria-expanded="false">'; 17 echo '<span class="prefix">'; 18 echo $tab['label']; 19 if($tab['count'] !== null) { 20 echo ' <span class="num">' . $tab['count'] . '</span>'; 21 } 22 echo '</span>'; 23 echo '</a>'; 24 echo '</li>'; 25 } 26 ?> 27 </ul> 28 29 <div class="meta-content"> 30 <div class="box-content"> 31 <?php 32 foreach($tabs as $tab) { 33 if (empty($tab['tab']) || trim($tab['tab']) === '') { 34 continue; 35 } 36 echo '<div id="' . $tab['id'] . '" class="tab-pane" aria-hidden="true">'; 37 echo $tab['tab']; 38 echo '</div>'; 39 } 40 ?> 41 </div> 42 </div> 43</div> 44