X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fconfiguration%2Fsyndications.php;fp=www%2Fecrire%2Fconfiguration%2Fsyndications.php;h=7d9899693110bbc93df14912808240a5a017dcb8;hp=0000000000000000000000000000000000000000;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c diff --git a/www/ecrire/configuration/syndications.php b/www/ecrire/configuration/syndications.php new file mode 100644 index 0000000..7d98996 --- /dev/null +++ b/www/ecrire/configuration/syndications.php @@ -0,0 +1,135 @@ +"; + + $res .= ""; + + $res .= bouton_radio("activer_sites", "oui", _T('item_gerer_annuaire_site_web'), $activer_sites == "oui", "changeVisible(this.checked, 'config-site', 'block', 'none');"); + $res .= "  "; + $res .= bouton_radio("activer_sites", "non", _T('item_non_gerer_annuaire_site_web'), $activer_sites == "non", "changeVisible(this.checked, 'config-site', 'none', 'block');"); + + $res .= "\n"; + + + + if ($activer_sites != 'non') $style = "display: block;"; + else $style = "display: none;"; + + $res .= "
"; + + // Utilisateurs autorises a proposer des sites references + // + $res .= "
\n"; + $res .= debut_cadre_relief('',true); + $res .= "\n"; + $res .= "\n
"; + $res .= ""; + $res .= "\n
\n"; + $res .= "
\n"; + $res .= fin_cadre_relief(true); + + $res .= debut_cadre_relief("", true, "", _T('titre_syndication').aide ("rubsyn")); + + $res .= "\n"; + // + // Reglage de la syndication + // + $res .= ""; + + $res .= "\n"; + + $res .= "
"; + $res .= _T('texte_syndication'); + $res .= "
"; + + $res .= bouton_radio("activer_syndic", "oui", _T('item_utiliser_syndication'), $activer_syndic == "oui", "changeVisible(this.checked, 'config-syndic', 'block', 'none');"); + $res .= "
\n"; + $res .= bouton_radio("activer_syndic", "non", _T('item_non_utiliser_syndication'), $activer_syndic == "non", "changeVisible(this.checked, 'config-syndic', 'none', 'block');"); + + if ($activer_syndic != "non") $style = "display: block;"; + else $style = "display: none;"; + + $res .= "
"; + + // Moderation par defaut des sites syndiques + $res .= "

"; + $res .= _T('texte_liens_sites_syndiques')."

"; + + $res .= afficher_choix('moderation_sites', $moderation_sites, + array('oui' => _T('item_bloquer_liens_syndiques'), + 'non' => _T('item_non_bloquer_liens_syndiques'))); + + $res .= "
"; + + $res .= "
\n"; + + $res .= fin_cadre_relief(true); + $res .= "
"; + + // + // Gestion des flux RSS + // + + $res .= debut_cadre_relief("feed.png", true, "", _T('ical_titre_rss')); + + $res .= ""; + + $res .= ""; + + $res .= ""; + $res .= ""; + $res .= "
"; + $res .= _T('info_syndication_integrale_1', + array('url' => generer_url_ecrire('synchro'), + 'titre' => _T("icone_suivi_activite")) + ). + '

' . + _T('info_syndication_integrale_2'). + '

'; + $res .= "
"; + $res .= afficher_choix('syndication_integrale', $GLOBALS['meta']["syndication_integrale"], + array('oui' => _T('item_autoriser_syndication_integrale'), + 'non' => _T('item_non_autoriser_syndication_integrale')), "
\n"); + $res .= "
\n"; + + $res .= fin_cadre_relief(true); + + $res = debut_cadre_trait_couleur("site-24.gif",true, "", _T('titre_referencement_sites').aide ("reference")) + . ajax_action_post('configurer', 'syndications', 'configuration','',$res) + . fin_cadre_trait_couleur(true); + + return ajax_action_greffe('configurer-syndications', '', $res); +} +?>