Jump to content

modifier les icones dans le footer


Recommended Posts

bonjour à tous,

 

j'essaie de modifier les icônes placées dans le footer

 

j'ai vu la boucle dans 'blockreinsurance.tpl'

 

<div id="reinsurance_block" class="clearfix">
<ul class="width{$nbblocks}">
 {foreach from=$infos item=info}
  <li><img src="{$module_dir}img/{$info.file_name}" alt="{$info.text|escape:html:'UTF-8'}" /> <span>{$info.text|escape:html:'UTF-8'}</span></li>
 {/foreach}
</ul>
</div>

 

le problème est que l'image intégrée est un 'jpg' ayant besoin de transparence je dois pouvoir intégrer une 'png'. J'ai beau modifier le code du fichier "blockreinsurance.php" rien n'y fait

 

$tab_texts = array(
  array('text' => $this->l('Money back'), 'file_name' => 'reinsurance-1-1.png'),
  array('text' => $this->l('Exchange in-store'), 'file_name' => 'reinsurance-2-1.png'),
  array('text' => $this->l('Payment upon shipment'), 'file_name' => 'reinsurance-3-1.png'),
  array('text' => $this->l('Free Shipping'), 'file_name' => 'reinsurance-4-1.png'),
  array('text' => $this->l('100% secured payment'), 'file_name' => 'reinsurance-5-1.png')
 );

if ($error = ImageManager::validateUpload($_FILES['info'.$i.'_file']))
  return false;
 elseif (!($tmpName = tempnam(_PS_TMP_IMG_DIR_, 'PS')) || !move_uploaded_file($_FILES['info'.$i.'_file']['tmp_name'], $tmpName))
  return false;
 elseif (!ImageManager::resize($tmpName, dirname(__FILE__).'/img/'.$filename[0].'.png'))
  return false;
 unlink($tmpName);

if ($error = ImageManager::validateUpload($_FILES['image']))
  return false;
 elseif (!($tmpName = tempnam(_PS_TMP_IMG_DIR_, 'PS')) || !move_uploaded_file($_FILES['image']['tmp_name'], $tmpName))
  return false;
 elseif (!ImageManager::resize($tmpName, dirname(__FILE__).'/img/reinsurance-'.(int)$reinsurance->id.'-'.(int)$reinsurance->id_shop.'.png'))
  return false;
 unlink($tmpName);
 $reinsurance->file_name = 'reinsurance-'.(int)$reinsurance->id.'-'.(int)$reinsurance->id_shop.'.png';
 $reinsurance->save();

 

il n'y a aucune autre 'jpg' dans le code, et pourtant firebug me signale que la page appelle toujours une image 'reinsurance-1-1.jpg' !!!!!!!!!

 

Help me je deviens fou...

Link to comment
Share on other sites

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