mirror of
https://github.com/e107inc/e107.git
synced 2025-09-02 02:42:40 +02:00
SEF URL added for gsitemap. URL aliases added for Statistics plugin.
This commit is contained in:
19
gsitemap.php
19
gsitemap.php
@@ -23,12 +23,25 @@ if(!e107::isInstalled('gsitemap'))
|
||||
|
||||
e107::lan('gsitemap');
|
||||
|
||||
if(e_QUERY == "show")
|
||||
if(e_QUERY == "show" || !empty($_GET['show']))
|
||||
{
|
||||
require_once(HEADERF);
|
||||
|
||||
$nfArray = $sql ->retrieve("gsitemap", "*", "gsitemap_active IN (".USERCLASS_LIST.") ORDER BY gsitemap_order ",true);
|
||||
$text = "<div style='text-align:left'><ul>";
|
||||
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
$bread = array(
|
||||
0 => array('text' => $tp->toHtml(GSLAN_Name), 'url'=> null ) // e107::url('gsitemap','index')
|
||||
);
|
||||
$text = e107::getForm()->breadcrumb($bread);
|
||||
}
|
||||
else
|
||||
{
|
||||
$text = '';
|
||||
}
|
||||
|
||||
$text .= "<div style='text-align:left'><ul>";
|
||||
|
||||
foreach($nfArray as $nfa)
|
||||
{
|
||||
@@ -37,7 +50,7 @@ if(e_QUERY == "show")
|
||||
}
|
||||
$text .= "</ul></div>";
|
||||
|
||||
$ns -> tablerender(SITENAME." : ".GSLAN_Name."", $text);
|
||||
$ns -> tablerender(GSLAN_Name."", $text);
|
||||
|
||||
require_once(FOOTERF);
|
||||
exit;
|
||||
|
Reference in New Issue
Block a user