| 
<?php
/*
 BloggerIntegration v1.0 - languages.php v1.0 2007/03/01
 
 designer:    DAKEDO, Online Shopping Mall
 url:        http://www.dakedo.com
 download: http://www.dakedo.com/blogs/27/2007/02/blogger-integration.html
 email:    [email protected]
 Copyright (c) 2007 DAKEDO
 
 This file is largely derived from:
 $Id: languages.php,v 1.15 2003/06/09 22:10:48 hpdl Exp $
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com
 Copyright (c) 2003 osCommerce
 
 Released under the GNU General Public License
 */
 ?>
 
 <!-- languages //-->
 <tr>
 <td>
 <?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_LANGUAGES);
 
 new infoBoxHeading($info_box_contents, false, false);
 
 if (!isset($lng) || (isset($lng) && !is_object($lng))) {
 include(DIR_WS_CLASSES . 'language.php');
 $lng = new language;
 }
 
 $languages_string = '';
 reset($lng->catalog_languages);
 
 //BEGIN BloggerIntegration
 while (list($key, $value) = each($lng->catalog_languages)) {
 $languages_string .= ' <a href="' . HTTP_SERVER . DIR_WS_BLOG . $key . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
 }
 //END BloggerIntegration
 
 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'center',
 'text' => $languages_string);
 
 new infoBox($info_box_contents);
 ?>
 </td>
 </tr>
 <!-- languages_eof //-->
 
 |