| version 1.113, 2013/09/02 13:30:19 |
version 1.114, 2013/09/02 16:18:06 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.112 2013-09-02 12:46:38 igor Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.113 2013-09-02 13:30:19 igor Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 2348 function ezin_get_sitemap() { |
|
| Line 2348 function ezin_get_sitemap() { |
|
| <lastmod>'.date("Y-m-d", strtotime($section['section_changed_dt'])).'</lastmod> |
<lastmod>'.date("Y-m-d", strtotime($section['section_changed_dt'])).'</lastmod> |
| </url>'."\n"; |
</url>'."\n"; |
| } |
} |
| $articles = ezin_get_article_list(0,0,0); |
$articles = ezin_get_available_articles(); |
| foreach($articles as $article) { |
foreach($articles as $article) { |
| ezin_article_link_process($article); |
ezin_article_link_process($article); |
| $ret .= ' |
$ret .= ' |
| Line 2366 function ezin_get_sitemap() { |
|
| Line 2366 function ezin_get_sitemap() { |
|
| |
|
| /* Basic HTML list of all section and articles */ |
/* Basic HTML list of all section and articles */ |
| function ezin_get_htmlmap($lang = null) { |
function ezin_get_htmlmap($lang = null) { |
| |
global $ezin_cfg; |
| $cache_id = (strlen($lang) > 0) ? 'ezin_htmlmap_'.$lang : 'ezin_htmlmap'; |
$cache_id = (strlen($lang) > 0) ? 'ezin_htmlmap_'.$lang : 'ezin_htmlmap'; |
| $cache_ar = ezin_cache_load($cache_id); |
$cache_ar = ezin_cache_load($cache_id); |
| if (intval($cache_ar['timestamp']) <= 0) { |
if (intval($cache_ar['timestamp']) <= 0 || 1==1) { |
| $host = 'http://'.$_SERVER['HTTP_HOST']; |
$host = 'http://'.$_SERVER['HTTP_HOST']; |
| $ret = '<ul class="htmlmap-root">'."\n"; |
$ret = '<ul class="htmlmap-root">'."\n"; |
| $articles = ezin_get_article_list(0,0,0,$lang); |
$articles = ezin_get_available_articles($lang); |
| function compare_article($a, $b) { |
function compare_article($a, $b) { |
| if ($a['article_access_key'] == $b['article_access_key']) { |
if ($a['article_access_key'] == $b['article_access_key']) { |
| return strcmp($a['article_title'], $b['article_title']); |
return strcmp($a['article_title'], $b['article_title']); |
| Line 2400 function ezin_get_htmlmap($lang = null) |
|
| Line 2401 function ezin_get_htmlmap($lang = null) |
|
| $ret .= |
$ret .= |
| "\t\t".'<ul class="htmlmap-branch">'."\n".$articles_html[$section['section_id']] |
"\t\t".'<ul class="htmlmap-branch">'."\n".$articles_html[$section['section_id']] |
| ."\t\t".'</ul>'."\n"; |
."\t\t".'</ul>'."\n"; |
| |
unset($articles_html[$section['section_id']]); |
| |
} |
| |
$ret .= "\t".'</li>'."\n"; |
| |
} |
| |
if (is_array($articles_html)) { // Last |
| |
$ret .= |
| |
"\t".'<li class="htmlmap-root-item">'."\n" |
| |
."\t\t".$ezin_cfg['name']."\n"; |
| |
foreach($articles_html as $article) { |
| |
$ret .= |
| |
"\t\t".'<ul class="htmlmap-branch">' |
| |
."\n".$article |
| |
."\t\t".'</ul>'."\n"; |
| } |
} |
| $ret .= "\t".'</li>'."\n"; |
$ret .= "\t".'</li>'."\n"; |
| } |
} |