provide permalink for posts, include permalinks in feeds and imported from feeds

This commit is contained in:
Friendika 2011-02-16 02:07:11 -08:00
parent c5f5102396
commit 9f02057374
13 changed files with 35 additions and 3 deletions

View file

@ -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;
}}