home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (lightbox2-insert-image.tpl.php)

This example Drupal source code file (lightbox2-insert-image.tpl.php) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords


The lightbox2-insert-image.tpl.php Drupal example source code

// $Id: lightbox2-insert-image.tpl.php,v 2010/09/22 10:16:30 snpower Exp $

 * @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 ?><?php print $class ? ' ' . $class : '' ?>" /></a>

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal lightbox2-insert-image.tpl.php source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.