lightbox2-insert-image.tpl.php in Lightbox2 6
Same filename and directory in other branches
Template file for Lightbox2 content inserted via the Insert module.
Available variables:
- $item: The complete item being inserted.
- $url: The URL to the image.
- $linkurl: The URL to the image being linked to.
- $class: A set of classes assigned to this image (if any).
- $image_preset_name: The ImageCache preset being used for the image.
- $link_preset_name: The ImageCache preset being used for the linked to image.
- $download_link: The download original link.
Note that ALT and Title fields should not be filled in here, instead they should use placeholders that will be updated through JavaScript when the image is inserted.
Available placeholders:
- __alt__: The ALT text, intended for use in the <img> tag.
- __title__: The Title text, intended for use in the <img> tag.
- __description__: A description of the image, sometimes used as a caption.
1 theme call to lightbox2-insert-image.tpl.php
- lightbox2_insert_content in ./
lightbox2.insert.inc - Implementation of hook_insert_content().
File
lightbox2-insert-image.tpl.phpView source
<?php
/**
* @file
* Template file for Lightbox2 content inserted via the Insert module.
*
* Available variables:
* - $item: The complete item being inserted.
* - $url: The URL to the image.
* - $linkurl: The URL to the image being linked to.
* - $class: A set of classes assigned to this image (if any).
* - $image_preset_name: The ImageCache preset being used for the image.
* - $link_preset_name: The ImageCache preset being used for the linked to image.
* - $download_link: The download original link.
*
* Note that ALT and Title fields should not be filled in here, instead they
* should use placeholders that will be updated through JavaScript when the
* image is inserted.
*
* Available placeholders:
* - __alt__: The ALT text, intended for use in the <img> tag.
* - __title__: The Title text, intended for use in the <img> tag.
* - __description__: A description of the image, sometimes used as a caption.
*/
?>
<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;
print $class ? ' ' . $class : '';
?>" /></a>