aboutsummaryrefslogtreecommitdiff
path: root/app/views/index/normal.phtml
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2024-09-07 23:24:05 +0200
committerGravatar GitHub <noreply@github.com> 2024-09-07 23:24:05 +0200
commitf7235bcb54e9f24e4de1f83d7428fa3ff970bb05 (patch)
tree10e23a26d0ec5a8758ac2c760251ad82887ef944 /app/views/index/normal.phtml
parent93c102d7eab69fee76f50fe207f9d3f4022372ca (diff)
Improved: refactor the sharing menu to use a template instead of duplicated HTML code (#6751)
* <script> --> <template> * sharing menu * normal view, global view (reader view does not have a share button) * fix
Diffstat (limited to 'app/views/index/normal.phtml')
-rw-r--r--app/views/index/normal.phtml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index 9596ebc89..40adc7f16 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -16,6 +16,11 @@ $useKeepUnreadImportant = !FreshRSS_Context::isImportant() && !FreshRSS_Context:
$today = @strtotime('today');
?>
+<template id="share_article_template">
+ <?php $this->renderHelper('index/normal/entry_share_menu'); ?>
+ <a class="dropdown-close" href="#close">❌</a>
+</template>
+
<main id="stream" class="normal<?= FreshRSS_Context::userConf()->display_posts ? '' : ' hide_posts' ?>">
<h1 class="title_hidden"><?= _t('conf.reading.view.normal') ?></h1>
<div id="new-article">