Commit 8a4e0e79f83a2983b0971fd3e963849fbf015b70

Authored by Dima
1 parent 4c8d2680

fix seo title priority

Showing 1 changed file with 4 additions and 3 deletions   Show diff stats
src/app/frontend/controllers/PageController.php
@@ -940,8 +940,8 @@ @@ -940,8 +940,8 @@
940 940
941 $meta_title = 941 $meta_title =
942 [ 942 [
943 - '1' => $seo_text_SubTitlePlusTitle. ' '. $seo_text_color.$seo_text_size.' купити насіння поштою Київ, Львів, Україна | Semena.in.ua',  
944 - '2' => $seo_text_SubTitlePlusTitle. ' '. $seo_text_color.$seo_text_size.' купить семена почтой Киев, Львов, Украина | Semena.in.ua', 943 + '1' => isset($seo['title']) && !empty($seo['title']) ?$seo['title']: $seo_text_SubTitlePlusTitle. ' '. $seo_text_color.$seo_text_size.' купити насіння поштою Київ, Львів, Україна | Semena.in.ua',
  944 + '2' => isset($seo['title']) && !empty($seo['title']) ?$seo['title']: $seo_text_SubTitlePlusTitle. ' '. $seo_text_color.$seo_text_size.' купить семена почтой Киев, Львов, Украина | Semena.in.ua',
945 ];//isset($seo['title']) && !empty($seo['title']) ? $seo['title'] : 945 ];//isset($seo['title']) && !empty($seo['title']) ? $seo['title'] :
946 946
947 $meta_description = 947 $meta_description =
@@ -950,6 +950,7 @@ @@ -950,6 +950,7 @@
950 '2' => isset($seo['description']) && !empty($seo['description']) ? $seo['description'] : $seo_text_SubTitlePlusTitle. ' '. $seo_text_color.$seo_text_size.' купить с доставкой почтой по Украине в интернет-магазине семян Semena.in.ua' 950 '2' => isset($seo['description']) && !empty($seo['description']) ? $seo['description'] : $seo_text_SubTitlePlusTitle. ' '. $seo_text_color.$seo_text_size.' купить с доставкой почтой по Украине в интернет-магазине семян Semena.in.ua'
951 ]; 951 ];
952 952
  953 +
953 //discount 954 //discount
954 $discount = $this->models->getDiscount()->getActiveData(); 955 $discount = $this->models->getDiscount()->getActiveData();
955 $discount = $this->models->getDiscount()->explodeGroupIds($discount); 956 $discount = $this->models->getDiscount()->explodeGroupIds($discount);
@@ -971,7 +972,7 @@ @@ -971,7 +972,7 @@
971 972
972 $h1 .= $item['0']['title'].' '.$item['0']['color_title']. ' '. $item['0']['size'] ; 973 $h1 .= $item['0']['title'].' '.$item['0']['color_title']. ' '. $item['0']['size'] ;
973 $this->view->setVars([ 974 $this->view->setVars([
974 - 'h1' => $h1, 975 + 'h1' => isset($seo['h1']) && !empty($seo['h1']) ?$seo['h1']:$h1,
975 'change_lang_url' => $lang_url, 976 'change_lang_url' => $lang_url,
976 'catalog' => $catalog, 977 'catalog' => $catalog,
977 'item' => $item['0'], 978 'item' => $item['0'],