Last active
February 4, 2020 23:11
-
-
Save hissy/4378684 to your computer and use it in GitHub Desktop.
How to use Bootstrap Tabs in concrete5 dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Single Page Name'), false, false, false, false, false, false); ?> | |
<div class="ccm-pane-body"> | |
<?php | |
// Tab setting using array | |
$tabs = array( | |
// array('tab-id', 'Tag Label', true=active) | |
array('tab-1', 'Tab 1', true), | |
array('tab-2', 'Tab 2'), | |
); | |
// Print tab element | |
echo Loader::helper('concrete/interface')->tabs($tabs); | |
?> | |
<div id="ccm-tab-content-tab-1" class="ccm-tab-content"> | |
Tab Content 1 | |
</div> | |
<div id="ccm-tab-content-tab-2" class="ccm-tab-content"> | |
Tab Content 2 | |
</div> | |
</div> | |
<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper(false);?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! In 5.7.5.13, the helper needed is
concrete/ui
.