Jump to content

Header du thème default


 Share

Recommended Posts

J ai refait le header du thème ,

en séparant les div et form ..

 

il est sur http://prestashop.4quadri.com/

 

> le contenu

 

<div id="header">

 

  <div id="header_nav" class="header_nav">

<!-- LANGAGE xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->

{if sizeof($languages) != 1}

<div id="languages">

<div class="tspace">

{foreach from=$languages key=k item=language}

<a href="{$link->getLanguageLink($language.id_lang, $language.name)}"><img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.name}" title="{$language.name}"

{if $language.iso_code == $lang_iso}class="selected_language"{/if} /></a>

{/foreach}

</div>

</div>

{/if}

 

<!-- MONEY xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-->

{if sizeof($currencies) != 1}

<div id="currencies">

<form action="" method="post">

<select name="id_currency" class="currency_select tspace">

{foreach from=$currencies key=k item=currency_browsed}

<option value="{$currency_browsed.id_currency}"{if $id_currency_cookie == $currency_browsed.id_currency} selected="selected"{/if}>{$currency_browsed.name}</option>

{/foreach}

</select>

<input type="image" src="{$img_dir}btn-ok.gif" name="SubmitCurrency" class="text-bottom" />

</form>

            </div>

  {/if}

  <a href="{$base_dir}">HOME</a>

<!-- WELCOMME_______________________________________________________________________ -->

  {l s='Welcome'}, {if $logged}<b>{$customerName}</b> (<a href="{$base_dir}index.php?logout">{l s='Log out'}</a>){else}<a href="{$base_dir}my-account.php">{l s='Log in'}</a>{/if}

  <a href="{$base_dir}my-account.php">{l s='Mon Compte'}</a>

  <span class="pipe_spacer"></span>|<span class="pipe_spacer"></span>

  <a href="{$base_dir}order.php"><img src="{$img_dir}icon/basket.png" alt="{l s='Your cart'}" title="{l s='Your cart'}" class="bottom" /></a>

  <a href="{$base_dir}order.php">{l s='Mon Panier:'}</a> {if $cart_qties > 0}{$cart_qties} {if $cart_qties > 1}{l s='products'}{else}{l s='product'}{/if}

({convertPrice price=$cart->getOrderTotal(true, 4)}){else}{l s='empty'}{/if} </div>

 

</div>

Share this post


Link to post
Share on other sites

  • 1 month later...

Salut je suis allé sur http://prestashop.4quadri.com/

c'est bien ta modif, ça permet d'avoir un logo sur toute la largeur de la page

 

juste une petite question

 

pour obtenir le degradé en fond de page tu as bien modifié le css du template ?

moi j'essaye desesperement de mettre ça mais rien a faire ...

  :-[

------------------------------------------------------------------------------

body {

font-family:Arial, Tahoma, Helvetica, sans-serif;

font-size:12px;

margin: 20px 0px 0px 0px;

background-image: url("../img/backdegrade.gif");

                background-repeat: repeat-x;

}

-------------------------------------------------------------------------------

avec un gif de 1 pix de large X 1024Pix hauteur

par avance ... merci

 

Iceman

 

Share this post


Link to post
Share on other sites

Bonjour a tous

 

Pour repondre a Gilles, il faut editer les fichiers css (.css) contenu dans le repertoire css de votre theme, ainsi que les templates (.tpl).

Si votre theme n'existe pas encore (comme ca a l'air d'etre le cas), il suffit de copier au prealable, le dossier /themes/default en /theme/votre_theme_perso ;)

Share this post


Link to post
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More