feedback_simple.tpl.php 866 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @file
  4. * Template file.
  5. *
  6. * @param $link: link path.
  7. * @param $align: left or right.
  8. * @param $class: array of classes to apply to anchor tag.
  9. * @param $top: distance from the top; include unit.
  10. * @param $alt: alt text.
  11. * @param $image: image path.
  12. * @param $height: image height in pixels.
  13. * @param $width: image width in pixels.
  14. * @param $enabled: true or false.
  15. */
  16. ?>
  17. <?php if ($enabled): ?>
  18. <div id='feedback_simple'>
  19. <a
  20. href='<?php print $link ?>'
  21. class='feedback_simple-<?php print $align ?> <?php print implode(' ', $class) ?>'
  22. style='top: <?php print $top ?>; height: <?php print $height ?>px; width: <?php print $width ?>px;'>
  23. <img
  24. alt='<?php print $alt ?>'
  25. src='<?php print $image ?>'
  26. height='<?php print $height ?>'
  27. width='<?php print $width ?>' />
  28. </a>
  29. </div>
  30. <?php endif; ?>