Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '4.0-dev' into 390-merge14
- Loading branch information
Showing
9 changed files
with
100 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
administrator/components/com_languages/layouts/joomla/searchtools/default.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage Layout | ||
* | ||
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('JPATH_BASE') or die; | ||
|
||
use Joomla\CMS\Factory; | ||
use Joomla\CMS\HTML\HTMLHelper; | ||
use Joomla\CMS\Layout\LayoutHelper; | ||
|
||
/** @var array $displayData */ | ||
$data = $displayData; | ||
|
||
// Receive overridable options | ||
$data['options'] = !empty($data['options']) ? $data['options'] : array(); | ||
|
||
if ($data['view'] instanceof \Joomla\Component\Languages\Administrator\View\Overrides\HtmlView) | ||
{ | ||
// Client selector doesn't have to activate the filter bar. | ||
unset($data['view']->activeFilters['language_client']); | ||
} | ||
|
||
// Set some basic options | ||
$customOptions = array( | ||
'filtersHidden' => $data['options']['filtersHidden'] ?? empty($data['view']->activeFilters), | ||
'defaultLimit' => $data['options']['defaultLimit'] ?? Factory::getApplication()->get('list_limit', 20), | ||
'searchFieldSelector' => '#filter_search', | ||
'orderFieldSelector' => '#list_fullordering', | ||
); | ||
|
||
$data['options'] = array_merge($customOptions, $data['options']); | ||
|
||
$formSelector = !empty($data['options']['formSelector']) ? $data['options']['formSelector'] : '#adminForm'; | ||
|
||
// Load search tools | ||
HTMLHelper::_('searchtools.form', $formSelector, $data['options']); | ||
|
||
$filtersClass = isset($data['view']->activeFilters) && $data['view']->activeFilters ? ' js-stools-container-filters-visible' : ''; | ||
?> | ||
<div class="js-stools" role="search"> | ||
<?php if ($data['view'] instanceof \Joomla\Component\Languages\Administrator\View\Overrides\HtmlView) : ?> | ||
<?php $langClient = $data['view']->filterForm->getField('language_client'); ?> | ||
<div class="js-stools-container-selector"> | ||
<div class="js-stools-field-selector js-stools-langClient"> | ||
<?php echo $langClient->input; ?> | ||
</div> | ||
</div> | ||
<?php endif; ?> | ||
<div class="js-stools-container-bar"> | ||
<?php echo LayoutHelper::render('joomla.searchtools.default.bar', $data); ?> | ||
</div> | ||
<!-- Filters div --> | ||
<div class="js-stools-container-filters clearfix<?php echo $filtersClass; ?>"> | ||
<?php echo LayoutHelper::render('joomla.searchtools.default.list', $data); ?> | ||
<?php echo LayoutHelper::render('joomla.searchtools.default.filters', $data); ?> | ||
</div> | ||
</div> |
24 changes: 0 additions & 24 deletions
24
administrator/components/com_languages/layouts/joomla/searchtools/default/bar.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters