Jump to content
nimaesalehi

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

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)

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

سلام

سوالت رو لطفا بیشتر توضیح بده

چه تغییراتی میخوای بدی؟ یه مثال بزن واسه کاری که میخوای انجام بدی

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More