album.php 553 B

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