почему-то ругается
Parse error: syntax error, unexpected T_STRING, expecting '
' in /home/u157042/koketkaproru/www/templates/template14/template.htm on line 122
<div class="left_content">
<div class="right_box">
<?php
if (Core::moduleIsActive('shop'))
{
// Разделы магазина
$Shop_Controller_Show = new Shop_Controller_Show(
Core_Entity::factory('Shop', '3')
);
$Shop_Controller_Show
->xsl(
Core_Entity::factory('Xsl')->getByName('МагазинГруппыТоваровСайт34')
)
->groupsMode('tree')
//->itemsForbiddenTags(array('text'))
->group(0)
->limit(0)
->show();
// Производители
$oShop_Producer_Controller_Show = new Shop_Producer_Controller_Show(
Core_Entity::factory('Shop', '3')
);
$oShop_Producer_Controller_Show
->xsl(
Core_Entity::factory('Xsl')->getByName('МагазинСписокПроизводителейСайт34')
)
->limit(20)
->show();
}
?>
</div>
<div class="clear"><br/><br/><br/></div>
<?php
// Новости
if (Core::moduleIsActive('informationsystem'))
{
$Informationsystem_Controller_Show = new Informationsystem_Controller_Show(
Core_Entity::factory('Informationsystem', '15')
);
$Informationsystem_Controller_Show
->xsl(
Core_Entity::factory('Xsl')->getByName('СписокНовостейНаГлавнойСайт34')
)
->groupsMode('none')
->itemsForbiddenTags(array('text'))
->group(FALSE)
->limit(2)
->show();
}
?>
<div id="vk_groups"></div>
<script type="text/javascript">
VK.Widgets.Group("vk_groups", {mode: 0, width: "360", color1: 'FFFFFF', color2: '2B587A', color3: '5B7FA6'}, 69024334);
</script>
<br/>
<script type="text/javascript" src="//yandex.st/share/share.js"
charset="utf-8"></script>
<div class="yashare-auto-init" data-yashareL10n="ru" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,gplus" data-yashareTheme="counter"></div>
</div>
<div class="right_content">
<div class="cart" id="little_cart">
<?php
// Краткая корзина
$Shop_Cart_Controller_Show = new Shop_Cart_Controller_Show(
Core_Entity::factory('Shop', '3')
);
$Shop_Cart_Controller_Show
->xsl(
Core_Entity::factory('Xsl')->getByName('МагазинКорзинаКраткаяСайт34')
)
->couponText(isset($_SESSION) ? Core_Array::get($_SESSION, 'coupon_text') : '')
->show();
?>
</div>
<div class="clear"></div>
<?php
// ВЫВОД ТОВАРОВ ПО ЗНАЧЕНИЮ ДОПОЛНИТЕЛЬНОГО СВОЙСТВА
if (Core::moduleIsActive ('shop'))
{
$Shop_Controller_Show = new Shop_Controller_Show (
Core_Entity::factory ('Shop', 3)
) ;
$Shop_Controller_Show
->xsl (
Core_Entity::factory ('Xsl')->getByName ('МагазинКаталогТоваровНаГлавнойСпецПред')
)
->groupsMode ('none')
//->itemsForbiddenTags (array ('text'))
->group (FALSE)
->itemsProperties (TRUE)
->limit (3);
// Объединение с нужной таблицей свойств
$Shop_Controller_Show
->ShopItems ()
->queryBuilder ()
->where ('shop_items.active', '=', 1)
->clearOrderBy ()
->orderBy ('RAND ()') // в случайном порядке
->leftJoin ('shop_item_properties', 'shop_items.shop_id', '=', 'shop_item_properties.shop_id')
->leftJoin ('property_value_ints', 'shop_items.id', '=', 'property_value_ints.entity_id',
array (
array ('AND' ≥ array ('shop_item_properties.property_id', '=', Core_QueryBuilder::expression ('`property_value_ints`.`property_id`'))) // РУГАЕТСЯ НА ЭТУ СТРОКУ
)
)
// Идентификатор дополнительного свойства
->where ('shop_item_properties.property_id', '=', 64) // здесь указываете id вашего дополнительного свойства
// Значание дополнительного свойства
->where ('property_value_ints.value', '>', '0')
->groupBy ('shop_items.id')
// Количество свойств
->having ('COUNT (shop_item_properties.shop_id)', '=', 1);
$Shop_Controller_Show->show ();
}
? >
<?php
Core_Page::instance()->execute();
// Новинки
if (Core::moduleIsActive('shop'))
{
$Shop_Controller_Show = new Shop_Controller_Show(
Core_Entity::factory('Shop', '3')
);
$Shop_Controller_Show
->xsl(
Core_Entity::factory('Xsl')->getByName('МагазинСписокНовинокНаГлавнойСайт34')
)
->groupsMode('none')
//->itemsForbiddenTags(array('text'))
->group(FALSE)
->limit(6);
$Shop_Controller_Show
->shopItems()
->queryBuilder()
->clearOrderBy()
->orderBy('shop_items.id', 'DESC');
$Shop_Controller_Show->show();
}
if (Core::moduleIsActive('shop'))
{
$Shop_Controller_Show = new Shop_Controller_Show(
Core_Entity::factory('Shop', '3')
);
$Shop_Controller_Show
->xsl(
Core_Entity::factory('Xsl')->getByName('МагазинПоказТоваровСоСкидкойСайт34')
)
->groupsMode('none')
//->itemsForbiddenTags(array('text'))
->group(FALSE)
->limit(3);
$Shop_Controller_Show
->shopItems()
->queryBuilder()
->join('shop_item_discounts', 'shop_item_discounts.shop_item_id', '=', 'shop_items.id')
->join('shop_discounts', 'shop_discounts.id', '=', 'shop_item_discounts.shop_discount_id')
->where('shop_discounts.active', '=', 1)
->where('shop_discounts.start_datetime', '<', Core_Date::timestamp2sql(time()))
->where('shop_discounts.end_datetime', '>', Core_Date::timestamp2sql(time()))
->where('shop_discounts.deleted', '=', 0)
->clearOrderBy()
->orderBy('RAND()');
$Shop_Controller_Show->show();
}
?>
<div class="clear"></div>
</div>
<!--end of right content-->