This template is devoid of any good semantics, lets look at this one for improvement.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jessebeach’s picture

What about just eliminating this template and running it through the standard block treatment? It just duplicates poll-results.tpl.php

chrispomeroy’s picture

Status: Active » Needs review
FileSize
1.05 KB

this patch removes this file.

for your convenience this file and the related "poll-results.tpl.php" are pasted below.

poll results tpl php

<?php

/**
 * @file
 * Default theme implementation to display the poll results in a block.
 *
 * Variables available:
 * - $title: The title of the poll.
 * - $results: The results of the poll.
 * - $votes: The total results in the poll.
 * - $links: Links in the poll.
 * - $nid: The nid of the poll
 * - $cancel_form: A form to cancel the user's vote, if allowed.
 * - $raw_links: The raw array of links.
 * - $vote: The choice number of the current user's vote.
 *
 * @see template_preprocess_poll_results()
 */
?>
<div class="poll">
  <?php print $results; ?>
  <div class="total">
    <?php print t('Total votes: @votes', array('@votes' => $votes)); ?>
  </div>
  <?php if (!empty($cancel_form)): ?>
    <?php print $cancel_form; ?>
  <?php endif; ?>
</div>

poll-results--block.tpl.php

<?php
/**
 * @file
 * Default theme implementation to display the poll results in a block.
 *
 * Variables available:
 * - $title: The title of the poll.
 * - $results: The results of the poll.
 * - $votes: The total results in the poll.
 * - $links: Links in the poll.
 * - $nid: The nid of the poll
 * - $cancel_form: A form to cancel the user's vote, if allowed.
 * - $raw_links: The raw array of links. Should be run through theme('links')
 *   if used.
 * - $vote: The choice number of the current user's vote.
 *
 * @see template_preprocess_poll_results()
 */
?>

<div class="poll">
  <div class="title"><?php print $title ?></div>
  <?php print $results ?>
  <div class="total">
    <?php print t('Total votes: @votes', array('@votes' => $votes)); ?>
  </div>
</div>
<div class="links"><?php print $links; ?></div>

Status: Needs review » Needs work

The last submitted patch, convert-poll-results--block.tpl_.php-1190172-2.patch, failed testing.

bleen’s picture

Status: Needs work » Closed (duplicate)

consolidating the poll issues here #1229442: Convert poll tpls and markup to HTML5