CoreFiles by mySites.guru
default.php38 lines, 1,017 bytes, from Joomla_2.5.21-Stable-Full_Package.zip
Raw History Compare with 2.5.20
md5
d4f9df4429d3305ac5159b3a7f060e99
sha1
33f207f363c86149502ed58a9c293d55d3c929b3
sha256
398b558c36e7e6f5437e2910243002ed16803f346e4fc2c16c608937fa8a3821
<?php
/**
 * @package		Joomla.Administrator
 * @subpackage	mod_submenu
 * @copyright	Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;

$hide = JRequest::getInt('hidemainmenu');
?>
<ul id="submenu">
	<?php foreach ($list as $item) : ?>
	<li>
	<?php
	if ($hide) :
		if (isset ($item[2]) && $item[2] == 1) :
			?><span class="nolink active"><?php echo $item[0]; ?></span><?php
		else :
			?><span class="nolink"><?php echo $item[0]; ?></span><?php
		endif;
	else :
		if(strlen($item[1])) :
			if (isset ($item[2]) && $item[2] == 1) :
				?><a class="active" href="<?php echo JFilterOutput::ampReplace($item[1]); ?>"><?php echo $item[0]; ?></a><?php
			else :
				?><a href="<?php echo JFilterOutput::ampReplace($item[1]); ?>"><?php echo $item[0]; ?></a><?php
			endif;
		else :
			?><?php echo $item[0]; ?><?php
		endif;
	endif;
	?>
	</li>
	<?php endforeach; ?>
</ul>

The same content is in 11 releases, Joomla 2.5.18 to 2.5.28. See them all, or every version of this file.