full.php 851 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Object full rendering
  4. *
  5. * Sample output:
  6. * <div class="elgg-content">
  7. * <div class="elgg-image-block">
  8. * </div>
  9. * <div class="elgg-output">
  10. * </div>
  11. * </div>
  12. *
  13. * @uses $vars['entity'] ElggEntity
  14. * @uses $vars['icon'] HTML for the content icon
  15. * @uses $vars['summary'] HTML for the content summary
  16. * @uses $vars['body'] HTML for the content body
  17. * @uses $vars['class'] Optional additional class for the content wrapper
  18. */
  19. $icon = elgg_extract('icon', $vars);
  20. $summary = elgg_extract('summary', $vars);
  21. $body = elgg_extract('body', $vars);
  22. $class = elgg_extract('class', $vars);
  23. if ($class) {
  24. $class = "elgg-content clearfix $class";
  25. } else {
  26. $class = "elgg-content clearfix";
  27. }
  28. $header = elgg_view_image_block($icon, $summary);
  29. echo <<<HTML
  30. <div class="$class">
  31. $header
  32. $body
  33. </div>
  34. HTML;