Example #1
0
			</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">
						<?php 
echo $data->form->getLabel('menutype');
?>
						<div class="controls">
							<?php 
echo $data->form->getInput('menutype');
?>
						</div>
					</div>
Example #2
0
 /**
  * Tests the addSlide method.
  *
  * @return  void
  *
  * @since   3.6.0
  */
 public function testaddSlide()
 {
     // Must start an accordion first
     JHtmlBootstrap::startAccordion();
     // Initialise the addSlide script
     $html = JHtmlBootstrap::addSlide('myAccordian', 'myText', 'mySlide');
     // 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');
     $this->assertEquals($document->_script['text/javascript'], 'jQuery(function($){' . "\n\t" . '$(\'#myAccordian\').collapse({"parent": false,"toggle": false})' . "\n" . '});', 'Verify that the addSlide script is initialised');
     // Check the modal's html structure
     $matcher = array('tag' => 'div', 'attributes' => array('class' => 'accordion-group'), 'child' => array('tag' => 'div', 'attributes' => array('class' => 'accordion-heading')));
     $this->assertTag($matcher, $html, 'Verify that the html structure of the slide is correct');
 }
Example #3
0
<?php

/**
 * Part of joomla3303 project.
 *
 * @copyright  Copyright (C) 2011 - 2014 SMS Taiwan, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */
$fieldSets = $displayData['fieldsets'];
$keys = $displayData['keys'];
$id = $displayData['id'];
echo JHtmlBootstrap::startAccordion('menu-sliders-' . $id, array('active' => $id . '-' . $keys[0] . '-options'));
foreach ($fieldSets as $name => $fieldSet) {
    $label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MENUS_' . $name . '_FIELDSET_LABEL';
    echo JHtmlBootstrap::addSlide('menu-sliders-' . $id, JText::_($label), $id . '-' . $name . '-options');
    if (isset($fieldSet->description) && trim($fieldSet->description)) {
        echo '<p class="tip">' . $this->escape(JText::_($fieldSet->description)) . '</p>';
    }
    ?>
	<div class="clr"></div>
	<fieldset class="panelform">

		<?php 
    foreach ($displayData['formParams']->{$id}->getFieldset($name) as $field) {
        ?>
			<div class="control-group">
				<span class="control-label">
					<?php 
        echo $field->label;
        ?>
				</span>