image.php 570 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Image view
  4. *
  5. * @uses $vars['entity'] TidypicsImage
  6. *
  7. * @author Cash Costello
  8. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
  9. */
  10. $full_view = elgg_extract('full_view', $vars, false);
  11. if ($full_view) {
  12. echo elgg_view('object/image/full', $vars);
  13. } else {
  14. if (elgg_in_context('front') || elgg_in_context('widgets') || elgg_in_context('groups')) {
  15. echo elgg_view('object/image/widget', $vars);
  16. } else {
  17. echo elgg_view('object/image/summary', $vars);
  18. }
  19. }
  20. return true;