You are here

widget.tpl.php in Vote Up/Down 6.3

widget.tpl.php

Plain widget theme for Vote Up/Down

File

widgets/plain/widget.tpl.php
View source
<?php

/**
 * @file
 * widget.tpl.php
 *
 * Plain widget theme for Vote Up/Down
 */
if ($show_links) {
  ?>
  <div class="vud-widget vud-widget-plain" id="<?php

  print $id;
  ?>">
    <?php

  if ($show_up_as_link) {
    ?>
      <a href="<?php

    print $link_up;
    ?>" rel="nofollow" class="<?php

    print $link_class_up;
    ?>">
    <?php

  }
  ?>
        <span class="<?php

  print $class_up;
  ?>" title="<?php

  print t('Vote up!');
  ?>"></span>
        <div class="element-invisible"><?php

  print t('Vote up!');
  ?></div>
    <?php

  if ($show_up_as_link) {
    ?>
      </a>
    <?php

  }
  ?>
    <?php

  if ($show_down_as_link) {
    ?>
      <a href="<?php

    print $link_down;
    ?>" rel="nofollow" class="<?php

    print $link_class_down;
    ?>">
    <?php

  }
  ?>
        <span class="<?php

  print $class_down;
  ?>" title="<?php

  print t('Vote down!');
  ?>"></span>
        <div class="element-invisible"><?php

  print t('Vote down!');
  ?></div>
    <?php

  if ($show_down_as_link) {
    ?>
      </a>
    <?php

  }
  ?>
    <?php

  if ($show_reset) {
    ?>
      <a href="<?php

    print $link_reset;
    ?>" rel="nofollow" class="<?php

    print $link_class_reset;
    ?>" title="<?php

    print $reset_long_text;
    ?>">
        <div class="<?php

    print $class_reset;
    ?>">
          <?php

    print $reset_short_text;
    ?>
        </div>
      </a>
    <?php

  }
  ?>
  </div>
<?php

}