root / drupal7 / sites / all / modules / colorbox / colorbox-insert-image.tpl.php @ 5a4b9049
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | |||
3 | /**
|
||
4 | * @file
|
||
5 | * Template file for Colorbox 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 | * - $path: The URL to the image that Colorbox should open.
|
||
11 | * - $class: A set of classes assigned to this image (if any).
|
||
12 | * - $width: The width of the image (if known).
|
||
13 | * - $height: The height of the image (if known).
|
||
14 | * - $style_name: The Image style being used.
|
||
15 | * - $gallery_id: The ID of the Colorbox gallery.
|
||
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 | * - __filename__: The file name.
|
||
26 | * - __[token]_or_filename__: Any of the above tokens if available, otherwise
|
||
27 | * use the file's name. i.e. __title_or_filename__.
|
||
28 | */
|
||
29 | ?>
|
||
30 | <a href="<?php print $path; ?>" title="__title__" class="colorbox colorbox-insert-image" rel="<?php print $gallery_id; ?>"><img src="<?php print $url; ?>" <?php if ($width && $height): ?>width="<?php print $width; ?>" height="<?php print $height; ?>" <?php endif; ?>alt="__alt__" title="__title__" class="<?php print $class; ?>" /></a> |