CoreFiles by mySites.guru
default.php87 lines, 3,588 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
c400422dde08339ce2037205e8fcea63
sha1
992901ca3080e7edead1e5110d9167865757b888
sha256
3d23e3e997d6f8b23cec214f2b08ce38de22a0877ff98c6a8454c585e4d8c699
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_submenu
 *
 * @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\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;

/** @var  \Joomla\CMS\Menu\MenuItem  $root */
?>
<?php foreach ($root->getChildren() as $child) : ?>
	<?php if ($child->hasChildren()) : ?>
		<div class="card">
			<h2 class="card-header">
				<?php if ($child->icon) : ?><span class="fa fa-<?php echo $child->icon; ?>" aria-hidden="true"></span><?php endif; ?>
				<?php echo Text::_($child->title); ?>
			</h2>
			<ul class="list-group list-group-flush">
				<?php foreach ($child->getChildren() as $item) : ?>
					<li class="list-group-item d-flex align-items-center">
						<?php $params = $item->getParams(); ?>
						<?php // Only if Menu-show = true
							if ($params->get('menu_show', 1)) : ?>
							<?php
							if (!empty($params->get('menu_image'))) :
								$image = htmlspecialchars($params->get('menu_image'), ENT_QUOTES, 'UTF-8');
								$class = htmlspecialchars($params->get('menu_image_css'), ENT_QUOTES, 'UTF-8');
								$alt = $params->get('menu_text') ? '' : htmlspecialchars($item->title, ENT_QUOTES, 'UTF-8');
							endif;
							?>
							<a class="flex-grow-1" href="<?php echo $item->link; ?>"<?php echo !empty($item->target) ? ' target="' . $item->target . '"' : ''; ?>>
								<?php if (!empty($params->get('menu_image'))) : ?>
									<?php echo HTMLHelper::_('image', $image, $alt, 'class="' . $class . '"'); ?>
								<?php endif; ?>
								<?php echo ($params->get('menu_text', 1)) ? Text::_($item->title) : ''; ?>
								<?php if ($params->get('menu-quicktask', false)) : ?>
									<span class="menu-quicktask">
										<?php
										$link = $params->get('menu-quicktask-link');
										$icon = $params->get('menu-quicktask-icon', 'plus');

										$title = $params->get('menu-quicktask-title');

										if (empty($params->get('menu-quicktask-title')))
										{
											$title = Text::_('MOD_MENU_QUICKTASK_NEW');
											$sronly = Text::_($item->title) . ' - ' . Text::_('MOD_MENU_QUICKTASK_NEW');
										}

										$permission = $params->get('menu-quicktask-permission');
										$scope = $item->scope !== 'default' ? $item->scope : null;
										?>
										<?php if (!$permission || $user->authorise($permission, $scope)) : ?>
											<a href="<?php echo $link; ?>">
												<span class="fa fa-<?php echo $icon; ?> fa-xs" title="<?php echo htmlentities($title); ?>" aria-hidden="true"></span>
												<span class="sr-only"><?php echo htmlentities($sronly); ?></span>
											</a>
										<?php endif; ?>
									</span>
								<?php endif; ?>
								<?php if ($item->ajaxbadge) : ?>
									<span class="menu-badge">
										<span class="fa fa-spin fa-spinner mt-1 system-counter" data-url="<?php echo $item->ajaxbadge; ?>"></span>
									</span>
								<?php endif; ?>
							</a>
							<?php if ($item->dashboard) : ?>
								<span class="menu-dashboard">
									<a href="<?php echo Route::_('index.php?option=com_cpanel&view=cpanel&dashboard=' . $item->dashboard); ?>">
										<span class="fa fa-th-large" title="<?php echo htmlentities(Text::_('MOD_MENU_DASHBOARD_LINK')); ?>"></span>
									</a>
								</span>
							<?php endif; ?>
						<?php endif; ?>
					</li>
				<?php endforeach; ?>
			</ul>
		</div>
	<?php endif; ?>
<?php endforeach; ?>

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