コード例 #1
0
 /**
  * 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
0
ファイル: edit.php プロジェクト: lyrasoft/lyrasoft.github.io
		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
0
$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
0
ファイル: edit.php プロジェクト: lyrasoft/lyrasoft.github.io
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
0
ファイル: edit.php プロジェクト: ForAEdesWeb/AEW25
		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
0
ファイル: edit.php プロジェクト: templaza/tz_portfolio_plus
# @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
0
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;
?>