<?php if (count($languages) > 1) { ?>
<script type="text/javascript">
$(document).ready(function(){
l_w = $('#l_options').width();
$('#l_switcher').css('width',(l_w + 10)+'px');
$('#l_switcher').hover(function(){
$('#l_options').slideDown(200);
},function(){
$('#l_options').slideUp(200);
});
});
</script>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
<div id="language">
<div id="l_switcher">
<?php foreach ($languages as $language) { ?>
<?php if ($language['code'] == $language_code) { ?>
<span class="l_selected"><img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" title="<?php echo $language['name']; ?>" /></span>
<?php } ?>
<?php } ?>
<div id="l_options" style="display: none;">
<?php foreach ($languages as $language) { ?>
<?php if ($language['code'] != $this->session->data['language']) { ?>
<a onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>').submit(); $(this).parent().parent().parent().parent().submit();"><img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" title="<?php echo $language['name']; ?>" /></a><br />
<?php } ?>
<?php } ?>
</div>
</div>
<input type="hidden" name="language_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</div>
</form>
<?php } ?>
<?php if (count($currencies) > 1) { ?>
<script type="text/javascript">
$(document).ready(function(){
co_w = $('#c_options').width();
$('#c_switcher').css('width',(co_w + 10)+'px');
$('#c_switcher').hover(function(){
$('#c_options').slideDown(200);
},function(){
$('#c_options').slideUp(200);
});
});
</script>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
<div id="currency">
<div id="c_switcher">
<?php foreach ($currencies as $currency) { ?>
<?php if ($currency['code'] == $currency_code) { ?>
<span class="c_selected"><img src="image/flags/<?php echo $currency['title']; ?>.png" alt="<?php echo $currency['title']; ?>" title="<?php echo $currency['title']; ?>" /></span>
<?php } ?>
<?php } ?>
<div id="c_options" style="display: none;">
<?php foreach ($currencies as $currency) { ?>
<?php if ($currency['code'] != $this->session->data['currency']) { ?>
<a onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>').submit(); $(this).parent().parent().parent().parent().submit();"><img src="image/flags/<?php echo $currency['title']; ?>.png" alt="<?php echo $currency['title']; ?>" title="<?php echo $currency['title']; ?>" /></a>
<?php } ?>
<?php } ?>
</div>
</div>
<input type="hidden" name="currency_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</div>
</form>
<?php } ?>
Powrót do Opencart Templates Pomoc przy szablonach
Użytkownicy przeglądający ten dział: Brak zidentyfikowanych użytkowników i 0 gości