| version 1.64, 2015/08/20 06:12:02 |
version 1.65, 2015/10/27 11:14:14 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/subst.inc.php,v 1.62 2014-10-14 11:49:01 igor Exp $ */ |
/* $Platon: Metafox/subst.inc.php,v 1.64 2015/08/20 06:12:02 nepto Exp $ */ |
| |
|
| require_once 'cfgldr.inc.php'; |
require_once 'cfgldr.inc.php'; |
| require_once 'error.inc.php'; |
require_once 'error.inc.php'; |
| Line 453 if ($ezin_tmpl_main->isVar('article_item |
|
| Line 453 if ($ezin_tmpl_main->isVar('article_item |
|
| if (intval($cache_ar['timestamp']) <= 0) { |
if (intval($cache_ar['timestamp']) <= 0) { |
| $articles = ezin_get_article_list($section_id, $author_id, $limit, $ezin_cgi['lang']); |
$articles = ezin_get_article_list($section_id, $author_id, $limit, $ezin_cgi['lang']); |
| $cache_ar['content'] = ezin_build_content_article($articles); |
$cache_ar['content'] = ezin_build_content_article($articles); |
| $cache_ar['content'] .= '{ ?'.'> |
global $ezin_cfg; |
| <div id="section_loadmore_space"></div> |
if ($ezin_cfg['article_items_loadmore'] == 1) { |
| <script type="text/javascript" src="'.$ezin_cfg['url'].'libpub/jquery.js"></script> |
$cache_ar['content'] .= '{ ?'.'> |
| <script type="text/javascript"> |
<div id="section_loadmore_space"></div> |
| var section_loadmore_page = 0; |
<script type="text/javascript" src="'.$ezin_cfg['url'].'libpub/jquery.js"></script> |
| function ezin_section_loadmore(_this, section_id) { |
<script type="text/javascript"> |
| section_loadmore_page++; |
var section_loadmore_page = 0; |
| $.get("'.$ezin_cfg['url'].'index.php?ezin_template_key=section_loadmore§ion_id="+section_id+"&page="+section_loadmore_page, function(data) { |
function ezin_section_loadmore(_this, section_id) { |
| if (data.length > 0) { |
section_loadmore_page++; |
| $("#section_loadmore_space").before(data); |
$.get("'.$ezin_cfg['url'].'index.php?ezin_template_key=section_loadmore§ion_id="+section_id+"&page="+section_loadmore_page, function(data) { |
| } else { |
if (data.length > 0) { |
| $(_this).hide(); |
$("#section_loadmore_space").before(data); |
| } |
} else { |
| }); |
$(_this).hide(); |
| } |
} |
| </script> <?php }'; |
}); |
| |
} |
| |
</script> <?php }'; |
| |
} |
| ezin_cache_save($cache_id, $cache_ar['content'], $cache_ar['var_var']); |
ezin_cache_save($cache_id, $cache_ar['content'], $cache_ar['var_var']); |
| } |
} |
| |
|