aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-11-28 13:59:33 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-11-28 13:59:33 +0100
commit3e1fa880c261cacaa2ff83863a29fc7556540969 (patch)
treeaf7a80727f872ed6d2a9864d72f0484d283ca5e0
parentd6a685b0d06c39c9da8fbbc9e720ccb17147be28 (diff)
Possibilité de partager vers Diaspora* et Poche
Voir #175
-rw-r--r--app/views/helpers/view/normal_view.phtml20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml
index 31bd19036..d4343eb13 100644
--- a/app/views/helpers/view/normal_view.phtml
+++ b/app/views/helpers/view/normal_view.phtml
@@ -111,6 +111,26 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) {
</a>
</li>
<?php } ?>
+ <?php
+ $poche = $this->conf->urlPoche ();
+ if ((!login_is_conf ($this->conf) || is_logged ()) && $poche) {
+ ?>
+ <li class="item">
+ <a target="_blank" href="<?php echo $poche . '?action=add&amp;url=' . base64_encode (urldecode($link)); ?>">
+ Poche
+ </a>
+ </li>
+ <?php } ?>
+ <?php
+ $diaspora = $this->conf->urlDiaspora ();
+ if ((!login_is_conf ($this->conf) || is_logged ()) && $diaspora) {
+ ?>
+ <li class="item">
+ <a target="_blank" href="<?php echo $diaspora . '/bookmarklet?url=' . $link . '&amp;title=' . $title; ?>">
+ Diaspora*
+ </a>
+ </li>
+ <?php } ?>
<li class="item">
<a href="mailto:?subject=<?php echo urldecode($title); ?>&amp;body=<?php echo $link; ?>">
<?php echo Translate::t ('by_email'); ?>