download-file-insert-link.tpl.php in DownloadFile 6
Template file for direct download links inserted via the Insert module.
Available variables:
- $item: The complete item being inserted.
- $icon: The file type icon to the item (if any).
- $url: The URL to the item.
- $class: A set of classes assigned to this item (if any).
- $title: The title of the item being inserted (if any).
- $name: The name of the item being inserted.
4 theme calls to download-file-insert-link.tpl.php
- theme_download_file_insert_direct_download_icon_item in ./
download_file.inc - Theme function for the 'direct_download_icon' file via the Insert module.
- theme_download_file_insert_direct_download_icon_item_accessible in ./
download_file.inc - Theme function for the 'direct_download_accessible_icon' file via the Insert module.
- theme_download_file_insert_direct_download_item in ./
download_file.inc - Theme function for the 'direct_download' file via the Insert module.
- theme_download_file_insert_direct_download_item_accessible in ./
download_file.inc - Theme function for the 'direct_download_accessible' file via the Insert module.
File
download-file-insert-link.tpl.phpView source
<?php
/**
* @file
* Template file for direct download links inserted via the Insert module.
*
* Available variables:
* - $item: The complete item being inserted.
* - $icon: The file type icon to the item (if any).
* - $url: The URL to the item.
* - $class: A set of classes assigned to this item (if any).
* - $title: The title of the item being inserted (if any).
* - $name: The name of the item being inserted.
*/
if ($icon) {
print $icon;
}
?>
<a href="<?php
print $url;
?>"<?php
print $class ? ' class="' . $class . '"' : '';
print $title ? ' title="' . $title . '"' : '';
?>><?php
print $name;
?></a>