public function __construct() { global $globals; $name = $globals->asso('nom'); $url = $globals->baseurl . '/' . $globals->asso('diminutif'); parent::__construct('Polytechnique.net :: ' . $name . ' :: News', $url, 'L\'actualité du groupe ' . $name, $url . '/logo', 'xnetgrp/announce-rss.tpl'); }
function handler_ig_events($page) { require_once 'gadgets/gadgets.inc.php'; init_igoogle_html('gadgets/ig-events.tpl', AUTH_COOKIE); $events = XDB::iterator("SELECT SQL_CALC_FOUND_ROWS\n e.id, e.titre, UNIX_TIMESTAMP(e.creation_date) AS creation_date,\n ev.uid IS NULL AS nonlu, e.uid\n FROM announces AS e\n LEFT JOIN announce_read AS ev ON (e.id = ev.evt_id AND ev.uid = {?})\n WHERE FIND_IN_SET('valide', e.flags) AND expiration >= NOW()\n ORDER BY e.creation_date DESC", S::i('uid')); $page->assign('event_count', XDB::query("SELECT FOUND_ROWS()")->fetchOneCell()); Platal::load('events', 'feed.inc.php'); $user = S::user(); $data = array(); while ($e = PlFeed::nextEvent($events, $user)) { $data[] = $e; if (count($data) == 5) { break; } } $page->assign('events', $data); }
public function __construct() { global $globals; parent::__construct($globals->core->sitename . ' :: News', $globals->baseurl, 'Informations et Activités polytechniciennes', $globals->baseurl . '/images/logo.png', 'events/rss.tpl'); }
public function __construct() { global $globals; parent::__construct($globals->core->sitename . ' :: Carnet', $globals->baseurl . '/carnet/panel', 'Ton carnet polytechnicien', $globals->baseurl . '/images/logo.png', 'carnet/rss.tpl'); }