本文整理汇总了PHP中JHtmlBootstrap::addTab方法的典型用法代码示例。如果您正苦于以下问题:PHP JHtmlBootstrap::addTab方法的具体用法?PHP JHtmlBootstrap::addTab怎么用?PHP JHtmlBootstrap::addTab使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JHtmlBootstrap
的用法示例。
在下文中一共展示了JHtmlBootstrap::addTab方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
/**
* Part of Component {{extension.name.cap}} files.
*
* @copyright Copyright (C) 2014 Asikart. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access
defined('_JEXEC') or die;
$tab = $data->tab;
$fieldsets = $data->form->getFieldsets();
?>
<?php
echo JHtmlBootstrap::addTab('{{controller.item.name.lower}}EditTab', $tab, \JText::_($data->view->option . '_EDIT_' . strtoupper($tab)));
?>
<div class="row-fluid">
<div class="span12">
<?php
echo $this->loadTemplate('fieldset', array('fieldset' => $fieldsets['rules'], 'class' => 'form-horizontal'));
?>
</div>
</div>
<?php
echo JHtmlBootstrap::endTab();
示例2: defined
<?php
/**
* Part of Component Akquickicons files.
*
* @copyright Copyright (C) 2014 Asikart. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access
defined('_JEXEC') or die;
$tab = $data->tab;
$fieldsets = $data->form->getFieldsets();
?>
<?php
echo JHtmlBootstrap::addTab('iconEditTab', $tab, \JText::_($data->view->option . '_EDIT_FIELDS_BASIC'));
?>
<div class="row-fluid">
<div class="span8">
<?php
echo $this->loadTemplate('fieldset', array('fieldset' => $fieldsets['information'], 'class' => 'form-horizontal'));
?>
</div>
<div class="span4">
<?php
echo $this->loadTemplate('fieldset', array('fieldset' => $fieldsets['publish'], 'class' => 'form-horizontal'));
?>
</div>
</div>
示例3: 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');
}
示例4: array
<?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';
?>
">
<div class="icon <?php
echo $button['class'];
?>
" id="<?php
echo JArrayHelper::getValue($button, 'id');
?>
示例5:
<?php
echo JHtmlBootstrap::addTab('quickcontent', 'category-blog', JText::_('COM_QUICKCONTENT_FORM_OPTION_BLOG'));
?>
<!-- CATEGORY BLOG PARAMS -->
<?php
echo $data->blogParams;
?>
<!-- CATEGORY BLOG PARAMS -->
<?php
echo JHtmlBootstrap::endTab();
?>
<?php
echo JHtmlBootstrap::addTab('quickcontent', 'article', JText::_('COM_QUICKCONTENT_FORM_OPTION_ARTICLE'));
?>
<!-- CONTENT PARAMS -->
<?php
echo $data->articleParams;
?>
<!-- CONTENT PARAMS -->
<?php
echo JHtmlBootstrap::endTab();
?>
<?php
echo JHtmlBootstrap::endTabSet();
?>
示例6: defined
<?php
/**
* Part of Component Copymodules files.
*
* @copyright Copyright (C) 2014 Asikart. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access
defined('_JEXEC') or die;
$tab = $data->tab;
$fieldsets = $data->form->getFieldsets();
?>
<?php
echo JHtmlBootstrap::addTab('moduleEditTab', $tab, \JText::_($data->view->option . '_EDIT_' . strtoupper($tab)));
?>
<div class="row-fluid">
<div class="span8">
<?php
echo $this->loadTemplate('fieldset', array('fieldset' => $fieldsets['information'], 'class' => 'form-horizontal'));
?>
<?php
echo $this->loadTemplate('fieldset', array('fieldset' => $fieldsets['text'], 'class' => 'form-horizontal'));
?>
</div>
<div class="span4">
<?php
示例7: defined
<?php
/**
* Part of Component Userxtd files.
*
* @copyright Copyright (C) 2014 Asikart. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access
defined('_JEXEC') or die;
$tab = $data->tab;
$fieldsets = $data->form->getFieldsets();
?>
<?php
echo JHtmlBootstrap::addTab('fieldEditTab', $tab, \JText::_($data->view->option . '_EDIT_FIELDS_RULES'));
?>
<div class="row-fluid">
<div class="span12">
<?php
echo $this->loadTemplate('fieldset', array('fieldset' => $fieldsets['rules'], 'class' => 'form-horizontal'));
?>
</div>
</div>
<?php
echo JHtmlBootstrap::endTab();
示例8:
<!-- elFinder Body -->
<div class="row-fluid">
<div id="elfinder" class="span12 rm-finder">
</div>
</div>
<?php
echo $tabs ? JHtmlBootstrap::endTab() : null;
?>
<?php
if ($data->modal) {
?>
<!--Insert From URL-->
<?php
echo $tabs ? JHtmlBootstrap::addTab('RMTabs', 'panel-url', JText::_('COM_REMOTEIMAGE_INSERT_FROM_URL')) : '';
?>
<?php
echo JText::_('COM_REMOTEIMAGE_INSERT_FROM_URL_DESC');
?>
<br /><br />
<textarea name="insert-from-url" id="insert-from-url" cols="30" class="span9" rows="10"></textarea>
<?php
echo $tabs ? JHtmlBootstrap::endTab() : null;
?>
<?php
}
?>
<?php
echo $tabs ? JHtmlBootstrap::endTabSet() : null;
?>