3 $documents = $source["reference"] ? $source["reference"]["documents"] : $source["documents"];
5 $mw_out = $this->helper("mw_helper_out");
10 <ul class="documents">
11 <?php foreach($documents as $id_document => $document) : ?>
12 <li id="document_<?php echo $source["id"]."_".$id_document ?>">
14 if(!($nom = $document["nom"])){
15 $nom = explode(".", $document["url"]);
16 if(count($nom) > 1) $nom = $nom[count($nom) - 1];
17 else $nom = $document["url"];
18 if(strlen($nom) > 16) $nom = "(...) ".substr($nom, -16);
21 <a href="<?php echo $document["url"] ?>" title="<?php echo $mw_out->esc_attr($document["nom"]); ?>"><?php echo $nom; ?></a>
25 <div class="clear"><!-- --></div>