Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Language selection without box frame


bobbzh

Recommended Posts

Posted

I would like to insert the languages selection in the top of culumn_left but I don't know where to modify code for not having the box design and title header, I just want country flags.

 

I tried to copy/paste the languages.php in the column_left but I don't know what to delete/change, and maybe it's not possible like that:

 

Here is my culumn_left.php with the languages.php include, I just want to take off the box frame and header:

 

<?php
/*
 $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);
 while (list($key, $value) = each($lng->catalog_languages)) {
$languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
 }

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'center',
						   'text' => $languages_string);

 new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- languages_eof //-->


<?php

 if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
 } else {
include(DIR_WS_BOXES . 'categories.php');
 }

 if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_manufacturers_box();
 } else {
include(DIR_WS_BOXES . 'manufacturers.php');
 }

 require(DIR_WS_BOXES . 'whats_new.php');
 require(DIR_WS_BOXES . 'search.php');
 require(DIR_WS_BOXES . 'information.php');
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...