- md5
- 303d72cc2611e63887be824fcb0fd477
- sha1
- 42e0e65a4794aa49b5e00266563f7cc5ab65d9ef
- sha256
- 2be68a15799dad3e480c8c301a9db48c61088e3d8bd271de4fba43a8c5f66ebe
<?php
/**
* @package Joomla.Site
* @subpackage mod_search
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\Module\Search\Site\Helper\SearchHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;
$app = Factory::getApplication();
if ($params->get('opensearch', 1))
{
$ostitle = $params->get('opensearch_title', Text::_('MOD_SEARCH_SEARCHBUTTON_TEXT') . ' ' . $app->get('sitename'));
Factory::getDocument()->addHeadLink(
Uri::getInstance()->toString(array('scheme', 'host', 'port')) . Route::_('&option=com_search&format=opensearch'), 'search', 'rel',
[
'title' => htmlspecialchars($ostitle, ENT_COMPAT, 'UTF-8'),
'type' => 'application/opensearchdescription+xml'
]
);
}
$upper_limit = Factory::getLanguage()->getUpperLimitSearchWord();
$button = $params->get('button', 0);
$imagebutton = $params->get('imagebutton', 0);
$button_text = htmlspecialchars($params->get('button_text', Text::_('MOD_SEARCH_SEARCHBUTTON_TEXT')), ENT_COMPAT, 'UTF-8');
$maxlength = $upper_limit;
$text = htmlspecialchars($params->get('text', Text::_('MOD_SEARCH_SEARCHBOX_TEXT')), ENT_COMPAT, 'UTF-8');
$label = htmlspecialchars($params->get('label', Text::_('MOD_SEARCH_LABEL_TEXT')), ENT_COMPAT, 'UTF-8');
$set_Itemid = (int) $params->get('set_itemid', 0);
if ($imagebutton)
{
$img = SearchHelper::getSearchImage($button_text);
}
$mitemid = $set_Itemid > 0 ? $set_Itemid : $app->input->getInt('Itemid');
require ModuleHelper::getLayoutPath('mod_search', $params->get('layout', 'default'));
No other release has this exact content. See every version of this file.