widget.php 503 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Summary of an image for lists/galleries
  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. $image = elgg_extract('entity', $vars);
  11. $img = elgg_view_entity_icon($image, 'tiny');
  12. echo elgg_view('output/url', array(
  13. 'text' => $img,
  14. 'href' => $image->getURL(),
  15. 'encode_text' => false,
  16. 'is_trusted' => true,
  17. ));