mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
provide permalink for posts, include permalinks in feeds and imported from feeds
This commit is contained in:
parent
c5f5102396
commit
9f02057374
13 changed files with 35 additions and 3 deletions
8
boot.php
8
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;
|
||||
}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue