<?php
if( $ctype['options']['list_show_filter'] ) {
$this->renderAsset('ui/filter-panel', array( 'css_prefix' => $ctype['name'],
'page_url' => $page_url,
'fields' => $fields,
'props_fields' => $props_fields,
'props' => $props,
'filters' => $filters,
'ext_hidden_params' => $ext_hidden_params,
'is_expanded' => $ctype['options']['list_expand_filter']
));
}
$image_field = 'photo';
?>
<?php foreach($langs as $l){ $language = $l ?>
<li class="lang-lnk">
<a class="lang<?php if ($user_lang == $l ) { ?>_active<?php } ?>" id="<?php html($l); ?>">
</a>
</li>
<?php } ?>
<?php if ($items){ ?>
<div class="feed_list">
<!-- <div>
<a class="news_add" href="<?php echo href_to('news/add'); ?>"><?php echo LANG_ADD_NEWS ?> <i class="fa fa-plus-circle" aria-hidden="true"></i></a>
</div> -->
<?php foreach($items as $item) {
$url = href_to($ctype['name'], $item['slug']) . '.html';
$is_private = $item['is_private'] && $hide_except_title && !$item['user']['is_friend'];
$image = (($image_field && !empty($item[$image_field])) ?
$item[$image_field] : ''); if ($is_private) {
if($image_field && !empty($item[$image_field])){ $image = default_images('private', 'normal');
}
$url = '';
}
?>
<div class="feed__item">
<div class="entry_wrapper">
<div class="entry_header--short">
<span class="entry_header__date"><time class="time" title="<?php html($item['date_pub']); ?>"><i class="fa fa-calendar" aria-hidden="true"></i> <?php html(string_date_age_max($item['date_pub'], true)); ?></time></span>
<a href="<?php echo href_to('users', $item['user']['id']); ?>" class="entry_header__author">
<?php echo html_avatar_image($item['user_avatar'], 'micro'); ?> <span class="entry_header__author__name"><?php html($item['user']['nickname']); ?> <?php html($item['user_surname']); ?></span>
</a>
<span class="entry_header__date"><i class="fa fa-folder-open" aria-hidden="true"></i> <span class="entry_header__author__name"><?php html($item['category_title']); ?></span></span>
<?php if(isset($item['user_real']) && $item['user_real']) { ?> <!--<i class="fa fa-check-circle" aria-hidden="true"></i>-->
<?php } ?> <div class="entry_header__admin"></div>
</div>
<div class="entry_content--short">
<a class="entry_content__link" href="<?php echo $url; ?>"></a>
<div class="b-article">
<h2> <span><?php html($item['title']); ?></span> </h2>
<?php if ($item['is_private']) { ?>
<h2> <span class="is_private" title="<?php html(LANG_PRIVACY_HINT); ?>"></span></h2>
<?php } ?>
<?php if (!$is_private) { ?>
<p><?php echo string_short($item['teaser'], 150); ?></p>
<?php } else { ?>
<div class="private_field_hint"><?php echo LANG_PRIVACY_PRIVATE_HINT; ?></div>
<?php } ?>
<figure>
<div class="wrapper-image">
<div class="image-size-holder" style="max-width: 100%; min-width: 100px; ">
<div class="entry_content__image image_zoom">
<div class="image_lazy_load__wrapper image_lazy_load--loaded" style="width: 100%; height: 100%;">
<img class="entry_content__image__img">
<?php if ($image) { ?>
<img class="image_lazy_load__full" src="<?php echo html_image_src($image, 'standart', true); ?>">
<?php } ?>
</div>
</div>
</div>
</div>
</figure>
</div>
</div>
<div class="entry_footer entry_footer--short">
<div class="l-float-left l-relative l-z-2 l-mr-15">
<div class="comments_counter comments_counter--nonzero comments_counter--carousel l-inline-block t-fs-0 t-link">
<a href="<?php echo $url . '#comments'; ?>" class="comments_counter__count">
<span class="comments_counter__count__value_new l-inline-block l-va-middle"></span>
<span class="comments_counter__count__ico l-inline-block l-va-middle t-lh-1">
<i class="fa fa-comments" aria-hidden="true"></i>
</span>
<span class="comments_counter__count__value l-inline-block l-va-middle">
<?php echo intval($item['comments']); ?></span> <span class="comments_counter__count__unit l-inline-block l-va-middle l-ml-5">комментариев</span>
</a>
</div>
</div>
<div class="l-float-left l-relative l-z-2 l-mr-15">
<div air-module="module.comments_counter" class="comments_counter comments_counter--nonzero comments_counter--carousel l-inline-block t-fs-0 t-link">
<span class="comments_counter__count__value_new l-inline-block l-va-middle"></span>
<span class="comments_counter__count__ico l-inline-block l-va-middle t-lh-1">
<i class="fa fa-eye" aria-hidden="true"></i>
</span>
<span class="comments_counter__count__value l-inline-block l-va-middle">
<?php if (!empty($ctype['options']['hits_on'])){ ?><?php echo $item['hits_count']; ?><?php } ?></span> <span class="comments_counter__count__unit l-inline-block l-va-middle l-ml-5">просмотров</span>
</div>
</div>
<div class="l-float-right l-relative l-z-2 r-mr-15">
<div air-module="module.comments_counter" class="comments_counter comments_counter--nonzero comments_counter--carousel l-inline-block t-fs-0 t-link">
<span class="comments_counter__count__value_new l-inline-block l-va-middle"></span>
<span class="comments_counter__count__ico l-inline-block l-va-middle t-lh-1">
</span>
<span class="comments_counter__count__value l-inline-block l-va-middle"><?php echo $item['rating_widget']; ?></span><span class="comments_counter__count__unit l-inline-block l-va-middle l-ml-5"></span>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<?php if ($perpage < $total) { ?>
<?php echo html_pagebar
($page, $perpage, $total, $page_url, array_merge($filters, $ext_hidden_params)); ?> <?php } ?>
<?php } else {
if(!empty($ctype['labels']['many'])){ echo sprintf(LANG_TARGET_LIST_EMPTY
, $ctype['labels']['many']); } else {
echo LANG_LIST_EMPTY;
}
} ?>