当前位置: 首页>>代码示例>>PHP>>正文


PHP JHtmlBootstrap::addTab方法代码示例

本文整理汇总了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();
开发者ID:beingsane,项目名称:quickcontent,代码行数:28,代码来源:edit_tab_rules.php

示例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>
开发者ID:lyrasoft,项目名称:lyrasoft.github.io,代码行数:31,代码来源:edit_tab_basic.php

示例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');
 }
开发者ID:N6REJ,项目名称:joomla-cms,代码行数:25,代码来源:JHtmlBootstrapTest.php

示例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');
            ?>
开发者ID:lyrasoft,项目名称:lyrasoft.github.io,代码行数:31,代码来源:joomla25.php

示例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();
?>
开发者ID:lyrasoft,项目名称:lyrasoft.github.io,代码行数:31,代码来源:edit.php

示例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 
开发者ID:ForAEdesWeb,项目名称:AEW25,代码行数:31,代码来源:edit_tab_basic.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();
开发者ID:ForAEdesWeb,项目名称:AEW3,代码行数:28,代码来源:edit_tab_rules.php

示例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;
?>
开发者ID:lyrasoft,项目名称:lyrasoft.github.io,代码行数:31,代码来源:default.php


注:本文中的JHtmlBootstrap::addTab方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。