CoreFiles by mySites.guru
default.php42 lines, 1,352 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
b8737eea721418e7389334eb267784d1
sha1
7482253584aa4698563b0ed7c96fcde5f38b09f8
sha256
9f5e2a16405ddf8b20760f52fa1810288a4ea8b3dd2660b6bfbbc44d9200f275
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_finder
 *
 * @copyright   Copyright (C) 2005 - 2020 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\Language\Text;

Text::script('MOD_FINDER_SEARCH_VALUE', true);

$this->document->getWebAssetManager()
	->registerAndUseStyle('com_finder', 'com_finder/finder.css')
	->registerAndUseScript('com_finder', 'com_finder/finder.js', [], ['defer' => true], ['core']);

?>
<div class="com-finder finder">
	<?php if ($this->params->get('show_page_heading')) : ?>
		<h1>
			<?php if ($this->escape($this->params->get('page_heading'))) : ?>
				<?php echo $this->escape($this->params->get('page_heading')); ?>
			<?php else : ?>
				<?php echo $this->escape($this->params->get('page_title')); ?>
			<?php endif; ?>
		</h1>
	<?php endif; ?>
	<?php if ($this->params->get('show_search_form', 1)) : ?>
		<div id="search-form" class="com-finder__form">
			<?php echo $this->loadTemplate('form'); ?>
		</div>
	<?php endif; ?>
	<?php // Load the search results layout if we are performing a search. ?>
	<?php if ($this->query->search === true) : ?>
		<div id="search-results" class="com-finder__results">
			<?php echo $this->loadTemplate('results'); ?>
		</div>
	<?php endif; ?>
</div>

No other release has this exact content. See every version of this file.