insert-link.tpl.php 852 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * @file
  4. * Template file for generic links inserted via the Insert module.
  5. *
  6. * Available variables:
  7. * - $item: The complete item being inserted.
  8. * - $url: The URL to the item.
  9. * - $class: A set of classes assigned to this item (if any).
  10. * - $name: The file name of the item being inserted.
  11. *
  12. * Modules may provide placeholders that will be replaced by user-entered values
  13. * when the item is inserted into a textarea. Generic links only support one
  14. * placeholder.
  15. *
  16. * Available placeholders:
  17. * - __description__: A description of the item.
  18. * - __filename__: The file name.
  19. * - __description_or_filename__: A description of the item if available,
  20. * otherwise use the file name.
  21. */
  22. ?>
  23. <a href="<?php print $url ?>"<?php print $class ? ' class="' . $class . '"' : '' ?> title="__description__">__description_or_filename__</a>