Menu designe problem


Author Message
deta

Posted: 7/1/2017
Quote message 

Hello, I have the menu at the top of position-1 would like in the same design on Positon-50 another menu below. As far as no problem, the position-1 I have found is defined in the file html-mod_menu the default.php.
What do I need to change in the file, the menu on position-50 exactly as we look at position-1? I hope you understand what I mean.

Mfg Deta


<?php
defined('_JEXEC') or die;

require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'functions.php';

// Note: it is important to remove spaces between elements.

$tag = ($params->get('tag_id') != NULL) ? ' id="' . $params->get('tag_id') . '"' : '';
if (isset($attribs['name']) && $attribs['name'] == 'position-1') {
$menutype = 'horizontal';


$start = $params->get('startLevel');


// check if it is necessary to render subitems:
$subitems = $GLOBALS['artx_settings']['menu']['show_submenus'] && 1 == $params->get('showAllChildren');
// true - skip the current node, false - render the current node.
$skip = false;

echo '<ul class="art-hmenu' . $class_sfx . '"' . $tag . '>';
foreach ($list as $i => & $item) {
if ($skip) {
if ($item->shallower) {
if (($item->level - $item->level_diff) <= $limit) {
echo '</li>' . str_repeat('</ul></li>', $limit - $item->level + $item->level_diff);
$skip = false;
}
}
continue;
}

$class = 'item-' . $item->id;
$class .= $item->id == $active_id ? ' current' : '';
$class .= ('alias' == $item->type
&& in_array($item->params->get('aliasoptions'), $path)
|| in_array($item->id, $path)) ? ' active' : '';
$class .= $item->deeper ? ' deeper' : '';
$class .= $item->parent ? ' parent' : '';

echo '<li class="' . $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;
}
if ($item->deeper) {
if (!$subitems) {
$limit = $item->level;
$skip = true;
continue;
}
echo '<ul>';
}
elseif ($item->shallower)
echo '</li>' . str_repeat('</ul></li>', $item->level_diff);
else
echo '</li>';
}
echo '</ul>';
} else if (0 === strpos($params->get('moduleclass_sfx'), 'art-vmenu') || false !== strpos($params->get('moduleclass_sfx'), ' art-vmenu')) {
$menutype = 'vertical';

$start = $params->get('startLevel');

// check if it is necessary to render subitems:
$subitems = $GLOBALS['artx_settings']['vmenu']['show_submenus'] && 1 == $params->get('showAllChildren');
// true - skip the current node, false - render the current node.
$skip = false;
// limit of rendering - skip items when a level is exceeding the limit.
$limit = $start;

echo '<ul class="art-vmenu"' . $tag . '>';
foreach ($list as $i => & $item) {
if ($skip) {
if ($item->shallower) {
if (($item->level - $item->level_diff) <= $limit) {
echo '</li>' . str_repeat('</ul></li>', $limit - $item->level + $item->level_diff);
$skip = false;
}
}
continue;
}

$class = 'item-' . $item->id;
$class .= $item->id == $active_id ? ' current' : '';
$class .= ('alias' == $item->type
&& in_array($item->params->get('aliasoptions'), $path)
|| in_array($item->id, $path)) ? ' active' : '';
$class .= $item->deeper ? ' deeper' : '';
$class .= $item->parent ? ' parent' : '';

echo '<li class="' . $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;
}
if ($item->deeper) {
if (!$subitems) {
$limit = $item->level;
$skip = true;
continue;
}
echo '<ul' . ($subitems && (in_array($item->id, $path) || 'alias' == $item->type
&& in_array($item->params->get('aliasoptions'), $path)) ? ' class="active"' : '') . '>';
}
elseif ($item->shallower)
echo '</li>' . str_repeat('</ul></li>', $item->level_diff);
else
echo '</li>';
}
echo '</ul>';
} else {
$menutype = 'default';
echo '<ul class="menu' . $params->get('class_sfx') . '"' . $tag . '>';
foreach ($list as $i => &$item) {

$class = 'item-' . $item->id;
$class .= $item->id == $active_id ? ' current' : '';
$class .= ('alias' == $item->type
&& in_array($item->params->get('aliasoptions'), $path)
|| in_array($item->id, $path)) ? ' active' : '';
$class .= $item->deeper ? ' deeper' : '';
$class .= $item->parent ? ' parent' : '';

echo '<li class="' . $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;
}

if ($item->deeper)
echo '<ul>';
elseif ($item->shallower)
echo '</li>' . str_repeat('</ul></li>', $item->level_diff);
else
echo '</li>';
}
echo '</ul>';
}



 
friscowebsoft

Posted: 9/20/2017
Quote message 

Hi

Well, you should ask from an expert for this query. They will guide you best.

____________
<a href="www.friscowebsoft.com/seo-san-jose-services/">SEO San Jose</a>
<a href="http://www.friscowebsoft.com">Web Design San Jose</a>
<a href="http://www.friscowebsoft.com/web-design-company/
">Website Design Bay Area</a>


:-D :-) :-)