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