CoreFiles by mySites.guru
default.php40 lines, 1,384 bytes, from Joomla_4.0.0-alpha10-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha9
md5
bd1cf3f27d519a29ffa6c4d3f95671fe
sha1
0d3172e2cc110ff105bc1cc010133f3b790ae70c
sha256
13db73df69ad779d2acc2e08c0fc1623d23d31cc45ad9173d0898caa756800b9
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_modules
 *
 * @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('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;

$document = Factory::getDocument();
?>

<h2 class="mb-3"><?php echo Text::_('COM_MODULES_TYPE_CHOOSE'); ?></h2>
<ul id="new-modules-list" class="list-group">
<?php foreach ($this->items as &$item) : ?>
	<?php // Prepare variables for the link. ?>
	<?php $link = 'index.php?option=com_modules&task=module.add&client_id=' . $this->state->get('client_id', 0) . '&eid=' . $item->extension_id; ?>
	<?php $name = $this->escape($item->name); ?>
	<?php $desc = HTMLHelper::_('string.truncate', $this->escape(strip_tags($item->desc)), 200); ?>

	<?php if ($document->direction != 'rtl') : ?>
	<li class="list-group-item">
		<a href="<?php echo Route::_($link); ?>" class="mr-2"><strong><?php echo $name; ?></strong></a>
		<small><?php echo $desc; ?></small>
	</li>
	<?php else : ?>
	<li class="list-group-item">
		<small><?php echo $desc; ?></small>
		<a href="<?php echo Route::_($link); ?>" class="mr-2"><strong><?php echo $name; ?></strong></a>
	</li>
	<?php endif; ?>
<?php endforeach; ?>
</ul>

The same content is in 2 releases, Joomla 4.0.0-alpha9 to 4.0.0-alpha10. See them all, or every version of this file.