aboutsummaryrefslogtreecommitdiffstats
path: root/include/ItemObject.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-10 19:10:18 -0800
committerfriendica <info@friendica.com>2015-02-10 19:10:18 -0800
commit79223b6b3d38bfbfb3a6d9530f6ccc5b7bb096c8 (patch)
tree18ee5a91f1ce6e8d4c964174549ac10f4ab949be /include/ItemObject.php
parent79da33dafdac1427ac07b4414a5da5f9f3a2b03d (diff)
downloadvolse-hubzilla-79223b6b3d38bfbfb3a6d9530f6ccc5b7bb096c8.tar.gz
volse-hubzilla-79223b6b3d38bfbfb3a6d9530f6ccc5b7bb096c8.tar.bz2
volse-hubzilla-79223b6b3d38bfbfb3a6d9530f6ccc5b7bb096c8.zip
item voting tools
Diffstat (limited to 'include/ItemObject.php')
-rw-r--r--include/ItemObject.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php
index 3638b2ffb..7f5ee83a3 100644
--- a/include/ItemObject.php
+++ b/include/ItemObject.php
@@ -148,11 +148,13 @@ class Item extends BaseObject {
$isevent = true;
$attend = array( t('I will attend'), t('I will not attend'), t('I might attend'));
}
+
$consensus = (($item['item_flags'] & ITEM_CONSENSUS)? true : false);
if($consensus) {
$response_verbs[] = 'agree';
$response_verbs[] = 'disagree';
$response_verbs[] = 'abstain';
+ $conlabels = array( t('I agree'), t('I disagree'), t('I abstain'));
}
$responses = get_responses($conv_responses,$response_verbs,$this,$item);
@@ -280,6 +282,8 @@ class Item extends BaseObject {
'id' => $this->get_id(),
'isevent' => $isevent,
'attend' => $attend,
+ 'consensus' => $consensus,
+ 'conlabels' => $conlabels,
'linktitle' => sprintf( t('View %s\'s profile - %s'), $profile_name, $item['author']['xchan_addr']),
'olinktitle' => sprintf( t('View %s\'s profile - %s'), $this->get_owner_name(), $item['owner']['xchan_addr']),
'llink' => $item['llink'],