You've already forked joomla_test
first commit
This commit is contained in:
34
modules/mod_search/helper.php
Normal file
34
modules/mod_search/helper.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Helper for mod_search
|
||||
*
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_search
|
||||
* @since 1.5
|
||||
*/
|
||||
class ModSearchHelper
|
||||
{
|
||||
/**
|
||||
* Display the search button as an image.
|
||||
*
|
||||
* @param string $button_text The alt text for the button.
|
||||
*
|
||||
* @return string The HTML for the image.
|
||||
* @since 1.5
|
||||
*/
|
||||
public static function getSearchImage($button_text)
|
||||
{
|
||||
$img = JHtml::_('image', 'searchButton.gif', $button_text, null, true, true);
|
||||
return $img;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user