aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/index/normal/entry_bottom.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-17 21:41:33 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-17 21:41:33 +0100
commit0b898678003b154fde1abd57da27e9246606085f (patch)
tree87e7c5575cc9a269b3807a58499db52854d48e47 /app/views/helpers/index/normal/entry_bottom.phtml
parent930026df2159b027bc035f4ed15c39a43eb0e9fe (diff)
parent875b8a72f97429c4e4df6d292daf4261fb7a45bd (diff)
Merge branch 'dev' into 252-extensions
Conflicts: app/i18n/en/admin.php app/i18n/en/feedback.php app/i18n/en/gen.php app/i18n/fr/admin.php app/i18n/fr/feedback.php app/i18n/fr/gen.php app/views/index/normal.phtml
Diffstat (limited to 'app/views/helpers/index/normal/entry_bottom.phtml')
-rw-r--r--app/views/helpers/index/normal/entry_bottom.phtml14
1 files changed, 9 insertions, 5 deletions
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtml
index e1961e2aa..a9f5389df 100644
--- a/app/views/helpers/index/normal/entry_bottom.phtml
+++ b/app/views/helpers/index/normal/entry_bottom.phtml
@@ -41,18 +41,22 @@
<div id="dropdown-share-<?php echo $this->entry->id();?>" class="dropdown-target"></div>
<a class="dropdown-toggle" href="#dropdown-share-<?php echo $this->entry->id();?>">
<?php echo _i('share'); ?>
- <?php echo _t('share'); ?>
+ <?php echo _t('index.share'); ?>
</a>
<ul class="dropdown-menu">
<li class="dropdown-close"><a href="#close">❌</a></li>
- <?php foreach ($sharing as $share) :?>
+ <?php
+ foreach ($sharing as $share) {
+ $type_share = FreshRSS_Context::$conf->shares[$share['type']];
+ $has_specific_title = ($type_share['form'] === 'advanced');
+ ?>
<li class="item share">
<a target="_blank" href="<?php echo FreshRSS_Share::generateUrl(FreshRSS_Context::$conf->shares, $share, $this->entry->link(), $this->entry->title() . ' . ' . $this->feed->name())?>">
- <?php echo _t($share['name']);?>
+ <?php echo $has_specific_title ? $share['name'] : _t('index.share.' . $share['name']); ?>
</a>
</li>
- <?php endforeach;?>
+ <?php } ?>
</ul>
</div>
<?php } ?>
@@ -64,7 +68,7 @@
<div id="dropdown-tags-<?php echo $this->entry->id();?>" class="dropdown-target"></div>
<?php echo _i('tag'); ?>
<a class="dropdown-toggle" href="#dropdown-tags-<?php echo $this->entry->id();?>"><?php
- echo _t('related_tags');
+ echo _t('index.tag.related');
?></a>
<ul class="dropdown-menu">
<li class="dropdown-close"><a href="#close">❌</a></li><?php