Forums / Templates, Stylesheets, Page Layout / how to move the languages icons from sidebox to beside logo?

how to move the languages icons from sidebox to beside logo?

Views: 705

Results 1 to 3 of 3
17 Jul 2012, 11:07 AM
#1
win8win avatar

win8win

Zen Follower

Join Date:
Apr 2012
Location:
beijing
Posts:
258
Plugin Contributions:
1

how to move the languages icons from sidebox to beside logo?

how to move the languages icons from sidebox to beside logo?:lookaroun

focus on the open source for online shoping website.
my site: best shop 24h.com

17 Jul 2012, 11:55 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: how to move the languages icons from sidebox to beside logo?

If you search the Plugins for languages header you'll find several free templates which do that. You could take a look at the tpl_header.php file (and possibly others) to see how the templates' authors did it.

18 Jul 2012, 1:22 AM
#3
win8win avatar

win8win

Zen Follower

Join Date:
Apr 2012
Location:
beijing
Posts:
258
Plugin Contributions:
1

Re: how to move the languages icons from sidebox to beside logo?

thanks,figured out,

<!-- ========== LANGUAGES ========== -->

<?php
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
$lng = new language;
}

reset($lng->catalog_languages);

while (list($key, $value) = each($lng->catalog_languages)) {
echo '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES.$value['directory'].'/images/'.$value['image'], $value['name'], '', '', '') . '</a>&nbsp';
}
?>
<!-- =============================== -->

focus on the open source for online shoping website.
my site: best shop 24h.com