[SPIP] +spip v3.0.17
[lhc/web/clavette_www.git] / www / plugins-dist / sites / prive / objets / liste / syndic_articles_fonctions.php
diff --git a/www/plugins-dist/sites/prive/objets/liste/syndic_articles_fonctions.php b/www/plugins-dist/sites/prive/objets/liste/syndic_articles_fonctions.php
new file mode 100644 (file)
index 0000000..0098c76
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2014                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+if (!defined('_ECRIRE_INC_VERSION')) return;
+
+/**
+ * Un test sur les articles syndiques
+ * pour "depublier les items qui ne figurent plsu dans le flux"
+ * @global <type> $my_sites
+ * @param <type> $id
+ * @return <type>
+ */
+function filtre_test_syndic_article_miroir_dist($id){
+       if (isset($GLOBALS['my_sites'][$id]['miroir']) AND $GLOBALS['my_sites'][$id]['miroir'] == 'oui')
+               return ' ';
+       return '';
+}
+
+?>
\ No newline at end of file