You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
930 B

<?php
/***************************************************************************\
* Plugin Duplicator pour Spip 2.0
* Licence GPL (c) 2010 - Apsulis
* Duplication de rubriques et d'articles
*
\***************************************************************************/
function duplicator_boite_infos($flux){
$type = $flux['args']['type'];
if(autoriser("webmestre")){
if (($id = intval($flux['args']['id'])) && ($type=='rubrique'))
$flux['data'] .= icone_horizontale(_T('duplicator:icone_dupliquer'), generer_url_ecrire('duplicator',"id_objet=$id&type=$type"), "",_DIR_PLUGIN_DUPLICATOR."/images/duplicator.gif", false);
if (($id = intval($flux['args']['id'])) && ($type=='article'))
$flux['data'] .= icone_horizontale(_T('duplicator:icone_dupliquer_article'), generer_url_ecrire('duplicator_article',"id_objet=$id&type=$type"), "",_DIR_PLUGIN_DUPLICATOR."/images/duplicator.gif", false);
}
return $flux;
}
?>