Makes an intern game with subscrimers of your blog/site. Make pools and give to theyrs a value: users can vote in it. When you decide, close the pool.
Yes, just put this lines on yout template:
<?php if (function_exists('bolao_widget')) bolao_widget(); ?>
Of course. You can pass an array of options to your widget function. By default, we have this options:
array (
'title' => 'Bolao',
'title_start' => '<h2 class="bolao_title">',
'title_end' => '</h2>',
'question_start' => '<li class="bolao_question"><h3>',
'question_end' => '</h3></li>',
'options_start' => '<ul>',
'opt_start' => '<li class="bolao_option {EVEN-ODD}">',
'opt_end' => '</li>',
'options_end' => '</ul>',
'submit_start' => '<li class="bolao_submit">',
'submit_end' => '</li>',
'print' => true,
)
So you can pass an array with any of these options, like this.
bolao_widget(array (
'title' => 'Make your Choice',
'question_start' => '<h3>',
'question_end' => '</h3>',
'options_start' => '<div>',
'opt_start' => '<li>',
'opt_end' => '</li>',
'options_end' => '</div>',
));
And this generates this widget:
<h2 class="bolao_title">Make your Choice</h2>
<form action="" method="get" class="bolao_form">
<input type="hidden" name="handle" value="handle" />
<input type="hidden" name="details " value="details " />
<div>
<h3>Whats the color of the white horse of Napolian?</h3>
<li>
<label for="bolao_option_4873447a33954">
<input type="radio" name="item" value="3" id="bolao_option_4873447a33954" />
Black
</label>
</li>
<li>
<label for="bolao_option_4873447a33964">
<input type="radio" name="item" value="4" id="bolao_option_4873447a33964" />
White
</label>
</li>
<li>
<label for="bolao_option_4873447a3396c">
<input type="radio" name="item" value="5" id="bolao_option_4873447a3396c" />
Gray
</label>
</li>
<li>
<label for="bolao_option_4873447a33974">
<input type="radio" name="item" value="6" id="bolao_option_4873447a33974" />
Purple
</label>
</li>
<li class="bolao_submit"><button type="submit" name="vote" value="Vote">Vote</button></li>
</div>
</form>
Requires: 2.5 or higher
Compatible up to: 2.5
Last Updated: 2008-8-1
Downloads: 2,528
Got something to say? Need help?