A free, self-hostable news aggregator…
Possibilité de partager sur FB / Twitter / G+
Marien Fressinaudb93c739125d5
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtmlindex 1ebdb461e..4f9c6a4c0 100644--- a/app/views/helpers/view/normal_view.phtml+++ b/app/views/helpers/view/normal_view.phtml@@ -94,6 +94,8 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) {</li><?php } ?><li class="item">+ <?php $link = urlencode ($item->link ()); ?>+ <?php $title = urlencode ($item->title () . ' - ' . $feed->name ()); ?><div class="dropdown"><div id="dropdown-share-<?php echo $item->id ();?>" class="dropdown-target"></div><i class="icon i_share"></i> <a class="dropdown-toggle" href="#dropdown-share-<?php echo $item->id ();?>"><?php echo Translate::t ('share'); ?></a>@@ -101,13 +103,36 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) {<ul class="dropdown-menu"><li class="dropdown-close"><a href="#close"><i class="icon i_close"></i></a></li>- <li class="item"><a href="mailto:?subject=<?php echo $item->title (); ?>&body=J'ai trouvé cet article intéressant, tu peux le lire à cette adresse : <?php echo urlencode($item->link ()); ?>"><?php echo Translate::t ('by_email'); ?></a></li><?php$shaarli = $this->conf->urlShaarli ();if ((!login_is_conf ($this->conf) || is_logged ()) && $shaarli) {?>- <li class="item"><a target="_blank" href="<?php echo $shaarli . '?post=' . urlencode($item->link ()) . '&title=' . urlencode ($item->title ()) . '&source=bookmarklet'; ?>"><?php echo Translate::t ('on_shaarli'); ?></a></li>+ <li class="item">+ <a target="_blank" href="<?php echo $shaarli . '?post=' . $link . '&title=' . $title . '&source=bookmarklet'; ?>">+ Shaarli+ </a>+ </li><?php } ?>+ <li class="item">+ <a href="mailto:?subject=<?php echo urldecode($title); ?>&body=<?php echo $link; ?>">+ <?php echo Translate::t ('by_email'); ?>+ </a>+ </li>+ <li class="item">+ <a target="_blank" href="https://twitter.com/share?url=<?php echo $link; ?>&text=<?php echo $title; ?>">+ </a>+ </li>+ <li class="item">+ <a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $link; ?>&t=<?php echo $title; ?>">+ </a>+ </li>+ <li class="item">+ <a target="_blank" href="https://plus.google.com/share?url=<?php echo $link; ?>">+ Google++ </a>+ </li></ul></div></li>