diff options
author | Friendika <info@friendika.com> | 2011-02-16 02:07:11 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-16 02:07:11 -0800 |
commit | 9f020573748af28cc09cbde18e96cfc68641ce7b (patch) | |
tree | 7f70d8374ca24ee81e192e6da5973ed3b9c0023b /boot.php | |
parent | c5f5102396cee8ec691fd22d486070ec3d5f243d (diff) | |
download | volse-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.php | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; +}} + |