X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   If is other language is selected change header_top.jpg (https://forum.x-cart.com/showthread.php?t=49071)

firstformedia 08-09-2009 08:50 AM

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

cflsystems 08-09-2009 09:12 AM

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

firstformedia 08-13-2009 06:51 AM

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

cflsystems 08-13-2009 07:22 AM

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

firstformedia 08-16-2009 05:20 PM

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.

cflsystems 08-16-2009 05:43 PM

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


All times are GMT -8. The time now is 02:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.