dokuwiki-template-sprintdoc.../tpl/nav-meta-box.php
Andreas Gohr a94fc7a514 give tabs a class for special styling
I nearly needed that but then didn't. but it might come in handy
2017-03-09 16:16:19 +01:00

37 lines
1 KiB
PHP
Executable file

<?php
if(!defined('DOKU_INC')) die();
$tabs = \dokuwiki\template\sprintdoc\Template::getInstance()->getMetaBoxTabs();
?>
<div class="tab-container">
<ul class="meta-tabs">
<li class="a11y">&nbsp;</li>
<?php
foreach($tabs as $tab) {
echo '<li class="' . $tab['id'] . '">';
echo '<a href="#' . $tab['id'] . '" aria-expanded="false">';
echo '<span class="prefix">';
echo $tab['label'];
if($tab['count'] !== null) {
echo ' <span class="num">' . $tab['count'] . '</span>';
}
echo '</span>';
echo '</a>';
echo '</li>';
}
?>
</ul>
<div class="meta-content">
<div class="box-content">
<?php
foreach($tabs as $tab) {
echo '<div id="' . $tab['id'] . '" class="tab-pane" aria-hidden="true">';
echo $tab['tab'];
echo '</div>';
}
?>
</div>
</div>
</div>