|
@@ -8,19 +8,10 @@ if (!empty($this->entries)) {
|
|
|
$display_yesterday = true;
|
|
$display_yesterday = true;
|
|
|
$display_others = true;
|
|
$display_others = true;
|
|
|
if ($this->loginOk) {
|
|
if ($this->loginOk) {
|
|
|
- $shaarli = $this->conf->sharing ('shaarli');
|
|
|
|
|
- $wallabag = $this->conf->sharing ('wallabag');
|
|
|
|
|
- $diaspora = $this->conf->sharing ('diaspora');
|
|
|
|
|
|
|
+ $sharing = $this->conf->sharing;
|
|
|
} else {
|
|
} else {
|
|
|
- $shaarli = '';
|
|
|
|
|
- $wallabag = '';
|
|
|
|
|
- $diaspora = '';
|
|
|
|
|
|
|
+ $sharing = array();
|
|
|
}
|
|
}
|
|
|
- $twitter = $this->conf->sharing ('twitter');
|
|
|
|
|
- $google_plus = $this->conf->sharing ('g+');
|
|
|
|
|
- $facebook = $this->conf->sharing ('facebook');
|
|
|
|
|
- $email = $this->conf->sharing ('email');
|
|
|
|
|
- $print = $this->conf->sharing ('print');
|
|
|
|
|
$hidePosts = !$this->conf->display_posts;
|
|
$hidePosts = !$this->conf->display_posts;
|
|
|
$lazyload = $this->conf->lazyload;
|
|
$lazyload = $this->conf->lazyload;
|
|
|
$topline_read = $this->conf->topline_read;
|
|
$topline_read = $this->conf->topline_read;
|
|
@@ -29,9 +20,7 @@ if (!empty($this->entries)) {
|
|
|
$topline_link = $this->conf->topline_link;
|
|
$topline_link = $this->conf->topline_link;
|
|
|
$bottomline_read = $this->conf->bottomline_read;
|
|
$bottomline_read = $this->conf->bottomline_read;
|
|
|
$bottomline_favorite = $this->conf->bottomline_favorite;
|
|
$bottomline_favorite = $this->conf->bottomline_favorite;
|
|
|
- $bottomline_sharing = $this->conf->bottomline_sharing && (
|
|
|
|
|
- $shaarli || $wallabag || $diaspora || $twitter ||
|
|
|
|
|
- $google_plus || $facebook || $email || $print);
|
|
|
|
|
|
|
+ $bottomline_sharing = $this->conf->bottomline_sharing && (count($sharing));
|
|
|
$bottomline_tags = $this->conf->bottomline_tags;
|
|
$bottomline_tags = $this->conf->bottomline_tags;
|
|
|
$bottomline_date = $this->conf->bottomline_date;
|
|
$bottomline_date = $this->conf->bottomline_date;
|
|
|
$bottomline_link = $this->conf->bottomline_link;
|
|
$bottomline_link = $this->conf->bottomline_link;
|
|
@@ -146,55 +135,13 @@ if (!empty($this->entries)) {
|
|
|
|
|
|
|
|
<ul class="dropdown-menu">
|
|
<ul class="dropdown-menu">
|
|
|
<li class="dropdown-close"><a href="#close">❌</a></li>
|
|
<li class="dropdown-close"><a href="#close">❌</a></li>
|
|
|
- <?php if ($shaarli) { ?>
|
|
|
|
|
- <li class="item share">
|
|
|
|
|
- <a target="_blank" href="<?php echo $shaarli . '?post=' . $link . '&title=' . $title . '&source=FreshRSS'; ?>">
|
|
|
|
|
- <?php echo Minz_Translate::t ('shaarli'); ?>
|
|
|
|
|
- </a>
|
|
|
|
|
- </li>
|
|
|
|
|
- <?php } if ($wallabag) { ?>
|
|
|
|
|
- <li class="item share">
|
|
|
|
|
- <a target="_blank" href="<?php echo $wallabag . '?action=add&url=' . base64_encode (urldecode($link)); ?>">
|
|
|
|
|
- <?php echo Minz_Translate::t ('wallabag'); ?>
|
|
|
|
|
- </a>
|
|
|
|
|
- </li>
|
|
|
|
|
- <?php } if ($diaspora) { ?>
|
|
|
|
|
- <li class="item share">
|
|
|
|
|
- <a target="_blank" href="<?php echo $diaspora . '/bookmarklet?url=' . $link . '&title=' . $title; ?>">
|
|
|
|
|
- <?php echo Minz_Translate::t ('diaspora'); ?>
|
|
|
|
|
- </a>
|
|
|
|
|
- </li>
|
|
|
|
|
- <?php } if ($twitter) { ?>
|
|
|
|
|
- <li class="item share">
|
|
|
|
|
- <a target="_blank" href="https://twitter.com/share?url=<?php echo $link; ?>&text=<?php echo $title; ?>">
|
|
|
|
|
- <?php echo Minz_Translate::t ('twitter'); ?>
|
|
|
|
|
- </a>
|
|
|
|
|
- </li>
|
|
|
|
|
- <?php } if ($google_plus) { ?>
|
|
|
|
|
- <li class="item share">
|
|
|
|
|
- <a target="_blank" href="https://plus.google.com/share?url=<?php echo $link; ?>">
|
|
|
|
|
- <?php echo Minz_Translate::t ('g+'); ?>
|
|
|
|
|
- </a>
|
|
|
|
|
- </li>
|
|
|
|
|
- <?php } if ($facebook) { ?>
|
|
|
|
|
- <li class="item share">
|
|
|
|
|
- <a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $link; ?>&t=<?php echo $title; ?>">
|
|
|
|
|
- <?php echo Minz_Translate::t ('facebook'); ?>
|
|
|
|
|
- </a>
|
|
|
|
|
- </li>
|
|
|
|
|
- <?php } if ($email) { ?>
|
|
|
|
|
- <li class="item share">
|
|
|
|
|
- <a href="mailto:?subject=<?php echo urldecode($title); ?>&body=<?php echo $link; ?>">
|
|
|
|
|
- <?php echo Minz_Translate::t ('by_email'); ?>
|
|
|
|
|
- </a>
|
|
|
|
|
- </li>
|
|
|
|
|
- <?php } if ($print) { ?>
|
|
|
|
|
- <li class="item share">
|
|
|
|
|
- <a href="#" class="print-article">
|
|
|
|
|
- <?php echo Minz_Translate::t ('print'); ?>
|
|
|
|
|
- </a>
|
|
|
|
|
- </li>
|
|
|
|
|
- <?php } ?>
|
|
|
|
|
|
|
+ <?php foreach ($sharing as $share) :?>
|
|
|
|
|
+ <li class="item share">
|
|
|
|
|
+ <a target="_blank" href="<?php echo FreshRSS_Share::generateUrl($this->conf->shares, $share, $item->link(), $item->title() . ' . ' . $feed->name())?>">
|
|
|
|
|
+ <?php echo (array_key_exists('name', $share)) ? $share['name'] : Minz_Translate::t ($share['type']);?>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <?php endforeach;?>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
<?php } ?>
|
|
<?php } ?>
|