Merged pull-request #446 and fixed conflicts
This commit is contained in:
commit
edf95dfda2
@ -575,13 +575,11 @@ nav .active a {
|
|||||||
/* item preview full-content */
|
/* item preview full-content */
|
||||||
.preview-full-content {
|
.preview-full-content {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
margin-bottom: 10px;
|
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-full-content p {
|
.preview-full-content p, p.preview:not(:empty) {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-full-content img {
|
.preview-full-content img {
|
||||||
|
@ -241,4 +241,5 @@ return array(
|
|||||||
// 'add a new group' => '',
|
// 'add a new group' => '',
|
||||||
// 'Groups' => '',
|
// 'Groups' => '',
|
||||||
// 'Back to the group' => '',
|
// 'Back to the group' => '',
|
||||||
|
// 'view' => '',
|
||||||
);
|
);
|
||||||
|
@ -241,4 +241,5 @@ return array(
|
|||||||
'add a new group' => 'přidat novou skupinu',
|
'add a new group' => 'přidat novou skupinu',
|
||||||
'Groups' => 'Skupiny',
|
'Groups' => 'Skupiny',
|
||||||
// 'Back to the group' => '',
|
// 'Back to the group' => '',
|
||||||
|
// 'view' => '',
|
||||||
);
|
);
|
||||||
|
@ -241,4 +241,5 @@ return array(
|
|||||||
// 'add a new group' => '',
|
// 'add a new group' => '',
|
||||||
// 'Groups' => '',
|
// 'Groups' => '',
|
||||||
// 'Back to the group' => '',
|
// 'Back to the group' => '',
|
||||||
|
// 'view' => '',
|
||||||
);
|
);
|
||||||
|
@ -241,4 +241,5 @@ return array(
|
|||||||
// 'add a new group' => '',
|
// 'add a new group' => '',
|
||||||
// 'Groups' => '',
|
// 'Groups' => '',
|
||||||
// 'Back to the group' => '',
|
// 'Back to the group' => '',
|
||||||
|
// 'view' => '',
|
||||||
);
|
);
|
||||||
|
@ -241,4 +241,5 @@ return array(
|
|||||||
'add a new group' => 'ajouter un nouveau libellé',
|
'add a new group' => 'ajouter un nouveau libellé',
|
||||||
'Groups' => 'Libellés',
|
'Groups' => 'Libellés',
|
||||||
'Back to the group' => 'Revenir sur le groupe'
|
'Back to the group' => 'Revenir sur le groupe'
|
||||||
|
'view' => 'view',
|
||||||
);
|
);
|
||||||
|
@ -241,4 +241,5 @@ return array(
|
|||||||
// 'add a new group' => '',
|
// 'add a new group' => '',
|
||||||
// 'Groups' => '',
|
// 'Groups' => '',
|
||||||
// 'Back to the group' => '',
|
// 'Back to the group' => '',
|
||||||
|
// 'view' => '',
|
||||||
);
|
);
|
||||||
|
@ -241,4 +241,5 @@ return array(
|
|||||||
// 'add a new group' => '',
|
// 'add a new group' => '',
|
||||||
// 'Groups' => '',
|
// 'Groups' => '',
|
||||||
// 'Back to the group' => '',
|
// 'Back to the group' => '',
|
||||||
|
// 'view' => '',
|
||||||
);
|
);
|
||||||
|
@ -241,4 +241,5 @@ return array(
|
|||||||
// 'add a new group' => '',
|
// 'add a new group' => '',
|
||||||
// 'Groups' => '',
|
// 'Groups' => '',
|
||||||
// 'Back to the group' => '',
|
// 'Back to the group' => '',
|
||||||
|
// 'view' => '',
|
||||||
);
|
);
|
||||||
|
@ -241,4 +241,5 @@ return array(
|
|||||||
// 'add a new group' => '',
|
// 'add a new group' => '',
|
||||||
// 'Groups' => '',
|
// 'Groups' => '',
|
||||||
// 'Back to the group' => '',
|
// 'Back to the group' => '',
|
||||||
|
// 'view' => '',
|
||||||
);
|
);
|
||||||
|
@ -241,4 +241,5 @@ return array(
|
|||||||
// 'add a new group' => '',
|
// 'add a new group' => '',
|
||||||
// 'Groups' => '',
|
// 'Groups' => '',
|
||||||
// 'Back to the group' => '',
|
// 'Back to the group' => '',
|
||||||
|
// 'view' => '',
|
||||||
);
|
);
|
||||||
|
@ -241,4 +241,5 @@ return array(
|
|||||||
// 'add a new group' => '',
|
// 'add a new group' => '',
|
||||||
// 'Groups' => '',
|
// 'Groups' => '',
|
||||||
// 'Back to the group' => '',
|
// 'Back to the group' => '',
|
||||||
|
// 'view' => '',
|
||||||
);
|
);
|
||||||
|
@ -106,6 +106,7 @@ function get_all_by_status($status, $feed_ids = array(), $offset = null, $limit
|
|||||||
'items.status',
|
'items.status',
|
||||||
'items.content',
|
'items.content',
|
||||||
'items.language',
|
'items.language',
|
||||||
|
'items.author',
|
||||||
'feeds.site_url',
|
'feeds.site_url',
|
||||||
'feeds.title AS feed_title',
|
'feeds.title AS feed_title',
|
||||||
'feeds.rtl'
|
'feeds.rtl'
|
||||||
@ -156,6 +157,7 @@ function get_bookmarks($offset = null, $limit = null)
|
|||||||
'items.content',
|
'items.content',
|
||||||
'items.feed_id',
|
'items.feed_id',
|
||||||
'items.language',
|
'items.language',
|
||||||
|
'items.author',
|
||||||
'feeds.site_url',
|
'feeds.site_url',
|
||||||
'feeds.title AS feed_title',
|
'feeds.title AS feed_title',
|
||||||
'feeds.rtl'
|
'feeds.rtl'
|
||||||
@ -196,6 +198,7 @@ function get_all_by_feed($feed_id, $offset = null, $limit = null, $order_column
|
|||||||
'items.content',
|
'items.content',
|
||||||
'items.bookmark',
|
'items.bookmark',
|
||||||
'items.language',
|
'items.language',
|
||||||
|
'items.author',
|
||||||
'feeds.site_url',
|
'feeds.site_url',
|
||||||
'feeds.rtl'
|
'feeds.rtl'
|
||||||
)
|
)
|
||||||
|
@ -10,21 +10,20 @@
|
|||||||
<span class="bookmark-icon"></span>
|
<span class="bookmark-icon"></span>
|
||||||
<span class="read-icon"></span>
|
<span class="read-icon"></span>
|
||||||
<?= Helper\favicon($favicons, $item['feed_id']) ?>
|
<?= Helper\favicon($favicons, $item['feed_id']) ?>
|
||||||
<a
|
<?php if ($display_mode === 'full'): ?>
|
||||||
href="?action=show&menu=<?= $menu ?><?= isset($group_id) ? '&group_id='.$group_id : '' ?>&id=<?= $item['id'] ?>"
|
<a class="original" rel="noreferrer" target="_blank"
|
||||||
class="show"
|
href="<?= $item['url'] ?>"
|
||||||
><?= Helper\escape($item['title']) ?></a>
|
<?= ($original_marks_read) ? 'data-action="mark-read"' : '' ?>
|
||||||
|
><?= Helper\escape($item['title']) ?></a>
|
||||||
|
<?php else: ?>
|
||||||
|
<a
|
||||||
|
href="?action=show&menu=<?= $menu ?><?= isset($group_id) ? '&group_id='.$group_id : '' ?>&id=<?= $item['id'] ?>"
|
||||||
|
class="show"
|
||||||
|
><?= Helper\escape($item['title']) ?></a>
|
||||||
|
<?php endif ?>
|
||||||
</h2>
|
</h2>
|
||||||
<?php if ($display_mode === 'full'): ?>
|
|
||||||
<div class="preview-full-content" <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>>
|
|
||||||
<?= $item['content'] ?>
|
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
|
||||||
<p class="preview" <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>>
|
|
||||||
<?= Helper\escape(Helper\summary(strip_tags($item['content']), 50, 300)) ?>
|
|
||||||
</p>
|
|
||||||
<?php endif ?>
|
|
||||||
<ul class="item-menu">
|
<ul class="item-menu">
|
||||||
|
<?php if ($menu !== 'feed-items'): ?>
|
||||||
<li>
|
<li>
|
||||||
<?php if (! isset($item['feed_title'])): ?>
|
<?php if (! isset($item['feed_title'])): ?>
|
||||||
<?= Helper\get_host_from_url($item['url']) ?>
|
<?= Helper\get_host_from_url($item['url']) ?>
|
||||||
@ -32,12 +31,27 @@
|
|||||||
<a href="?action=feed-items&feed_id=<?= $item['feed_id'] ?>" title="<?= t('Show only this subscription') ?>"><?= Helper\escape($item['feed_title']) ?></a>
|
<a href="?action=feed-items&feed_id=<?= $item['feed_id'] ?>" title="<?= t('Show only this subscription') ?>"><?= Helper\escape($item['feed_title']) ?></a>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</li>
|
</li>
|
||||||
|
<?php endif ?>
|
||||||
|
<?php if (!empty($item['author'])): ?>
|
||||||
|
<li>
|
||||||
|
<?= Helper\escape($item['author']) ?>
|
||||||
|
</li>
|
||||||
|
<?php endif ?>
|
||||||
<li class="hide-mobile">
|
<li class="hide-mobile">
|
||||||
<span title="<?= dt('%e %B %Y %k:%M', $item['updated']) ?>"><?= Helper\relative_time($item['updated']) ?></span>
|
<span title="<?= dt('%e %B %Y %k:%M', $item['updated']) ?>"><?= Helper\relative_time($item['updated']) ?></span>
|
||||||
</li>
|
</li>
|
||||||
<li class="hide-mobile">
|
<?php if ($display_mode === 'full'): ?>
|
||||||
<a href="<?= $item['url'] ?>" class="original" rel="noreferrer" target="_blank" <?= ($original_marks_read) ? 'data-action="mark-read"' : '' ?>><?= t('original link') ?></a>
|
<li>
|
||||||
</li>
|
<a
|
||||||
|
href="?action=show&menu=<?= $menu ?><?= isset($group_id) ? '&group_id='.$group_id : '' ?>&id=<?= $item['id'] ?>"
|
||||||
|
class="show"
|
||||||
|
><?= t('view') ?></a>
|
||||||
|
</li>
|
||||||
|
<?php else: ?>
|
||||||
|
<li class="hide-mobile">
|
||||||
|
<a href="<?= $item['url'] ?>" class="original" rel="noreferrer" target="_blank" <?= ($original_marks_read) ? 'data-action="mark-read"' : '' ?>><?= t('original link') ?></a>
|
||||||
|
</li>
|
||||||
|
<?php endif ?>
|
||||||
<?php if ($item['enclosure']): ?>
|
<?php if ($item['enclosure']): ?>
|
||||||
<li>
|
<li>
|
||||||
<?php if (strpos($item['enclosure_type'], 'video/') === 0): ?>
|
<?php if (strpos($item['enclosure_type'], 'video/') === 0): ?>
|
||||||
@ -54,4 +68,11 @@
|
|||||||
<?= \Template\load('bookmark_links', array('item' => $item, 'menu' => $menu, 'offset' => $offset, 'source' => '')) ?>
|
<?= \Template\load('bookmark_links', array('item' => $item, 'menu' => $menu, 'offset' => $offset, 'source' => '')) ?>
|
||||||
<?= \Template\load('status_links', array('item' => $item, 'redirect' => $menu, 'offset' => $offset)) ?>
|
<?= \Template\load('status_links', array('item' => $item, 'redirect' => $menu, 'offset' => $offset)) ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
<?php if ($display_mode === 'full'): ?>
|
||||||
|
<div class="preview-full-content" <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>>
|
||||||
|
<?= $item['content'] ?>
|
||||||
|
</div>
|
||||||
|
<?php else: ?>
|
||||||
|
<p class="preview" <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>><?= Helper\escape(Helper\summary(strip_tags($item['content']), 50, 300)) ?></p>
|
||||||
|
<?php endif ?>
|
||||||
</article>
|
</article>
|
||||||
|
@ -46,6 +46,11 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a>
|
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a>
|
||||||
</li>
|
</li>
|
||||||
|
<?php if (!empty($item['author'])): ?>
|
||||||
|
<li>
|
||||||
|
<?= Helper\escape($item['author']) ?>
|
||||||
|
</li>
|
||||||
|
<?php endif ?>
|
||||||
<li class="hide-mobile">
|
<li class="hide-mobile">
|
||||||
<span title="<?= dt('%e %B %Y %k:%M', $item['updated']) ?>"><?= Helper\relative_time($item['updated']) ?></span>
|
<span title="<?= dt('%e %B %Y %k:%M', $item['updated']) ?>"><?= Helper\relative_time($item['updated']) ?></span>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user