public function __construct($sSystem, $iId, $iInit = 1) { parent::__construct($sSystem, $iId, $iInit); $this->_sJsObjName = 'oVote' . bx_gen_method_name($sSystem, array('_', '-')) . $iId; $this->_sStylePrefix = 'bx-vote'; $sHtmlId = str_replace(array('_', ' '), array('-', '-'), $sSystem) . '-' . $iId; $this->_aHtmlIds = array('main_stars' => 'bx-vote-stars-' . $sHtmlId, 'main_likes' => 'bx-vote-likes-' . $sHtmlId, 'counter' => 'bx-vote-counter-' . $sHtmlId, 'by_popup' => 'bx-vote-by-popup-' . $sHtmlId); $this->_aElementDefaults = array('stars' => array('show_do_vote_legend' => false, 'show_counter' => true), 'likes' => array('show_do_vote_as_button' => false, 'show_do_vote_as_button_small' => false, 'show_do_vote_icon' => true, 'show_do_vote_label' => false, 'show_counter' => true)); $this->_sTmplNameCounter = 'vote_counter.html'; $this->_sTmplNameDoVoteLikes = 'vote_do_vote_likes.html'; $this->_sTmplNameDoVoteStars = 'vote_do_vote_stars.html'; }