Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Posts
    24
    Plugin Contributions
    0

    Default Replacing hardcode with a define statement - Acadame Template

    Hi!

    I have a store that is born to be multilingual; english and norwegian.

    But I do not know how to implement a define statement into this.

    PHP Code:
    <?php
    /**
     * Acadame Top Box Template
     *
     * @package templateSystem
     * @copyright Copyright 2007 iChoze Internet Solutions http://ichoze.com
     * @copyright Portions Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_languages.php 2982 2006-02-07 07:56:41Z birdbrain $
     */
      
    $content "";
      
    $content .= '<div id="lang_header" class="topBox centeredContent">Languages:<br />';
      
    $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>&nbsp;&nbsp;';
        
    $lng_cnt ++;
      }
    $content .= '</div>';
    ?>
    I need to replace "Languages:<br/>" with a define statement, like HEADER_LANGUAGES or something like that.

    I've tried using echo and php, but it doesn't seem I get the hang of it.

    Do you know how?


    Svein Daniel
    Last edited by Kim; 16 Dec 2008 at 02:50 AM.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,515
    Plugin Contributions
    126

    Default Re: Replacing hardcode with a define statement

    Salut, Svein. Change

    $content .= '<div id="lang_header" class="topBox centeredContent">Languages:<br />';

    to

    define('MY_LANG', 'Some string');
    $content .= '<div id="lang_header" class="topBox centeredContent">' . MY_LANG . '<br />';
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Dec 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: Replacing hardcode with a define statement - Acadame Template

    Thank yoU!

 

 

Similar Threads

  1. theme277 from template monster and replacing with new template
    By DarkAngel in forum General Questions
    Replies: 0
    Last Post: 8 Nov 2012, 07:17 AM
  2. Installing Acadame Template
    By jbreezy in forum Addon Templates
    Replies: 2
    Last Post: 19 Nov 2008, 11:29 AM
  3. Acadame Template Help
    By trisha1581 in forum Addon Templates
    Replies: 0
    Last Post: 13 May 2008, 08:44 PM
  4. Plz help me! Acadame Template
    By wardah15 in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 12 Feb 2008, 10:26 AM
  5. This is the main define statement for the page for english when no template defined f
    By ginginca in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Nov 2006, 08:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg