Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 167 | Rev 207 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 167 Rev 185
Line 57... Line 57...
57
       	}
57
       	}
Line 58... Line 58...
58
       	
58
       	
59
    	return Config::get('url_images_especes').$format.'/'.$nom_sci_formate.'.jpg';
59
    	return Config::get('url_images_especes').$format.'/'.$nom_sci_formate.'.jpg';
Line -... Line 60...
-
 
60
    }
-
 
61
    
-
 
62
    public static function getCreditImageEspece($nom_sci) {
-
 
63
    	
-
 
64
    	$nom_sci_formate = strtolower(str_replace(' ', '_', $nom_sci));
-
 
65
    	
-
 
66
    	if(!file_exists(Config::get('dossier_images_especes').'/'.$nom_sci_formate.'.txt')) {
-
 
67
    		$credit = '';
-
 
68
       	} else {
-
 
69
       		$credit = file_get_contents(Config::get('dossier_images_especes').'/'.$nom_sci_formate.'.txt');
-
 
70
       	}
-
 
71
       	
-
 
72
       	if(trim($credit) != '') {
-
 
73
       		$credit = 'Crédits : '.$credit;
-
 
74
       	}
-
 
75
       	
-
 
76
    	return $credit;
60
    }
77
    }
Line 61... Line 78...
61
    
78
    
Line 62... Line 79...
62
	public static function getUrlBaseReecrite() {
79
	public static function getUrlBaseReecrite() {