CoreFiles by mySites.guru
default.php38 lines, 1,017 bytes, from Joomla_2.5.17-Stable-Full_Package.zip
Raw History Compare with 2.5.16
md5
33c8cd41f17089734b6fa926f67ddf82
sha1
046d35819febba1892643467caf2b8581c61643e
sha256
a4aad915d82a1dae8c137d81f2e373eb839ee6a111b305b1293c6e3d99139a8b
<?php
/**
 * @package		Joomla.Administrator
 * @subpackage	mod_submenu
 * @copyright	Copyright (C) 2005 - 2013 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 8 releases, Joomla 2.5.9 to 2.5.17. See them all, or every version of this file.