news/templates/part.items.php

62 строки
1.9 KiB
PHP

<ul>
<li class="feed_item"
ng-repeat="item in itemBusinessLayer.getAll() | orderBy:'id':true "
ng-class="{ read: item.isRead() }"
data-id="{{ item.id }}"
<h2 class="item_date">
<span class="timeago" title="{{item.pubDate*1000|date:'dd-MM-yyyy'}}">
{{ getRelativeDate(item.pubDate) }}
</span>
</h2>
<div class="utils">
<ul class="primary_item_utils">
<li ng-class="{ important: item.isStarred() }"
ng-click="itemBusinessLayer.toggleStarred(item.id)"
class="star"
title="<?php p($l->t('Save for later')) ?>">
</li>
</ul>
</div>
<h1 class="item_title">
<a ng-click="itemBusinessLayer.setRead(item.id)"
target="_blank" href="{{ item.url }}">{{ item.title }}</a>
</h1>
<h2 class="item_author">
<span ng-show="itemBusinessLayer.noFeedActive() && feedBusinessLayer.getFeedLink(item.feedId)">
<?php p($l->t('from')) ?>
<a target="_blank" href="{{ feedBusinessLayer.getFeedLink(item.feedId) }}"
class="from_feed">{{ itemBusinessLayer.getFeedTitle(item.id) }}</a>
</span>
<span ui-if="item.author">
<?php p($l->t('by')) ?>
{{ item.author }}
</span>
</h2>
<div class="enclosure" ui-if="item.enclosureLink">
<audio controls="controls" ng-src="{{ item.enclosureLink }}"
type="{{ item.enclosureType }}">
<?php p($l->t('Cant play audio format')) ?> {{item.enclosureType}}
</audio>
</div>
<div class="body"
ng-click="itemBusinessLayer.setRead(item.id)"
ng-bind-html-unsafe="item.body">
</div>
<div class="bottom_utils">
<ul class="secondary_item_utils"
ng-class="{ show_keep_unread: itemBusinessLayer.isKeptUnread(item.id) }">
<li ng-click="itemBusinessLayer.toggleKeepUnread(item.id)"
class="keep_unread"><?php p($l->t('Keep unread')); ?>
<input type="checkbox" ng-checked="itemBusinessLayer.isKeptUnread(item.id)"/>
</li>
</ul>
</div>
</li>
</ul>