image-hotspots-data.tpl.php in Image Hotspots 7.2
Default theme implementation to image hotspot data.
Available variables:
- $x1, $x2, $y1, $y2: hotspot coordinates.
- $title: title.
- $description: description.
- $linkable: true/false.
- $link: link.
1 theme call to image-hotspots-data.tpl.php
- image_hotspots_process_form_element in ./
image_hotspots.module - After build function to process the hotspot widget on forms.
File
templates/image-hotspots-data.tpl.phpView source
<?php
/**
* @file
* Default theme implementation to image hotspot data.
*
* Available variables:
* - $x1, $x2, $y1, $y2: hotspot coordinates.
* - $title: title.
* - $description: description.
* - $linkable: true/false.
* - $link: link.
*/
?>
<div class="image-hotspot-data-item" x1="<?php
echo $x1;
?>" x2="<?php
echo $x2;
?>" y1="<?php
echo $y1;
?>" y2="<?php
echo $y2;
?>">
<div class="img-hotspot-data-title"><?php
echo $title;
?></div>
<div class="img-hotspot-data-wrapper">
<label><?php
echo t('Title');
?></label>
<input class="img-hotspot-title" value="<?php
echo $title;
?>" />
<label><?php
echo t('Description');
?></label>
<input class="img-hotspot-descr" value="<?php
echo $description;
?>" />
<?php
if ($linkable) {
?>
<label><?php
echo t('Link');
?></label>
<input class="img-hotspot-link" value="<?php
echo $link;
?>" />
<?php
}
?>
<button class="img-hotspot-save"><?php
echo t('Save');
?></button>
<button class="img-hotspot-remove"><?php
echo t('Remove');
?></button>
</div>
</div>