/** * Return the HTML code the div containing the voter tool * If the user has already voted, then a message appears * * @param BaseObject $object Propel object instance to vote * @param string $domid unique css identifier for the block (div) containing the voter tool * @param array $options Array of HTML options to apply on the HTML list * @return string **/ function depp_voting_block($object, $domid = 'depp-voter-block', $options = array()) { return content_tag('div', depp_voter($object, $domid, '', $options), array('id' => $domid)); }
/** * Return the HTML code the div containing the voter tool * If the user has already voted, then a message appears * * @param BaseObject $object Propel object instance to vote * @param string $domid unique css identifier for the block (div) containing the voter tool * @param array $options Array of HTML options to apply on the HTML list * @return string **/ function depp_voting_block($object, $domid = 'depp-voter-block', $options = array()) { $response->addJavascript('prototype.js'); return content_tag('div', depp_voter($object, $domid, '', $options), array('id' => $domid)); }
<?php echo use_helper('deppVoting'); ?> <?php echo depp_voter($object, $domid, $message);