• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/ratings_components.php
  • Класс: CAllRatingsComponentsMain
  • Вызов: CAllRatingsComponentsMain::getRatingLikeMessage
static function getRatingLikeMessage($emotion, $safe = true)
{
	Loc::loadLanguageFile($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/install/js/main/rating/config.php');

	$emotion = mb_strtoupper($emotion);

	if (empty($emotion) || $emotion == 'LIKE')
	{
		$text = Option::get("main", "rating_text_like_y", Loc::getMessage('RATING_LIKE_EMOTION_LIKE'));
		return $safe? htmlspecialcharsEx($text): $text;
	}

	return Loc::getMessage('RATING_LIKE_EMOTION_'.$emotion);
}