Jump to content
  • 0

Miniatury podkategorii w Topmenu PS 1.6


properart

Question

6 answers to this question

Recommended Posts

  • 0

Udało się, dla forumowiczów wrzucam rozwiązanie. W funkcji protected function generateCategoriesMenu zmienamy kod:

 $html .= '<li'.(($this->page_name == 'category'
                && (int)Tools::getValue('id_category') == (int)$category['id_category']) ? ' class="sfHoverForce"' : '').'>';
            $html .= '<a href="'.$link.'" title="'.$category['name'].'">'.$category['name'].'</a>';

Na:

$html .= '<li'.(($this->page_name == 'category'
                && (int)Tools::getValue('id_category') == (int)$category['id_category']) ? ' class="sfHoverForce"' : '').'>';
				
				if((int)$category['level_depth'] > 2){
					$html .= '<a href="'.$link.'" title="'.$category['name'].'">'.$category['name'].'<img src="https://ADRESSKLEPU.pl/img/tmp/category_'.$category['id_category'].'-thumb.jpg" class="miniaturka"></a>';
				}
				else{
					$html .= '<a href="'.$link.'" title="'.$category['name'].'">'.$category['name'].'</a>';
				}
  • Like 1
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...