diff options
| author | 2024-07-01 01:13:54 +0200 | |
|---|---|---|
| committer | 2024-07-01 01:13:54 +0200 | |
| commit | 7aa3d9f87309620b54dc9ff5f726dc22d1e6ea0c (patch) | |
| tree | 86f019bd5faa286feda5e3825610108cba62a479 /app/views/helpers/index/normal/entry_bottom.phtml | |
| parent | de477e15eca72d9e4d9dd99c0c694dc52500d4d5 (diff) | |
New: Sharing articles from the article title line (#6395)
* enable option
* Update entry_header.phtml
* frss.css
* fix print sharing
* Light refactoring
* fix
---------
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/helpers/index/normal/entry_bottom.phtml')
| -rw-r--r-- | app/views/helpers/index/normal/entry_bottom.phtml | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtml index 21bd1d355..f8cf0eda3 100644 --- a/app/views/helpers/index/normal/entry_bottom.phtml +++ b/app/views/helpers/index/normal/entry_bottom.phtml @@ -76,39 +76,7 @@ <a class="dropdown-toggle" href="#dropdown-share-<?= $this->entry->id() ?>"> <?= _i('share') ?><?= _t('index.share') ?> </a> - - <ul class="dropdown-menu"> - <li class="dropdown-header"><?= _t('index.share') ?> <a href="<?= _url('configure', 'integration') ?>"><?= _i('configure') ?></a></li><?php - $id = $this->entry->id(); - $link = $this->entry->link(); - $title = $this->entry->title() . ' · ' . ($this->feed === null ? '' : $this->feed->name()); - foreach (FreshRSS_Context::userConf()->sharing as $share_options) { - $share = FreshRSS_Share::get($share_options['type']); - if ($share === null) { - continue; - } - $cssClass = $share->isDeprecated() ? ' error' : ''; - $share_options['id'] = $id; - $share_options['link'] = $link; - $share_options['title'] = $title; - $share->update($share_options); - ?><li class="item share<?= $cssClass ?>"> - <?php if ('GET' === $share->method()) { - if ($share->HTMLtag() !== 'button') {?> - <a target="_blank" rel="noreferrer" href="<?= $share->url() ?>" data-type="<?= $share->type() ?>"><?= $share->name() ?></a> - <?php } else { ?> - <button type="button" class="as-link" data-url="<?= $share->url() ?>" data-type="<?= $share->type() ?>" data-title="<?= htmlspecialchars($title) ?>"><?= $share->name() ?></button> - <?php - } - } else {?> - <a href="POST"><?= $share->name() ?></a> - <form method="POST" action="<?= $share->url() ?>" disabled="disabled"> - <input type="hidden" value="<?= $link ?>" name="<?= $share->field() ?>"/> - </form> - <?php } ?> - </li><?php - } - ?></ul> + <?php $this->renderHelper('index/normal/entry_share_menu'); ?> <a class="dropdown-close" href="#close">❌</a> </div> <?php } ?> |
