"; echo display_buttons("edit_page('".$url."')",true); echo "

".$page["titre"]."

"; echo "
"; echo $page["texte"]; echo "
"; echo ""; } // affiche chaque item dans la galerie générale function display_mosaique_item($xml,$return=false){ if(function_exists('display_mosaique_item_custom')){ $item = display_mosaique_item_custom($xml,$return); if($return){ return $item; } else { echo $item; } } else { $item = "
fichier_seul."\" data-mainillu=\"".$xml->get("illustration", "images/defaut.jpg")."\">\n"; $item .= "
\n"; $item .= "\"\"get("illustration", "images/defaut.jpg"),ILLU_WIDTH,ILLU_HEIGHT,true); $item .= "\">\n"; $item .= "
\n"; $l=$xml->get_liste_pour_attribut("afficher","oui",array("illustration")); foreach($l as $tag){ $item .= "
".flat_array($xml->get($tag))."
\n"; } $item .= "
\n"; if($return){ return $item; } else { echo $item; } } } // affiche le contenu d'un xml dans l'espace latéral function display_lateral_item($xml,$return=false){ if(function_exists('display_lateral_item_custom')){ $item = display_lateral_item_custom($xml,$return); } else { echo "
"; echo display_buttons("item_edit('".$xml->fichier_seul."')",true); echo "
"; $original=donne_lien(DOSSIER_FICHIERS.$xml->get("illustration", "images/defaut.jpg"),1200,1200,false); echo "\"\"\n"; echo "
"; echo "
"; foreach($xml->get_partial_contenu(array("illustration")) as $tag => $tag_contenu){ echo $xml->display_tag($tag); } echo "
"; } } // affiche la fiche complète en pleine page function display_fullpage_item($xml){ if(function_exists('display_fullpage_item_custom')){ display_fullpage_item_custom($xml); } else { echo "
"; echo "
\n"; $original=donne_lien(DOSSIER_FICHIERS.$xml->get("illustration", "images/defaut.jpg"),1200,1200,false); echo "\"\"\n"; echo "
"; echo "
\n"; echo "
"; echo "
".display_buttons("item_edit('".$xml->fichier_seul."')",true)."
"; echo "
"; echo "
"; foreach($xml->get_partial_contenu(array("illustration")) as $tag => $tag_contenu){ echo $xml->display_tag($tag); } echo "
"; echo ""; echo "
"; } } // affiche l'image et le titre en pleine page function display_galerie_item($xml){ if(function_exists('display_galerie_item_custom')){ display_galerie_item_custom($xml); } else { echo display_buttons("item_edit('".$xml->fichier_seul."')",false); echo "get("illustration", "images/defaut.jpg"),1200,800,false); echo "\" class=\"\">
"; echo $xml->get("titre"); echo "
"; } } // affiche le contenu d'un xml dans l'espace latéral function display_menu_collection($xml,$return=false){ if(function_exists('display_lateral_collection_custom')){ $item = display_menu_collection_custom($xml,$return); } else { echo "
"; echo "
"; echo "get_tag_array("items"); $c->lire_xml(CHEMIN.DOSSIER_XML.$i[0]); echo donne_lien(DOSSIER_FICHIERS.$c->get("illustration", "images/defaut.jpg"),400,200,true); echo "\" alt=\"\">\n"; echo "
"; echo '
Close
'; foreach($xml->get_partial_contenu(array("items")) as $tag => $tag_contenu){ echo $xml->display_tag($tag); } echo "
".$xml->get_tag_nb("items"). " éléments
"; $items=$xml->get_tag_array("items"); echo "
"; foreach($items as $it){ echo "
".$it."
"; } echo "
"; } } // affichage des collections function display_mosaique_collection($xml,$return=false){ if(function_exists('display_mosaique_collection_custom')){ $item = display_mosaique_collection_custom($xml,$return); if($return){ return $item; } else { echo $item; } } else { $item = "
fichier_seul."\" onclick=\"collection_click(this);\">\n"; $item .= "get_tag_array("items"); $c->lire_xml(CHEMIN.DOSSIER_XML.$i[0]); $item .= donne_lien(DOSSIER_FICHIERS.$c->get("illustration", "images/defaut.jpg"),400,300,true); //$item .="images/defaut.jpg"; $item .= "\" alt=\"\">\n"; $item .= "
".$xml->get("titre")."
"; $item .= "
".$xml->get("tags")."
"; $item .= "
".$xml->get_tag_nb("items"). " éléments
"; $item .= "
\n"; if($return){ return $item; } else { echo $item; } } } // affichage des boutons avant-après-edit-close function display_buttons($url,$edit=false){ $buttons="
"; $buttons .="
"; $buttons .="
"; $buttons .="
"; if((isset($_SESSION['login']) || DEBUG) && $edit==true){ $buttons .="
"; } $buttons .="
"; $buttons .="
"; $buttons .="
"; $buttons .="
"; $buttons .="
"; $buttons .="
Close
"; return $buttons; } function flat_array($c,$glu=", "){ if(is_array($c)){ $c=implode($glu,$c); } return $c; } ?>