%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/bitrix/www/local/templates/UB/components/UB/blog.new_posts.list/.default/
Upload File :
Create Path :
Current File : /home/bitrix/www/local/templates/UB/components/UB/blog.new_posts.list/.default/template.php

<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?
	$APPLICATION->SetTitle(GetMessage("BLOGS_ON_PORTAL_UB"));
	/* CUtil::InitJSCore(array("image")); */
?>

<div class="blog blog-small">

<?
if(count($arResult["POSTS"])>0)
{
	foreach($arResult["POSTS"] as $ind => $CurPost)
	{
	?>
  <article class="post hentry">
     <div class="post-image">
        <a href="<?=$CurPost["urlToPost"]?>">
					<img src="<?=$CurPost['POST_AVATAR']?>">
        </a>
     </div>
     <div class="post-content-wrap">
        <header class="post-header">
           <h3 class="content-title"><a href="<?=$CurPost["urlToPost"]?>" title="<?=$CurPost["TITLE"]?>"><?=$CurPost["TITLE"]?></a></h3>
           <div class="blog-entry-meta">
              <div class="blog-entry-meta-author">
                 <a href="<?=$CurPost["urlToBlog"]?>" class="blog-entry-meta-author"><?=$CurPost['AuthorName']?></a>
                 <i class="fa fa-caret-right"></i>
                 <?=$CurPost['USER_TYPE']?>
              </div>
							<div class="blog-entry-meta-date">
							  <i class="fa fa-clock-o"></i>
							  <span class="blog-entry-meta-date-month"><?=$CurPost["DATE_PUBLISH_DATE"]?></span>
							</div>
							<?if (count($CurPost['POST_PROPERTIES']['DATA']['UF_TAGS']['VALUE'])>0):?>
              <div class="blog-entry-meta-tags">
                <i class="fa fa-tags"></i>
								<?$APPLICATION->IncludeComponent(
									"bitrix:system.field.view","blog_categories", 
									// $CurPost['POST_PROPERTIES']['DATA']['UF_TAGS']["USER_TYPE"]["USER_TYPE_ID"],
									array("arUserField" => $CurPost['POST_PROPERTIES']['DATA']['UF_TAGS'], "SHOW_ONLY_FIRST" => 'Y'), null, array("HIDE_ICONS"=>"Y"));?>
              </div>
              <?endif;?>
							<div class="blog-entry-meta-comments">
							  <a href="<?=$CurPost["urlToPost"]?>#comments" class="blog-entry-meta-comments">
							  	<i class="fa fa-comments"></i>
							  	<? /* =GetMessage("BLOG_BLOG_BLOG_COMMENTS") */?><?=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>
           </div>
        </header>
        <div class="post-content">
        	
					<?=$CurPost["TEXT_FORMATED"]?>
					<?
					if ($CurPost["CUT"] == "Y")
					{
						?><p><a class="blog-postmore-link" href="<?=$CurPost["urlToPost"]?>"><?=GetMessage("BLOG_BLOG_BLOG_MORE")?></a></p><?
					}
					?>
					<?if(!empty($CurPost["arImages"]))
					{
						?>
						<ul class="posts">
						<?
						$i=0;
						foreach($CurPost["arImages"] as $val)
						{
							?>
							
							<li>
							  <a href="<?=$CurPost["urlToPost"]?>"><img class="img-thumbnail recent-post-img" alt="" src="<?=$val["small"]?>"></a>
							</li>
							
							<?
							$i++;
							if ($i>5) break;
						}
						?>
						</ul>
						<?
					}?>
        </div>
     </div>
     <div class="clearfix"></div>
  </article>
	<div class="blog-divider"></div>
	<?
	}
	
	if(strlen($arResult["NAV_STRING"])>0)
		echo $arResult["NAV_STRING"];

}	
?>

</div>

Zerion Mini Shell 1.0