You are here

feedback_simple.tpl.php in Feedback Simple 6

Same filename and directory in other branches
  1. 7 feedback_simple.tpl.php

Template file.

File

feedback_simple.tpl.php
View source
<?php

/**
 * @file
 * Template file.
 *
 * @param $link: link href.
 * @param $align: left or right.
 * @param $class: array of classes to apply to anchor tag.
 * @param $top: distance from the top; include unit.
 * @param $alt: alt text.
 * @param $image: image href.
 * @param $height: image height in pixels.
 * @param $width: image width in pixels.
 * @param $enabled: true or false.
 */
if ($enabled) {
  ?>
<div id='feedback_simple'>
  <a
    href='<?php

  print $link;
  ?>'
    class='feedback_simple-<?php

  print $align;
  ?> <?php

  print implode(' ', $class);
  ?>'
    style='top: <?php

  print $top;
  ?>; height: <?php

  print $height;
  ?>px; width: <?php

  print $width;
  ?>px;'>
      <img
        alt='<?php

  print $alt;
  ?>'
        src='<?php

  print $image;
  ?>'
        height='<?php

  print $height;
  ?>'
        width='<?php

  print $width;
  ?>' />
  </a>
</div>
<?php

}