%PDF- %PDF-
| Direktori : /home/bitrix/www/local/templates/UB/components/UB/blog.new_posts.list/showcase/ |
| Current File : //home/bitrix/www/local/templates/UB/components/UB/blog.new_posts.list/showcase/template.php |
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<ul>
<?
if(count($arResult["POSTS"])>0)
{
foreach($arResult["POSTS"] as $ind => $CurPost)
{
?>
<li <?=$ind==0?'class="blog-first-el"':''?>>
<div class="blog-showcase-thumb col-lg-4">
<div class="post-body">
<a class="post-item-link" href="<?=$CurPost["urlToPost"]?>"><img alt="" src="<?=$CurPost['POST_AVATAR']?>"></a>
</div>
</div>
<div class="blog-showcase-extra-info col-lg-4">
<span>
<a href="<?=$CurPost["urlToBlog"]?>" class="blog-entry-meta-author"><?=$CurPost['AuthorName']?></a>
<i class="fa fa-caret-right"></i> <?=$CurPost['USER_TYPE']?>
<i class="fa fa-clock-o"></i> <?=$CurPost["DATE_PUBLISH_DATE"]?>
<div class="blog-entry-meta-comments">
<a href="<?=$CurPost["urlToPost"]?>#comments" class="blog-entry-meta-comments">
<i class="fa fa-comments"></i> <?=IntVal($CurPost["NUM_COMMENTS"]);?>
</a>
</div>
<div class="blog-entry-meta-like">
<?if ($arParams["SHOW_RATING"] == "Y"):?>
<?
$APPLICATION->IncludeComponent(
"bitrix:rating.vote", $arParams["RATING_TYPE"],
Array(
"ENTITY_TYPE_ID" => "BLOG_POST",
"ENTITY_ID" => $CurPost["ID"],
"OWNER_ID" => $CurPost["arUser"]["ID"],
"USER_VOTE" => $arResult["RATING"][$CurPost["ID"]]["USER_VOTE"],
"USER_HAS_VOTED" => $arResult["RATING"][$CurPost["ID"]]["USER_HAS_VOTED"],
"TOTAL_VOTES" => $arResult["RATING"][$CurPost["ID"]]["TOTAL_VOTES"],
"TOTAL_POSITIVE_VOTES" => $arResult["RATING"][$CurPost["ID"]]["TOTAL_POSITIVE_VOTES"],
"TOTAL_NEGATIVE_VOTES" => $arResult["RATING"][$CurPost["ID"]]["TOTAL_NEGATIVE_VOTES"],
"TOTAL_VALUE" => $arResult["RATING"][$CurPost["ID"]]["TOTAL_VALUE"],
"PATH_TO_USER_PROFILE" => $arParams["~PATH_TO_USER"],
),
$component,
array("HIDE_ICONS" => "Y")
);?>
<?endif;?>
</div>
</span>
<h4><a class="title" href="<?=$CurPost["urlToPost"]?>" title="<?=$CurPost["TITLE"]?>" style="cursor: pointer;"><?=$CurPost["TITLE"]?></a></h4>
<p><?=$CurPost["TEXT_FORMATED"]?></p>
</div>
</li>
<?
}
}
?>
</ul>