Лучший Ответ Kess , 17 July 2014 - 18:16
Small update.
I looked at your website and saw that the original size of your category images are around 2500px wide so it takes a lot of time to load that page. Here is the updated code to replace the previous line. It will use cached thumbnails using "Subcategories" image width and height from application configuration (like 150x100px, for example). So, replace that previous line of code with these lines:
$opts = $category->getParams('site'); $image = $this->app->jbimage->get('category_teaser_image', $opts); $category_links[] = '<a href="'.$this->app->route->category($category).'"><img src="'.$image['src'].'" alt="'.$category->name.'" title="'.$category->name.'" /></a>';
Should be a lot better for your website. If the images are still large, check that you have some width or height set in the application params.
Перейти к сообщению