diff options
Diffstat (limited to 'app/views/helpers/index/normal/entry_bottom.phtml')
| -rw-r--r-- | app/views/helpers/index/normal/entry_bottom.phtml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtml index a9d5a80ca..bc23938b0 100644 --- a/app/views/helpers/index/normal/entry_bottom.phtml +++ b/app/views/helpers/index/normal/entry_bottom.phtml @@ -52,7 +52,14 @@ $share_options['title'] = $title; $share->update($share_options); ?><li class="item share"> - <a target="_blank" rel="noreferrer" href="<?php echo $share->url(); ?>"><?php echo $share->name(); ?></a> + <?php if ('GET' === $share->method()) {?> + <a target="_blank" rel="noreferrer" href="<?php echo $share->url(); ?>"><?php echo $share->name(); ?></a> + <?php } else {?> + <a href="POST"><?php echo $share->name(); ?></a> + <form method="POST" data-url="<?php echo $share->url(); ?>"> + <input type="hidden" value="<?php echo $link; ?>" name="<?php echo $share->field(); ?>"/> + </form> + <?php } ?> </li><?php } ?></ul> |
