本文整理汇总了PHP中JHtmlBootstrap::addSlide方法的典型用法代码示例。如果您正苦于以下问题:PHP JHtmlBootstrap::addSlide方法的具体用法?PHP JHtmlBootstrap::addSlide怎么用?PHP JHtmlBootstrap::addSlide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JHtmlBootstrap
的用法示例。
在下文中一共展示了JHtmlBootstrap::addSlide方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<!-- 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>
<div class="control-group">
<?php
示例2: testaddSlide
/**
* 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');
}
示例3: array
<?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>