added responsive rich menu and small fix in blockbanner
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
<div class="container">
|
||||
<a href="{$banner_link}" title="{$banner_desc}">
|
||||
{if isset($banner_img)}
|
||||
<img src="{$module_dir}{$banner_img}" alt=""/>
|
||||
<img class="img-responsive" src="{$module_dir}{$banner_img}" alt=""/>
|
||||
{else}
|
||||
{$banner_desc}
|
||||
{/if}
|
||||
|
||||
@@ -490,13 +490,13 @@ class Blocktopmenu extends Module
|
||||
if ($category->level_depth == 2)
|
||||
{
|
||||
$files = scandir(_PS_CAT_IMG_DIR_);
|
||||
$this->_menu .= '<div id="category-thumbnail">';
|
||||
$this->_menu .= '<li id="category-thumbnail">';
|
||||
|
||||
foreach ($files as $file)
|
||||
if (preg_match('/'.$category->id.'-([0-9])?_thumb.jpg/i', $file) === 1)
|
||||
$this->_menu .= '<div>'.ImageManager::thumbnail(_PS_CAT_IMG_DIR_.$file, 'category_'.$file, 100, 'jpg', true, true).'</div>';
|
||||
|
||||
$this->_menu .= '</div>';
|
||||
$this->_menu .= '</li>';
|
||||
}
|
||||
|
||||
$this->_menu .= '</ul>';
|
||||
|
||||
Reference in New Issue
Block a user