mirror of
https://github.com/e107inc/e107.git
synced 2025-08-27 08:14:46 +02:00
Fixes #3009 new e_gsitemap addon.
This commit is contained in:
41
e107_plugins/forum/e_gsitemap.php
Normal file
41
e107_plugins/forum/e_gsitemap.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2018 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
* gSitemap addon
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
// v2.x Standard
|
||||
class forum_gsitemap // plugin-folder + '_rss'
|
||||
{
|
||||
|
||||
function import()
|
||||
{
|
||||
$import = array();
|
||||
|
||||
$sql = e107::getDb();
|
||||
|
||||
$data = $sql->retrieve("forum", "*", "forum_parent!='0' ORDER BY forum_order ASC", true);
|
||||
|
||||
foreach($data as $row)
|
||||
{
|
||||
$import[] = array(
|
||||
'name' => $row['forum_name'],
|
||||
'url' => e107::url('forum','forum',$row, array('mode'=>'full')), // ('forum/forum/view', $row['forum_id']),
|
||||
'type' => LAN_PLUGIN_FORUM_NAME
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
return $import;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user