Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

If is other language is selected change header_top.jpg

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-09-2009, 08:50 AM
 
firstformedia firstformedia is offline
 

Advanced Member
  
Join Date: Dec 2006
Posts: 42
 

Default If is other language is selected change header_top.jpg

hi, i want o have a header_top.jpg in spanish and a header_top.jpg in english, so where do i have to go and what code i have to put to make this:

if other language is selected change header_top.jpg
__________________
4.2.2
Reply With Quote
  #2  
Old 08-09-2009, 09:12 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: If is other language is selected change header_top.jpg

Where you make the call for the header image (probably skin1/customer/head.tpl)
Code:
{if $store_language eq "EN"}show image for English {elseif $store_language eq "SP"}show image for Spanish {/if}
Not sure what the code for Spanish is so check it out and replace SP if necessary
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 08-13-2009, 06:51 AM
 
firstformedia firstformedia is offline
 

Advanced Member
  
Join Date: Dec 2006
Posts: 42
 

Default Re: If is other language is selected change header_top.jpg

what name do i have to give to the spanhish image??
because i cant put the same name for the two images right??
__________________
4.2.2
Reply With Quote
  #4  
Old 08-13-2009, 07:22 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: If is other language is selected change header_top.jpg

The name of the image file is totally up to you. Whatever you want to call it. You can do like header_top_EN.jpg and header_top_SP.jpg
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 08-16-2009, 05:20 PM
 
firstformedia firstformedia is offline
 

Advanced Member
  
Join Date: Dec 2006
Posts: 42
 

Default Re: If is other language is selected change header_top.jpg

i cant find where i call the header_top.jpg in head.tpl.

PHP Code:
{*
$Idhead.tpl,v 1.12 2008/11/21 07:49:55 max Exp $
vimset ts=2 sw=2 sts=2 et:
*}
<
div class="head_wrap">
<
div class="line1">
    <
div class="logo"><a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/neon_lights/xlogo.png" alt="" /></a></div>
  {if 
$speed_bar}
    <
div class="tabs">
      <
ul>
        {foreach 
from=$speed_bar item=sb}
          <
li><a href="{$sb.link|amp}">{$sb.title}</a></li>
        {/foreach}
      </
ul>
    </
div>
  {/if}
    <
div class="phones">
    {if 
$config.Company.company_phone}
      <
span>{$lng.lbl_phone_1_title}: {$config.Company.company_phone}</span>
    {/if}
    <
br />
    {if 
$config.Company.company_phone_2}
      <
span>{$lng.lbl_phone_2_title}: {$config.Company.company_phone_2}</span>
    {/if}
    </
div>
</
div>
<
div class="line2">
  {if 
$main ne "fast_lane_checkout"}
    {if 
$all_languages_cnt gt 1}
        <
div class="languages">
                <
form action="home.php" method="get" name="sl_form">
                    <
input type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}{if $smarty.server.QUERY_STRING}?{$smarty.server.QUERY_STRING|amp}{/if}" />
            {
strip}
                      <
label>{$lng.lbl_select_language}:
                      <
select name="sl" onchange="javascript: this.form.submit();">
                {foreach 
from=$all_languages item=l}
                            <
option value="{$l.code}"{if $store_language eq $l.codeselected="selected"{/if}>{$l.language}</option>
                {/foreach}
                      </
select>
              </
label>
            {/
strip}
          </
form>
        </
div>
    {/if}
  {else}
    {include 
file="modules/Fast_Lane_Checkout/head.tpl"}
  {/if}
</
div>
<
div class="bottom-line">
  <
div>
    <
div> </div>
  </
div>
</
div>
</
div

has you can see i cant find anything.
__________________
4.2.2
Reply With Quote
  #6  
Old 08-16-2009, 05:43 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: If is other language is selected change header_top.jpg

This is the line that shows the image
Code:
<div class="logo"><a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/neon_lights/xlogo.png" alt="" /></a></div>
and in particular
Code:
<img src="{$ImagesDir}/neon_lights/xlogo.png" alt="" />
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:00 AM.

   

 
X-Cart forums © 2001-2020