You are here

feedback_simple.tpl.php in Feedback Simple 7

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

Template file.

File

feedback_simple.tpl.php
View source
<?php

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

  print $link;
  ?>'
    target='<?php

  print $target;
  ?>'
    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

}