language;
$num=10;
$page = $_GET[‘page’];
$results = db_query(“SELECT COUNT(nid) FROM node WHERE type=’newsvnz’ AND language=’$translan'”);
$myrows= db_fetch_array($results);
$posts=$myrows[‘COUNT(nid)’];
$total = intval(($posts – 1) / $num) + 1;
$page = intval($page);
if(empty($page) or $page $total) $page = $total;
$start = $page * $num – $num;
global $base_url; ?>
<img src=”https://nmc-vfpo.com/wp-content/uploads/2019/07/image”>
<a href="/node/”>
<?php }
if ($page != 1) $pervpage = '<<
< ‘;
if ($page != $total) $nextpage = ‘ > >>‘;
if($page – 2 > 0) $page2left = ‘ ‘. ($page – 2) .’ | ‘;
if($page – 1 > 0) $page1left = ‘‘. ($page – 1) .’ | ‘;
if($page + 2 <= $total) $page2right = ' | ‘. ($page + 2) .’‘;
if($page + 1 <= $total) $page1right = ' | ‘. ($page + 1) .’‘;
echo “
“.$pervpage.$page2left.$page1left.’‘.$page.’‘.$page1right.$page2right.$nextpage.”
“;
?>