#2206

alekslak
Участник

что то не могу сообразить как это посчитать?

$vsego_page=ceil($this->kolvo_adv_vsego_to_category/$masConfig[“KOL_SYNOPSIS_ADVERT”]);
$first_page=$this->open_num_page+2;
$next_page=$this->open_num_page+1;
$prev_page=$this->open_num_page-1;
$this->base_url_page = ($this->open_num_podcategory ? $this->forming_all_name_url_category( $this->open_num_podcategory, “inferior”) : $this->forming_all_name_url_category( $this->open_num_category,”high”) );

if($this->open_num_page==0){
$header_link=”\n”.”<link rel=’next’ href='”.$this->base_url_page.”num”.$first_page.”.html’ />”;
$header_link.=”\n”.”<link rel=’canonical’ href='”.$this->base_url_page.”‘ />”;
}else
if($this->open_num_page<$vsego_page){
$header_link=”\n”.”<link rel=’next’ href='”.$this->base_url_page.”num”.$next_page.”.html’ />”;
$header_link.=”\n”.”<link rel=’prev’ href='”.$this->base_url_page.”num”.$prev_page.”.html’ />”;
$header_link.=”\n”.”<link rel=’canonical’ href='”.$this->base_url_page.”num”.$this->open_num_page.”.html’ />”;
}else
if($this->open_num_page==$vsego_page){
$header_link=”\n”.”<link rel=’prev’ href='”.$this->base_url_page.”num”.$prev_page.”.html’/>”;
$header_link.=”\n”.”<link rel=’canonical’ href='”.$this->base_url_page.”num”.$this->open_num_page.”.html’ />”;
}