1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-21 06:52:28 +01:00
php-e107/e107_plugins/newsfeed/e_frontpage.php

47 lines
1.1 KiB
PHP
Raw Normal View History

2006-12-02 04:36:16 +00:00
<?php
/*
* e107 website system
*
2009-11-18 01:06:08 +00:00
* Copyright (C) 2008-2009 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Plugin - newsfeeds
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/newsfeed/e_frontpage.php,v $
2010-02-10 18:18:01 +00:00
* $Revision$
* $Date$
* $Author$
*
*/
2006-12-02 04:36:16 +00:00
if (!defined('e107_INIT')) { exit; }
e107::includeLan(e_PLUGIN.'newsfeed/languages/'.e_LANGUAGE.'_frontpage.php');
//v2.x spec.
class newsfeed_frontpage // include plugin-folder in the name.
{
function config()
{
$frontPage = array();
$frontPage['title'] = LAN_PLUGIN_NEWSFEEDS_NAME; // .': '.vartrue($row['content_heading']); LAN_PLUGIN_NEWSFEEDS_NAME ?
$frontPage['page'][] = array('page' => '{e_PLUGIN}newsfeed/newsfeed.php', 'title' => NWSF_FP_2);
2006-12-02 04:36:16 +00:00
if (e107::getDb()->select("newsfeed", "newsfeed_id, newsfeed_name"))
{
while ($row = e107::getDb()->fetch())
{
$frontPage['page'][] = array('page' => '{e_PLUGIN}newsfeed/newsfeed.php?show.'.$row['newsfeed_id'], 'title' => $row['newsfeed_name']);
}
}
2006-12-02 04:36:16 +00:00
return $frontPage;
2006-12-02 04:36:16 +00:00
}
}
2006-12-02 04:36:16 +00:00
?>