aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-16 02:07:11 -0800
committerFriendika <info@friendika.com>2011-02-16 02:07:11 -0800
commit9f020573748af28cc09cbde18e96cfc68641ce7b (patch)
tree7f70d8374ca24ee81e192e6da5973ed3b9c0023b /boot.php
parentc5f5102396cee8ec691fd22d486070ec3d5f243d (diff)
downloadvolse-hubzilla-9f020573748af28cc09cbde18e96cfc68641ce7b.tar.gz
volse-hubzilla-9f020573748af28cc09cbde18e96cfc68641ce7b.tar.bz2
volse-hubzilla-9f020573748af28cc09cbde18e96cfc68641ce7b.zip
provide permalink for posts, include permalinks in feeds and imported from feeds
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 3dff39a33..dcf5b1c1a 100644
--- a/boot.php
+++ b/boot.php
@@ -2449,3 +2449,11 @@ function feed_salmonlinks($nick) {
return $salmon;
}}
+if(! function_exists('get_plink')) {
+function get_plink($item) {
+ $a = get_app();
+ $plink = (((x($item,'plink')) && (! $item['private'])) ? '<div class="wall-item-links-wrapper"><a href="'
+ . $item['plink'] . '" title="' . t('link to source') . '"><img src="' . $a->get_baseurl() . '/images/link-icon.gif" alt="' . t('link to source') . '" /></a></div>' : '');
+ return $plink;
+}}
+