Changeset 69191 in spip-zone


Ignore:
Timestamp:
Jan 22, 2013, 1:52:48 PM (7 years ago)
Author:
olivier.gautier@…
Message:

Ne pas indiquer une image de fond si elle n'existe pas

Location:
_squelettes_/eva-web/4_2/eva_habillage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/eva-web/4_2/eva_habillage/balise/evahabillage.php

    r39903 r69191  
    3737                if (file_exists(_DIR_IMG."eva_habillage/".$tab_image_def['nom_image'])) {
    3838                $envoi .=" {background-image : url("._DIR_IMG."eva_habillage/".$tab_image_def['nom_image'].");\n";}
    39                 else {$envoi .=" {background-image : url("._DIR_PLUGIN_EVA_HABILLAGE."mon_image/".$tab_image_def['nom_image'].");\n";}
     39                elseif (file_exists(_DIR_PLUGIN_EVA_HABILLAGE."mon_image/".$tab_image_def['nom_image'])) {
     40                                $envoi .=" {background-image : url("._DIR_PLUGIN_EVA_HABILLAGE."mon_image/".$tab_image_def['nom_image'].");\n";}
    4041                $envoi .= "background-position : ".$tab_image_def['pos_x']." ".$tab_image_def['pos_y'].";\n";
    4142                $envoi .= "background-repeat : ".$tab_image_def['repetition'].";\n";
  • _squelettes_/eva-web/4_2/eva_habillage/paquet.xml

    r67939 r69191  
    22  prefix="eva_habillage"
    33  categorie="squelette"
    4   version="4.2"
     4  version="4.2.1"
    55  etat="stable"
    66  compatibilite="[2.9.9;3.0.99]"
Note: See TracChangeset for help on using the changeset viewer.