From: Pascal Corpet Date: Fri, 11 Feb 2005 20:20:18 +0000 (+0000) Subject: RSS Feed link in head for Atom X-Git-Tag: xorg/old~292 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=24d926f259640d0512b2d9e868e24eff3c9d1afd;p=platal.git RSS Feed link in head for Atom git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-468 --- diff --git a/htdocs/carnet/index.php b/htdocs/carnet/index.php index f02b202..a5a72eb 100644 --- a/htdocs/carnet/index.php +++ b/htdocs/carnet/index.php @@ -21,6 +21,11 @@ require_once("xorg.inc.php"); new_skinned_page('carnet/index.tpl', AUTH_COOKIE); + +if (Session::has('core_rss_hash')) { + $page->assign('xorg_rss', Array("title" => "Polytechnique.org :: Carnet", "href" => "/carnet/rss.php/".Session::get('forlife')."/".Session::get('core_rss_hash').".xml")); +} + $page->run(); ?> diff --git a/htdocs/carnet/notifs.php b/htdocs/carnet/notifs.php index e849863..6665995 100644 --- a/htdocs/carnet/notifs.php +++ b/htdocs/carnet/notifs.php @@ -64,4 +64,6 @@ if (Env::has('flags_mail')) { $page->assign_by_ref('watch', $watch); $page->run(); + +// vim:set et sws=4 sw=4 sts=4: ?> diff --git a/htdocs/carnet/panel.php b/htdocs/carnet/panel.php index 3abeb82..922c5dd 100644 --- a/htdocs/carnet/panel.php +++ b/htdocs/carnet/panel.php @@ -34,6 +34,10 @@ $notifs = new Notifs(Session::getInt('uid'), true); $page->assign('notifs', $notifs); $page->assign('today', date('Y-m-d')); +if (Session::has('core_rss_hash')) { + $page->assign('xorg_rss', Array("title" => "Polytechnique.org :: Carnet", "href" => "/carnet/rss.php/".Session::get('forlife')."/".Session::get('core_rss_hash').".xml")); +} + $page->run(); ?> diff --git a/htdocs/login.php b/htdocs/login.php index f2c1714..2d0986e 100644 --- a/htdocs/login.php +++ b/htdocs/login.php @@ -61,6 +61,12 @@ if ($nbAlea > 0) { $publicite = array_chunk( $publicite , $pub_nbLig , true ) ; $page->assign_by_ref('publicite', $publicite); +// ajout du lien RSS + +if (Session::has('core_rss_hash')) { + $page->assign('xorg_rss', Array("title" => "Polytechnique.org :: News", "href" => "/rss.php/".Session::get('forlife')."/".Session::get('core_rss_hash').".xml")); +} + // affichage des evenements // annonces promos triées par présence d'une limite sur les promos // puis par dates croissantes d'expiration @@ -76,4 +82,6 @@ $sql = "SELECT e.id,e.titre,e.texte,a.user_id,a.nom,a.prenom,a.promo,l.alias AS $page->assign('evenement', $globals->xdb->iterator($sql, $promo, $promo)); $page->run(); + +// vim:set et sws=4 sw=4 sts=4: ?> diff --git a/templates/skin/common.header.tpl b/templates/skin/common.header.tpl index a2e8771..79d4e95 100644 --- a/templates/skin/common.header.tpl +++ b/templates/skin/common.header.tpl @@ -42,6 +42,10 @@ {/foreach} + + {if $xorg_rss} + + {/if} {$xorg_title|default:"Anciens eleves Polytechnique, annuaire email, Alumni"}