You've already forked joomla_test
first commit
This commit is contained in:
100
modules/mod_menu/tmpl/default.php
Normal file
100
modules/mod_menu/tmpl/default.php
Normal file
@ -0,0 +1,100 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
?>
|
||||
<?php // The menu class is deprecated. Use nav instead. ?>
|
||||
<ul class="nav menu<?php echo $class_sfx;?>"<?php
|
||||
$tag = '';
|
||||
if ($params->get('tag_id') != null)
|
||||
{
|
||||
$tag = $params->get('tag_id').'';
|
||||
echo ' id="'.$tag.'"';
|
||||
}
|
||||
?>>
|
||||
<?php
|
||||
foreach ($list as $i => &$item) :
|
||||
$class = 'item-'.$item->id;
|
||||
if ($item->id == $active_id)
|
||||
{
|
||||
$class .= ' current';
|
||||
}
|
||||
|
||||
if (in_array($item->id, $path))
|
||||
{
|
||||
$class .= ' active';
|
||||
}
|
||||
elseif ($item->type == 'alias')
|
||||
{
|
||||
$aliasToId = $item->params->get('aliasoptions');
|
||||
if (count($path) > 0 && $aliasToId == $path[count($path) - 1])
|
||||
{
|
||||
$class .= ' active';
|
||||
}
|
||||
elseif (in_array($aliasToId, $path))
|
||||
{
|
||||
$class .= ' alias-parent-active';
|
||||
}
|
||||
}
|
||||
|
||||
if ($item->type == 'separator')
|
||||
{
|
||||
$class .= ' divider';
|
||||
}
|
||||
|
||||
if ($item->deeper)
|
||||
{
|
||||
$class .= ' deeper';
|
||||
}
|
||||
|
||||
if ($item->parent)
|
||||
{
|
||||
$class .= ' parent';
|
||||
}
|
||||
|
||||
if (!empty($class))
|
||||
{
|
||||
$class = ' class="'.trim($class) .'"';
|
||||
}
|
||||
|
||||
echo '<li'.$class.'>';
|
||||
|
||||
// Render the menu item.
|
||||
switch ($item->type) :
|
||||
case 'separator':
|
||||
case 'url':
|
||||
case 'component':
|
||||
case 'heading':
|
||||
require JModuleHelper::getLayoutPath('mod_menu', 'default_'.$item->type);
|
||||
break;
|
||||
|
||||
default:
|
||||
require JModuleHelper::getLayoutPath('mod_menu', 'default_url');
|
||||
break;
|
||||
endswitch;
|
||||
|
||||
// The next item is deeper.
|
||||
if ($item->deeper)
|
||||
{
|
||||
echo '<ul class="nav-child unstyled small">';
|
||||
}
|
||||
// The next item is shallower.
|
||||
elseif ($item->shallower)
|
||||
{
|
||||
echo '</li>';
|
||||
echo str_repeat('</ul></li>', $item->level_diff);
|
||||
}
|
||||
// The next item is on the same level.
|
||||
else {
|
||||
echo '</li>';
|
||||
}
|
||||
endforeach;
|
||||
?></ul>
|
38
modules/mod_menu/tmpl/default_component.php
Normal file
38
modules/mod_menu/tmpl/default_component.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
$class = $item->anchor_css ? 'class="'.$item->anchor_css.'" ' : '';
|
||||
$title = $item->anchor_title ? 'title="'.$item->anchor_title.'" ' : '';
|
||||
if ($item->menu_image)
|
||||
{
|
||||
$item->params->get('menu_text', 1) ?
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" /><span class="image-title">'.$item->title.'</span> ' :
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" />';
|
||||
}
|
||||
else { $linktype = $item->title;
|
||||
}
|
||||
|
||||
switch ($item->browserNav) :
|
||||
default:
|
||||
case 0:
|
||||
?><a <?php echo $class; ?>href="<?php echo $item->flink; ?>" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 1:
|
||||
// _blank
|
||||
?><a <?php echo $class; ?>href="<?php echo $item->flink; ?>" target="_blank" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 2:
|
||||
// window.open
|
||||
?><a <?php echo $class; ?>href="<?php echo $item->flink; ?>" onclick="window.open(this.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');return false;" <?php echo $title; ?>><?php echo $linktype; ?></a>
|
||||
<?php
|
||||
break;
|
||||
endswitch;
|
13
modules/mod_menu/tmpl/default_heading.php
Normal file
13
modules/mod_menu/tmpl/default_heading.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<span class="nav-header"><?php echo $item->title; ?></span>
|
23
modules/mod_menu/tmpl/default_separator.php
Normal file
23
modules/mod_menu/tmpl/default_separator.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
$title = $item->anchor_title ? ' title="'.$item->anchor_title.'" ' : '';
|
||||
if ($item->menu_image)
|
||||
{
|
||||
$item->params->get('menu_text', 1) ?
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" /><span class="image-title">'.$item->title.'</span> ' :
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" />';
|
||||
}
|
||||
else { $linktype = $item->title;
|
||||
}
|
||||
|
||||
?><span class="separator"<?php echo $title; ?>><?php echo $linktype; ?></span>
|
40
modules/mod_menu/tmpl/default_url.php
Normal file
40
modules/mod_menu/tmpl/default_url.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
$class = $item->anchor_css ? 'class="'.$item->anchor_css.'" ' : '';
|
||||
$title = $item->anchor_title ? 'title="'.$item->anchor_title.'" ' : '';
|
||||
if ($item->menu_image)
|
||||
{
|
||||
$item->params->get('menu_text', 1) ?
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" /><span class="image-title">'.$item->title.'</span> ' :
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" />';
|
||||
}
|
||||
else { $linktype = $item->title;
|
||||
}
|
||||
$flink = $item->flink;
|
||||
$flink = JFilterOutput::ampReplace(htmlspecialchars($flink));
|
||||
|
||||
switch ($item->browserNav) :
|
||||
default:
|
||||
case 0:
|
||||
?><a <?php echo $class; ?>href="<?php echo $flink; ?>" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 1:
|
||||
// _blank
|
||||
?><a <?php echo $class; ?>href="<?php echo $flink; ?>" target="_blank" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 2:
|
||||
// window.open
|
||||
$options = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,'.$params->get('window_open');
|
||||
?><a <?php echo $class; ?>href="<?php echo $flink; ?>" onclick="window.open(this.href,'targetWindow','<?php echo $options;?>');return false;" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
endswitch;
|
1
modules/mod_menu/tmpl/index.html
Normal file
1
modules/mod_menu/tmpl/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
Reference in New Issue
Block a user