Jump to content

remplacer Imprimer / Agrandir par des images


Recommended Posts

Bonjour,

 

En passant par le product.css et product.tpl

 

repérez dans product.tpl ces lignes :

 

<!-- usefull links-->
       <ul id="usefull_link_block">
           {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}
           <li><a href="javascript:print();">{l s='Print'}</a><br class="clear" /></li>
           {if $have_image && !$jqZoomEnabled}
           <li><span id="view_full_size" class="span_link">{l s='View full size'}</span></li>
           {/if}
       </ul>

 

Ajoutez une class à chaque balise <li>

 

<!-- usefull links-->
       <ul id="usefull_link_block">
           {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}
           <li class="print"><a href="javascript:print();">{l s='Print'}</a><br class="clear" /></li>
           {if $have_image && !$jqZoomEnabled}
           <liclass="zoom"><span id="view_full_size" class="span_link">{l s='View full size'}</span></li>
           {/if}
       </ul>

 

ensuite de product.css, repérez ces lignes :

 

#primary_block ul#usefull_link_block {
   list-style-type: none;
   margin-top: 1em
}
#primary_block ul#usefull_link_block li { margin: 0.5em 1em 0.5em 0; display: block }
#primary_block ul#usefull_link_block li a,
#primary_block ul#usefull_link_block span.span_link,
#primary_block ul#usefull_link_block span.span_link:hover {
   text-decoration: none;
   color: #76839b;
   font-size: 0.9em;
   background: white url('../img/bullet_alt.jpg') no-repeat top left;
   padding-left: 15px;
   height: 15px
}

 

Et ajoutez un background image à la balise <a>

 

dans le style :

#primary_block ul#usefull_link_block li.print a { bg image}

 

etc...

 

Sinon plus simple, mettre une image directement dans le tpl

 

   <li><a href="javascript:print();"><img ........./></a><br class="clear" /></li>

 

V++

 

Atch

Link to comment
Share on other sites

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
×
×
  • Create New...