Jump to content

اضافه کردن تگ و استایل به اولین نوود از کتگوری های اضافه شده به تاپ منو


Recommended Posts

کسی میدونه چطور تغییرات رو فقط به اولین نود لیست کتگوری ها بدیم

 

top menu Module / blocktopmenu.php

 

line:645

 

// filter the categories that the user is allowed to see and browse

if (!empty($is_intersected))

{

if(count($children)){

$this->_menu .= '<dd id="4" '.$selected.'>';

$this->_menu .= '<a href="'.$category_link.'">'.$category->name.'</a>';}

 

else{$this->_menu .= '<li class="medb" id="9" '.$selected.'>';

$this->_menu .= '<a class="norm five area-christmas" href="'.$category_link.'">'.$category->name.'</a>';}

 

if (count($children))

{

if($node.children){

$this->_menu .= '<li id="10">';

foreach ($children as $child)

$this->getCategory((int)$child['id_category'], (int)$id_lang, (int)$child['id_shop']);

$this->_menu .= '</li>';}

else if($show_child == 'true'){$this->_menu .= '<dl>';

foreach ($children as $child)

$this->getCategory((int)$child['id_category'], (int)$id_lang, (int)$child['id_shop']);

$this->_menu .= '</dl>';}

}

if($node.children){$this->_menu .= '</dd>';}

 

else{$this->_menu .= '</li>';}

 

}

line:684

if (count($categories) || count($pages))

{

$this->_menu .= '<dl class="1">';

 

foreach ($categories as $category)

{

$this->_menu .= '<dd id="1" >';

$this->_menu .= '<a id="1" href="#">'.$category['name'].'</a>';

$this->getCMSMenuItems($category['id_cms_category'], (int)$depth + 1);

$this->_menu .= '</dd>';

}

 

foreach ($pages as $page)

{

$cms = new CMS($page['id_cms'], (int)$id_lang);

$links = $cms->getLinks((int)$id_lang, array((int)$cms->id));

 

$selected = ($this->page_name == 'cms' && ((int)Tools::getValue('id_cms') == $page['id_cms'])) ? ' class="sfHoverForce"' : '';

$this->_menu .= '<dd id="2" '.$selected.'>';

$this->_menu .= '<a id="2" href="'.$links[0]['link'].'">'.$cms->meta_title.'</a>';

$this->_menu .= '</dd>';

}

 

$this->_menu .= '</ul>';

};

line:

Edited by nimaesalehi (see edit history)
Link to comment
Share on other sites

if (!empty($is_intersected))

{

if (false){

$this->_menu .= '<dd id="3" '.$selected.'>';

$this->_menu .= '<a href="'.$category_link.'">'.$category->name.'</a>';

}

else{

$this->_menu .= '<li class="medb" id="3" '.$selected.'>';

$this->_menu .= '<a class="norm five area-christmas" href="'.$category_link.'">'.$category->name.'</a>';

}

 

if (count($children))

{

 

$this->_menu .= '<dl>';

 

foreach ($children as $child)

$this->getCategory((int)$child['id_category'], (int)$id_lang, (int)$child['id_shop']);

 

$this->_menu .= '</dl>';

 

}

if(false){

$this->_menu .= '</dd>';

}

else{

$this->_menu .= '</li>';

}

}

Edited by nimaesalehi (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...