Login   Register  
PHP Classes
elePHPant
Icontem

File: languages.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of DAKEDO, Online Shopping Mall  >  Blogger Integration  >  languages.php  >  Download  
File: languages.php
Role: Application script
Content type: text/plain
Description: osCommerce language box
Class: Blogger Integration
Import a blog published in Blogger.com into a site
Author: By
Last change: - file priority changed
- accessible without login
Date: 7 years ago
Size: 1,549 bytes
 

Contents

Class file image Download
<?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:    contact@dakedo.com
  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_contentsfalsefalse);

  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 //-->