&ajaxMode=`default`
&cache=`1`
&cacheTime=`1800`
$s_user['ip'] = $_SERVER["REMOTE_ADDR"];
if(!empty($_GET["id"])){
if($s_user['ip']){
if((int)s_ip($_GET["id"],$s_user['ip'])[0] != 1){
$s_user['sql'] = "INSERT INTO `see_comeback` (`id`, `type`, `ip`) VALUES (NULL, '".$_GET["id"]."', '".$s_user['ip']."')";
$modx->exec($s_user['sql']);
}
}
}
function s_ip($u_id, $u_ip){
global $modx;
$result = $modx->query("SELECT * FROM `see_comeback` WHERE `type` = ".$u_id." AND `ip` LIKE '".$u_ip."'");
if (!is_object($result)) {
return false;
} else {
$row = $result->fetch(PDO::FETCH_NUM);
$row[0] = (boolean)$row[0];
return $row;
}
}
function synacs_s(id,uri){
if(localStorage.getItem("s"+id) == 0){
localStorage.setItem("s"+id, 1);
synacs_ajax_s(uri);
}else if(localStorage.getItem("s"+id) == ""){
localStorage.setItem("s"+id, 1);
synacs_ajax_s(uri);
}else if(!localStorage.getItem("s"+id)){
localStorage.setItem("s"+id, 1);
synacs_ajax_s(uri);
}
function synacs_ajax_s(f_uri){
$.ajax(
{
type: "GET",
url: f_uri,
async: false
}
);
}
}
<script type="text/javascript">
synacs_s("[[*id]]","[[++site_url]][[~8]]?id=[[*id]]");
</script>
<div class="row row-30">
[[!pdoPage?
&tpl=`return.chtivo.cart`
&tplPageWrapper=`@INLINE <nav class="pagination-wrap" aria-label="Page navigation">
<ul class="pagination">[[+first]][[+prev]][[+pages]][[+next]][[+last]][[+skip]]</ul>
</nav>`
&tplPageActive=`@INLINE <li class="page-item active"><a href="[[++site_url]][[+href]]" class="page-link">[[+pageNo]]</a></li>`
&tplPage=`@INLINE <li class="page-item"><a href="[[++site_url]][[+href]]" class="page-link">[[+pageNo]]</a></li>`
&tplPageSkip=`@INLINE <li class="page-item"><span class="page-link">...</span></li>`
&includeTVs=`img,category`
&pageLimit=`7`
&parents=`7`
&limit=`4`
&maxLimit=`10`
&tvFilters=`[[!get.filter.chtivo.cart]]`
]]
</div>
[[!+page.nav]]