%PDF- %PDF-
Direktori : /home/bitrix/www/bitrix/components/bitrix/rating.vote/templates/standart/ |
Current File : /home/bitrix/www/bitrix/components/bitrix/rating.vote/templates/standart/template.php |
<? if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); ?> <span id="rating-vote-<?=htmlspecialcharsbx($arResult['VOTE_ID'])?>" class="rating-vote <?=($arResult['VOTE_AVAILABLE'] == 'N' ? 'rating-vote-disabled' : '')?>" title="<?=($arResult['VOTE_AVAILABLE'] == 'N'? htmlspecialcharsbx($arResult['ALLOW_VOTE']['ERROR_MSG']) : '')?>"> <span id="rating-vote-<?=htmlspecialcharsbx($arResult['VOTE_ID'])?>-result" class="rating-vote-result rating-vote-result-<?=($arResult['TOTAL_VALUE'] < 0 ? 'minus' : 'plus')?>" title="<?=htmlspecialcharsbx($arResult['VOTE_TITLE'])?>"> <?=htmlspecialcharsbx($arResult['TOTAL_VALUE'])?></span> <a id="rating-vote-<?=htmlspecialcharsbx($arResult['VOTE_ID'])?>-plus" class="rating-vote-plus <?=($arResult['VOTE_BUTTON'] == 'PLUS'? 'rating-vote-plus-active': '')?>" title="<?=$arResult['VOTE_AVAILABLE'] == 'N'? '' : ($arResult['VOTE_BUTTON'] == 'PLUS'? GetMessage("RATING_COMPONENT_CANCEL"): GetMessage("RATING_COMPONENT_PLUS"))?>"></a> <a id="rating-vote-<?=htmlspecialcharsbx($arResult['VOTE_ID'])?>-minus" class="rating-vote-minus <?=($arResult['VOTE_BUTTON'] == 'MINUS'? 'rating-vote-minus-active': '')?>" title="<?=$arResult['VOTE_AVAILABLE'] == 'N'? '' : ($arResult['VOTE_BUTTON'] == 'MINUS'? GetMessage("RATING_COMPONENT_CANCEL"): GetMessage("RATING_COMPONENT_MINUS"))?>"></a> </span> <script type="text/javascript"> BX.ready(function(){ <?if ($arResult['AJAX_MODE'] == 'Y'):?> BX.loadCSS('/bitrix/components/bitrix/rating.vote/templates/standart/style.css'); BX.loadScript('/bitrix/js/main/rating.js', function() { <?endif;?> if (!window.Rating && top.Rating) Rating = top.Rating; Rating.Set( '<?=CUtil::JSEscape($arResult['VOTE_ID'])?>', '<?=CUtil::JSEscape($arResult['ENTITY_TYPE_ID'])?>', '<?=IntVal($arResult['ENTITY_ID'])?>', '<?=CUtil::JSEscape($arResult['VOTE_AVAILABLE'])?>', '<?=$USER->GetId()?>', {'PLUS' : '<?=GetMessageJS("RATING_COMPONENT_PLUS")?>', 'MINUS' : '<?=GetMessageJS("RATING_COMPONENT_MINUS")?>', 'CANCEL' : '<?=GetMessageJS("RATING_COMPONENT_CANCEL")?>'}, 'standart', '<?=CUtil::JSEscape($arResult['PATH_TO_USER_PROFILE'])?>' ); <?if ($arResult['AJAX_MODE'] == 'Y'):?> }); <?endif;?> }); </script>