lightbox2-insert-image.tpl.php 1.3 KB

123456789101112131415161718192021222324252627
  1. <?php
  2. // $Id: lightbox2-insert-image.tpl.php,v 1.1.2.2 2010/09/22 10:16:30 snpower Exp $
  3. /**
  4. * @file
  5. * Template file for Lightbox2 content inserted via the Insert module.
  6. *
  7. * Available variables:
  8. * - $item: The complete item being inserted.
  9. * - $url: The URL to the image.
  10. * - $linkurl: The URL to the image being linked to.
  11. * - $class: A set of classes assigned to this image (if any).
  12. * - $image_preset_name: The ImageCache preset being used for the image.
  13. * - $link_preset_name: The ImageCache preset being used for the linked to image.
  14. * - $download_link: The download original link.
  15. *
  16. * Note that ALT and Title fields should not be filled in here, instead they
  17. * should use placeholders that will be updated through JavaScript when the
  18. * image is inserted.
  19. *
  20. * Available placeholders:
  21. * - __alt__: The ALT text, intended for use in the <img> tag.
  22. * - __title__: The Title text, intended for use in the <img> tag.
  23. * - __description__: A description of the image, sometimes used as a caption.
  24. */
  25. ?>
  26. <a rel="lightbox[group1][__description__<?php print $download_link ?>]" href="<?php print $linkurl ?>"><img src="<?php print $url ?>" alt="__alt__" title="__title__" class="imagecache-<?php print $image_preset_name ?><?php print $class ? ' ' . $class : '' ?>" /></a>