aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/index/normal/entry_header.phtml
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2024-11-15 09:14:23 +0100
committerGravatar GitHub <noreply@github.com> 2024-11-15 09:14:23 +0100
commit5b9248f45f0ce93f9ffe2252f5fb955032ecd529 (patch)
tree4f53f9a00979963658f5520de59ffa59edce4e6a /app/views/helpers/index/normal/entry_header.phtml
parent916987717ef1879c3d9f029a43599e54adcb626c (diff)
New: Label menu in article row (#6984)
* configs * add the icon in the entry header line * rename comment * Update main.js * CSS * comment typo fix * fix gloabl view my labels menu * improved: my labels dropdown with triangle now. yay!
Diffstat (limited to 'app/views/helpers/index/normal/entry_header.phtml')
-rw-r--r--app/views/helpers/index/normal/entry_header.phtml14
1 files changed, 13 insertions, 1 deletions
diff --git a/app/views/helpers/index/normal/entry_header.phtml b/app/views/helpers/index/normal/entry_header.phtml
index a2f8d00fc..7aa752835 100644
--- a/app/views/helpers/index/normal/entry_header.phtml
+++ b/app/views/helpers/index/normal/entry_header.phtml
@@ -3,6 +3,7 @@
/** @var FreshRSS_View $this */
$topline_read = FreshRSS_Context::userConf()->topline_read;
$topline_favorite = FreshRSS_Context::userConf()->topline_favorite;
+ $topline_myLabels = FreshRSS_Context::userConf()->topline_myLabels;
$topline_sharing = FreshRSS_Context::userConf()->topline_sharing;
$topline_website = FreshRSS_Context::userConf()->topline_website;
$topline_thumbnail = FreshRSS_Context::userConf()->topline_thumbnail;
@@ -76,6 +77,17 @@
endif; ?>
<?php if ($topline_date) { ?><span class="item-element date"><time datetime="<?= $this->entry->machineReadableDate() ?>"><?= $this->entry->date() ?></time>&nbsp;</span><?php } ?>
</li>
+ <?php if ($topline_myLabels) { ?>
+ <li class="item labels">
+ <div class="item-element dropdown dynamictags">
+ <div id="dropdown-labels2-<?= $this->entry->id() ?>" class="dropdown-target"></div>
+ <a class="dropdown-toggle" href="#dropdown-labels2-<?= $this->entry->id() ?>" title="<?= _t('index.menu.tags') ?>">
+ <?= _i('label') ?>
+ </a>
+ <?php /* labels_article_template */ ?>
+ </div>
+ </li>
+ <?php } ?>
<?php if ($topline_sharing) { ?>
<li class="item share">
<div class="item-element dropdown">
@@ -83,7 +95,7 @@
<a class="dropdown-toggle" href="#dropdown-share2-<?= $this->entry->id() ?>" title="<?= _t('index.share') ?>">
<?= _i('share') ?>
</a>
- <?php /* entry_share_menu */ ?>
+ <?php /* share_article_template */ ?>
</div>
</li>
<?php } ?>