1,9 → 1,8 |
<?php |
class GeneralFormateur { |
class GeneralFormateur implements Formateur { |
public $dest_map = array(); |
public $img = array(); |
public function __construct($parametres, $info) { |
$this->param = $parametres; |
public function __construct($info) { |
$this->info = $info; |
} |
public function img() { |
129,21 → 128,11 |
} |
|
public function formaterCartes($usemap) { |
$retour = "<img src=\"".(Config::get('Cartes.cel_dst').$this->dest_map['general'])."\" style=\"border:none; cursor:crosshair\" alt=\"\" usemap=\"#themap\" /><br />\n"; |
$retour .= "<map name=\"themap\" id=\"themap\">"; |
$retour .= $usemap['general']; |
$retour .= "</map>"; |
return $retour; |
} |
|
public function formaterCarteMiniature($retour, $usemap) { |
$retour['image'] = Config::get('Cartes.cel_dst').$this->dest_map['general']; |
$retour['map'] = $usemap['general']; |
|
if (isset($this->param['retour']) && $this->param['retour'] == 'htm') { |
$retour['image'] = "<img src=\"".$retour['image']."\" style=\"border:none; cursor:crosshair\"" |
."alt=\"\" usemap=\"#themap\"></img><br />\n"; |
$retour['map'] = "<map name=\"themap\" id=\"themap\">".$retour['map']."</map>"; |
$retour = Config::get('Cartes.cel_dst').$this->dest_map['general']; |
if ($this->info['retour'] == self::MIME_MAP) { |
$retour = "<img src=\"".$retour."\" style=\"border:none; ". |
"cursor:crosshair\" alt=\"\" usemap=\"#themap\" /><br />\n". |
"<map name=\"themap\" id=\"themap\">".utf8_encode($usemap['general'])."</map>"; |
} |
return $retour; |
} |