debreli
OpenCart-TR
modulu indirdikten sonra kurun aktif edin.aşağıdaki işlemleri yaparsanız daha uzun ve tertipli gözüküyor.
aç defauly/stylesheet/stylesheet.css aç en alta ekle
Kod:
.switcher2 {
float: right;
margin-top: 3px;
margin-left: 5px;
margin-right: 5px;
}
.switcher2 a {
text-decoration: none;
display: block;
}
.switcher2 .selected2{
background: #FFFFFF url('../image/switcher.png') repeat-x;
}
.switcher2 .selected2 a {
border: 1px solid #CCCCCC;
background: url('../image/arrow_down.png') 155px center no-repeat;
color: #666666;
padding: 2px 5px 2px 5px;
width: 155px;
}
.switcher2 .selected2 a:hover {
background: #F0F0F0 url('../image/arrow_down.png') 155px center no-repeat;
}
.switcher2 .option {
position: absolute;
z-index: 3;
border-left: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC;
border-bottom: 1px solid #CCCCCC;
background-color: #EEEEEE;
display: none;
width: 165px;
}
.switcher2 .option a {
color: #000;
padding: 3px 5px 3px 5px;
}
.switcher2 .option a:hover {
background: #FFC;
}
.switcher2 img {
position: relative;
top: 1px;
}
aç template/module/manufacturer.tpl içini sil aşağıdaki kodları yapıştır.
Kod:
<style>
<!--
#module_manufacturer .middle {
padding: 5px 1px 5px 1px;
}
.manufacturer {
float: none;
text-align: left;
}
-->
</style>
<div id="module_manufacturer" class="box">
<div class="top"><img src="catalog/view/theme/default/image/brands.png" alt="" /><?php echo $heading_title; ?></div>
<div class="middle" style="text-align: center;">
<div class="switcher2 manufacturer">
<?php foreach ($manufacturers as $manufacturer) { ?>
<?php if ($manufacturer['manufacturer_id'] == $manufacturer_id) { ?>
<div class="selected2"><a><img src="<?php echo $manufacturer['image']; ?>" alt="" width="25" height="12" /> <?php echo $manufacturer['name']; ?></a></div>
<?php } ?>
<?php } ?>
<?php if ($manufacturer_id == '0') {?>
<div class="selected2"><a><?php echo $text_select; ?></a></div>
<?php } ?>
<div class="option">
<?php foreach ($manufacturers as $manufacturer) { ?>
<a onclick="location = '<?php echo str_replace('&', '&', $manufacturer['href']); ?>'">
<img src="<?php echo $manufacturer['image']; ?>" alt="" width="25" height="12"/> <?php echo $manufacturer['name']; ?></a>
<?php } ?>
</div>
</div>
</div>
<div class="bottom"> </div>
</div>
<script type="text/javascript"><!--
$('.manufacturer').bind('click', function() {
$(this).find('.option').slideToggle('fast');
});
$('.manufacturer').bind('mouseleave', function() {
$(this).find('.option').slideUp('fast');
});
//--></script>