diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/helpers/index/normal/entry_bottom.phtml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtml index 9be6b99f7..220fc5f62 100644 --- a/app/views/helpers/index/normal/entry_bottom.phtml +++ b/app/views/helpers/index/normal/entry_bottom.phtml @@ -96,9 +96,14 @@ $share_options['title'] = $title; $share->update($share_options); ?><li class="item share<?= $cssClass ?>"> - <?php if ('GET' === $share->method()) {?> + <?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 {?> + <?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() ?>"/> |
