Created
April 18, 2015 19:38
-
-
Save Fil/69abd5d8650923b53561 to your computer and use it in GitHub Desktop.
logo d'article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# (trouver le pipeline qui va bien ou patcher public/interfaces.php) | |
$table_des_traitements['LOGO_ARTICLE'][]= 'traiter_logo_article(%s, $Pile[$SP][\'id_article\'])'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[(#REM) | |
.... | |
] | |
#SET{image,#ENV*{logo_article}} | |
<BOUCLE_d(DOCUMENTS) | |
{si (#GET{image}|non)} | |
{id_article} | |
{extension IN jpg, gif, png} | |
{0,1} | |
> | |
#SET{image,#LOGO_DOCUMENT} | |
</BOUCLE_d> | |
[(#GET{image} | |
|image_passe_partout{100,100} | |
|image_recadre{100,100,center} | |
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function traiter_logo_article($logo_article, $id_article) { | |
return trim(recuperer_fond('logo_article', array('logo_article' => $logo_article, 'id_article' => $id_article))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment