Esempio n. 1
0
 /**
  * Tests the tooltip method.
  *
  * @return  void
  *
  * @since   3.6.0
  */
 public function testTooltip()
 {
     // Initialise the tooltip script
     JHtmlBootstrap::tooltip();
     // 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($){ $(".hasTooltip").tooltip({"html": true,"container": "body"}); });', 'Verify that the tooltip script is initialised');
 }
Esempio n. 2
0
<?php

/**
 * Part of Component {{extension.name.cap}} files.
 *
 * @copyright   Copyright (C) 2016 {ORGANIZATION}. All rights reserved.
 * @license     GNU General Public License version 2 or later.
 */
// No direct access
defined('_JEXEC') or die;
JHtmlBootstrap::tooltip();
JHtmlFormbehavior::chosen('select');
JHtmlBehavior::formvalidator();
/**
 * Prepare data for this template.
 *
 * @var $this      \Windwalker\View\Engine\PhpEngine
 * @var $container \Windwalker\DI\Container
 * @var $data      \Windwalker\Data\Data
 * @var $item      \stdClass
 */
$container = $this->getContainer();
$form = $data->form;
$item = $data->item;
// Setting tabset
$tabs = array('tab_basic');
?>
<!-- Validate Script -->
<script type="text/javascript">
	Joomla.submitbutton = function(task)
	{
Esempio n. 3
0
    if ($searchButton) {
        ?>
		<label for="filter_search" class="element-invisible">
			<?php 
        echo JText::_('JSEARCH_FILTER');
        ?>
		</label>
		<div class="btn-wrapper input-append">
			<?php 
        echo $filters['filter_search']->input;
        ?>
			<?php 
        if ($filters['filter_search']->description) {
            ?>
				<?php 
            JHtmlBootstrap::tooltip('#filter_search', array('title' => JText::_($filters['filter_search']->description)));
            ?>
			<?php 
        }
        ?>
			<button type="submit" class="btn hasTooltip" title="<?php 
        echo JHtml::tooltipText('JSEARCH_FILTER_SUBMIT');
        ?>
">
				<span class="icon-search"></span>
			</button>
		</div>
		<?php 
        if ($filterButton) {
            ?>
			<div class="btn-wrapper hidden-phone">