diff sites/all/modules/insert/templates/insert-icon-link.tpl.php @ 0:ff03f76ab3fe

initial version
author danieleb <danielebarchiesi@me.com>
date Wed, 21 Aug 2013 18:51:11 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/insert/templates/insert-icon-link.tpl.php	Wed Aug 21 18:51:11 2013 +0100
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * @file
+ * Template file for generic links inserted via the Insert module.
+ *
+ * Available variables:
+ * - $item: The complete item being inserted.
+ * - $url: The URL to the item.
+ * - $class: A set of classes assigned to this item (if any).
+ * - $name: The file name of the item being inserted.
+ *
+ * Modules may provide placeholders that will be replaced by user-entered values
+ * when the item is inserted into a textarea. Generic links only support one
+ * placeholder.
+ *
+ * Available placeholders:
+ * - __description__: A description of the item.
+ * - __filename__: The file name.
+ * - __description_or_filename__: A description of the item if available,
+ *   otherwise use the file name.
+ */
+?>
+<span class="file"><?php print $icon; ?> <a href="<?php print $url ?>"<?php print $class ? ' class="' . $class . '"' : '' ?> title="__description__">__description_or_filename__</a></span>
\ No newline at end of file