Commit 61531d3bcfe472efc964496c0585e2a0dbe6551b
1 parent
37e26943
new Tytle H1 description
Showing
2 changed files
with
21 additions
and
8 deletions
Show diff stats
src/app/frontend/controllers/PageController.php
| ... | ... | @@ -911,18 +911,31 @@ |
| 911 | 911 | |
| 912 | 912 | |
| 913 | 913 | $seo = $this->seoUrl->getSeoData($this->models->getSeoInfo()->getAllSeo()); |
| 914 | - $catalog_name = ''; | |
| 915 | - | |
| 914 | + $catalog_name = $catalog['catalog']['title']; | |
| 915 | + $seo_text_size = null; | |
| 916 | + $seo_text_color = null; | |
| 917 | + if(count($sizes) > 1) { | |
| 918 | + $seo_text_size = ' /' . $item['0']['size'] . '/ '; | |
| 919 | + } | |
| 920 | + if(count($sizes_colors__) > 1) | |
| 921 | + $seo_text_color = $item['0']['color_title'] ; | |
| 922 | + $seo_text_SubTitlePlusTitle = null; | |
| 923 | + if(strpos(mb_strtolower($catalog['catalog']['sub']['sub']['title'],'UTF-8'), mb_strtolower($item['0']['title'],'UTF-8')) === false){ | |
| 924 | + $seo_text_SubTitlePlusTitle = $catalog['catalog']['sub']['sub']['title'] .' '. $item['0']['title']; | |
| 925 | + } | |
| 926 | + else | |
| 927 | + $seo_text_SubTitlePlusTitle = $catalog['catalog']['sub']['sub']['title']; | |
| 928 | + | |
| 916 | 929 | $meta_title = |
| 917 | 930 | [ |
| 918 | - '1' => isset($seo['title']) && !empty($seo['title']) ? $seo['title'] : $catalog_name . ' ' . $item['0']['title'] . ' в Києві | Купити ' . $catalog_name . ' ' . $item['0']['title'] . ' ціна оптом Львів | Інтернет магазин насіння Semena.in.ua', | |
| 919 | - '2' => isset($seo['title']) && !empty($seo['title']) ? $seo['title'] : $catalog_name . ' ' . $item['0']['title'] . ' в Киеве | Купить ' . $catalog_name . ' ' . $item['0']['title'] . ' цена оптом Львов | Интернет магазин семян Semena.in.ua', | |
| 931 | + '1' => isset($seo['title']) && !empty($seo['title']) ? $seo['title'] : $catalog_name . ': '.$seo_text_SubTitlePlusTitle. ' '. $seo_text_color.$seo_text_size.' купити насіння поштою Київ, Львів, Україна | Semena.in.ua', | |
| 932 | + '2' => isset($seo['title']) && !empty($seo['title']) ? $seo['title'] : $catalog_name . ': '.$seo_text_SubTitlePlusTitle. ' '. $seo_text_color.$seo_text_size.' купить семена почтой Киев, Львов, Украина | Semena.in.ua', | |
| 920 | 933 | ]; |
| 921 | 934 | |
| 922 | 935 | $meta_description = |
| 923 | 936 | [ |
| 924 | - '1' => isset($seo['description']) && !empty($seo['description']) ? $seo['description'] : 'Професіонали рекомендують ' . $catalog_name . ' ' . $item['0']['title'] . ' в інтернет магазині насіння Semena.in.ua.', | |
| 925 | - '2' => isset($seo['description']) && !empty($seo['description']) ? $seo['description'] : 'Профессионалы рекомендуют ' . $catalog_name . ' ' . $item['0']['title'] . ' в интернет магазине семян Semena.in.ua.' | |
| 937 | + '1' => isset($seo['description']) && !empty($seo['description']) ? $seo['description'] : $catalog_name . ': '.$seo_text_SubTitlePlusTitle. ' '. $seo_text_color.$seo_text_size.' купить с доставкой поштою по Україні в інтернет-магазині насіння Semena.in.ua', | |
| 938 | + '2' => isset($seo['description']) && !empty($seo['description']) ? $seo['description'] : $catalog_name . ': '.$seo_text_SubTitlePlusTitle. ' '. $seo_text_color.$seo_text_size.' купить с доставкой почтой по Украине в интернет-магазине семян Semena.in.ua' | |
| 926 | 939 | ]; |
| 927 | 940 | |
| 928 | 941 | //discount | ... | ... |
src/app/frontend/views/page/item.php
| ... | ... | @@ -75,7 +75,7 @@ |
| 75 | 75 | </div> |
| 76 | 76 | |
| 77 | 77 | <div class="float item_content"> |
| 78 | - <div class="item_title"><h1 class="item_name_h1" itemprop="name"><?= $item['title'] ?></h1></div> | |
| 78 | + <div class="item_title"><h1 class="item_name_h1" itemprop="name"><?= count($sizes_colors__) > 1 ?$item['title'].' '.$item['color_title'] :$item['title']?></h1></div> | |
| 79 | 79 | <div class="item_decription"><?= $item['description'] ?></div> |
| 80 | 80 | <div style="float:right;width:270px;font-weight:bold;line-height:20px;"> |
| 81 | 81 | <img src="/images/truck.jpg" width="64" height="64" border="0" align="left" style="margin-right:10px;" /> |
| ... | ... | @@ -119,7 +119,7 @@ |
| 119 | 119 | if( isset( $sizes_colors__[$item['color_id']][$s] ) ) |
| 120 | 120 | { |
| 121 | 121 | $data_sizes .= |
| 122 | - '<a href="'.$sizes_colors__[$item['color_id']][$s]['link'].'" class="group_sizes'.($s == $item['size'] ? ' active' : '').' exist" style="padding-top:'.($i*3).'px; width:'.(31+($i*3)).'px" data-item_id="'.$sizes_colors__[$item['color_id']][$s]['id'].'" data-catalog_id="'.$catalog_id.'" data-group_alias="'.$group_alias.'">'. | |
| 122 | + '<a href="'.$this->seoUrl->setUrl($sizes_colors__[$item['color_id']][$s]['link']).'" class="group_sizes'.($s == $item['size'] ? ' active' : '').' exist" style="padding-top:'.($i*3).'px; width:'.(31+($i*3)).'px" data-item_id="'.$sizes_colors__[$item['color_id']][$s]['id'].'" data-catalog_id="'.$catalog_id.'" data-group_alias="'.$group_alias.'">'. | |
| 123 | 123 | '<span class="group_sizes_header"></span>'. |
| 124 | 124 | '<span class="group_sizes_content">'.$s.'</span>'. |
| 125 | 125 | '</a>'; | ... | ... |