card embed improved
This commit is contained in:
parent
ba4f75ba19
commit
05654e4980
@ -172,7 +172,7 @@ class Oep extends \Zotlabs\Web\Controller {
|
|||||||
if(! perm_is_allowed($channel['channel_id'],get_observer_hash(),'view_pages'))
|
if(! perm_is_allowed($channel['channel_id'],get_observer_hash(),'view_pages'))
|
||||||
return $ret;
|
return $ret;
|
||||||
|
|
||||||
$sql_extra = items_permissions_sql($channel['channel_id'],get_observer_hash());
|
$sql_extra = item_permissions_sql($channel['channel_id'],get_observer_hash());
|
||||||
|
|
||||||
$r = q("select * from iconfig where iconfig.cat = 'system' and iconfig.k = 'CARD' and iconfig.v = '%s' limit 1",
|
$r = q("select * from iconfig where iconfig.cat = 'system' and iconfig.k = 'CARD' and iconfig.v = '%s' limit 1",
|
||||||
dbesc($res)
|
dbesc($res)
|
||||||
|
@ -327,11 +327,16 @@ function bb_ShareAttributes($match) {
|
|||||||
if ($avatar != "")
|
if ($avatar != "")
|
||||||
$headline .= '<a href="' . zid($profile) . '" ><img src="' . $avatar . '" alt="' . $author . '" height="32" width="32" /></a>';
|
$headline .= '<a href="' . zid($profile) . '" ><img src="' . $avatar . '" alt="' . $author . '" height="32" width="32" /></a>';
|
||||||
|
|
||||||
|
if(strpos($link,'/cards/'))
|
||||||
|
$type = t('card');
|
||||||
|
else
|
||||||
|
$type = t('post');
|
||||||
|
|
||||||
// Bob Smith wrote the following post 2 hours ago
|
// Bob Smith wrote the following post 2 hours ago
|
||||||
|
|
||||||
$fmt = sprintf( t('%1$s wrote the following %2$s %3$s'),
|
$fmt = sprintf( t('%1$s wrote the following %2$s %3$s'),
|
||||||
'<a href="' . zid($profile) . '" >' . $author . '</a>',
|
'<a href="' . zid($profile) . '" >' . $author . '</a>',
|
||||||
'<a href="' . zid($link) . '" >' . t('post') . '</a>',
|
'<a href="' . zid($link) . '" >' . $type . '</a>',
|
||||||
$reldate
|
$reldate
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user