diff options
author | friendica <info@friendica.com> | 2014-05-29 20:09:21 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-29 20:09:21 -0700 |
commit | 22ed5b1d03314d2bc7ff41b4724526fe00472904 (patch) | |
tree | 6107189095449666c8bbfc46422c92c0440abbe7 /include/ItemObject.php | |
parent | 6e0cc25a90fa65ff49317d1fa3c4aff49a4d2d6a (diff) | |
download | volse-hubzilla-22ed5b1d03314d2bc7ff41b4724526fe00472904.tar.gz volse-hubzilla-22ed5b1d03314d2bc7ff41b4724526fe00472904.tar.bz2 volse-hubzilla-22ed5b1d03314d2bc7ff41b4724526fe00472904.zip |
newevent: front end functions
Diffstat (limited to 'include/ItemObject.php')
-rw-r--r-- | include/ItemObject.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php index 19283c317..ad2692624 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -200,6 +200,9 @@ class Item extends BaseObject { } } + $has_event = false; + if(activity_compare($item['obj_type'],ACTIVITY_OBJ_EVENT) && $conv->get_profile_owner() == local_user()) + $has_event = true; if($this->is_commentable()) { $like = array( t("I like this \x28toggle\x29"), t("like")); @@ -268,7 +271,8 @@ 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') : ''), + 'bookmark' => (($conv->get_profile_owner() == local_user() && $has_bookmarks) ? t('Save Bookmarks') : ''), + 'addtocal' => (($has_event) ? t('Add to Calendar') : ''), 'drop' => $drop, 'multidrop' => ((feature_enabled($conv->get_profile_owner(),'multi_delete')) ? $multidrop : ''), // end toolbar buttons |