proposal.php 529 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * View for proposal object
  4. *
  5. * @package Proposals
  6. *
  7. * @uses $vars['entity'] The proposal object
  8. * @uses $vars['full_view'] Whether to display the full view
  9. */
  10. echo elgg_view('crud/object', $vars);
  11. if (elgg_extract('full_view', $vars, FALSE)) {
  12. $entity = elgg_extract('entity', $vars, FALSE);
  13. $options = array('guid' => $entity->guid, 'annotation_name' => 'votes', 'limit' => 0);
  14. $annotations = elgg_get_annotations($options);
  15. if ($annotations) {
  16. echo elgg_view_annotation_list($annotations);
  17. }
  18. }