Beruflich Dokumente
Kultur Dokumente
php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
title=\"".JTEXT::_('PLG_CONTENT_EXTRAVOTE_RATING_'.($j*10).'_OUT_OF_5')."\" class=\"ev".($j*10)."-stars\">1</a></span>";
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
title=\"".JTEXT::_('PLG_CONTENT_EXTRAVOTE_RATING_'.($j*10).'_OUT_OF_5')."\" class=\"ev".($j*10)."-stars\">1</a></span>";
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
title=\"".JTEXT::_('PLG_CONTENT_EXTRAVOTE_RATING_'.($j*10).'_OUT_OF_5')."\" class=\"ev".($j*10)."-stars\">1</a></span>";
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
title=\"".JTEXT::_('PLG_CONTENT_EXTRAVOTE_RATING_'.($j*10).'_OUT_OF_5')."\" class=\"ev".($j*10)."-stars\">1</a></span>";
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
title=\"".JTEXT::_('PLG_CONTENT_EXTRAVOTE_RATING_'.($j*10).'_OUT_OF_5')."\" class=\"ev".($j*10)."-stars\">1</a></span>";
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
title=\"".JTEXT::_('PLG_CONTENT_EXTRAVOTE_RATING_'.($j*10).'_OUT_OF_5')."\" class=\"ev".($j*10)."-stars\">1</a></span>";
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
}
<?php
/*------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Websites: http://www.joomlahill.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
protected $article_id;
parent::__construct($subject, $config);
$this->loadLanguage();
$this->view = JRequest::getCmd('view');
$this->article_id = $article->id;
$this->ExtraVotePrepare($article, $params);
if ( $this->params->get('display') == 0 )
$article->xid = 0;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
$rating_count=$rating_sum=0;
$html=$ip='';
if ($params->get('show_vote'))
$db
= JFactory::getDBO();
$db->setQuery($query);
$vote=$db->loadObject();
if($vote) {
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);
$ip = $vote->lastip;
return $html;
$document = JFactory::getDocument();
if ( $this->params->get('css', 1) ) :
$document>addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
endif;
$document>addScript(JURI::root(true).'/plugins/content/extravote/assets/extravote.js');
global $plgContentExtraVoteAddScript;
$show_counter = $this->params->get('show_counter',1);
$show_rating = $this->params->get('show_rating',1);
$show_unrated = $this->params->get('show_unrated',1);
$initial_hide = $this->params->get('initial_hide',0);
$currip = $_SERVER['REMOTE_ADDR'];
$add_snippets = 0;
$rating = 0;
if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
var extravote_text=Array('".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOADING')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_THANKS')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_LOGIN')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_RATED')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE')."','".
JTEXT::_('PLG_CONTENT_EXTRAVOTE_LABEL_RATING').
"');
");
$plgContentExtraVoteAddScript = 1;
if( $rating_count!=0 ) {
$add_snippets = $this->params->get('snippets',0);
} elseif( $show_unrated == 0 ) {
$show_counter = -1;
$show_rating = -1;
$container = 'div';
$class
= 'size-'.$this->params->get('size', 1);
if( (int)$xid ) {
if ( $show_counter == 2 ) $show_counter = 0;
if ( $show_rating == 2 ) $show_rating = 0;
$container = 'span';
$add_snippets = 0;
} else {
if ( $show_counter == 3 ) $show_counter = 0;
if ( $show_rating == 3 ) $show_rating = 0;
$spans = '';
$spans .= "
endfor;
// IMPROVE MICRO DATA
// $arti = JTable::getInstance('content');
// $arti->load($cid);
// $titelo = $arti->get('title');
// END
$html = "
<".$container." class=\"".$class."\">
":"
.$spans."
</span>
if ( $show_rating > 0 ) {
if ( $rating_mode == 0 ) {
} else {
$rating = number_format($rating,2);
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING',
$rating);
if ( $show_counter > 0 ) {
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES',
$rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE',
$rating_count);
$html .="</span>";
$html .="
</".$container.">";
return $html;
if (isset($this->article_id)) {
if ( $extra != 0 ) {
$regex = "/{extravote\s*([0-9]+)}/i";
if ( $extra == 2 ) {
} else {
//
$this->article_id = $article->id;
if ( $main != 0 ) {
$strposIntro = isset($article->introtext)?stripos($article->introtext,
'mainvote'):false;
$regex = "/{mainvote\s*([0-9]*)}/i";
} else {
$this->article_id = $article->id;
} elseif( $strposIntro ) {
if ( $this->params->get('display') == 1 ) {
$article->xid = 0;
if ( $this->view == 'article' ) {
} elseif ( $this->params->get('hide') == 0 ) {
$db
= JFactory::getDBO();
$cid = 0;
$xid = 0;
if (isset($matches[1])) {
if(stripos($matches[0], 'extravote')) {
$xid = (int)$matches[1];
} else {
$cid = (int)$matches[1];
$cid = $this->article_id;
$rating_sum = 0;
$rating_count = 0;
if ( $xid == 0 ) :
global $extravote_mainvote;
$extravote_mainvote .= 'x';
$xid = $extravote_mainvote;
$table =($this->params>get('table',1)==1?'#__content_extravote':'#__content_rating');
else :
endif;
$vote = $db->loadObject();
if($vote) {
if($vote->rating_count!=0)
$rating_sum = $vote->rating_sum;
$rating_count = intval($vote->rating_count);