diff options
author | friendica <info@friendica.com> | 2014-02-04 17:12:13 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-04 17:12:13 -0800 |
commit | aede006970fb9124161b4732b9f44002a35d17ef (patch) | |
tree | 7d39ad22e8b3ac3f87903666fc454cc9c5dfc025 /include/ItemObject.php | |
parent | 3665bc38ef15137c7d36a12aa13a44c4d0304547 (diff) | |
download | volse-hubzilla-aede006970fb9124161b4732b9f44002a35d17ef.tar.gz volse-hubzilla-aede006970fb9124161b4732b9f44002a35d17ef.tar.bz2 volse-hubzilla-aede006970fb9124161b4732b9f44002a35d17ef.zip |
bookmarks - mop up and go home
Diffstat (limited to 'include/ItemObject.php')
-rw-r--r-- | include/ItemObject.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php index e9a0b65c0..9b1a6fbcd 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -171,6 +171,15 @@ class Item extends BaseObject { ); } + $has_bookmarks = false; + if(is_array($item['term'])) { + foreach($item['term'] as $t) { + if($t['type'] == TERM_BOOKMARK) + $has_bookmarks = true; + } + } + + if($this->is_commentable()) { $like = array( t("I like this \x28toggle\x29"), t("like")); $dislike = array( t("I don't like this \x28toggle\x29"), t("dislike")); @@ -237,6 +246,7 @@ class Item extends BaseObject { 'star' => ((feature_enabled($conv->get_profile_owner(),'star_posts')) ? $star : ''), 'tagger' => ((feature_enabled($conv->get_profile_owner(),'commtag')) ? $tagger : ''), 'filer' => ((feature_enabled($conv->get_profile_owner(),'filing')) ? $filer : ''), + 'bookmark' => (($conv->get_profile_owner() == local_user() && $has_bookmarks) ? t('Bookmark Links') : ''), 'drop' => $drop, 'multidrop' => ((feature_enabled($conv->get_profile_owner(),'multi_delete')) ? $multidrop : ''), // end toolbar buttons |