diff options
| author | 2024-09-07 23:24:05 +0200 | |
|---|---|---|
| committer | 2024-09-07 23:24:05 +0200 | |
| commit | f7235bcb54e9f24e4de1f83d7428fa3ff970bb05 (patch) | |
| tree | 10e23a26d0ec5a8758ac2c760251ad82887ef944 /app/views/index/global.phtml | |
| parent | 93c102d7eab69fee76f50fe207f9d3f4022372ca (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/global.phtml')
| -rw-r--r-- | app/views/index/global.phtml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/index/global.phtml b/app/views/index/global.phtml index 011b66a49..dd4749e24 100644 --- a/app/views/index/global.phtml +++ b/app/views/index/global.phtml @@ -13,6 +13,12 @@ $state_unread = true; } ?> + +<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="global<?= $class ?>"> <h1 class="title_hidden"><?= _t('conf.reading.view.global') ?></h1> <?php |
