Skip to content

Instantly share code, notes, and snippets.

@hissy

hissy/single_page.php

Last active Feb 4, 2020
Embed
What would you like to do?
How to use Bootstrap Tabs in concrete5 dashboard
<?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);?>
@nklatt

This comment has been minimized.

Copy link

@nklatt nklatt commented Feb 4, 2020

Thanks! In 5.7.5.13, the helper needed is concrete/ui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.