diff options
author | Jan-Philipp Litza <janphilipp@litza.de> | 2012-12-26 20:39:54 +0100 |
---|---|---|
committer | Jan-Philipp Litza <janphilipp@litza.de> | 2012-12-26 20:39:54 +0100 |
commit | e0e44fc8c3df2839e14c7914a6e665aea98435c9 (patch) | |
tree | 0f80c23d2a7662dba739698a407d503f4332e97d /public/index.php | |
parent | fe6fab67be17cd271eb77294f33667a81c7ea156 (diff) |
added Atom feed for news and meetings
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php index 1773b54b..bd7e552d 100644 --- a/public/index.php +++ b/public/index.php @@ -40,6 +40,10 @@ if ($p == "ical") { require_once ('includes/pages/user_ical.php'); user_ical(); } +elseif ($p == "atom") { + require_once ('includes/pages/user_atom.php'); + user_atom(); +} // Recht dafür vorhanden? elseif (in_array($p, $privileges)) { if ($p == "news") { @@ -185,6 +189,7 @@ if (isset ($user) && $p != "admin_user_angeltypes") echo template_render('../templates/layout.html', array ( 'theme' => isset ($user) ? $user['color'] : $default_theme, 'title' => $title, + 'atom_link' => ($p == 'news' || $p == 'user_meetings')? '<link href="' . page_link_to('atom') . (($p == 'user_meetings')? '&meetings=1' : '') . '&key=' . $user['ical_key'] . '" type="application/atom+xml" rel="alternate" title="Atom Feed">' : '', 'menu' => make_menu(), 'content' => $content )); |