1<?php 2 3############################################################################### 4# Gregarius - A PHP based RSS aggregator. 5# Copyright (C) 2003 - 2006 Marco Bonetti 6# 7############################################################################### 8# This program is free software and open source software; you can redistribute 9# it and/or modify it under the terms of the GNU General Public License as 10# published by the Free Software Foundation; either version 2 of the License, 11# or (at your option) any later version. 12# 13# This program is distributed in the hope that it will be useful, but WITHOUT 14# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 15# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 16# more details. 17# 18# You should have received a copy of the GNU General Public License along 19# with this program; if not, write to the Free Software Foundation, Inc., 20# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or visit 21# http://www.gnu.org/licenses/gpl.html 22# 23############################################################################### 24# E-mail: mbonetti at gmail dot com 25# Web page: http://gregarius.net/ 26# 27############################################################################### 28 29function rss_nav() { 30 $nav = new Navigation(); 31 $nav -> render(); 32} 33 34function rss_nav_items() { 35 foreach ($GLOBALS['rss']->nav->items as $item) { 36 $item -> render(); 37 } 38} 39 40function rss_nav_item_class() { 41 return ($GLOBALS['rss'] -> currentNavItem -> isActive ? 42 " class=\"active\"":""); 43} 44 45function rss_nav_item_accesskey() { 46 return ($GLOBALS['rss'] -> currentNavItem -> accessKey ? 47 " accesskey=\"".$GLOBALS['rss'] -> currentNavItem -> accessKey ."\" " : ""); 48} 49 50function rss_nav_item_label() { 51 return $GLOBALS['rss'] -> currentNavItem -> label; 52} 53 54function rss_nav_item_href() { 55 return $GLOBALS['rss'] -> currentNavItem -> href; 56} 57 58function rss_nav_afternav() { 59 return $GLOBALS['rss'] -> nav -> postRender; 60} 61?> 62