Zen Follower
- Join Date:
- Feb 2009
- Posts:
- 121
- Plugin Contributions:
- 0
Currency flags instead of dropdown in sidebox?
Hi,
I'm looking to get flag images in my currency selection sidebox instead of the dropdown.
I've done a search and one of the threads mentioned manipulating the code. I've opened the tpl_languages and tpl_currencies folders but am not sure what to change?
Here's the code in both.
tpl_languages
<?php
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$lng_cnt = 0;
while (list($key, $value) = each($lng->catalog_languages)) {
$content .= '<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> ';
$lng_cnt ++;
if ($lng_cnt >= MAX_LANGUAGE_FLAGS_COLUMNS) {
$lng_cnt = 0;
$content .= '<br />';
}
}
$content .= '</div>';
?>
tpl_currencies
<?php
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_draw_form('currencies_form', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get');
$content .= zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id();
$content .= '</form>';
$content .= '</div>';
?>
Any idea what I need to change?
Many thanks,
gary :smile: