You've already forked joomla_test
first commit
This commit is contained in:
86
templates/as002036free/html/mod_menu/default.php
Normal file
86
templates/as002036free/html/mod_menu/default.php
Normal file
@ -0,0 +1,86 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 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. ?>
|
||||
<div class="mod-menu">
|
||||
<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->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':
|
||||
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>
|
||||
</div>
|
37
templates/as002036free/html/mod_menu/default_component.php
Normal file
37
templates/as002036free/html/mod_menu/default_component.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 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;
|
22
templates/as002036free/html/mod_menu/default_separator.php
Normal file
22
templates/as002036free/html/mod_menu/default_separator.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 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>
|
39
templates/as002036free/html/mod_menu/default_url.php
Normal file
39
templates/as002036free/html/mod_menu/default_url.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 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
templates/as002036free/html/mod_menu/index.html
Normal file
1
templates/as002036free/html/mod_menu/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
87
templates/as002036free/html/mod_menu/social.php
Normal file
87
templates/as002036free/html/mod_menu/social.php
Normal file
@ -0,0 +1,87 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 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. ?>
|
||||
|
||||
<div class="mod-menu__social">
|
||||
<ul class="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->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':
|
||||
require JModuleHelper::getLayoutPath('mod_menu', 'social_'.$item->type);
|
||||
break;
|
||||
|
||||
default:
|
||||
require JModuleHelper::getLayoutPath('mod_menu', 'social_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>
|
||||
</div>
|
37
templates/as002036free/html/mod_menu/social_component.php
Normal file
37
templates/as002036free/html/mod_menu/social_component.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 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;
|
22
templates/as002036free/html/mod_menu/social_separator.php
Normal file
22
templates/as002036free/html/mod_menu/social_separator.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 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>
|
39
templates/as002036free/html/mod_menu/social_url.php
Normal file
39
templates/as002036free/html/mod_menu/social_url.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 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;
|
Reference in New Issue
Block a user