- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
.......
<title><?php
$title = '';
if (isset($GLOBALS['row_item'])){
if (isset($GLOBALS['row_item']['shop_items_catalog_seo_title']) && $GLOBALS['row_item']['shop_items_catalog_seo_title'] != '')
$title = $GLOBALS['row_item']['shop_items_catalog_seo_title'];
else if (isset($GLOBALS['row_item']['shop_items_catalog_name']) && $GLOBALS['row_item']['shop_items_catalog_name'] != '')
$title = $GLOBALS['row_item']['shop_items_catalog_name'];
else if (isset($GLOBALS['row_item']['information_items_seo_title']) && $GLOBALS['row_item']['information_items_seo_title'] != '')
$title = $GLOBALS['row_item']['information_items_seo_title'];
else if (isset($GLOBALS['row_item']['information_items_name']) && $GLOBALS['row_item']['information_items_name'] != '')
$title = $GLOBALS['row_item']['information_items_name'];
}
if ($title == '' && isset($GLOBALS['row_group'])){
if (isset($GLOBALS['row_group']['shop_groups_seo_title']) && $GLOBALS['row_group']['shop_groups_seo_title'] != '')
$title = $GLOBALS['row_group']['shop_groups_seo_title'];
else if (isset($GLOBALS['row_group']['shop_groups_name']) && $GLOBALS['row_group']['shop_groups_name'] != '')
$title = $GLOBALS['row_group']['shop_groups_name'];
}
if ($title == '') $title = $GLOBALS['structure']['structure_menu_name'];
echo $title;
?></title>
<meta name='yandex-verification' content='67f83a51d573cbe2' />
<meta name="verify-v1" content="9K3tCfbm1l144UKH3+ep25FUgP8cgoAyfn7KrUE8bds=" >
<meta name="msvalidate.01" content="AC482BDBAADDEF50AC995A8963801724" />
<?php
if ((CURRENT_STRUCTURE_ID != 42) || !preg_match('/page-(\d+)\/?$/',$_SERVER['REDIRECT_URL'],$match) || $match[1] == '1'){
echo '<meta name="description" content="';
$kernel->show_description();
echo "\">\n";
echo '<meta name="keywords" content="';
$kernel->show_keywords();
echo "\">\n";
;
}
?>
......
<?php
if (class_exists('shop'))
{
$shop = & singleton('shop');
$shop_id = 1;
// $shop->ShowShop($shop_id, 'МагазинГруппыТоваровНаГлавной1');// - на память
// добудем корневые группы товаров
$rs_main = $shop->GetGroups($shop_id, 0);
//прикинем сколько должно быть категорий в колонке для равномерного распределения по 3-м колонкам
$count_in_col_tbl = ceil(mysql_num_rows($rs_main)/3);
//пробьем урл магаза
$structure = & singleton ('Structure');
$shop_url = '/'.$structure->GetStructurePath(42);
$i = 0;
while($row = mysql_fetch_assoc($rs_main)){
//добудем список категорий конкретной категории
$rs = $shop->GetGroups($shop_id, $row['shop_groups_id']);
//пробьем урл категории
$path = $shop_url.$row['shop_groups_path'].'/';
if (mysql_num_rows($rs)){
// список каждой категории
echo '<h1><a href="#" class="false">'.$row['shop_groups_name'].'</a></h1><ul>';
//соберем ссылки на подкатегории дочних корневой категории
while($row = mysql_fetch_assoc($rs))
echo '<li><a href="'.$path.$row['shop_groups_path'].'/">'.$row['shop_groups_name'].'</a></li>';
echo '</ul>';
}else{
echo '<h1><a href="'.$path.'">'.$row['shop_groups_name'].'</a></h1>';
}
$i++;
if ($count_in_col_tbl == $i){//а не начать ли новую колонку?
$i = 0;
echo '</td><td width="33%" valign="top">';
}
}
}
?>
......