本文整理汇总了PHP中JHtmlBootstrap::startTabSet方法的典型用法代码示例。如果您正苦于以下问题:PHP JHtmlBootstrap::startTabSet方法的具体用法?PHP JHtmlBootstrap::startTabSet怎么用?PHP JHtmlBootstrap::startTabSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JHtmlBootstrap
的用法示例。
在下文中一共展示了JHtmlBootstrap::startTabSet方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testAddTab
/**
* Tests the addTab method.
*
* @return void
*
* @since 3.6.0
*/
public function testAddTab()
{
// Must start a tabset first
JHtmlBootstrap::startTabSet();
// Add a tab
$html = JHtmlBootstrap::addTab('myTab', 'myTabItem', 'myTitle');
// Get the document instance
$document = JFactory::getDocument();
$this->assertArrayHasKey('/media/jui/js/bootstrap.min.js', $document->_scripts, 'Verify that the alert method initialises Bootstrap as well');
$li = "<li class=\\\"\\\"><a href=\\\"#myTabItem\\\" data-toggle=\\\"tab\\\">myTitle<\\/a><\\/li>";
$script = 'jQuery(function($){ $("#myTab a").click(function (e) {e.preventDefault();$(this).tab("show");});});';
$script .= chr(13);
$script .= 'jQuery(function($){ $("#myTabTabs").append($("' . $li . '")); });';
$this->assertEquals($document->_script['text/javascript'], $script, 'Verify that the startTabSet script is initialised');
// Check the tab set's html structure
$matcher = array('id' => 'myTabItem', 'tag' => 'div', 'attributes' => array('class' => 'tab-pane'));
$this->assertTag($matcher, $html, 'Verify that the html structure of the Tab is correct');
}
示例2: array
if (task == '{{controller.item.name.lower}}.edit.cancel' || document.formvalidator.isValid(document.getElementById('adminForm')))
{
Joomla.submitform(task, document.getElementById('adminForm'));
}
}
</script>
<div id="{{extension.name.lower}}" class="windwalker {{controller.item.name.lower}} edit-form row-fluid">
<form action="<?php
echo JUri::getInstance();
?>
" method="post" name="adminForm" id="adminForm"
class="form-validate" enctype="multipart/form-data">
<?php
echo JHtmlBootstrap::startTabSet('{{controller.item.name.lower}}EditTab', array('active' => 'tab_basic'));
?>
<?php
foreach ($tabs as $tab) {
echo $this->loadTemplate($tab, array('tab' => $tab));
}
?>
<?php
echo JHtmlBootstrap::endTabSet();
?>
<!-- Hidden Inputs -->
<div id="hidden-inputs">
<input type="hidden" name="option" value="{{extension.element.lower}}" />
示例3: array_keys
$keys = array_keys($buttons);
$uniqid = uniqid();
?>
<style type="text/css">
.pane-sliders .panel .tabs h3 {
background-color : transparent;
}
</style>
<?php
if (!empty($buttons)) {
?>
<div class="aqi-module joomla25-layout">
<!-- Icons -->
<?php
echo $tabs ? JHtmlBootstrap::startTabSet('iconTab-' . $uniqid, array('active' => 'tab-' . $uniqid . '-' . $keys[0])) : null;
?>
<?php
foreach ($buttons as $key => $group) {
?>
<?php
echo $tabs ? JHtmlBootstrap::addTab('iconTab-' . $uniqid, 'tab-' . $uniqid . '-' . $key, $group[0]['cat_title']) : null;
?>
<div class="cpanel">
<?php
foreach ($group as $button) {
?>
<div class="<?php
echo JVERSION >= 3 ? '' : 'icon-wrapper';
示例4: array
echo $data->form->getLabel('content');
?>
</div>
<div><?php
echo $data->form->getInput('content');
?>
</div>
</fieldset>
</div>
<div class="span5 form-horizontal">
<!-- Tab Content -->
<?php
echo JHtmlBootstrap::startTabSet('quickcontent', array('active' => 'basic'));
?>
<?php
echo JHtmlBootstrap::addTab('quickcontent', 'basic', JText::_('COM_QUICKCONTENT_FORM_OPTION_BASIC'));
?>
<?php
echo JHtmlBootstrap::startAccordion('basic-slides', array('active' => 'basic-basic-options'));
?>
<?php
echo JHtmlBootstrap::addSlide('basic-slides', JText::_('COM_QUICKCONTENT_FORM_OPTION_BASIC'), 'basic-basic-options');
?>
<fieldset class="panelform">
<div class="control-group">
示例5: array
if (task == 'module.edit.cancel' || document.formvalidator.isValid(document.id('adminForm')))
{
Joomla.submitform(task, document.getElementById('adminForm'));
}
}
</script>
<div id="copymodules" class="windwalker module edit-form row-fluid">
<form action="<?php
echo JURI::getInstance();
?>
" method="post" name="adminForm" id="adminForm"
class="form-validate" enctype="multipart/form-data">
<?php
echo JHtmlBootstrap::startTabSet('moduleEditTab', array('active' => 'tab_basic'));
?>
<?php
foreach ($tabs as $tab) {
echo $this->loadTemplate($tab, array('tab' => $tab));
}
?>
<?php
echo JHtmlBootstrap::endTabSet();
?>
<!-- Hidden Inputs -->
<div id="hidden-inputs">
<input type="hidden" name="option" value="com_copymodules" />
示例6: defined
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.templaza.com
# Technical Support: Forum - http://templaza.com/Forum
-------------------------------------------------------------------------*/
//no direct access
defined('_JEXEC') or die('Restricted access');
JHtml::_('bootstrap.tooltip', '.hasTooltip,[data-toggle=tooltip]');
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.keepalive');
JHtml::_('behavior.tabstate');
JHtml::_('formbehavior.chosen', '#menuOptions select');
JHtmlBootstrap::startTabSet();
?>
<form name="adminForm" method="post" id="template-form"
action="index.php?option=com_tz_portfolio_plus&view=template_style&layout=edit&id=<?php
echo $this->item->id;
?>
">
<div class="container-fluid" id="plazart_layout_builder">
<div class="form-horizontal">
<div class="row-fluid">
<div class="span8 form-horizontal">
<fieldset class="adminForm">
<legend><?php
echo JText::_('COM_TZ_PORTFOLIO_PLUS_DETAILS');
?>
示例7: array
if ($data->modal) {
?>
body {
margin : 0 !important;
padding : 0 !important;
}
<?php
}
?>
</style>
<div id="remoteimage-manager" class="remoteimage">
<?php
echo $tabs ? JHtmlBootstrap::startTabSet('RMTabs', array('active' => 'panel-elfinder')) : '';
?>
<?php
echo $tabs ? JHtmlBootstrap::addTab('RMTabs', 'panel-elfinder', JText::_('COM_REMOTEIMAGE_MANAGER')) : '';
?>
<!-- elFinder Body -->
<div class="row-fluid">
<div id="elfinder" class="span12 rm-finder">
</div>
</div>
<?php
echo $tabs ? JHtmlBootstrap::endTab() : null;
?>