Umstellung auf Contao 4 Bundle

This commit is contained in:
2018-02-14 08:30:39 +01:00
parent b922fe527c
commit b1d3d540bb
129 changed files with 812 additions and 423 deletions

14
src/CgoITRateItBundle.php Normal file
View File

@ -0,0 +1,14 @@
<?php
namespace cgoIT\rateit;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Configures the Contao aeo bundle.
*
* @author Carsten Götzinger
*/
class CgoITRateItBundle extends Bundle
{
}

View File

@ -0,0 +1,28 @@
<?php
namespace cgoIT\rateit;
use Contao\CoreBundle\ContaoCoreBundle;
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
/**
* Plugin for the Contao Manager.
*
* @author Carsten Götzinger
*/
class ContaoManagerPlugin implements BundlePluginInterface
{
/**
* {@inheritdoc}
*/
public function getBundles(ParserInterface $parser)
{
return [
BundleConfig::create(CgoITRateItBundle::class)
->setLoadAfter([ContaoCoreBundle::class])
->setReplace(['rate-it']),
];
}
}

View File

@ -0,0 +1,113 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
/**
* Class DcaHelper
*/
class DcaHelper extends \Backend
{
/**
* Constructor
*/
public function __construct() {
parent::__construct();
}
/**
* Return all navigation templates as array
* @param DataContainer
* @return array
*/
public function getRateItTemplates(\DataContainer $dc)
{
$intPid = $dc->activeRecord->pid;
if ($this->Input->get('act') == 'overrideAll')
{
$intPid = $this->Input->get('id');
}
return $this->getTemplateGroup('rateit_', $intPid);
}
/**
* Anlegen eines Datensatzes in der Tabelle tl_rateit_items, falls dieser noch nicht exisitiert.
* @param mixed
* @param object
* @return string
*/
public function insertOrUpdateRatingKey(\DC_Table $dc, $type, $ratingTitle) {
if ($dc->activeRecord->rateit_active || $dc->activeRecord->addRating) {
$actRecord = $this->Database->prepare("SELECT * FROM tl_rateit_items WHERE rkey=? and typ=?")
->execute($dc->activeRecord->id, $type)
->fetchAssoc();
if (!is_array($actRecord)) {
$arrSet = array('rkey' => $dc->activeRecord->id,
'tstamp' => time(),
'typ' => $type,
'createdat' => time(),
'title'=> $ratingTitle,
'active' => '1'
);
$insertRecord = $this->Database->prepare("INSERT INTO tl_rateit_items %s")
->set($arrSet)
->execute()
->insertId;
} else {
$this->Database->prepare("UPDATE tl_rateit_items SET active='1', title=? WHERE rkey=? and typ=?")
->execute($ratingTitle, $dc->activeRecord->id, $type)
->updatedId;
}
} else {
$this->Database->prepare("UPDATE tl_rateit_items SET active='' WHERE rkey=? and typ=?")
->execute($dc->activeRecord->id, $type)
->updatedId;
}
return true;
}
/**
* Löschen eines Datensatzes aus der Tabelle tl_rateit_items.
* @param mixed
* @param object
* @return string
*/
public function deleteRatingKey(\DC_Table $dc, $type)
{
$this->Database->prepare("DELETE FROM tl_rateit_items WHERE rkey=? and typ=?")
->execute($dc->activeRecord->id, $type);
return true;
}
}
?>

View File

@ -0,0 +1,181 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
use cgoIT\rateit\RateItFrontend;
define(RETURN_AJAX_HEADER, 'Content-Type: text/html');
class RateIt extends \Frontend {
var $allowDuplicates = false;
var $rateItFrontend;
/**
* Initialize the controller
*/
public function __construct() {
parent::__construct();
$this->rateItFrontend = new RateItFrontend();
$this->loadLanguageFile('default');
$this->allowDuplicates = $GLOBALS['TL_CONFIG']['rating_allow_duplicate_ratings'];
$this->allowDuplicatesForMembers = $GLOBALS['TL_CONFIG']['rating_allow_duplicate_ratings_for_members'];
}
/**
* doVote
*
* This is the function in charge of handling a vote and saving it to the
* database.
*
* NOTE: This method is meant to be called as part of an AJAX request. As
* such, it unitlizes the die() function to display its errors. THIS
* WOULD BE A VERY BAD FUNCTION TO CALL FROM WITHIN ANOTHER PAGE.
*
* @param integer id - The id of key to register a rating for.
* @param integer percent - The rating in percentages.
*/
function doVote() {
if ($this->Input->get('do') == 'rateit') {
$ip = $_SERVER['REMOTE_ADDR'];
$rkey = $this->Input->post('id');
$percent = $this->Input->post('vote');
$type = $this->Input->post('type');
//Make sure that the ratable ID is a number and not something crazy.
if (strstr($rkey, '|')) {
$arrRkey = explode('|', $rkey);
foreach ($arrRkey as $key) {
if (!is_numeric($key)) {
header(RETURN_AJAX_HEADER);
echo $GLOBALS['TL_LANG']['rateit']['error']['invalid_rating'];
exit;
}
$id = $rkey;
}
} else {
if (is_numeric($rkey)) {
$id = $rkey;
} else {
header(RETURN_AJAX_HEADER);
echo $GLOBALS['TL_LANG']['rateit']['error']['invalid_rating'];
exit;
}
}
//Make sure the percent is a number and under 100.
if (is_numeric($percent) && $percent < 101) {
$rating = $percent;
} else {
header(RETURN_AJAX_HEADER);
echo $GLOBALS['TL_LANG']['rateit']['error']['invalid_rating'];
exit;
}
//Make sure that the ratable type is 'page' or 'ce' or 'module'
if (!($type === 'page' || $type === 'article' || $type === 'ce' || $type === 'module' || $type === 'news' || $type === 'faq' || $type === 'galpic' || $type === 'news4ward')) {
header(RETURN_AJAX_HEADER);
echo $GLOBALS['TL_LANG']['rateit']['error']['invalid_type'];
exit;
}
$strHash = sha1(session_id() . (!$GLOBALS['TL_CONFIG']['disableIpCheck'] ? \Environment::get('ip') : '') . 'FE_USER_AUTH');
// FrontendUser auslesen
if (FE_USER_LOGGED_IN) {
$objUser = $this->Database->prepare("SELECT pid FROM tl_session WHERE hash=?")
->limit(1)
->execute($strHash);
if ($objUser->numRows) {
$userId = $objUser->pid;
}
}
$ratableKeyId = $this->Database->prepare('SELECT id FROM tl_rateit_items WHERE rkey=? and typ=?')
->execute($id, $type)
->fetchAssoc();
$canVote = false;
if (isset($userId)) {
$countUser = $this->Database->prepare('SELECT * FROM tl_rateit_ratings WHERE pid=? and memberid=?')
->execute($ratableKeyId['id'], $userId)
->count();
}
$countIp = $this->Database->prepare('SELECT * FROM tl_rateit_ratings WHERE pid=? and ip_address=?')
->execute($ratableKeyId['id'], $ip)
->count();
// Die with an error if the insert fails (duplicate IP or duplicate member id for a vote).
if ((!$this->allowDuplicatesForMembers && (isset($countUser) ? $countUser == 0 : false)) || ($this->allowDuplicatesForMembers && isset($userId))) {
// Insert the data.
$arrSet = array('pid' => $ratableKeyId['id'],
'tstamp' => time(),
'ip_address' => $ip,
'memberid' => isset($userId) ? $userId : null,
'rating' => $rating,
'createdat'=> time()
);
$this->Database->prepare('INSERT INTO tl_rateit_ratings %s')
->set($arrSet)
->execute();
} elseif (!isset($countUser) && ((!$this->allowDuplicates && $countIp == 0) || $this->allowDuplicates)) {
// Insert the data.
$arrSet = array('pid' => $ratableKeyId['id'],
'tstamp' => time(),
'ip_address' => $ip,
'memberid' => isset($userId) ? $userId : null,
'rating' => $rating,
'createdat'=> time()
);
$this->Database->prepare('INSERT INTO tl_rateit_ratings %s')
->set($arrSet)
->execute();
} else {
header(RETURN_AJAX_HEADER);
echo $GLOBALS['TL_LANG']['rateit']['error']['duplicate_vote'];
exit;
}
$rating = $this->rateItFrontend->loadRating($id, $type);
header(RETURN_AJAX_HEADER);
echo $this->rateItFrontend->getStarMessage($rating);
exit;
}
}
}
?>

View File

@ -0,0 +1,274 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
class RateItArticle extends RateItFrontend {
/**
* Initialize the controller
*/
public function __construct() {
parent::__construct();
}
public function parseTemplateRateIt($objTemplate) {
if ($objTemplate->type == 'article') {
$objTemplate = $this->doArticle($objTemplate);
} else if ($objTemplate->type == 'articleList') {
$objTemplate = $this->doArticleList($objTemplate);
} else if ($objTemplate->type == 'gallery') {
$objTemplate = $this->doGallery($objTemplate);
}
return $objTemplate;
}
private function doArticle($objTemplate) {
$arrArticle = $this->Database->prepare('SELECT * FROM tl_article WHERE ID=?')
->limit(1)
->execute($objTemplate->id)
->fetchAssoc();
if ($arrArticle['addRating']) {
if ($objTemplate->multiMode && $objTemplate->showTeaser) {
$objTemplate->setName('mod_'.$arrArticle['rateit_template'].'_teaser');
} else {
$objTemplate->setName($arrArticle['rateit_template']);
}
$ratingId = $arrArticle['id'];
$rating = $this->loadRating($ratingId, 'article');
$stars = !$rating ? 0 : $this->percentToStars($rating['rating']);
$percent = round($rating['rating'], 0)."%";
$objTemplate->descriptionId = 'rateItRating-'.$ratingId.'-description';
$objTemplate->description = $this->getStarMessage($rating);
$objTemplate->rateItID = 'rateItRating-'.$ratingId.'-article-'.$stars.'_'.$this->intStars;
$objTemplate->rateit_class = 'rateItRating';
$objTemplate->itemreviewed = $rating['title'];
$objTemplate->actRating = $this->percentToStars($rating['rating']);
$objTemplate->maxRating = $this->intStars;
$objTemplate->votes = $rating[totalRatings];
if ($this->strTextPosition == "before") {
$objTemplate->showBefore = true;
}
else if ($this->strTextPosition == "after") {
$objTemplate->showAfter = true;
}
if ($arrArticle['rateit_position'] == 'before') {
$objTemplate->rateit_rating_before = true;
} else if ($arrArticle['rateit_position'] == 'after') {
$objTemplate->rateit_rating_after = true;
}
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/star.min.css||static';
}
}
return $objTemplate;
}
private function doArticleList($objTemplate) {
if ($objTemplate->rateit_active) {
$bolTemplateFixed = false;
$arrArticles = array();
foreach ($objTemplate->articles as $article) {
$arrArticle = $this->Database->prepare('SELECT * FROM tl_article WHERE ID=?')
->limit(1)
->execute($article['articleId'])
->fetchAssoc();
if ($arrArticle['addRating']) {
if (!$bolTemplateFixed) {
$objTemplate->setName($objTemplate->getName().'_rateit');
$bolTemplateFixed = true;
}
$ratingId = $arrArticle['id'];
$rating = $this->loadRating($ratingId, 'article');
$stars = !$rating ? 0 : $this->percentToStars($rating['rating']);
$percent = round($rating['rating'], 0)."%";
$article['descriptionId'] = 'rateItRating-'.$ratingId.'-description';
$article['description'] = $this->getStarMessage($rating);
$article['rateItID'] = 'rateItRating-'.$ratingId.'-article-'.$stars.'_'.$this->intStars;
$article['rateit_class'] = 'rateItRating';
$article['itemreviewed'] = $rating['title'];
$article['actRating'] = $this->percentToStars($rating['rating']);
$article['maxRating'] = $this->intStars;
$article['votes'] = $rating[totalRatings];
if ($this->strTextPosition == "before") {
$article['showBefore'] = true;
}
else if ($this->strTextPosition == "after") {
$article['showAfter'] = true;
}
if ($arrArticle['rateit_position'] == 'before') {
$article['rateit_rating_before'] = true;
} else if ($arrArticle['rateit_position'] == 'after') {
$article['rateit_rating_after'] = true;
}
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/star.min.css||static';
}
}
$arrArticles[] = $article;
}
$objTemplate->articles = $arrArticles;
}
return $objTemplate;
}
private function doGallery($objTemplate) {
$arrGallery = $this->Database->prepare('SELECT * FROM tl_content WHERE ID=?')
->limit(1)
->execute($objTemplate->id)
->fetchAssoc();
if ($arrGallery['rateit_active']) {
$arrRating = array();
if (version_compare(VERSION, '3.2', '>=')) {
$objFiles = \FilesModel::findMultipleByUuids(deserialize($arrGallery['multiSRC']));
} else {
$objFiles = \FilesModel::findMultipleByIds(deserialize($arrGallery['multiSRC']));
}
if ($objFiles !== null) {
// Get all images
while ($objFiles->next()) {
// Continue if the files has been processed or does not exist
if (isset($arrRating[$objFiles->path]) || !file_exists(TL_ROOT . '/' . $objFiles->path)) {
continue;
}
// Single files
if ($objFiles->type == 'file') {
$objFile = new \File($objFiles->path, true);
if (!$objFile->isGdImage) {
continue;
}
$this->addRatingForImage($arrRating, $arrGallery['id'], $objFiles->id, $objFile->path);
}
// Folders
else {
if (version_compare(VERSION, '3.2', '>=')) {
$objSubfiles = \FilesModel::findByPid($objFiles->uuid);
} else {
$objSubfiles = \FilesModel::findByPid($objFiles->id);
}
if ($objSubfiles === null) {
continue;
}
while ($objSubfiles->next()) {
// Skip subfolders
if ($objSubfiles->type == 'folder') {
continue;
}
$objFile = new \File($objSubfiles->path, true);
if (!$objFile->isGdImage) {
continue;
}
$this->addRatingForImage($arrRating, $arrGallery['id'], $objSubfiles->id, $objSubfiles->path);
}
}
}
}
$objTemplate->arrRating = $arrRating;
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/star.min.css||static';
}
}
return $objTemplate;
}
private function addRatingForImage(&$arrRating, $galleryId, $picId, $picPath) {
$ratingId = $galleryId.'|'.$picId;
$rating = $this->loadRating($ratingId, 'galpic');
$stars = !$rating ? 0 : $this->percentToStars($rating['rating']);
$percent = round($rating['rating'], 0)."%";
$arrRating[$picPath] = array();
$arrRating[$picPath]['descriptionId'] = 'rateItRating-'.$ratingId.'-description';
$arrRating[$picPath]['description'] = $this->getStarMessage($rating);
$arrRating[$picPath]['rateItID'] = 'rateItRating-'.$ratingId.'-galpic-'.$stars.'_'.$this->intStars;
$arrRating[$picPath]['rateit_class'] = 'rateItRating';
$arrRating[$picPath]['itemreviewed'] = $rating['title'];
$arrRating[$picPath]['actRating'] = $this->percentToStars($rating['rating']);
$arrRating[$picPath]['maxRating'] = $this->intStars;
$arrRating[$picPath]['votes'] = $rating[totalRatings];
if ($this->strTextPosition == "before") {
$arrRating[$picPath]['showBefore'] = true;
}
else if ($this->strTextPosition == "after") {
$arrRating[$picPath]['showAfter'] = true;
}
}
}
?>

View File

@ -0,0 +1,110 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
class RateItBackend
{
const path = 'bundles/cgoitrateit/';
/**
* Get a css file.
* @param string $file The basename if the file (without extension).
* @return string The file path.
*/
public static function css($file)
{
return self::path.'css/'. $file.'.css';
} // file
/**
* Get a js file.
* @param string $file The basename if the file (without extension).
* @return string The file path.
*/
public static function js($file)
{
return self::path.'js/'. $file.'.js';
} // file
/**
* Get image url from the theme.
* @param string $file The basename if the image (without extension).
* @return string The image path.
*/
public static function image($file)
{
$url = self::path.'images/';
if (is_file(TL_ROOT.'/'.$url.$file.'.png')) return $url.$file.'.png';
if (is_file(TL_ROOT.'/'.$url.$file.'.gif')) return $url.$file.'.gif';
return $url.'default.png';
} // image
/**
* Create a 'img' tag from theme icons.
* @param string $file The basename if the image (without extension).
* @param string $alt The 'alt' text.
* @param string $attributes Additional tag attributes.
* @return string The html code.
*/
public static function createImage($file, $alt='', $attributes='')
{
if ($alt=='') $alt = 'icon';
$img = self::image($file);
$size = getimagesize(TL_ROOT.'/'.$img);
return '<img'.((substr($img, -4) == '.png') ? ' class="pngfix"' : '').' src="'.$img.'" '.$size[3].' alt="'.specialchars($alt).'"'.(($attributes != '') ? ' '.$attributes : '').'>';
} // createImage
/**
* Create a list button (link button)
* @param string $file The basename if the image (without extension).
* @param string $link The URL of the link to create.
* @param string $text The alt/title text.
* @param string $confirm Optional confirmation text before redirecting to the link.
* @param boolean $popup Open the target in a new window.
* @return string The html code.
*/
public function createListButton($file, $link, $text, $confirm='', $popup=false)
{
$target = $popup ? ' target="_blank"' : '';
$onclick = ($confirm!='') ? ' onclick="if(!confirm(\''.$confirm.'\'))return false"' : '';
return '<a href="'.$link.'" title="'.$text.'"'.$target.$onclick.'>'.$this->createImage($file,$text).'</a>';
} // createListButton
public function createMainButton($file, $link, $text, $confirm='')
{
$onclick = ($confirm=='')
? ''
: ' onclick="if(!confirm(\''.$confirm.'\'))return false"';
return '<a href="'.$link.'" title="'.$text.'"'.$onclick.'>'.$this->createImage($file,$text).' '.$text.'</a>';
} // createMainButton
} // class RateItBackend
?>

View File

@ -0,0 +1,797 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
class rateitBackendModule extends \BackendModule
{
protected $strTemplate;
protected $actions = array();
protected $rateit;
protected $tl_root;
protected $tl_files;
protected $languages;
private $compiler;
private $action = '';
private $parameter = '';
private $arrExportHeader;
private $arrExportHeaderDetails;
/**
* Anzahl der Herzen/Sterne
* @var int
*/
protected $intStars = 5;
protected $label;
protected $labels;
/**
* Initialize the controller
*/
public function __construct($objElement=array()) {
parent::__construct($objElement);
$this->label = $GLOBALS['TL_CONFIG']['rating_type'] == 'hearts' ? $GLOBALS['TL_LANG']['rateit']['heart'] : $GLOBALS['TL_LANG']['rateit']['star'];
$this->labels = $GLOBALS['TL_CONFIG']['rating_type'] == 'hearts' ? $GLOBALS['TL_LANG']['rateit']['hearts'] : $GLOBALS['TL_LANG']['rateit']['stars'];
$this->actions = array(
// act[0] strTemplate compiler
array('', 'rateitbe_ratinglist', 'listRatings' ),
array('reset_ratings', '', 'resetRatings' ),
array('view', 'rateitbe_ratingview', 'viewRating' ),
array('export', '', 'exportRatings' ),
array('exportDetails', '', 'exportRatingDetails' ),
);
$this->loadLanguageFile('rateit_backend');
$this->arrExportHeader = &$GLOBALS['TL_LANG']['tl_rateit']['xls_headers'];
$this->arrExportHeaderDetails = &$GLOBALS['TL_LANG']['tl_rateit']['xls_headers_detail'];
}
/**
* Generate module:
* - Display a wildcard in the back end
* - Select the template and compiler in the front end
* @return string
*/
public function generate()
{
$this->rateit = new \stdClass();
$rateit = &$this->rateit;
$rateit->username = $this->BackendUser->username;
$rateit->isadmin = $this->BackendUser->isAdmin;
$this->strTemplate = $this->actions[0][1];
$this->compiler = $this->actions[0][2];
$act = \Input::get('act');
if (!$act) $act = \Input::post('act');
foreach ($this->actions as $action) {
if ($act == $action[0]) {
$this->parameter = $act;
$this->action = $action[0];
$this->strTemplate = $action[1];
$this->compiler = $action[2];
break;
}
}
$stars = intval($GLOBALS['TL_CONFIG']['rating_count']);
if ($stars > 0) {
$this->intStars = $stars;
}
return str_replace(array('{{', '}}'), array('[{]', '[}]'), parent::generate());
} // generate
/**
* Compile module: common initializations and forwarding to distinct function compiler
*/
protected function compile()
{
// hide module?
$compiler = $this->compiler;
if ($compiler=='hide') return;
// load other helpers
$this->tl_root = str_replace("\\",'/',TL_ROOT).'/';
$this->tl_files = str_replace("\\",'/',$GLOBALS['TL_CONFIG']['uploadPath']).'/';
$this->Template->rateit = $this->rateit;
// complete rateit initialization
$rateit = &$this->rateit;
$rateit->f_link = $this->createUrl(array($this->action => $this->parameter));
$rateit->f_action = $this->compiler;
$rateit->f_mode = $this->action;
$rateit->theme = new RateItBackend();
$rateit->backLink = $this->getReferer(true);
$rateit->homeLink = $this->createUrl();
// execute compiler
$this->$compiler($this->parameter);
} // compile
/**
* List the ratings
*/
protected function listRatings()
{
$rateit = &$this->Template->rateit;
$rateit->f_page = 0;
// returning from submit?
if ($this->filterPost('rateit_action') == $rateit->f_action) {
// get url parameters
$rateit->f_typ = trim(\Input::post('rateit_typ'));
$rateit->f_active = trim(\Input::post('rateit_active'));
$rateit->f_order = trim(\Input::post('rateit_order'));
$rateit->f_page = trim(\Input::post('rateit_page'));
$rateit->f_find = trim(\Input::post('rateit_find'));
$this->Session->set(
'rateit_settings',
array(
'rateit_typ' => $rateit->f_typ,
'rateit_order' => $rateit->f_order,
'rateit_page' => $rateit->f_page,
'rateit_find' => $rateit->f_find
)
);
} else {
$stg = $this->Session->get('rateit_settings');
if (is_array($stg)) {
$rateit->f_typ = trim($stg['rateit_typ']);
$rateit->f_active = trim($stg['rateit_active']);
$rateit->f_order = trim($stg['rateit_order']);
$rateit->f_page = trim($stg['rateit_page']);
$rateit->f_find = trim($stg['rateit_find']);
} // if
} // if
if ($rateit->f_order=='') $rateit->f_order = 'rating';
//if (!isset($rateit->f_active)) $rateit->f_active = '-1';
if (isset($GLOBALS['TL_CONFIG']['rating_listsize']))
$perpage = (int)trim($GLOBALS['TL_CONFIG']['rating_listsize']);
if (!isset($perpage) || $perpage < 0) $perpage = 10;
if ($rateit->f_page>=0 && $perpage>0) {
$options['first'] = $rateit->f_page * $perpage;
$options['limit'] = $perpage;
} // if
if ($rateit->f_typ != '') $options['typ'] = $rateit->f_typ;
if ($rateit->f_active != '') $options['active'] = $rateit->f_active == '0' ? '' : $rateit->f_active;
if ($rateit->f_find != '') $options['find'] = $rateit->f_find;
switch ($rateit->f_order) {
case 'title' : $options['order'] = 'title'; break;
case 'typ' : $options['order'] = 'typ'; break;
case 'createdat' : $options['order'] = 'createdat'; break;
default : $options['order'] = 'rating desc';
} // switch
$rateit->exportLink = $this->createUrl(array('act' => 'export'));
// query extensions
$rateit->ratingitems = $this->getRatingItems($options);
if ($rateit->f_page>=0 && $perpage>0 && count($rateit->ratingitems)==0) {
$rateit->f_page = 0;
$options['first'] = 0;
$rateit->ratingitems = $this->getRatingItems($options);
} // if
// add view links
foreach ($rateit->ratingitems as &$ext) {
$ext->viewLink = $this->createUrl(array('act' => 'view', 'rkey' => $ext->rkey, 'typ' => $ext->typ));
$totrecs = $ext->totcount;
} // foreach
// create pages list
$rateit->pages = array();
if ($perpage > 0) {
$first = 1;
while ($totrecs > 0) {
$cnt = $totrecs > $perpage ? $perpage : $totrecs;
$rateit->pages[] = $first . ' - ' . ($first+$cnt-1);
$first += $cnt;
$totrecs -= $cnt;
} // while
} // if
} // listRatings
/**
* Export all ratings as MS-Excel-File
*/
protected function exportRatings()
{
$this->import('StringUtil');
$rateit = &$this->Template->rateit;
$options['order'] = 'rating desc';
// query ratings
$rateit->ratingitems = $this->getRatingItems($options, true);
$xls = new \xlsexport();
$strXlsSheet = $GLOBALS['TL_LANG']['tl_rateit']['xls_sheetname_ratings'];
$xls->addworksheet($strXlsSheet);
$intRowCounter = -1;
$intColCounter = 0;
$intRowCounter++;
// Header setzen
foreach(array_values($this->arrExportHeader) as $header) {
$xls->setcell(array("sheetname" => $strXlsSheet,"row" => $intRowCounter, "col" => $intColCounter, "data" => $header, "fontweight" => XLSFONT_BOLD, "vallign" => XLSXF_VALLIGN_TOP, "fontfamily" => XLSFONT_FAMILY_NORMAL));
$xls->setcolwidth($strXlsSheet, $intColCounter, 0x1aff);
$intColCounter++;
}
$intRowCounter++;
// Werte setzen
foreach($rateit->ratingitems as $item) {
$arrItem = (array)$item;
$intColCounter = 0;
foreach(array_keys($this->arrExportHeader) as $key) {
$strVal = $arrItem[$key];
$strVal = $this->StringUtil->decodeEntities($strVal);
$strVal = preg_replace(array('/<br.*\/*>/si'), array("\n"), $strVal);
$strVal = $this->convertEncoding($strVal, $GLOBALS['TL_CONFIG']['characterSet'], 'CP1252');
$cellType = CELL_STRING;
switch ($key) {
case 'typ' :
$strVal = $GLOBALS['TL_LANG']['tl_rateit_type_options'][$strVal];
break;
case 'createdat' :
$strVal = $strVal ? date($GLOBALS['TL_CONFIG']['datimFormat'], $strVal) : '';
break;
case 'active' :
$strVal = $strVal == '1' ? 'Ja' : 'Nein';
break;
case 'rating' :
if (!isset($strVal) || empty($strVal)) {
$strVal = '0';
}
$cellType = CELL_FLOAT;
break;
case 'stars' :
case 'percent' :
case 'totalRatings' :
case 'rkey' :
$cellType = CELL_FLOAT;
break;
}
$xls->setcell(array("sheetname" => $strXlsSheet,"row" => $intRowCounter, "col" => $intColCounter, "data" => $strVal, "type" => $cellType, "vallign" => XLSXF_VALLIGN_TOP, "fontfamily" => XLSFONT_FAMILY_NORMAL));
$intColCounter++;
}
$intRowCounter++;
}
$xls->sendfile("export_rateit_" . date("Ymd_His") . ".xls");
exit;
} // exportRatings
/**
* Detailed view of one rating.
* @param string
*/
protected function viewRating()
{
$rateit = &$this->Template->rateit;
$rateit->f_page = 0;
// returning from submit?
if ($this->filterPost('rateit_action') == $rateit->f_action) {
// get url parameters
$rateit->f_page = trim(\Input::post('rateit_details_page'));
$this->Session->set(
'rateit_settings',
array(
'rateit_details_page' => $rateit->f_page
)
);
} else {
$stg = $this->Session->get('rateit_settings');
if (is_array($stg)) {
$rateit->f_page = trim($stg['rateit_details_page']);
} // if
} // if
$rkey = \Input::get('rkey');
if (strstr($rkey, '|')) {
$arrRkey = explode('|', $rkey);
foreach ($arrRkey as $key) {
if (!is_numeric($key)) {
$this->redirect($rateit->homeLink);
exit;
}
$id = $rkey;
}
} else {
if (is_numeric($rkey)) {
$id = $rkey;
} else {
$this->redirect($rateit->homeLink);
exit;
}
}
$typ = \Input::get('typ');
// compose base options
$options = array(
'rkey' => $rkey,
'typ' => $typ
);
$this->rateit->f_link = $this->createUrl(array('act' => 'view', 'rkey' => $rkey, 'typ' => $typ));
if (isset($GLOBALS['TL_CONFIG']['rating_listsize']))
$perpage = (int)trim($GLOBALS['TL_CONFIG']['rating_listsize']);
if (!isset($perpage) || $perpage < 0) $perpage = 10;
if ($rateit->f_page>=0 && $perpage>0) {
$options['first'] = $rateit->f_page * $perpage;
$options['limit'] = $perpage;
} // if
$rateit->ratingitems = $this->getRatingItems($options, true);
if (count($rateit->ratingitems)<1) $this->redirect($rateit->homeLink);
$ext = &$rateit->ratingitems[0];
$ext->ratings = $this->getRatings($ext, $options);
if ($rateit->f_page>=0 && $perpage>0 && count($ext->ratings)==0) {
$rateit->f_page = 0;
$options['first'] = 0;
$rateit->ratings = $this->getRatings($ext, $options);
} // if
if (count($ext->ratings) > 0) {
$totrecs = $ext->ratings[0]->totcount;
} else {
$totrecs = 0;
}
// create pages list
$rateit->pages = array();
if ($perpage > 0) {
$first = 1;
while ($totrecs > 0) {
$cnt = $totrecs > $perpage ? $perpage : $totrecs;
$rateit->pages[] = $first . ' - ' . ($first+$cnt-1);
$first += $cnt;
$totrecs -= $cnt;
} // while
} // if
$rateit->exportLink = $this->createUrl(array('act' => 'exportDetails', 'rkey' => $rkey, 'typ' => $typ));
$ext->statistics = $this->getRatingStatistics($ext->item_id);
$ext->ratingsChartData = $this->getRatingsChartData($ext->statistics);
$ext->monthsChartData = $this->getMonthsChartData($ext->item_id);
} // viewRating
protected function resetRatings()
{
$rateit = &$this->Template->rateit;
// nothing checked?
$ids0 = \Input::post('selectedids');
if (!is_array($ids0)) {
$this->redirect($rep->homeLink); return;
}
foreach ($ids0 as $id) {
list($rkey, $typ) = explode('__', $id);
$pid = $this->Database->prepare('SELECT id FROM tl_rateit_items WHERE rkey=? and typ=?')
->execute($rkey, $typ)
->fetchRow();
$this->Database->prepare('DELETE FROM tl_rateit_ratings WHERE pid=?')
->execute($pid[0]);
}
$this->redirect($rateit->homeLink);
} // resetRatings
/**
* Export the details of one rating as MS-Excel-File
*/
protected function exportRatingDetails()
{
$rkey = \Input::get('rkey');
if (!is_numeric($rkey))
$this->redirect($rateit->backLink);
$typ = \Input::get('typ');
$this->rateit->backLink = $this->createUrl(array('act' => 'view', 'rkey' => $rkey, 'typ' => $typ));
// compose base options
$options = array(
'rkey' => $rkey,
'typ' => $typ
);
$this->import('StringUtil');
$rateit = &$this->Template->rateit;
// query ratings
$rateit->ratingitems = $this->getRatingItems($options);
if (count($rateit->ratingitems)<1) $this->redirect($rateit->backLink);
$ext = &$rateit->ratingitems[0];
$ext->ratings = $this->getRatings($ext);
$ext->statistics = $this->getRatingStatistics($ext->item_id);
$xls = new \xlsexport();
$strXlsSheet = $GLOBALS['TL_LANG']['tl_rateit']['xls_sheetname_rating'];
$xls->addworksheet($strXlsSheet);
$intRowCounter = -1;
$intColCounter = 0;
$intRowCounter++;
// Header setzen
foreach(array_values($this->arrExportHeaderDetails) as $header) {
$xls->setcell(array("sheetname" => $strXlsSheet,"row" => $intRowCounter, "col" => $intColCounter, "data" => $header, "fontweight" => XLSFONT_BOLD, "vallign" => XLSXF_VALLIGN_TOP, "fontfamily" => XLSFONT_FAMILY_NORMAL));
$xls->setcolwidth($strXlsSheet, $intColCounter, 0x1aff);
$intColCounter++;
}
$intRowCounter++;
// Werte setzen
foreach($ext->ratings as $item) {
$arrItem = (array)$item;
$intColCounter = 0;
foreach(array_keys($this->arrExportHeaderDetails) as $key) {
$strVal = $arrItem[$key];
$strVal = $this->StringUtil->decodeEntities($strVal);
$strVal = preg_replace(array('/<br.*\/*>/si'), array("\n"), $strVal);
$strVal = $this->convertEncoding($strVal, $GLOBALS['TL_CONFIG']['characterSet'], 'CP1252');
$cellType = CELL_STRING;
switch ($key) {
case 'createdat' :
$strVal = $strVal ? date($GLOBALS['TL_CONFIG']['datimFormat'], $strVal) : '';
break;
case 'rating' :
if (!isset($strVal) || empty($strVal)) {
$strVal = '0';
}
$cellType = CELL_FLOAT;
break;
case 'stars' :
case 'percent' :
case 'totalRatings' :
case 'rkey' :
$cellType = CELL_FLOAT;
break;
}
$xls->setcell(array("sheetname" => $strXlsSheet,"row" => $intRowCounter, "col" => $intColCounter, "data" => $strVal, "type" => $cellType, "vallign" => XLSXF_VALLIGN_TOP, "fontfamily" => XLSFONT_FAMILY_NORMAL));
$intColCounter++;
}
$intRowCounter++;
}
$xls->sendfile("export_rateit_" . date("Ymd_His") . ".xls");
exit;
} // exportRatingDetails
/**
* Create url for hyperlink to the current page.
* @param array $aParams Assiciative array with key/value pairs as parameters.
* @return string The create link.
*/
protected function createUrl($aParams = null)
{
return $this->createPageUrl(\Input::get('do'), $aParams);
} // createUrl
/**
* Create url for hyperlink to an arbitrary page.
* @param string $aPage The page ID.
* @param array $aParams Assiciative array with key/value pairs as parameters.
* @return string The create link.
*/
protected function createPageUrl($aPage, $aParams = null)
{
$url = \Environment::get('script') . '?do='.$aPage;
if (is_array($aParams)) {
foreach ($aParams as $key => $val)
if ($val!='')
$url .= '&amp;'.$key .'='.$val;
}
return $url;
} // createPageUrl
/**
* Get post parameter and filter value.
* @param string $aKey The post key. When filtering html, remove all attribs and
* keep the plain tags.
* @param string $aMode '': no filtering
* 'nohtml': strip all html
* 'text': Keep tags p br ul li em
* @return string The filtered input.
*/
protected function filterPost($aKey, $aMode = '')
{
$v = trim(\Input::postRaw($aKey));
if ($v == '' || $aMode=='') return $v;
switch ($aMode) {
case 'nohtml':
$v = strip_tags($v);
break;
case 'text':
$v = strip_tags($v, rateit_TEXTTAGS);
break;
} // switch
$v = preg_replace('/<(\w+) .*>/U', '<$1>', $v);
return $v;
} // filterPost
protected function getRatingItems($aOptions, $noLimit=false) {
$sql = "SELECT i.id as item_id,
i.rkey AS rkey,
i.title as title,
i.typ as typ,
i.createdat as createdat,
i.active as active,
IFNULL(AVG(r.rating),0) AS rating,
COUNT( r.rating ) AS totalRatings
FROM tl_rateit_items i
LEFT OUTER JOIN tl_rateit_ratings r
ON (i.id = r.pid)
%w
GROUP BY rkey, title, item_id, typ, createdat, active
%o
%l";
$cntSql = "SELECT COUNT(*) FROM tl_rateit_items i %s";
$where = '';
$firstWhere = true;
$limit = '';
$order = '';
foreach ($aOptions as $k=>$v) {
if ($k == 'find') {
if (!$firstWhere) {
$where .= " AND";
}
$where .= " title like '%$v%'";
$firstWhere = false;
}
else if ($k != 'order' && $k != 'limit' && $k != 'first') {
if (!$firstWhere) {
$where .= " AND";
}
$where .= " $k='$v'";
$firstWhere = false;
} else {
if ($k == 'limit' && !$noLimit) {
$cntRows = $v;
} else if ($k == 'first' && !$noLimit) {
$first = $v;
}
}
}
if (isset($cntRows) && isset($first)) {
$limit = "LIMIT $first, $cntRows";
}
if (strlen($where) > 0) {
$where = "WHERE ".$where;
}
if (isset($aOptions['order']) && !empty($aOptions['order']))
$order = "ORDER BY ".$aOptions['order'];
$sql = str_replace('%o', $order, $sql);
$sql = str_replace('%w', $where, $sql);
$sql = str_replace('%l', $limit, $sql);
$cntSql = str_replace('%s', $where, $cntSql);
$count = $this->Database->query($cntSql)->fetchRow();
$arrRatingItems = $this->Database->query($sql)->fetchAllAssoc();
$arrReturn = array();
foreach ($arrRatingItems as $rating) {
if ($rating['active'] != '1') $rating['active'] = '0';
$rating['percent'] = $rating['rating'];
$rating['rating'] = $this->percentToStars($rating['percent']);
$rating['stars'] = $this->intStars;
$rating['totcount'] = $count[0];
$arrReturn[] = (object) $rating;
}
return $arrReturn;
} // getRatingItems
protected function getRatings($ext, $options = array()) {
// Gesamtanzahl (für Paging wichtig) ermitteln
$cntSql = "SELECT COUNT(*) FROM tl_rateit_ratings r WHERE r.pid=$ext->item_id";
$count = $this->Database->prepare($cntSql)
->execute()
->fetchRow();
foreach ($options as $k=>$v) {
if ($k == 'limit') {
$cntRows = $v;
} else if ($k == 'first') {
$first = $v;
}
}
if (isset($cntRows) && isset($first)) {
$limit = "LIMIT $first, $cntRows";
}
$sql = "SELECT id AS rating_id, ip_address AS ip, memberid, rating, createdat
FROM tl_rateit_ratings r
WHERE r.pid=$ext->item_id
ORDER BY createdat DESC
%l";
$sql = str_replace('%l', $limit, $sql);
$arrRatings = $this->Database->prepare($sql)
->execute()
->fetchAllAssoc();
$arrReturn = array();
foreach ($arrRatings as $rating) {
$rating['percent'] = $rating['rating'];
$rating['rating'] = $this->percentToStars($rating['percent']);
$rating['stars'] = $this->intStars;
$rating['totcount'] = $count[0];
if ($rating['memberid'] != null) {
$member = $this->Database->prepare("SELECT firstname, lastname FROM tl_member WHERE id=?")
->limit(1)
->execute($rating['memberid'])
->fetchAssoc();
$rating['member'] = $member['firstname']." ".$member['lastname'];
}
$arrReturn[] = (object) $rating;
}
return $arrReturn;
} // getRatings
protected function getRatingStatistics($item_id) {
$sql = "SELECT rating, count(*) as count
FROM tl_rateit_ratings r
WHERE r.pid=$item_id
GROUP BY rating
ORDER BY rating";
$arrRatingStatistics = $this->Database->prepare($sql)
->execute()
->fetchAllAssoc();
$arrReturn = array();
foreach ($arrRatingStatistics as $rating) {
$rating['percent'] = $rating['rating'];
$rating['rating'] = $this->percentToStars($rating['percent']);
$arrReturn[$rating['percent']] = (object) $rating;
}
return $arrReturn;
} // getRatings
protected function getRatingsChartData($statistics) {
$arr = array();
$arr['cols'] = array();
$arr['rows'] = array();
// Spalten anlegen
$arr['cols'][] = array('id'=>'rating', 'label'=>$GLOBALS['TL_LANG']['tl_rateit']['rating_chart_legend'][2], 'type'=>'string');
$arr['cols'][] = array('id'=>'count', 'label'=>$GLOBALS['TL_LANG']['tl_rateit']['rating_chart_legend'][3], 'type'=>'number');
// Zeilen anlegen
foreach($statistics as $obj) {
$arr['rows'][] = array('c'=>array(array('v'=>$obj->rating.' '.($obj->rating == 1 ? $this->label : $this->labels)), array('v'=>(int)$obj->count, 'f'=>$obj->count.' '.$GLOBALS['TL_LANG']['tl_rateit']['vote'][$obj->count == 1 ? 0 : 1])));
}
return json_encode($arr);
}
protected function getMonthsChartData($item_id) {
$sql = "SELECT count(*) AS anzahl, avg(rating) AS bewertung, month(date(FROM_UNIXTIME(createdat))) AS monat, year(date(FROM_UNIXTIME(createdat))) AS jahr
FROM tl_rateit_ratings r
WHERE r.pid=$item_id
GROUP BY monat, jahr
ORDER BY jahr DESC , monat DESC
LIMIT 0 , 12";
$arrResult = $this->Database->prepare($sql)
->execute()
->fetchAllAssoc();
$arrResult = array_reverse($arrResult);
$this->loadLanguageFile('default');
$arr = array();
$arr['cols'] = array();
$arr['rows'] = array();
// Spalten anlegen
$arr['cols'][] = array('id'=>'month', 'label'=>$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][3], 'type'=>'string');
$arr['cols'][] = array('id'=>'count', 'label'=>$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][4], 'type'=>'number');
$arr['cols'][] = array('id'=>'avg', 'label'=>$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][2], 'type'=>'number');
// Zeilen anlegen
foreach($arrResult as $result) {
$month = $GLOBALS['TL_LANG']['MONTHS'][$result['monat']-1].' '.$result['jahr'];
$avgValue = round((float)(($result['bewertung']*$this->intStars)/100), 1);
$arr['rows'][] = array('c'=>array(array('v'=>$month),
array('v'=>(int)$result['anzahl']),
array('v'=>$avgValue)));
}
return json_encode($arr);
}
protected function percentToStars($percent) {
$modifier = 100 / $this->intStars;
return round($percent / $modifier, 1);
}
/**
* Convert encoding
* @return String
* @param $strString String to convert
* @param $from charset to convert from
* @param $to charset to convert to
*/
public function convertEncoding($strString, $from, $to) {
if (USE_MBSTRING) {
@mb_substitute_character('none');
return @mb_convert_encoding($strString, $to, $from);
}
elseif (function_exists('iconv')) {
if (strlen($iconv = @iconv($from, $to . '//IGNORE', $strString))) {
return $iconv;
}
else {
return @iconv($from, $to, $strString);
}
}
return $strString;
}
} // class rateitBackendModule

View File

@ -0,0 +1,51 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
/**
* Class RateItCE
*/
class RateItCE extends RateItHybrid
{
/**
* Initialize the controller
*/
public function __construct($objElement) {
parent::__construct($objElement);
}
protected function getType() {
return 'ce';
}
}
?>

View File

@ -0,0 +1,163 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
use cgoIT\rateit\RateItRating;
class RateItFaq extends RateItFrontend {
var $rateItRating;
/**
* Initialize the controller
*/
public function __construct() {
parent::__construct();
$this->rateItRating = new RateItRating();
}
public function getContentElementRateIt($objRow, $strBuffer) {
if ($objRow->type == 'module') {
$objModule = $this->Database->prepare("SELECT * FROM tl_module WHERE id=? AND type IN ('faqpage', 'faqreader')")
->limit(1)
->execute($objRow->module);
if ($objModule->numRows == 1) {
$this->faq_categories = deserialize($objModule->faq_categories);
if ($objModule->type == 'faqreader') {
$strBuffer = $this->generateForFaqReader($objModule, $strBuffer);
} else {
$strBuffer = $this->generateForFaqPage($objModule, $strBuffer);
}
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/star.min.css||static';
}
}
}
return $strBuffer;
}
private function generateForFaqPage($objModule, $strBuffer) {
$objFaq = $this->Database
->execute("SELECT *, author AS authorId, (SELECT headline FROM tl_faq_category WHERE tl_faq_category.id=tl_faq.pid) AS category, (SELECT name FROM tl_user WHERE tl_user.id=tl_faq.author) AS author FROM tl_faq WHERE pid IN(" . implode(',', array_map('intval', $this->faq_categories)) . ")" . (!BE_USER_LOGGED_IN ? " AND published=1" : ""));
if ($objFaq->numRows < 1) {
return $strBuffer;
}
$htmlBuffer = new \simple_html_dom();
$htmlBuffer->load($strBuffer);
$arrFaqs = $objFaq->fetchAllAssoc();
foreach ($arrFaqs as $arrFaq) {
$rating = $this->generateSingle($arrFaq, $strBuffer);
$h3 = $htmlBuffer->find('#'.$arrFaq['alias']);
if (is_array($h3) && count($h3) == 1) {
$section = $h3[0]->parent();
if ($arrFaq['rateit_position'] == 'before') {
$section->innertext = $rating.$section->innertext;
} else if ($arrFaq['rateit_position'] == 'after') {
$section->innertext = $section->innertext.$rating;
}
}
}
$strBuffer = $htmlBuffer->save();
// Aufräumen
$htmlBuffer->clear();
unset($htmlBuffer);
return $strBuffer;
}
private function generateForFaqReader($objModule, $strBuffer) {
// Set the item from the auto_item parameter
if ($GLOBALS['TL_CONFIG']['useAutoItem'] && isset($_GET['auto_item'])) {
$this->Input->setGet('items', $this->Input->get('auto_item'));
}
// Do not index or cache the page if no FAQ has been specified
if (!$this->Input->get('items')) {
return $strBuffer;
}
$objFaq = $this->Database->prepare("SELECT *, author AS authorId, (SELECT title FROM tl_faq_category WHERE tl_faq_category.id=tl_faq.pid) AS category, (SELECT name FROM tl_user WHERE tl_user.id=tl_faq.author) AS author FROM tl_faq WHERE pid IN(" . implode(',', array_map('intval', $this->faq_categories)) . ") AND (id=? OR alias=?)" . (!BE_USER_LOGGED_IN ? " AND published=1" : ""))
->limit(1)
->execute((is_numeric($this->Input->get('items')) ? $this->Input->get('items') : 0), $this->Input->get('items'));
if ($objFaq->numRows == 1) {
$arrFaq = $objFaq->fetchAssoc();
$rating = $this->generateSingle($arrFaq, $strBuffer);
}
if ($arrFaq['rateit_position'] == 'before') {
$strBuffer = $rating.$strBuffer;
} else if ($arrFaq['rateit_position'] == 'after') {
$strBuffer = $strBuffer.$rating;
}
return $strBuffer;
}
private function generateSingle($arrFaq, $strBuffer) {
$rating = '';
if ($arrFaq['addRating']) {
$actRecord = $this->Database->prepare("SELECT * FROM tl_rateit_items WHERE rkey=? and typ='faq'")
->execute($arrFaq['id'])
->fetchAssoc();
if ($actRecord['active']) {
$this->rateItRating->rkey = $arrFaq['id'];
$this->rateItRating->ratingType = 'faq';
$this->rateItRating->generate();
$rating = $this->rateItRating->output();
}
}
return $rating;
}
}
?>

View File

@ -0,0 +1,157 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
/**
* Class RateItFrontend
*/
class RateItFrontend extends \Hybrid
{
/**
* Primary key
* @var string
*/
protected $strPk = 'id';
/**
* Typ
* @var string
*/
protected $strType = 'hearts';
/**
* Template
* @var string
*/
protected $strTemplate = 'rateit_default';
/**
* Anzahl der Herzen/Sterne
* @var int
*/
protected $intStars = 5;
/**
* Textposition
* @var string
*/
protected $strTextPosition = 'after';
/**
* Initialize the controller
*/
public function __construct($objElement=array()) {
if (!empty($objElement)) {
if ($objElement instanceof \Model) {
$this->strTable = $objElement->getTable();
}
elseif ($objElement instanceof \Model\Collection) {
$this->strTable = $objElement->current()->getTable();
}
$this->strKey = $this->strPk;
}
$stars = intval($GLOBALS['TL_CONFIG']['rating_count']);
if ($stars > 0) {
$this->intStars = $stars;
}
parent::__construct($objElement);
}
/**
* Display a wildcard in the back end
* @return string
*/
public function generate() {
return parent::generate();
$this->loadLanguageFile('default');
$this->strType = $GLOBALS['TL_CONFIG']['rating_type'];
$stars = intval($GLOBALS['TL_CONFIG']['rating_count']);
if ($stars > 0) {
$this->intStars = $stars;
}
$this->strTemplate = $GLOBALS['TL_CONFIG']['rating_template'];
$this->strTextPosition = $GLOBALS['TL_CONFIG']['rating_textposition'];
}
/**
* Generate the module/content element
*/
protected function compile() {
}
public function getStarMessage($rating) {
$this->loadLanguageFile('default');
$stars = $this->percentToStars($rating['rating']);
preg_match('/^.*\[(.+)\|(.+)\].*$/i', $GLOBALS['TL_CONFIG']['rating_description'], $labels);
if (!is_array($labels) && (!count($labels) == 2 || !count($labels) == 3)) {
$label = ($rating[totalRatings] > 1 || $rating[totalRatings] == 0) || !$rating ? $GLOBALS['TL_LANG']['rateit']['rating_label'][1] : $GLOBALS['TL_LANG']['rateit']['rating_label'][0];
$description = '%current%/%max% %type% (%count% ['.$GLOBALS['TL_LANG']['tl_rateit']['vote'][0].'|'.$GLOBALS['TL_LANG']['tl_rateit']['vote'][1].'])';
} else {
$label = count($labels) == 2 ? $labels[1] : ($rating[totalRatings] > 1 || $rating[totalRatings] == 0) || !$rating ? $labels[2] : $labels[1];
$description = $GLOBALS['TL_CONFIG']['rating_description'];
}
$actValue = $rating === false ? 0 : $rating[totalRatings];
$type = $GLOBALS['TL_CONFIG']['rating_type'] == 'hearts' ? $GLOBALS['TL_LANG']['rateit']['hearts'] : $GLOBALS['TL_LANG']['rateit']['stars'];
// return str_replace('.', ',', $stars)."/$this->intStars ".$type." ($actValue $label)";
$description = str_replace('%current%', str_replace('.', ',', $stars), $description);
$description = str_replace('%max%', $this->intStars, $description);
$description = str_replace('%type%', $type, $description);
$description = str_replace('%count%', $actValue, $description);
$description = preg_replace('/^(.*)(\[.*\])(.*)$/i', "\\1$label\\3", $description);
return $description;
}
public function loadRating($rkey, $typ) {
$SQL_GET_RATINGS = "SELECT i.rkey AS rkey,
i.title AS title,
IFNULL(AVG(r.rating),0) AS rating,
COUNT( r.rating ) AS totalRatings
FROM tl_rateit_items i
LEFT OUTER JOIN tl_rateit_ratings r
ON ( i.id = r.pid ) WHERE i.rkey = ? and typ=? and active='1'
GROUP BY i.rkey;";
$result = $this->Database->prepare($SQL_GET_RATINGS)
->execute($rkey, $typ)
->fetchAssoc();
return $result;
}
protected function percentToStars($percent) {
$modifier = 100 / $this->intStars;
return round($percent / $modifier, 1);
}
}
?>

View File

@ -0,0 +1,116 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
/**
* Class RateItHybrid
*/
abstract class RateItHybrid extends RateItFrontend
{
//protected $intStars = 5;
/**
* Initialize the controller
*/
public function __construct($objElement) {
parent::__construct($objElement);
}
/**
* Display a wildcard in the back end
* @return string
*/
public function generate() {
if (TL_MODE == 'BE') {
$objTemplate = new \BackendTemplate('be_wildcard');
$objTemplate->wildcard = '### Rate IT ###';
$objTemplate->title = $this->rateit_title;
$objTemplate->id = $this->id;
$objTemplate->link = $this->name;
$objTemplate->href = 'contao/main.php?do=themes&amp;table=tl_module&amp;act=edit&amp;id=' . $this->id;
return $objTemplate->parse();
}
$this->strTemplate = $GLOBALS['TL_CONFIG']['rating_template'];
$this->strType = $GLOBALS['TL_CONFIG']['rating_type'];
$this->strTextPosition = $GLOBALS['TL_CONFIG']['rating_textposition'];
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/rateit.min.css||static';
switch ($this->strType) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/star.min.css||static';
}
return parent::generate();
}
/**
* Generate the module/content element
*/
protected function compile() {
$this->Template = new \FrontendTemplate($this->strTemplate);
$this->Template->setData($this->arrData);
$rating = $this->loadRating($this->getParent()->id, $this->getType());
$ratingId = $this->getParent()->id;
$stars = !$rating ? 0 : $this->percentToStars($rating['rating']);
$percent = round($rating['rating'], 0)."%";
$this->Template->descriptionId = 'rateItRating-'.$ratingId.'-description';
$this->Template->description = $this->getStarMessage($rating);
$this->Template->id = 'rateItRating-'.$ratingId.'-'.$this->getType().'-'.$stars.'_'.$this->intStars;
$this->Template->rateit_class = 'rateItRating';
$this->Template->itemreviewed = $rating['title'];
$this->Template->actRating = $this->percentToStars($rating['rating']);
$this->Template->maxRating = $this->intStars;
$this->Template->votes = $rating[totalRatings];
if ($this->strTextPosition == "before") {
$this->Template->showBefore = true;
}
else if ($this->strTextPosition == "after") {
$this->Template->showAfter = true;
}
return parent::compile();
}
}
?>

View File

@ -0,0 +1,51 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
/**
* Class RateItModule
*/
class RateItModule extends RateItHybrid
{
/**
* Initialize the controller
*/
public function __construct($objElement) {
parent::__construct($objElement);
}
protected function getType() {
return 'module';
}
}
?>

View File

@ -0,0 +1,85 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
class RateItNews extends RateItFrontend {
/**
* Initialize the controller
*/
public function __construct() {
parent::__construct();
}
public function parseArticle($objTemplate, $objArticle, $caller) {
if (strpos(get_class($caller), "ModuleNews") !== false &&
$objArticle['addRating']) {
$ratingId = $objTemplate->id;
$rating = $this->loadRating($ratingId, 'news');
$stars = !$rating ? 0 : $this->percentToStars($rating['rating']);
$percent = round($rating['rating'], 0)."%";
$objTemplate->descriptionId = 'rateItRating-'.$ratingId.'-description';
$objTemplate->description = $this->getStarMessage($rating);
$objTemplate->ratingId = 'rateItRating-'.$ratingId.'-news-'.$stars.'_'.$this->intStars;
$objTemplate->rateit_class = 'rateItRating';
$objTemplate->itemreviewed = $rating['title'];
$objTemplate->actRating = $this->percentToStars($rating['rating']);
$objTemplate->maxRating = $this->intStars;
$objTemplate->votes = $rating[totalRatings];
if ($this->strTextPosition == "before") {
$objTemplate->showBefore = true;
}
else if ($this->strTextPosition == "after") {
$objTemplate->showAfter = true;
}
if ($objArticle['rateit_position'] == 'before') {
$objTemplate->rateit_rating_before = true;
} else if ($objArticle['rateit_position'] == 'after') {
$objTemplate->rateit_rating_after = true;
}
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/star.min.css||static';
}
}
}
}
?>

View File

@ -0,0 +1,123 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
use cgoIT\rateit\RateItRating;
class RateItPage extends \Frontend {
var $rateItRating;
/**
* Initialize the controller
*/
public function __construct() {
parent::__construct();
$this->rateItRating = new RateItRating();
$this->loadDataContainer('settings');
}
public function generatePage($objPage, $objLayout, $objPageType) {
if ($objPage->addRating) {
$actRecord = $this->Database->prepare("SELECT * FROM tl_rateit_items WHERE rkey=? and typ='page'")
->execute($objPage->id)
->fetchAssoc();
if ($actRecord['active']) {
$this->rateItRating->rkey = $objPage->id;
$this->rateItRating->generate();
$rating = $this->rateItRating->output();
$rating .= $this->includeJs();
$rating .= $this->includeCss();
$objTemplate = $objPageType->Template;
if ($objTemplate) {
if ($objPage->rateit_position == 'after') {
$objTemplate->main .= $rating;
} else {
$objTemplate->main = $rating.$objTemplate->main;
}
}
}
}
}
private function includeCss() {
$included = false;
$strHeadTags = '';
if (is_array($GLOBALS['TL_CSS'])) {
foreach ($GLOBALS['TL_CSS'] as $script) {
if ($this->startsWith($script, 'bundles/cgoitrateit/public/css/rateit') === true) {
$included = true;
break;
}
}
}
if (!$included) {
$strHeadTags = '<link rel="stylesheet" href="'.$this->addStaticUrlTo('bundles/cgoitrateit/public/css/rateit.min.css').'">';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$strHeadTags .= '<link rel="stylesheet" href="'.$this->addStaticUrlTo('bundles/cgoitrateit/public/css/heart.min.css').'">';
break;
default:
$strHeadTags .= '<link rel="stylesheet" href="'.$this->addStaticUrlTo('bundles/cgoitrateit/public/css/star.min.css').'">';
}
}
return $strHeadTags;
}
private function includeJs() {
$included = false;
$strHeadTags = '';
if (is_array($GLOBALS['TL_JAVASCRIPT'])) {
foreach ($GLOBALS['TL_JAVASCRIPT'] as $script) {
if ($this->startsWith($script, 'bundles/cgoitrateit/public/js/rateit') === true) {
$included = true;
break;
}
}
}
if (!$included) {
$strHeadTags = '<script' . (($objPage->outputFormat == 'xhtml') ? ' type="text/javascript"' : '') . ' src="' . $this->addStaticUrlTo('bundles/cgoitrateit/public/js/onReadyRateIt.js') . '"></script>' . "\n";
$strHeadTags .= '<script' . (($objPage->outputFormat == 'xhtml') ? ' type="text/javascript"' : '') . ' src="' . $this->addStaticUrlTo('bundles/cgoitrateit/public/js/rateit.js') . '"></script>' . "\n";
}
return $strHeadTags;
}
function startsWith($haystack, $needle) {
// search backwards starting from haystack length characters from the end
return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== FALSE;
}
}
?>

View File

@ -0,0 +1,96 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
class RateItRating extends RateItFrontend {
/**
* RatingKey
* @var int
*/
public $rkey = 0;
public $ratingType = 'page';
/**
* Initialize the controller
*/
public function __construct($objElement=array()) {
parent::__construct($objElement);
}
/**
* Display a wildcard in the back end
* @return string
*/
public function generate() {
parent::generate();
}
/**
* Compile
*/
protected function compile()
{
$this->loadLanguageFile('default');
$this->Template = new \FrontendTemplate($this->strTemplate);
$this->Template->setData($this->arrData);
$rating = $this->loadRating($this->rkey, $this->ratingType);
$ratingId = $this->rkey;
$stars = !$rating ? 0 : $this->percentToStars($rating['rating']);
$percent = round($rating['rating'], 0)."%";
$this->Template->descriptionId = 'rateItRating-'.$ratingId.'-description';
$this->Template->description = $this->getStarMessage($rating);
$this->Template->id = 'rateItRating-'.$ratingId.'-'.$this->ratingType.'-'.$stars.'_'.$this->intStars;
$this->Template->class = 'rateItRating';
$this->Template->itemreviewed = $rating['title'];
$this->Template->actRating = $this->percentToStars($rating['rating']);
$this->Template->maxRating = $this->intStars;
$this->Template->votes = $rating[totalRatings];
if ($this->strTextPosition == "before") {
$this->Template->showBefore = true;
}
else if ($this->strTextPosition == "after") {
$this->Template->showAfter = true;
}
return $this->Template->parse();
}
public function output() {
return $this->compile();
}
}
?>

View File

@ -0,0 +1,241 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
namespace cgoIT\rateit;
/**
* Class RateItTopRatingsModule
*/
class RateItTopRatingsModule extends RateItFrontend
{
private static $arrUrlCache = array();
/**
* Initialize the controller
*/
public function __construct($objElement) {
parent::__construct($objElement);
$this->strKey = "rateit_top_ratings";
}
/**
* Display a wildcard in the back end
* @return string
*/
public function generate() {
if (TL_MODE == 'BE') {
$objTemplate = new \BackendTemplate('be_wildcard');
$objTemplate->wildcard = '### Rate IT Best/Most Ratings ###';
$objTemplate->title = $this->name;
$objTemplate->id = $this->id;
$objTemplate->link = $this->name;
$objTemplate->href = 'contao/main.php?do=themes&amp;table=tl_module&amp;act=edit&amp;id=' . $this->id;
return $objTemplate->parse();
}
$this->strTemplate = $this->rateit_template;
$this->arrTypes = deserialize($this->rateit_types);
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/public/css/star.min.css||static';
}
return parent::generate();
}
/**
* Generate the module/content element
*/
protected function compile() {
$this->Template = new \FrontendTemplate($this->strTemplate);
$this->Template->setData($this->arrData);
$this->import("\\Database", "Database");
$arrResult = $this->Database->prepare("SELECT i.id AS item_id,
i.rkey AS rkey,
i.title AS title,
i.typ AS typ,
i.createdat AS createdat,
i.active AS active,
IFNULL(AVG(r.rating),0) AS best,
COUNT( r.rating ) AS most
FROM tl_rateit_items i
LEFT OUTER JOIN tl_rateit_ratings r
ON (i.id = r.pid)
WHERE
typ IN ('".implode("', '", $this->arrTypes)."')
GROUP BY rkey, title, item_id, typ, createdat, active
ORDER BY ".$this->rateit_toptype." DESC")
->limit($this->rateit_count)
->execute()
->fetchAllAssoc();
$objReturn = array();
foreach ($arrResult as $result) {
$return = new \stdClass();
$return->title = $result['title'];
$return->typ = $result['typ'];
// ID ermitteln
$stars = $this->percentToStars($result['best']);
$return->rateItID = 'rateItRating-'.$result['rkey'].'-'.$result['typ'].'-'.
$stars.'_'.intval($GLOBALS['TL_CONFIG']['rating_count']);
$return->descriptionId = 'rateItRating-'.$result['rkey'].'-description';
$return->rateit_class = 'rateItRating';
$return->url = $this->getUrl($result);
// Beschriftung ermitteln
$rating = array();
$rating['totalRatings'] = $result['most'];
$rating['rating'] = $result['best'];
$return->description = $this->getStarMessage($rating);
$return->rating = $result['best'];
$return->count = $result['most'];
$return->rel = 'not-rateable';
$objReturn[] = $return;
}
$this->Template->arrRatings = $objReturn;
}
private function getUrl($rating) {
if ($rating['typ'] === 'page') {
return \PageModel::findById($rating['rkey'])->getAbsoluteUrl();
}
if ($rating['typ'] === 'article') {
$objArticle = \ArticleModel::findPublishedById($rating['rkey']);
if (!is_null($objArticle)) {
return \PageModel::findById($objArticle->pid)->getAbsoluteUrl().'#'.$objArticle->alias;
}
}
if ($rating['typ'] === 'news') {
$objNews = \NewsModel::findById($rating['rkey']);
$objArticle = \NewsModel::findPublishedByPid($objNews->pid);
// Internal link
if ($objArticle->source != 'external') {
return $this->generateNewsUrl($objNews);
}
// Encode e-mail addresses
if (substr($objArticle->url, 0, 7) == 'mailto:') {
$strArticleUrl = \StringUtil::encodeEmail($objArticle->url);
}
// Ampersand URIs
else {
$strArticleUrl = ampersand($objArticle->url);
}
/** @var \PageModel $objPage */
global $objPage;
// External link
return $strArticleUrl;
}
return false;
}
private function generateNewsUrl($objItem) {
$strCacheKey = 'id_' . $objItem->id;
// Load the URL from cache
if (isset(self::$arrUrlCache[$strCacheKey])) {
return self::$arrUrlCache[$strCacheKey];
}
// Initialize the cache
self::$arrUrlCache[$strCacheKey] = null;
switch ($objItem->source) {
// Link to an external page
case 'external' :
if (substr($objItem->url, 0, 7) == 'mailto:') {
self::$arrUrlCache[$strCacheKey] = \StringUtil::encodeEmail($objItem->url);
} else {
self::$arrUrlCache[$strCacheKey] = ampersand($objItem->url);
}
break;
// Link to an internal page
case 'internal' :
if (($objTarget = $objItem->getRelated('jumpTo')) !== null) {
/** @var \PageModel $objTarget */
self::$arrUrlCache[$strCacheKey] = ampersand($objTarget->getFrontendUrl());
}
break;
// Link to an article
case 'article' :
if (($objArticle = \ArticleModel::findByPk($objItem->articleId, array(
'eager' => true
))) !== null && ($objPid = $objArticle->getRelated('pid')) !== null) {
/** @var \PageModel $objPid */
self::$arrUrlCache[$strCacheKey] = ampersand($objPid->getFrontendUrl('/articles/' . ((! \Config::get('disableAlias') && $objArticle->alias != '') ? $objArticle->alias : $objArticle->id)));
}
break;
}
// Link to the default page
if (self::$arrUrlCache[$strCacheKey] === null) {
$objPage = \PageModel::findWithDetails($objItem->getRelated('pid')->jumpTo);
if ($objPage === null) {
self::$arrUrlCache[$strCacheKey] = ampersand(\Environment::get('request'), true);
} else {
self::$arrUrlCache[$strCacheKey] = ampersand($objPage->getFrontendUrl(((\Config::get('useAutoItem') && ! \Config::get('disableAlias')) ? '/' : '/items/') . ((! \Config::get('disableAlias') && $objItem->alias != '') ? $objItem->alias : $objItem->id)));
}
// Add the current archive parameter (news archive)
if ($blnAddArchive && \Input::get('month') != '') {
self::$arrUrlCache[$strCacheKey] .= (\Config::get('disableAlias') ? '&amp;' : '?') . 'month=' . \Input::get('month');
}
}
return self::$arrUrlCache[$strCacheKey];
}
}
?>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,65 @@
<?php
use cgoIT\rateit\RateItBackend;
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
/**
* Hooks
*/
$GLOBALS['TL_HOOKS']['generatePage'][] = array('cgoIT\\rateit\\RateItPage', 'generatePage');
$GLOBALS['TL_HOOKS']['simpleAjax'][] = array('cgoIT\\rateit\\RateIt', 'doVote');
$GLOBALS['TL_HOOKS']['parseArticles'][] = array('cgoIT\\rateit\\RateItNews', 'parseArticle');
$GLOBALS['TL_HOOKS']['getContentElement'][] = array('cgoIT\\rateit\\RateItFaq', 'getContentElementRateIt');
$GLOBALS['TL_HOOKS']['parseTemplate'][] = array('cgoIT\\rateit\\RateItArticle', 'parseTemplateRateIt');
/**
* Back end modules
*/
array_insert($GLOBALS['BE_MOD']['content'], count($GLOBALS['BE_MOD']['content']),
array('rateit' => array (
'callback' => 'cgoIT\\rateit\\RateItBackendModule',
'icon' => rateit\RateItBackend::image('icon'),
'stylesheet' => rateit\RateItBackend::css('backend'),
'javascript' => rateit\RateItBackend::js('RateItBackend')
)
));
/**
* frontend moduls
*/
$GLOBALS['FE_MOD']['application']['rateit'] = 'cgoIT\\rateit\\RateItModule';
$GLOBALS['FE_MOD']['application']['rateit_top_ratings'] = 'cgoIT\\rateit\\RateItTopRatingsModule';
/**
* content elements
*/
$GLOBALS['TL_CTE']['includes']['rateit'] = 'cgoIT\\rateit\\RateItCE';
?>

View File

@ -0,0 +1,88 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*
*/
// Be silenced
@error_reporting(0);
@ini_set("display_errors", 0);
/**
* Runonce Job
*/
class runonceJob extends \Backend
{
public function __construct()
{
parent::__construct();
}
/**
* Run job
*/
public function run()
{
if (!isset($GLOBALS['TL_CONFIG']['rating_type']))
{
$this->Config->add("\$GLOBALS['TL_CONFIG']['rating_type']", 'hearts');
}
if (!isset($GLOBALS['TL_CONFIG']['rating_count']))
{
$this->Config->add("\$GLOBALS['TL_CONFIG']['rating_count']", 5);
}
if (!isset($GLOBALS['TL_CONFIG']['rating_textposition']))
{
$this->Config->add("\$GLOBALS['TL_CONFIG']['rating_textposition']", 'after');
}
if (!isset($GLOBALS['TL_CONFIG']['rating_listsize']))
{
$this->Config->add("\$GLOBALS['TL_CONFIG']['rating_listsize']", 10);
}
if (!isset($GLOBALS['TL_CONFIG']['rating_template']))
{
$this->Config->add("\$GLOBALS['TL_CONFIG']['rating_template']", 'rateit_default');
}
if (!isset($GLOBALS['TL_CONFIG']['rating_description']))
{
$this->Config->add("\$GLOBALS['TL_CONFIG']['rating_description']", '%current%/%max% %type% (%count% [Stimme|Stimmen])');
}
}
}
// Run once
$objRunonceJob = new runonceJob();
$objRunonceJob->run();
?>

View File

@ -0,0 +1,116 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2010 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
/**
* Extend tl_article
*/
$GLOBALS['TL_DCA']['tl_article']['config']['onsubmit_callback'][] = array('tl_article_rating','insert');
$GLOBALS['TL_DCA']['tl_article']['config']['ondelete_callback'][] = array('tl_article_rating','delete');
/**
* Palettes
*/
$GLOBALS['TL_DCA']['tl_article']['palettes']['__selector__'][] = 'addRating';
$GLOBALS['TL_DCA']['tl_article']['palettes']['default'] = $GLOBALS['TL_DCA']['tl_article']['palettes']['default'].';{rateit_legend:hide},addRating';
/**
* Add subpalettes to tl_article
*/
$GLOBALS['TL_DCA']['tl_article']['subpalettes']['addRating'] = 'rateit_position,rateit_template';
// Fields
$GLOBALS['TL_DCA']['tl_article']['fields']['addRating'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_article']['addRating'],
'exclude' => true,
'inputType' => 'checkbox',
'sql' => "char(1) NOT NULL default ''",
'eval' => array('tl_class'=>'w50 m12', 'submitOnChange'=>true)
);
$GLOBALS['TL_DCA']['tl_article']['fields']['rateit_position'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_article']['rateit_position'],
'default' => 'before',
'exclude' => true,
'inputType' => 'select',
'options' => array('after', 'before'),
'reference' => &$GLOBALS['TL_LANG']['tl_article'],
'sql' => "varchar(6) NOT NULL default ''",
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
$GLOBALS['TL_DCA']['tl_article']['fields']['rateit_template'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_article']['rateit_template'],
'default' => 'rateit_default',
'exclude' => true,
'inputType' => 'select',
'options_callback' => array('tl_article_rating', 'getRateItArticleTemplates'),
'sql' => "varchar(255) NOT NULL default ''",
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
class tl_article_rating extends rateit\DcaHelper {
/**
* Constructor
*/
public function __construct() {
parent::__construct();
}
/**
* Return all navigation templates as array
* @param DataContainer
* @return array
*/
public function getRateItArticleTemplates(\DataContainer $dc) {
$intPid = $dc->activeRecord->pid;
if ($this->Input->get('act') == 'overrideAll')
{
$intPid = $this->Input->get('id');
}
return $this->getTemplateGroup('article_rateit_', $intPid);
}
public function insert(\DC_Table $dc) {
return $this->insertOrUpdateRatingKey($dc, 'article', $dc->activeRecord->title);
}
public function delete(\DC_Table $dc)
{
return $this->deleteRatingKey($dc, 'article');
}
}
?>

View File

@ -0,0 +1,176 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
$GLOBALS['TL_DCA']['tl_content']['config']['onsubmit_callback'][] = array('tl_content_rateit','insert');
$GLOBALS['TL_DCA']['tl_content']['config']['ondelete_callback'][] = array('tl_content_rateit','delete');
/**
* palettes
*/
$GLOBALS['TL_DCA']['tl_content']['palettes']['rateit'] = '{type_legend},type,rateit_title;{rateit_legend},rateit_active;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space';
$GLOBALS['TL_DCA']['tl_content']['palettes']['gallery'] = $GLOBALS['TL_DCA']['tl_content']['palettes']['gallery'].';{rateit_legend},rateit_active';
/**
* fields
*/
$GLOBALS['TL_DCA']['tl_content']['fields']['rateit_title'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_content']['rateit_title'],
'default' => '',
'exclude' => true,
'inputType' => 'text',
'sql' => "varchar(255) NOT NULL default ''",
'eval' => array('mandatory'=>true, 'maxlength'=>255)
);
$GLOBALS['TL_DCA']['tl_content']['fields']['rateit_active'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_content']['rateit_active'],
'exclude' => true,
'inputType' => 'checkbox',
'sql' => "char(1) NOT NULL default ''",
'eval' => array('tl_class'=>'w50')
);
/**
* Class tl_content_rateit
*/
class tl_content_rateit extends rateit\DcaHelper {
/**
* Constructor
*/
public function __construct() {
parent::__construct();
}
public function insert(\DC_Table $dc) {
if ($dc->activeRecord->type == "gallery") {
$type = 'galpic';
// Alle vorherigen Bilder erst mal auf inaktiv setzen
$this->Database->prepare("UPDATE tl_rateit_items SET active='' WHERE rkey LIKE ? AND typ=?")->execute($dc->activeRecord->id.'|%', $type);
if (version_compare(VERSION, '3.2', '>=')) {
$objFiles = \FilesModel::findMultipleByUuids(deserialize($dc->activeRecord->multiSRC));
} else {
$objFiles = \FilesModel::findMultipleByIds(deserialize($dc->activeRecord->multiSRC));
}
if ($objFiles !== null) {
// Get all images
while ($objFiles->next()) {
// Single files
if ($objFiles->type == 'file') {
$objFile = new \File($objFiles->path, true);
if (!$objFile->isGdImage) {
continue;
}
$this->insertOrUpdateRatingItemGallery($dc, $type, $objFile->name, $objFiles->id, ($dc->activeRecord->rateit_active ? '1' : ''));
}
// Folders
else {
if (version_compare(VERSION, '3.2', '>=')) {
$objSubfiles = \FilesModel::findByPid($objFiles->uuid);
} else {
$objSubfiles = \FilesModel::findByPid($objFiles->id);
}
if ($objSubfiles === null) {
continue;
}
while ($objSubfiles->next()) {
// Skip subfolders
if ($objSubfiles->type == 'folder') {
continue;
}
$objFile = new \File($objSubfiles->path, true);
if (!$objFile->isGdImage) {
continue;
}
$this->insertOrUpdateRatingItemGallery($dc, $type, $objSubfiles->name, $objSubfiles->id, ($dc->activeRecord->rateit_active ? '1' : ''));
}
}
}
}
return true;
} else {
return $this->insertOrUpdateRatingKey($dc, 'ce', $dc->activeRecord->rateit_title);
}
}
public function delete(\DC_Table $dc) {
if ($dc->activeRecord->type == "gallery") {
$this->Database->prepare("DELETE FROM tl_rateit_ratings WHERE pid IN (SELECT `id` FROM tl_rateit_items WHERE rkey LIKE ? AND typ=?)")
->execute($dc->activeRecord->id.'|%', 'galpic');
$this->Database->prepare("DELETE FROM tl_rateit_items WHERE rkey LIKE ? AND typ=?")->execute($dc->activeRecord->id.'|%', 'galpic');
return true;
} else {
return $this->deleteRatingKey($dc, 'ce');
}
}
private function insertOrUpdateRatingItemGallery(\DC_Table &$dc, $type, $strName, $imgId, $active) {
$rkey = $dc->activeRecord->id.'|'.$imgId;
$headline = deserialize($dc->activeRecord->headline);
$title = $dc->activeRecord->id;
if (is_array($headline) && array_key_exists('value', $headline) && strlen($headline['value']) > 0) {
$title = $headline['value'];
}
$ratingTitle = $title.' - '.$strName;
$actRecord = $this->Database->prepare("SELECT * FROM tl_rateit_items WHERE rkey=? and typ=?")
->execute($rkey, $type)
->fetchAssoc();
if (!is_array($actRecord)) {
$arrSet = array('rkey' => $rkey,
'tstamp' => time(),
'typ' => $type,
'createdat' => time(),
'title'=> $ratingTitle,
'active' => $active
);
$insertRecord = $this->Database->prepare("INSERT INTO tl_rateit_items %s")
->set($arrSet)
->execute()
->insertId;
} else {
$this->Database->prepare("UPDATE tl_rateit_items SET active=?, title=? WHERE rkey=? and typ=?")
->execute($active, $ratingTitle, $rkey, $type)
->updatedId;
}
}
}
?>

View File

@ -0,0 +1,89 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2010 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
/**
* Extend tl_article
*/
$GLOBALS['TL_DCA']['tl_faq']['config']['onsubmit_callback'][] = array('tl_faq_rating','insert');
$GLOBALS['TL_DCA']['tl_faq']['config']['ondelete_callback'][] = array('tl_faq_rating','delete');
/**
* Palettes
*/
$GLOBALS['TL_DCA']['tl_faq']['palettes']['__selector__'][] = 'addRating';
$GLOBALS['TL_DCA']['tl_faq']['palettes']['default'] = $GLOBALS['TL_DCA']['tl_faq']['palettes']['default'].';{rating_legend:hide},addRating';
/**
* Add subpalettes to tl_article
*/
$GLOBALS['TL_DCA']['tl_faq']['subpalettes']['addRating'] = 'rateit_position';
// Fields
$GLOBALS['TL_DCA']['tl_faq']['fields']['addRating'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_faq']['addRating'],
'exclude' => true,
'inputType' => 'checkbox',
'sql' => "char(1) NOT NULL default ''",
'eval' => array('tl_class'=>'w50 m12', 'submitOnChange'=>true)
);
$GLOBALS['TL_DCA']['tl_faq']['fields']['rateit_position'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_faq']['rateit_position'],
'default' => 'before',
'exclude' => true,
'inputType' => 'select',
'options' => array('after', 'before'),
'reference' => &$GLOBALS['TL_LANG']['tl_faq'],
'sql' => "varchar(6) NOT NULL default ''",
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
class tl_faq_rating extends rateit\DcaHelper {
/**
* Constructor
*/
public function __construct() {
parent::__construct();
}
public function insert(\DC_Table $dc) {
return $this->insertOrUpdateRatingKey($dc, 'faq', $dc->activeRecord->question);
}
public function delete(\DC_Table $dc)
{
return $this->deleteRatingKey($dc, 'faq');
}
}
?>

View File

@ -0,0 +1,140 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
$GLOBALS['TL_DCA']['tl_module']['config']['onsubmit_callback'][] = array('tl_module_rateit','insert');
$GLOBALS['TL_DCA']['tl_module']['config']['ondelete_callback'][] = array('tl_module_rateit','delete');
/**
* palettes
*/
$GLOBALS['TL_DCA']['tl_module']['palettes']['rateit'] = '{title_legend},name,rateit_title,type;{rateit_legend},rateit_active;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space';
$GLOBALS['TL_DCA']['tl_module']['palettes']['rateit_top_ratings'] = '{title_legend},name,headline,type;{rateit_legend},rateit_types,rateit_toptype,rateit_count,rateit_template;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space';
$GLOBALS['TL_DCA']['tl_module']['palettes']['articleList'] = $GLOBALS['TL_DCA']['tl_module']['palettes']['articleList'].';{rateit_legend},rateit_active';
/**
* fields
*/
$GLOBALS['TL_DCA']['tl_module']['fields']['rateit_title'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rateit_title'],
'default' => '',
'exclude' => true,
'inputType' => 'text',
'sql' => "varchar(255) NOT NULL default ''",
'eval' => array('mandatory'=>true, 'maxlength'=>255, 'tl_class'=>'w50')
);
$GLOBALS['TL_DCA']['tl_module']['fields']['rateit_active'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rateit_active'],
'exclude' => true,
'inputType' => 'checkbox',
'sql' => "char(1) NOT NULL default ''",
'eval' => array('tl_class'=>'w50 m12')
);
$GLOBALS['TL_DCA']['tl_module']['fields']['rateit_types'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rateit_types'],
'exclude' => true,
'inputType' => 'checkboxWizard',
'options' => array('page', 'article', 'ce', 'module', 'news', 'faq', 'galpic', 'news4ward'),
'eval' => array('multiple'=>true, 'mandatory'=>true),
'reference' => &$GLOBALS['TL_LANG']['tl_module']['rateit_types'],
'sql' => "varchar(255) NOT NULL default ''"
);
$GLOBALS['TL_DCA']['tl_module']['fields']['rateit_toptype'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rateit_toptype'],
'exclude' => true,
'default' => 'best',
'inputType' => 'select',
'options' => array('best', 'most'),
'eval' => array('mandatory'=>true, 'tl_class'=>'w50'),
'reference' => &$GLOBALS['TL_LANG']['tl_module']['rateit_toptype'],
'sql' => "varchar(10) NOT NULL default ''"
);
$GLOBALS['TL_DCA']['tl_module']['fields']['rateit_count'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rateit_count'],
'default' => '10',
'exclude' => true,
'inputType' => 'text',
'eval' => array('mandatory'=>true, 'maxlength'=>3, 'rgxp'=>'digit', 'tl_class'=>'w50'),
'sql' => "varchar(3) NOT NULL default ''"
);
$GLOBALS['TL_DCA']['tl_module']['fields']['rateit_template'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rateit_template'],
'default' => 'mod_rateit_top_ratings',
'exclude' => true,
'inputType' => 'select',
'options_callback' => array('tl_module_rateit', 'getRateItTopModuleTemplates'),
'eval' => array('mandatory'=>true, 'tl_class'=>'w50'),
'sql' => "varchar(255) NOT NULL default ''"
);
/**
* Class tl_module_rateit
*/
class tl_module_rateit extends rateit\DcaHelper {
/**
* Constructor
*/
public function __construct() {
parent::__construct();
}
public function insert(\DC_Table $dc) {
return $this->insertOrUpdateRatingKey($dc, 'module', $dc->activeRecord->rateit_title);
}
public function delete(\DC_Table $dc)
{
return $this->deleteRatingKey($dc, 'module');
}
public function getRateItTopModuleTemplates(\DataContainer $dc)
{
$intPid = $dc->activeRecord->pid;
if ($this->Input->get('act') == 'overrideAll')
{
$intPid = $this->Input->get('id');
}
return $this->getTemplateGroup('mod_rateit_top', $intPid);
}
}
?>

View File

@ -0,0 +1,89 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2010 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
/**
* Extend tl_article
*/
$GLOBALS['TL_DCA']['tl_news']['config']['onsubmit_callback'][] = array('tl_news_rating','insert');
$GLOBALS['TL_DCA']['tl_news']['config']['ondelete_callback'][] = array('tl_news_rating','delete');
/**
* Palettes
*/
$GLOBALS['TL_DCA']['tl_news']['palettes']['__selector__'][] = 'addRating';
$GLOBALS['TL_DCA']['tl_news']['palettes']['default'] = $GLOBALS['TL_DCA']['tl_news']['palettes']['default'].';{rating_legend:hide},addRating';
/**
* Add subpalettes to tl_article
*/
$GLOBALS['TL_DCA']['tl_news']['subpalettes']['addRating'] = 'rateit_position';
// Fields
$GLOBALS['TL_DCA']['tl_news']['fields']['addRating'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_news']['addRating'],
'exclude' => true,
'inputType' => 'checkbox',
'sql' => "char(1) NOT NULL default ''",
'eval' => array('tl_class'=>'w50 m12', 'submitOnChange'=>true)
);
$GLOBALS['TL_DCA']['tl_news']['fields']['rateit_position'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_news']['rateit_position'],
'default' => 'before',
'exclude' => true,
'inputType' => 'select',
'options' => array('after', 'before'),
'reference' => &$GLOBALS['TL_LANG']['tl_news'],
'sql' => "varchar(6) NOT NULL default ''",
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
class tl_news_rating extends rateit\DcaHelper {
/**
* Constructor
*/
public function __construct() {
parent::__construct();
}
public function insert(\DC_Table $dc) {
return $this->insertOrUpdateRatingKey($dc, 'news', $dc->activeRecord->headline);
}
public function delete(\DC_Table $dc)
{
return $this->deleteRatingKey($dc, 'news');
}
}
?>

View File

@ -0,0 +1,101 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2010 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
/**
* Extend tl_page
*/
$GLOBALS['TL_DCA']['tl_page']['config']['onsubmit_callback'][] = array('tl_page_rateit','insert');
$GLOBALS['TL_DCA']['tl_page']['config']['ondelete_callback'][] = array('tl_page_rateit','delete');
/**
* Palettes
*/
$GLOBALS['TL_DCA']['tl_page']['palettes']['__selector__'][] = 'addRating';
foreach ($GLOBALS['TL_DCA']['tl_page']['palettes'] as $keyPalette => $valuePalette)
{
// Skip if we have a array or the palettes for subselections
if (is_array($valuePalette) || $keyPalette == "__selector__" || $keyPalette == "root" || $keyPalette == "forward" || $keyPalette == "redirect")
{
continue;
}
$valuePalette .= ';{rateit_legend:hide},addRating';
// Write new entry back in the palette
$GLOBALS['TL_DCA']['tl_page']['palettes'][$keyPalette] = $valuePalette;
}
/**
* Add subpalettes to tl_page
*/
$GLOBALS['TL_DCA']['tl_page']['subpalettes']['addRating'] = 'rateit_position';
// Fields
$GLOBALS['TL_DCA']['tl_page']['fields']['addRating'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['addRating'],
'exclude' => true,
'inputType' => 'checkbox',
'sql' => "char(1) NOT NULL default ''",
'eval' => array('tl_class'=>'w50 m12', 'submitOnChange'=>true)
);
$GLOBALS['TL_DCA']['tl_page']['fields']['rateit_position'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['rateit_position'],
'default' => 'before',
'exclude' => true,
'inputType' => 'select',
'options' => array('after', 'before'),
'reference' => &$GLOBALS['TL_LANG']['tl_page'],
'sql' => "varchar(6) NOT NULL default ''",
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
class tl_page_rateit extends rateit\DcaHelper {
/**
* Constructor
*/
public function __construct() {
parent::__construct();
}
public function insert(\DC_Table $dc) {
return $this->insertOrUpdateRatingKey($dc, 'page', $dc->activeRecord->title);
}
public function delete(\DC_Table $dc)
{
return $this->deleteRatingKey($dc, 'page');
}
}
?>

View File

@ -0,0 +1,69 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2010 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2014
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
/**
* Table tl_rateit_items
*/
$GLOBALS['TL_DCA']['tl_rateit_items'] = array (
'config' => array (
'dataContainer' => 'Table',
'ctable' => array('tl_rateit_ratings'),
'switchToEdit' => false,
'sql' => array (
'keys' => array (
'id' => 'primary'
)
)
),
'fields' => array (
'id' => array (
'sql' => "int(10) unsigned NOT NULL auto_increment"
),
'tstamp' => array (
'sql' => "int(10) unsigned NOT NULL default '0'"
),
'title' => array (
'sql' => "varchar(513) NOT NULL default ''"
),
'rkey' => array (
'sql' => "varchar(32) NOT NULL default ''"
),
'typ' => array (
'sql' => "varchar(32) NOT NULL default ''"
),
'createdat' => array (
'sql' => "int(10) NOT NULL default '0'"
),
'active' => array (
'sql' => "char(1) NOT NULL default ''"
)
)
);

View File

@ -0,0 +1,72 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2010 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2014
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
/**
* Table tl_rateit_items
*/
$GLOBALS['TL_DCA']['tl_rateit_ratings'] = array (
'config' => array (
'dataContainer' => 'Table',
'ptable' => 'tl_rateit_items',
'switchToEdit' => false,
'sql' => array (
'keys' => array (
'id' => 'primary',
'pid' => 'index',
)
)
),
'fields' => array (
'id' => array (
'sql' => "int(10) unsigned NOT NULL auto_increment"
),
'tstamp' => array (
'sql' => "int(10) unsigned NOT NULL default '0'"
),
'pid' => array (
'foreignKey' => 'tl_rateit_items.id',
'sql' => "int(10) unsigned NOT NULL default '0'",
'relation' => array('type'=>'belongsTo', 'load'=>'lazy')
),
'ip_address' => array (
'sql' => "varchar(50) NULL"
),
'memberid' => array (
'sql' => "int(10) unsigned NULL"
),
'rating' => array (
'sql' => "int(10) unsigned NOT NULL default '0'"
),
'createdat' => array (
'sql' => "int(10) NOT NULL default '0'"
)
)
);

View File

@ -0,0 +1,115 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2012-2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package aeo
* @license GNU/LGPL
* @filesource
*/
/**
* palettes
*/
$GLOBALS['TL_DCA']['tl_settings']['palettes']['default'] .= ';{rateit_legend:hide},rating_type,rating_count,rating_textposition,rating_listsize,rating_allow_duplicate_ratings,rating_allow_duplicate_ratings_for_members,rating_template,rating_description';
/**
* fields
*/
$GLOBALS['TL_DCA']['tl_settings']['fields']['rating_type'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_settings']['rating_type'],
'default' => 'hearts',
'exclude' => true,
'inputType' => 'select',
'options' => array('hearts', 'stars'),
'reference' => &$GLOBALS['TL_LANG']['tl_settings'],
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
$GLOBALS['TL_DCA']['tl_settings']['fields']['rating_count'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_settings']['rating_count'],
'default' => '5',
'exclude' => true,
'inputType' => 'select',
'options' => array('1', '5', '10'),
'reference' => &$GLOBALS['TL_LANG']['tl_settings'],
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
$GLOBALS['TL_DCA']['tl_settings']['fields']['rating_textposition'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_settings']['rating_textposition'],
'default' => 'after',
'exclude' => true,
'inputType' => 'select',
'options' => array('after', 'before'),
'reference' => &$GLOBALS['TL_LANG']['tl_settings'],
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
$GLOBALS['TL_DCA']['tl_settings']['fields']['rating_listsize'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_settings']['rating_listsize'],
'exclude' => true,
'default' => 10,
'inputType' => 'text',
'eval' => array('mandatory'=>false, 'maxlength'=>4, 'tl_class'=>'w50')
);
$GLOBALS['TL_DCA']['tl_settings']['fields']['rating_allow_duplicate_ratings'] = array
(
'exclude' => true,
'label' => &$GLOBALS['TL_LANG']['tl_settings']['allow_duplicate_ratings'],
'inputType' => 'checkbox',
'eval' => array('tl_class'=>'w50 m12')
);
$GLOBALS['TL_DCA']['tl_settings']['fields']['rating_allow_duplicate_ratings_for_members'] = array
(
'exclude' => true,
'label' => &$GLOBALS['TL_LANG']['tl_settings']['allow_duplicate_ratings_for_members'],
'inputType' => 'checkbox',
'eval' => array('tl_class'=>'w50 m12')
);
$GLOBALS['TL_DCA']['tl_settings']['fields']['rating_template'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_settings']['rating_template'],
'default' => 'rateit_default',
'exclude' => true,
'inputType' => 'select',
'options_callback' => array('tl_settings_rateit', 'getRateItTemplates'),
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
$GLOBALS['TL_DCA']['tl_settings']['fields']['rating_description'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_settings']['rating_description'],
'exclude' => true,
'default' => '%current%/%max% %type% (%count% [Stimme|Stimmen])',
'inputType' => 'text',
'eval' => array('mandatory'=>true, 'allowHtml'=>true, 'tl_class'=>'w50')
);
?>

View File

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="default" source-language="en" target-language="de">
<body>
<trans-unit id="FMD.rateit.0">
<source>Rate It</source>
<target>Rate It</target>
</trans-unit>
<trans-unit id="FMD.rateit.1">
<source>Enables users to leave ratings for articles, pages, news and FAQs.</source>
<target>Bietet Benutzern die Möglichkeit Bewertungen für Artikel, Seiten, News und FAQs abzugeben.</target>
</trans-unit>
<trans-unit id="FMD.rateit_top_ratings.0">
<source>Rate It - Best/Most ratings</source>
<target>Rate It - Beste/Meiste Bewertungen</target>
</trans-unit>
<trans-unit id="FMD.rateit_top_ratings.1">
<source>List of the x best ratings.</source>
<target>Auflistung der x besten Bewertungen als Liste.</target>
</trans-unit>
<trans-unit id="CTE.rateit.0">
<source>Rate It</source>
<target>Rate It</target>
</trans-unit>
<trans-unit id="CTE.rateit.1">
<source>Enables users to leave ratings for articles, pages, news and FAQs.</source>
<target>Bietet Benutzern die Möglichkeit Bewertungen für Artikel, Seiten, News und FAQs abzugeben.</target>
</trans-unit>
<trans-unit id="rateit.rating_label.0">
<source>vote</source>
<target>Stimme</target>
</trans-unit>
<trans-unit id="rateit.rating_label.1">
<source>votes</source>
<target>Stimmen</target>
</trans-unit>
<trans-unit id="rateit.heart">
<source>heart</source>
<target>Herz</target>
</trans-unit>
<trans-unit id="rateit.hearts">
<source>hearts</source>
<target>Herzen</target>
</trans-unit>
<trans-unit id="rateit.star">
<source>star</source>
<target>Stern</target>
</trans-unit>
<trans-unit id="rateit.stars">
<source>stars</source>
<target>Sterne</target>
</trans-unit>
<trans-unit id="rateit.error.invalid_id">
<source>ERROR: Invalid ID for rating given.</source>
<target>FEHLER: Ungültige ID für Rating angegeben.</target>
</trans-unit>
<trans-unit id="rateit.error.invalid_rating">
<source>ERROR: Invalid rating given.</source>
<target>FEHLER: Ungültiges Rating angegeben.</target>
</trans-unit>
<trans-unit id="rateit.error.invalid_type">
<source>ERROR: Invalid type for rating given.</source>
<target>FEHLER: Ungültiger Typ für Rating angegeben.</target>
</trans-unit>
<trans-unit id="rateit.error.duplicate_vote">
<source>ERROR: You may not vote more than once.</source>
<target>FEHLER: Sie dürfen nicht mehrfach abstimmen.</target>
</trans-unit>
<trans-unit id="rateit.error.duplicate_rkey">
<source>The unique identifier "% s" already exists for a rating. Please choose a different identifier.</source>
<target>Der eindeutige Bezeichner "%s" für ein Rating existiert bereits. Bitte wählen Sie einen anderen Bezeichner.</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="modules" source-language="en" target-language="de">
<body>
<trans-unit id="MOD.rateit.0">
<source>Rate It</source>
<target>Rate It</target>
</trans-unit>
<trans-unit id="MOD.rateit.1">
<source>View ratings for articles, pages, news and faqs</source>
<target>Bewertungen für Artikel, Seiten, News und FAQs ansehen</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,303 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="rateit_backend" source-language="en" target-language="de">
<body>
<trans-unit id="tl_rateit.goback">
<source>Back</source>
<target>Zurück</target>
</trans-unit>
<trans-unit id="tl_rateit.noratingsfound">
<source>No matching ratings found.</source>
<target>Keine entsprechenden Bewertungen gefunden.</target>
</trans-unit>
<trans-unit id="tl_rateit.showdetails">
<source>Detailview</source>
<target>Detailanzeige</target>
</trans-unit>
<trans-unit id="tl_rateit.byorder">
<source>By %s</source>
<target>Nach %s</target>
</trans-unit>
<trans-unit id="tl_rateit.seltyp.0">
<source>Type</source>
<target>Typ</target>
</trans-unit>
<trans-unit id="tl_rateit.seltyp.1">
<source>Please choose the rating type.</source>
<target>Bitte wählen Sie den Bewertungs-Typ.</target>
</trans-unit>
<trans-unit id="tl_rateit.selactive.0">
<source>Active/Inactive</source>
<target>Aktiv/Inaktiv</target>
</trans-unit>
<trans-unit id="tl_rateit.selactive.1">
<source>Please choose whether you want to display only active or inactive ratings.</source>
<target>Bitte wählen Sie, ob Sie nur aktive bzw. inaktive Bewertungen anzeigen wollen.</target>
</trans-unit>
<trans-unit id="tl_rateit.typ.0">
<source>Type</source>
<target>Typ</target>
</trans-unit>
<trans-unit id="tl_rateit.typ.1">
<source>Rating type (rating for an "article", a "page", a "news" or a "faq")</source>
<target>Typ des Ratings (Rating für eine "Seite" oder einen "Artikel")</target>
</trans-unit>
<trans-unit id="tl_rateit.title.0">
<source>Title</source>
<target>Titel</target>
</trans-unit>
<trans-unit id="tl_rateit.title.1">
<source>Title of the article, page, news or faq, on which the rating is included.</source>
<target>Titel der Seite oder des Artikels, auf der/dem das Rating eingebunden ist.</target>
</trans-unit>
<trans-unit id="tl_rateit.createdat.0">
<source>activated since</source>
<target>aktiviert seit</target>
</trans-unit>
<trans-unit id="tl_rateit.createdat.1">
<source>Day from which this rating has been enabled in the format "%s"</source>
<target>Tag ab dem dieses Bewertung aktiviert gewesen ist im Format %s</target>
</trans-unit>
<trans-unit id="tl_rateit.status.0">
<source>Status</source>
<target>Status</target>
</trans-unit>
<trans-unit id="tl_rateit.status.1">
<source>Indicates whether this rating is currently enabled or not.</source>
<target>Gibt an, ob diese Bewertung derzeit aktiviert ist oder nicht.</target>
</trans-unit>
<trans-unit id="tl_rateit.rating.0">
<source>Rating</source>
<target>Bewertung</target>
</trans-unit>
<trans-unit id="tl_rateit.rating.1">
<source>actual rating</source>
<target>aktueller Bewertungsstand</target>
</trans-unit>
<trans-unit id="tl_rateit.overall_rating.0">
<source>Overall rating</source>
<target>Gesamtbewertung</target>
</trans-unit>
<trans-unit id="tl_rateit.overall_rating.1">
<source>actual overall rating</source>
<target>aktueller Gesamt-Bewertungsstand</target>
</trans-unit>
<trans-unit id="tl_rateit.totalratings.0">
<source>Total votes</source>
<target>Anzahl Bewertungen</target>
</trans-unit>
<trans-unit id="tl_rateit.totalratings.1">
<source>Number of votes for this rating</source>
<target>Anzahl der abgegebenen Stimmen für diese Bewertung</target>
</trans-unit>
<trans-unit id="tl_rateit.ratingfmt">
<source>%s/%d (%d Votes)</source>
<target>%s/%d (%d Stimmen)</target>
</trans-unit>
<trans-unit id="tl_rateit.ratingviewfmt">
<source>%s/%d</source>
<target>%s/%d</target>
</trans-unit>
<trans-unit id="tl_rateit.ratingstatisticsfmt">
<source>Rating %s: %d of %d votes (corresponds %s%%)</source>
<target>Bewertung %s: %d von %d abgegebenen Bewertungen (entspricht %s%%)</target>
</trans-unit>
<trans-unit id="tl_rateit.statistics.0">
<source>Statistics</source>
<target>Statistik</target>
</trans-unit>
<trans-unit id="tl_rateit.statistics.1">
<source>Statistics</source>
<target>Statistik</target>
</trans-unit>
<trans-unit id="tl_rateit.rating_chart_legend.0">
<source>Distribution of ratings</source>
<target>Verteilung der Bewertungen</target>
</trans-unit>
<trans-unit id="tl_rateit.rating_chart_legend.1">
<source>Count of ratings</source>
<target>Anzahl Bewertungen</target>
</trans-unit>
<trans-unit id="tl_rateit.rating_chart_legend.2">
<source>Rating</source>
<target>Bewertung</target>
</trans-unit>
<trans-unit id="tl_rateit.rating_chart_legend.3">
<source>Count</source>
<target>Anzahl</target>
</trans-unit>
<trans-unit id="tl_rateit.month_chart_legend.0">
<source>Ratings per month</source>
<target>abgegebene Bewertungen pro Monat</target>
</trans-unit>
<trans-unit id="tl_rateit.month_chart_legend.1">
<source>Ratings per month</source>
<target>abgegebene Bewertungen pro Monat</target>
</trans-unit>
<trans-unit id="tl_rateit.month_chart_legend.2">
<source>Average rating</source>
<target>durchschn. Bewertung</target>
</trans-unit>
<trans-unit id="tl_rateit.month_chart_legend.3">
<source>Month</source>
<target>Monat</target>
</trans-unit>
<trans-unit id="tl_rateit.month_chart_legend.4">
<source>Count</source>
<target>Anzahl</target>
</trans-unit>
<trans-unit id="tl_rateit.ratings.0">
<source>Ratings</source>
<target>Abgegebene Bewertungen</target>
</trans-unit>
<trans-unit id="tl_rateit.ratings.1">
<source>List of all ratings</source>
<target>Liste aller abgegebenen Bewertungen</target>
</trans-unit>
<trans-unit id="tl_rateit.ip.0">
<source>IP address</source>
<target>IP-Adresse</target>
</trans-unit>
<trans-unit id="tl_rateit.member.0">
<source>Frontend member</source>
<target>Frontend Benutzer</target>
</trans-unit>
<trans-unit id="tl_rateit.createdatdetail.0">
<source>Valuation Point</source>
<target>Bewertungszeitpunkt</target>
</trans-unit>
<trans-unit id="tl_rateit.vote.0">
<source>vote</source>
<target>Stimme</target>
</trans-unit>
<trans-unit id="tl_rateit.vote.1">
<source>votes</source>
<target>Stimmen</target>
</trans-unit>
<trans-unit id="tl_rateit.clearratings">
<source>Reset selected ratings</source>
<target>Markierte Bewertungen zurücksetzen</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.page">
<source>Page</source>
<target>Seite</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.article">
<source>Article</source>
<target>Artikel</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.news">
<source>News</source>
<target>Nachricht</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.faq">
<source>FAQ</source>
<target>FAQ</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.ce">
<source>Content element</source>
<target>Inhaltselement</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.module">
<source>Module</source>
<target>Modul</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.galpic">
<source>Gallery picture</source>
<target>Galerie-Bild</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.news4ward">
<source>Blog entry</source>
<target>Beitrag</target>
</trans-unit>
<trans-unit id="tl_rateit_order_options.rating desc">
<source>Rating</source>
<target>Bewertung</target>
</trans-unit>
<trans-unit id="tl_rateit_order_options.title">
<source>Title</source>
<target>Titel</target>
</trans-unit>
<trans-unit id="tl_rateit_order_options.typ">
<source>Type</source>
<target>Typ</target>
</trans-unit>
<trans-unit id="tl_rateit_order_options.createdat">
<source>Activation date</source>
<target>Aktivierungsdatum</target>
</trans-unit>
<trans-unit id="tl_rateit_active_options.0">
<source>inactive</source>
<target>inaktiv</target>
</trans-unit>
<trans-unit id="tl_rateit_active_options.1">
<source>active</source>
<target>aktiv</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_sheetname_ratings">
<source>Ratings</source>
<target>Bewertungen</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_sheetname_rating">
<source>Rating</source>
<target>Bewertung</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.rkey">
<source>Rating-Key</source>
<target>Rating-Key</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.typ">
<source>Type</source>
<target>Typ</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.title">
<source>Title</source>
<target>Titel</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.createdat">
<source>Activation date</source>
<target>Aktivierungszeitpunkt</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.active">
<source>Active</source>
<target>Aktiv</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.rating">
<source>Rating</source>
<target>Bewertung</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.stars">
<source>Max. Rating</source>
<target>Max. Bewertung</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.percent">
<source>Rating in percent</source>
<target>Bewertung in Prozent</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.totalRatings">
<source>Total votes</source>
<target>Anzahl Bewertungen</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers_detail.ip">
<source>IP address</source>
<target>IP Adresse</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers_detail.member">
<source>Frontend member</source>
<target>Frontend Benutzer</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers_detail.rating">
<source>Rating</source>
<target>Bewertung</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers_detail.percent">
<source>Rating in percent</source>
<target>Bewertung in Prozent</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers_detail.createdat">
<source>Valuation Point</source>
<target>Bewertungszeitpunkt</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_article" source-language="en" target-language="de">
<body>
<trans-unit id="tl_article.rateit_legend">
<source>Rate It-Settings</source>
<target>Rate It-Einstellungen</target>
</trans-unit>
<trans-unit id="tl_article.addRating.0">
<source>activate rating</source>
<target>Rating aktivieren</target>
</trans-unit>
<trans-unit id="tl_article.addRating.1">
<source>Enables the rating for this article</source>
<target>Aktiviert das Rating für diesen Artikel</target>
</trans-unit>
<trans-unit id="tl_article.rateit_position.0">
<source>position</source>
<target>Position</target>
</trans-unit>
<trans-unit id="tl_article.rateit_position.1">
<source>position of the rating (before or above) the article.</source>
<target>Position des Rating (ober- oder unterhalb) des Artikels.</target>
</trans-unit>
<trans-unit id="tl_article.rateit_template.0">
<source>Template</source>
<target>Template</target>
</trans-unit>
<trans-unit id="tl_article.rateit_template.1">
<source>Here you can select the template for the article's rating.</source>
<target>Hier können Sie das Template für die Bewertung des Artikels auswählen.</target>
</trans-unit>
<trans-unit id="tl_article.before.0">
<source>above</source>
<target>oberhalb</target>
</trans-unit>
<trans-unit id="tl_article.before.1">
<source>Display the text above the article</source>
<target>Anzeige des Texts oberhalb des Artikels</target>
</trans-unit>
<trans-unit id="tl_article.after.0">
<source>below</source>
<target>unterhalb</target>
</trans-unit>
<trans-unit id="tl_article.after.1">
<source>Display the text below the article</source>
<target>Anzeige des Texts unterhalb des Artikels</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_content" source-language="en" target-language="de">
<body>
<trans-unit id="tl_content.rateit_legend">
<source>Rate It-Settings</source>
<target>Rate It-Einstellungen</target>
</trans-unit>
<trans-unit id="tl_content.rateit_title.0">
<source>Rating title</source>
<target>Titel der Bewertung</target>
</trans-unit>
<trans-unit id="tl_content.rateit_title.1">
<source>Rating title (shown in backend).</source>
<target>Titel der Bewertung (wird im Backend angezeigt).</target>
</trans-unit>
<trans-unit id="tl_content.rateit_active.0">
<source>Active</source>
<target>Aktiv</target>
</trans-unit>
<trans-unit id="tl_content.rateit_active.1">
<source>Active means that the review is visible to the front-end users.</source>
<target>Aktiv bedeutet, dass die Bewertung sichtbar für den Frontend-Nutzer ist.</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_faq" source-language="en" target-language="de">
<body>
<trans-unit id="tl_faq.rating_legend">
<source>Rate It-Settings</source>
<target>Rate It-Einstellungen</target>
</trans-unit>
<trans-unit id="tl_faq.addRating.0">
<source>activate rating</source>
<target>Rating aktivieren</target>
</trans-unit>
<trans-unit id="tl_faq.addRating.1">
<source>Enables the rating for this news article</source>
<target>Aktiviert das Rating für diese FAQ</target>
</trans-unit>
<trans-unit id="tl_faq.rateit_position.0">
<source>position</source>
<target>Position</target>
</trans-unit>
<trans-unit id="tl_faq.rateit_position.1">
<source>position of the rating (before or above) the FAQ entry.</source>
<target>Position des Rating (ober- oder unterhalb) des FAQ-Beitrags.</target>
</trans-unit>
<trans-unit id="tl_faq.before.0">
<source>above</source>
<target>oberhalb</target>
</trans-unit>
<trans-unit id="tl_faq.before.1">
<source>Display the text above the FAQ entry</source>
<target>Anzeige des Texts oberhalb des FAQ-Beitrags</target>
</trans-unit>
<trans-unit id="tl_faq.after.0">
<source>below</source>
<target>unterhalb</target>
</trans-unit>
<trans-unit id="tl_faq.after.1">
<source>Display the text below the FAQ entry</source>
<target>Anzeige des Texts unterhalb des FAQ-Beitrags</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_module" source-language="en" target-language="de">
<body>
<trans-unit id="tl_module.rateit_legend">
<source>Rate It-Settings</source>
<target>Rate It-Einstellungen</target>
</trans-unit>
<trans-unit id="tl_module.rateit_title.0">
<source>Rating title</source>
<target>Titel der Bewertung</target>
</trans-unit>
<trans-unit id="tl_module.rateit_title.1">
<source>Rating title (shown in backend).</source>
<target>Titel der Bewertung (wird im Backend angezeigt).</target>
</trans-unit>
<trans-unit id="tl_module.rateit_active.0">
<source>Active</source>
<target>Aktiv</target>
</trans-unit>
<trans-unit id="tl_module.rateit_active.1">
<source>Active means that the review is visible to the front-end users.</source>
<target>Aktiv bedeutet, dass die Bewertung sichtbar für den Frontend-Nutzer ist.</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.0">
<source>Types</source>
<target>Typen</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.1">
<source>Select the types for which you would like the best ratings to be displayed.</source>
<target>Art der Bewertung</target>
</trans-unit>
<trans-unit id="tl_module.rateit_count.0">
<source>Max. count</source>
<target>Max. Anzahl</target>
</trans-unit>
<trans-unit id="tl_module.rateit_count.1">
<source>Max. count of displayed values.</source>
<target>Max. Anzahl anzuzeigender Einträge.</target>
</trans-unit>
<trans-unit id="tl_module.rateit_toptype.0">
<source>List type</source>
<target>Art der Liste</target>
</trans-unit>
<trans-unit id="tl_module.rateit_toptype.1">
<source>The x best voted entries oder the x most voted entries.</source>
<target>Die x bestbewerteten Einträge oder die x meistbewerteten Einträge.</target>
</trans-unit>
<trans-unit id="tl_module.rateit_template.0">
<source>Template</source>
<target>Template</target>
</trans-unit>
<trans-unit id="tl_module.rateit_template.1">
<source>Here you can select the template for the article's rating.</source>
<target>Hier können Sie das Template für die Bewertung des Artikels auswählen.</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.page">
<source>Page</source>
<target>Seite</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.article">
<source>Article</source>
<target>Artikel</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.ce">
<source>Content Element</source>
<target>Inhaltselement</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.module">
<source>Module</source>
<target>Modul</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.news">
<source>News</source>
<target>Nachrichten</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.faq">
<source>FAQ</source>
<target>FAQ</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.galpic">
<source>Gallery Picture</source>
<target>Galeriebild</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.news4ward">
<source>Blog entry</source>
<target>Beitrag</target>
</trans-unit>
<trans-unit id="tl_module.rateit_toptype.best">
<source>Best votes</source>
<target>Beste Bewertungen</target>
</trans-unit>
<trans-unit id="tl_module.rateit_toptype.most">
<source>Most votes</source>
<target>Meiste Bewertungen</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_news" source-language="en" target-language="de">
<body>
<trans-unit id="tl_news.rating_legend">
<source>Rate It-Settings</source>
<target>Rate It-Einstellungen</target>
</trans-unit>
<trans-unit id="tl_news.addRating.0">
<source>activate rating</source>
<target>Rating aktivieren</target>
</trans-unit>
<trans-unit id="tl_news.addRating.1">
<source>Enables the rating for this news article</source>
<target>Aktiviert das Rating für diese Nachricht</target>
</trans-unit>
<trans-unit id="tl_news.rateit_position.0">
<source>position</source>
<target>Position</target>
</trans-unit>
<trans-unit id="tl_news.rateit_position.1">
<source>position of the rating (before or above) the news entry.</source>
<target>Position des Rating (ober- oder unterhalb) des News-Beitrags.</target>
</trans-unit>
<trans-unit id="tl_news.before.0">
<source>above</source>
<target>oberhalb</target>
</trans-unit>
<trans-unit id="tl_news.before.1">
<source>Display the text above the news entry</source>
<target>Anzeige des Texts oberhalb des News-Beitrags</target>
</trans-unit>
<trans-unit id="tl_news.after.0">
<source>below</source>
<target>unterhalb</target>
</trans-unit>
<trans-unit id="tl_news.after.1">
<source>Display the text below the news entry</source>
<target>Anzeige des Texts unterhalb des News-Beitrags</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_page" source-language="en" target-language="de">
<body>
<trans-unit id="tl_page.rateit_legend">
<source>Rate It-Settings</source>
<target>Rate It-Einstellungen</target>
</trans-unit>
<trans-unit id="tl_page.addRating.0">
<source>activate rating</source>
<target>Rating aktivieren</target>
</trans-unit>
<trans-unit id="tl_page.addRating.1">
<source>Enables the rating for this page</source>
<target>Aktiviert das Rating für diese Seite</target>
</trans-unit>
<trans-unit id="tl_page.rateit_position.0">
<source>position</source>
<target>Position</target>
</trans-unit>
<trans-unit id="tl_page.rateit_position.1">
<source>position of the rating (before or above) the page.</source>
<target>Position des Rating (ober- oder unterhalb) der Seite.</target>
</trans-unit>
<trans-unit id="tl_page.before.0">
<source>above</source>
<target>oberhalb</target>
</trans-unit>
<trans-unit id="tl_page.before.1">
<source>Display the text above the page</source>
<target>Anzeige des Texts oberhalb der Seite</target>
</trans-unit>
<trans-unit id="tl_page.after.0">
<source>below</source>
<target>unterhalb</target>
</trans-unit>
<trans-unit id="tl_page.after.1">
<source>Display the text below the page</source>
<target>Anzeige des Texts unterhalb der Seite</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,135 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_settings" source-language="en" target-language="de">
<body>
<trans-unit id="tl_settings.rateit">
<source>Rate It</source>
<target>Rate It</target>
</trans-unit>
<trans-unit id="tl_settings.rateit_legend">
<source>Rate It-Settings</source>
<target>Rate It-Einstellungen</target>
</trans-unit>
<trans-unit id="tl_settings.rating_type.0">
<source>Type</source>
<target>Typ</target>
</trans-unit>
<trans-unit id="tl_settings.rating_type.1">
<source>Type of representation. Possible options are the "hearts" or "stars".</source>
<target>Art der Darstellung. Mögliche Optionen sind "Herzen" oder "Sterne".</target>
</trans-unit>
<trans-unit id="tl_settings.rating_count.0">
<source>Number of hearts/stars</source>
<target>Anzahl der Herzen/Sterne</target>
</trans-unit>
<trans-unit id="tl_settings.rating_count.1">
<source>Number of hearts/stars which are shown.</source>
<target>Anzahl der Herzen/Sterne die dargestellt werden.</target>
</trans-unit>
<trans-unit id="tl_settings.rating_textposition.0">
<source>Text position</source>
<target>Textposition</target>
</trans-unit>
<trans-unit id="tl_settings.rating_textposition.1">
<source>Specifies whether the text should appear above or below the hearts or stars.</source>
<target>Gibt an, ob der Text ober- oder unterhalb der Herzen bzw. Sterne erscheinen soll.</target>
</trans-unit>
<trans-unit id="tl_settings.rating_listsize.0">
<source>number of entries</source>
<target>Anzahl Einträge</target>
</trans-unit>
<trans-unit id="tl_settings.rating_listsize.1">
<source>Number of entries displayed per page in the representation of ratings in the backend.</source>
<target>Anzahl der angezeigten Einträge pro Seite in der Darstellung der Bewertungen im Backend.</target>
</trans-unit>
<trans-unit id="tl_settings.allow_duplicate_ratings.0">
<source>Allow Duplicate votes</source>
<target>Doppelte Bewertungen zulassen</target>
</trans-unit>
<trans-unit id="tl_settings.allow_duplicate_ratings.1">
<source>The same ip address may vote more than once for the same rating?</source>
<target>Darf mit der gleichen IP-Adresse mehrfach für das gleiche Rating abstimmen?</target>
</trans-unit>
<trans-unit id="tl_settings.allow_duplicate_ratings_for_members.0">
<source>Allow Duplicate votes for members</source>
<target>Doppelte Bewertungen für Mitglieder zulassen</target>
</trans-unit>
<trans-unit id="tl_settings.allow_duplicate_ratings_for_members.1">
<source>A logged in frontend user may vote more than once for the same rating?</source>
<target>Darf ein angemeldeter Frontendbenutzer mehrfach für das gleiche Rating abstimmen?</target>
</trans-unit>
<trans-unit id="tl_settings.rating_template.0">
<source>Template</source>
<target>Template</target>
</trans-unit>
<trans-unit id="tl_settings.rating_template.1">
<source>Here you can select the template for the rating.</source>
<target>Hier können Sie das Template für die Bewertung auswählen.</target>
</trans-unit>
<trans-unit id="tl_settings.rating_description.0">
<source>Label</source>
<target>Beschriftung</target>
</trans-unit>
<trans-unit id="tl_settings.rating_description.1">
<source>Label for ratings. Variables are replaced&lt;br&gt;available variables: &lt;br&gt;%current% - current rating&lt;br&gt;%max% - max. possible rating&lt;br&gt;%type% - type of rating (hearts/stars)&lt;br&gt;%count% - number of votes&lt;br&gt;[singular|plural] - Text for votes&lt;br&gt;&lt;br&gt;examples:&lt;br &gt;%current%/%max% (%count% [vote|votes]) returns 3.7/5 stars (7 votes)&lt;br&gt;%count% [Like|Likes] returns 1 Like or 4 Likes</source>
<target>Beschriftung für die einzelnen Ratings. Variablen werden dabei entsprechend ersetzt.&lt;br&gt;verfügbare Variablen:&lt;br&gt;%current% - aktuelle Bewertung&lt;br&gt;%max% - max. mögliche Bewertung&lt;br&gt;%type% - Art der Bewertung (Herzen/Sterne)&lt;br&gt;%count% - Anzahl abgegebener Stimmen&lt;br&gt;[Singular|Plural] - Text für abgegebene Stimmen&lt;br&gt;&lt;br&gt;Beispiele:&lt;br&gt;&lt;br&gt;%current%/%max% (%count% [Stimme|Stimmen]) liefert 3,7/5 Sterne (7 Stimmen)&lt;br&gt;%count% [Like|Likes] liefert 1 Like bzw. 4 Likes</target>
</trans-unit>
<trans-unit id="tl_settings.hearts.0">
<source>hearts</source>
<target>Herzen</target>
</trans-unit>
<trans-unit id="tl_settings.hearts.1">
<source>Illustration with hearts</source>
<target>Darstellung mit Herzen</target>
</trans-unit>
<trans-unit id="tl_settings.stars.0">
<source>stars</source>
<target>Sterne</target>
</trans-unit>
<trans-unit id="tl_settings.stars.1">
<source>Illustration with stars</source>
<target>Darstellung mit Sternen</target>
</trans-unit>
<trans-unit id="tl_settings.1.0">
<source>1</source>
<target>1</target>
</trans-unit>
<trans-unit id="tl_settings.1.1">
<source>1</source>
<target>1</target>
</trans-unit>
<trans-unit id="tl_settings.5.0">
<source>5</source>
<target>5</target>
</trans-unit>
<trans-unit id="tl_settings.5.1">
<source>5</source>
<target>5</target>
</trans-unit>
<trans-unit id="tl_settings.10.0">
<source>10</source>
<target>10</target>
</trans-unit>
<trans-unit id="tl_settings.10.1">
<source>10</source>
<target>10</target>
</trans-unit>
<trans-unit id="tl_settings.before.0">
<source>above</source>
<target>oberhalb</target>
</trans-unit>
<trans-unit id="tl_settings.before.1">
<source>Display the text above the hearts/stars</source>
<target>Anzeige des Texts oberhalb der Herzen/Sterne</target>
</trans-unit>
<trans-unit id="tl_settings.after.0">
<source>below</source>
<target>unterhalb</target>
</trans-unit>
<trans-unit id="tl_settings.after.1">
<source>Display the text below the heart / star</source>
<target>Anzeige des Texts unterhalb der Herzen/Sterne</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="default" source-language="en" target-language="en">
<body>
<trans-unit id="FMD.rateit.0">
<source>Rate It</source>
<target>Rate It</target>
</trans-unit>
<trans-unit id="FMD.rateit.1">
<source>Enables users to leave ratings for articles, pages, news and FAQs.</source>
<target>Enables users to leave ratings for articles, pages, news and FAQs.</target>
</trans-unit>
<trans-unit id="FMD.rateit_top_ratings.0">
<source>Rate It - Best/Most ratings</source>
<target>Rate It - Best/Most ratings</target>
</trans-unit>
<trans-unit id="FMD.rateit_top_ratings.1">
<source>List of the x best ratings.</source>
<target>List of the x best ratings.</target>
</trans-unit>
<trans-unit id="CTE.rateit.0">
<source>Rate It</source>
<target>Rate It</target>
</trans-unit>
<trans-unit id="CTE.rateit.1">
<source>Enables users to leave ratings for articles, pages, news and FAQs.</source>
<target>Enables users to leave ratings for articles, pages, news and FAQs.</target>
</trans-unit>
<trans-unit id="rateit.rating_label.0">
<source>vote</source>
<target>vote</target>
</trans-unit>
<trans-unit id="rateit.rating_label.1">
<source>votes</source>
<target>votes</target>
</trans-unit>
<trans-unit id="rateit.heart">
<source>heart</source>
<target>heart</target>
</trans-unit>
<trans-unit id="rateit.hearts">
<source>hearts</source>
<target>hearts</target>
</trans-unit>
<trans-unit id="rateit.star">
<source>star</source>
<target>star</target>
</trans-unit>
<trans-unit id="rateit.stars">
<source>stars</source>
<target>stars</target>
</trans-unit>
<trans-unit id="rateit.error.invalid_id">
<source>ERROR: Invalid ID for rating given.</source>
<target>ERROR: Invalid ID for rating given.</target>
</trans-unit>
<trans-unit id="rateit.error.invalid_rating">
<source>ERROR: Invalid rating given.</source>
<target>ERROR: Invalid rating given.</target>
</trans-unit>
<trans-unit id="rateit.error.invalid_type">
<source>ERROR: Invalid type for rating given.</source>
<target>ERROR: Invalid type for rating given.</target>
</trans-unit>
<trans-unit id="rateit.error.duplicate_vote">
<source>ERROR: You may not vote more than once.</source>
<target>ERROR: You may not vote more than once.</target>
</trans-unit>
<trans-unit id="rateit.error.duplicate_rkey">
<source>The unique identifier "% s" already exists for a rating. Please choose a different identifier.</source>
<target>The unique identifier "% s" already exists for a rating. Please choose a different identifier.</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="modules" source-language="en" target-language="en">
<body>
<trans-unit id="MOD.rateit.0">
<source>Rate It</source>
<target>Rate It</target>
</trans-unit>
<trans-unit id="MOD.rateit.1">
<source>View ratings for articles, pages, news and faqs</source>
<target>View ratings for articles, pages, news and faqs</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,303 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="rateit_backend" source-language="en" target-language="en">
<body>
<trans-unit id="tl_rateit.goback">
<source>Back</source>
<target>Back</target>
</trans-unit>
<trans-unit id="tl_rateit.noratingsfound">
<source>No matching ratings found.</source>
<target>No matching ratings found.</target>
</trans-unit>
<trans-unit id="tl_rateit.showdetails">
<source>Detailview</source>
<target>Detailview</target>
</trans-unit>
<trans-unit id="tl_rateit.byorder">
<source>By %s</source>
<target>By %s</target>
</trans-unit>
<trans-unit id="tl_rateit.seltyp.0">
<source>Type</source>
<target>Type</target>
</trans-unit>
<trans-unit id="tl_rateit.seltyp.1">
<source>Please choose the rating type.</source>
<target>Please choose the rating type.</target>
</trans-unit>
<trans-unit id="tl_rateit.selactive.0">
<source>Active/Inactive</source>
<target>Active/Inactive</target>
</trans-unit>
<trans-unit id="tl_rateit.selactive.1">
<source>Please choose whether you want to display only active or inactive ratings.</source>
<target>Please choose whether you want to display only active or inactive ratings.</target>
</trans-unit>
<trans-unit id="tl_rateit.typ.0">
<source>Type</source>
<target>Type</target>
</trans-unit>
<trans-unit id="tl_rateit.typ.1">
<source>Rating type (rating for an "article", a "page", a "news" or a "faq")</source>
<target>Rating type (rating for an "article", a "page", a "news" or a "faq")</target>
</trans-unit>
<trans-unit id="tl_rateit.title.0">
<source>Title</source>
<target>Title</target>
</trans-unit>
<trans-unit id="tl_rateit.title.1">
<source>Title of the article, page, news or faq, on which the rating is included.</source>
<target>Title of the article, page, news or faq, on which the rating is included.</target>
</trans-unit>
<trans-unit id="tl_rateit.createdat.0">
<source>activated since</source>
<target>activated since</target>
</trans-unit>
<trans-unit id="tl_rateit.createdat.1">
<source>Day from which this rating has been enabled in the format "%s"</source>
<target>Day from which this rating has been enabled in the format "%s"</target>
</trans-unit>
<trans-unit id="tl_rateit.status.0">
<source>Status</source>
<target>Status</target>
</trans-unit>
<trans-unit id="tl_rateit.status.1">
<source>Indicates whether this rating is currently enabled or not.</source>
<target>Indicates whether this rating is currently enabled or not.</target>
</trans-unit>
<trans-unit id="tl_rateit.rating.0">
<source>Rating</source>
<target>Rating</target>
</trans-unit>
<trans-unit id="tl_rateit.rating.1">
<source>actual rating</source>
<target>actual rating</target>
</trans-unit>
<trans-unit id="tl_rateit.overall_rating.0">
<source>Overall rating</source>
<target>Overall rating</target>
</trans-unit>
<trans-unit id="tl_rateit.overall_rating.1">
<source>actual overall rating</source>
<target>actual overall rating</target>
</trans-unit>
<trans-unit id="tl_rateit.totalratings.0">
<source>Total votes</source>
<target>Total votes</target>
</trans-unit>
<trans-unit id="tl_rateit.totalratings.1">
<source>Number of votes for this rating</source>
<target>Number of votes for this rating</target>
</trans-unit>
<trans-unit id="tl_rateit.ratingfmt">
<source>%s/%d (%d Votes)</source>
<target>%s/%d (%d Votes)</target>
</trans-unit>
<trans-unit id="tl_rateit.ratingviewfmt">
<source>%s/%d</source>
<target>%s/%d</target>
</trans-unit>
<trans-unit id="tl_rateit.ratingstatisticsfmt">
<source>Rating %s: %d of %d votes (corresponds %s%%)</source>
<target>Rating %s: %d of %d votes (corresponds %s%%)</target>
</trans-unit>
<trans-unit id="tl_rateit.statistics.0">
<source>Statistics</source>
<target>Statistics</target>
</trans-unit>
<trans-unit id="tl_rateit.statistics.1">
<source>Statistics</source>
<target>Statistics</target>
</trans-unit>
<trans-unit id="tl_rateit.rating_chart_legend.0">
<source>Distribution of ratings</source>
<target>Distribution of ratings</target>
</trans-unit>
<trans-unit id="tl_rateit.rating_chart_legend.1">
<source>Count of ratings</source>
<target>Count of ratings</target>
</trans-unit>
<trans-unit id="tl_rateit.rating_chart_legend.2">
<source>Rating</source>
<target>Rating</target>
</trans-unit>
<trans-unit id="tl_rateit.rating_chart_legend.3">
<source>Count</source>
<target>Count</target>
</trans-unit>
<trans-unit id="tl_rateit.month_chart_legend.0">
<source>Ratings per month</source>
<target>Ratings per month</target>
</trans-unit>
<trans-unit id="tl_rateit.month_chart_legend.1">
<source>Ratings per month</source>
<target>Ratings per month</target>
</trans-unit>
<trans-unit id="tl_rateit.month_chart_legend.2">
<source>Average rating</source>
<target>Average rating</target>
</trans-unit>
<trans-unit id="tl_rateit.month_chart_legend.3">
<source>Month</source>
<target>Month</target>
</trans-unit>
<trans-unit id="tl_rateit.month_chart_legend.4">
<source>Count</source>
<target>Count</target>
</trans-unit>
<trans-unit id="tl_rateit.ratings.0">
<source>Ratings</source>
<target>Ratings</target>
</trans-unit>
<trans-unit id="tl_rateit.ratings.1">
<source>List of all ratings</source>
<target>List of all ratings</target>
</trans-unit>
<trans-unit id="tl_rateit.ip.0">
<source>IP address</source>
<target>IP address</target>
</trans-unit>
<trans-unit id="tl_rateit.member.0">
<source>Frontend member</source>
<target>Frontend member</target>
</trans-unit>
<trans-unit id="tl_rateit.createdatdetail.0">
<source>Valuation Point</source>
<target>Valuation Point</target>
</trans-unit>
<trans-unit id="tl_rateit.vote.0">
<source>vote</source>
<target>vote</target>
</trans-unit>
<trans-unit id="tl_rateit.vote.1">
<source>votes</source>
<target>votes</target>
</trans-unit>
<trans-unit id="tl_rateit.clearratings">
<source>Reset selected ratings</source>
<target>Reset selected ratings</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.page">
<source>Page</source>
<target>Page</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.article">
<source>Article</source>
<target>Article</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.news">
<source>News</source>
<target>News</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.faq">
<source>FAQ</source>
<target>FAQ</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.ce">
<source>Content element</source>
<target>Content element</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.module">
<source>Module</source>
<target>Module</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.galpic">
<source>Gallery picture</source>
<target>Gallery picture</target>
</trans-unit>
<trans-unit id="tl_rateit_type_options.news4ward">
<source>Blog entry</source>
<target>Blog entry</target>
</trans-unit>
<trans-unit id="tl_rateit_order_options.rating desc">
<source>Rating</source>
<target>Rating</target>
</trans-unit>
<trans-unit id="tl_rateit_order_options.title">
<source>Title</source>
<target>Title</target>
</trans-unit>
<trans-unit id="tl_rateit_order_options.typ">
<source>Type</source>
<target>Type</target>
</trans-unit>
<trans-unit id="tl_rateit_order_options.createdat">
<source>Activation date</source>
<target>Activation date</target>
</trans-unit>
<trans-unit id="tl_rateit_active_options.0">
<source>inactive</source>
<target>inactive</target>
</trans-unit>
<trans-unit id="tl_rateit_active_options.1">
<source>active</source>
<target>active</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_sheetname_ratings">
<source>Ratings</source>
<target>Ratings</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_sheetname_rating">
<source>Rating</source>
<target>Rating</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.rkey">
<source>Rating-Key</source>
<target>Rating-Key</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.typ">
<source>Type</source>
<target>Type</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.title">
<source>Title</source>
<target>Title</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.createdat">
<source>Activation date</source>
<target>Activation date</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.active">
<source>Active</source>
<target>Active</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.rating">
<source>Rating</source>
<target>Rating</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.stars">
<source>Max. Rating</source>
<target>Max. Rating</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.percent">
<source>Rating in percent</source>
<target>Rating in percent</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers.totalRatings">
<source>Total votes</source>
<target>Total votes</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers_detail.ip">
<source>IP address</source>
<target>IP address</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers_detail.member">
<source>Frontend member</source>
<target>Frontend member</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers_detail.rating">
<source>Rating</source>
<target>Rating</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers_detail.percent">
<source>Rating in percent</source>
<target>Rating in percent</target>
</trans-unit>
<trans-unit id="tl_rateit.xls_headers_detail.createdat">
<source>Valuation Point</source>
<target>Valuation Point</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_article" source-language="en" target-language="en">
<body>
<trans-unit id="tl_article.rateit_legend">
<source>Rate It-Settings</source>
<target>Rate It-Settings</target>
</trans-unit>
<trans-unit id="tl_article.addRating.0">
<source>activate rating</source>
<target>activate rating</target>
</trans-unit>
<trans-unit id="tl_article.addRating.1">
<source>Enables the rating for this article</source>
<target>Enables the rating for this article</target>
</trans-unit>
<trans-unit id="tl_article.rateit_position.0">
<source>position</source>
<target>position</target>
</trans-unit>
<trans-unit id="tl_article.rateit_position.1">
<source>position of the rating (before or above) the article.</source>
<target>position of the rating (before or above) the article.</target>
</trans-unit>
<trans-unit id="tl_article.rateit_template.0">
<source>Template</source>
<target>Template</target>
</trans-unit>
<trans-unit id="tl_article.rateit_template.1">
<source>Here you can select the template for the article's rating.</source>
<target>Here you can select the template for the article's rating.</target>
</trans-unit>
<trans-unit id="tl_article.before.0">
<source>above</source>
<target>above</target>
</trans-unit>
<trans-unit id="tl_article.before.1">
<source>Display the text above the article</source>
<target>Display the text above the article</target>
</trans-unit>
<trans-unit id="tl_article.after.0">
<source>below</source>
<target>below</target>
</trans-unit>
<trans-unit id="tl_article.after.1">
<source>Display the text below the article</source>
<target>Display the text below the article</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_content" source-language="en" target-language="en">
<body>
<trans-unit id="tl_content.rateit_legend">
<source>Rate It-Settings</source>
<target>Rate It-Settings</target>
</trans-unit>
<trans-unit id="tl_content.rateit_title.0">
<source>Rating title</source>
<target>Rating title</target>
</trans-unit>
<trans-unit id="tl_content.rateit_title.1">
<source>Rating title (shown in backend).</source>
<target>Rating title (shown in backend).</target>
</trans-unit>
<trans-unit id="tl_content.rateit_active.0">
<source>Active</source>
<target>Active</target>
</trans-unit>
<trans-unit id="tl_content.rateit_active.1">
<source>Active means that the review is visible to the front-end users.</source>
<target>Active means that the review is visible to the front-end users.</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_faq" source-language="en" target-language="en">
<body>
<trans-unit id="tl_faq.rating_legend">
<source>Rate It-Settings</source>
<target>Rate It-Settings</target>
</trans-unit>
<trans-unit id="tl_faq.addRating.0">
<source>activate rating</source>
<target>activate rating</target>
</trans-unit>
<trans-unit id="tl_faq.addRating.1">
<source>Enables the rating for this news article</source>
<target>Enables the rating for this news article</target>
</trans-unit>
<trans-unit id="tl_faq.rateit_position.0">
<source>position</source>
<target>position</target>
</trans-unit>
<trans-unit id="tl_faq.rateit_position.1">
<source>position of the rating (before or above) the FAQ entry.</source>
<target>position of the rating (before or above) the FAQ entry.</target>
</trans-unit>
<trans-unit id="tl_faq.before.0">
<source>above</source>
<target>above</target>
</trans-unit>
<trans-unit id="tl_faq.before.1">
<source>Display the text above the FAQ entry</source>
<target>Display the text above the FAQ entry</target>
</trans-unit>
<trans-unit id="tl_faq.after.0">
<source>below</source>
<target>below</target>
</trans-unit>
<trans-unit id="tl_faq.after.1">
<source>Display the text below the FAQ entry</source>
<target>Display the text below the FAQ entry</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_module" source-language="en" target-language="en">
<body>
<trans-unit id="tl_module.rateit_legend">
<source>Rate It-Settings</source>
<target>Rate It-Settings</target>
</trans-unit>
<trans-unit id="tl_module.rateit_title.0">
<source>Rating title</source>
<target>Rating title</target>
</trans-unit>
<trans-unit id="tl_module.rateit_title.1">
<source>Rating title (shown in backend).</source>
<target>Rating title (shown in backend).</target>
</trans-unit>
<trans-unit id="tl_module.rateit_active.0">
<source>Active</source>
<target>Active</target>
</trans-unit>
<trans-unit id="tl_module.rateit_active.1">
<source>Active means that the review is visible to the front-end users.</source>
<target>Active means that the review is visible to the front-end users.</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.0">
<source>Types</source>
<target>Types</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.1">
<source>Select the types for which you would like the best ratings to be displayed.</source>
<target>Select the types for which you would like the best ratings to be displayed.</target>
</trans-unit>
<trans-unit id="tl_module.rateit_count.0">
<source>Max. count</source>
<target>Max. count</target>
</trans-unit>
<trans-unit id="tl_module.rateit_count.1">
<source>Max. count of displayed values.</source>
<target>Max. count of displayed values.</target>
</trans-unit>
<trans-unit id="tl_module.rateit_toptype.0">
<source>List type</source>
<target>List type</target>
</trans-unit>
<trans-unit id="tl_module.rateit_toptype.1">
<source>The x best voted entries oder the x most voted entries.</source>
<target>The x best voted entries oder the x most voted entries.</target>
</trans-unit>
<trans-unit id="tl_module.rateit_template.0">
<source>Template</source>
<target>Template</target>
</trans-unit>
<trans-unit id="tl_module.rateit_template.1">
<source>Here you can select the template for the article's rating.</source>
<target>Here you can select the template for the article's rating.</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.page">
<source>Page</source>
<target>Page</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.article">
<source>Article</source>
<target>Article</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.ce">
<source>Content Element</source>
<target>Content Element</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.module">
<source>Module</source>
<target>Module</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.news">
<source>News</source>
<target>News</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.faq">
<source>FAQ</source>
<target>FAQ</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.galpic">
<source>Gallery Picture</source>
<target>Gallery Picture</target>
</trans-unit>
<trans-unit id="tl_module.rateit_types.news4ward">
<source>Blog entry</source>
<target>Blog entry</target>
</trans-unit>
<trans-unit id="tl_module.rateit_toptype.best">
<source>Best votes</source>
<target>Best votes</target>
</trans-unit>
<trans-unit id="tl_module.rateit_toptype.most">
<source>Most votes</source>
<target>Most votes</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_news" source-language="en" target-language="en">
<body>
<trans-unit id="tl_news.rating_legend">
<source>Rate It-Settings</source>
<target>Rate It-Settings</target>
</trans-unit>
<trans-unit id="tl_news.addRating.0">
<source>activate rating</source>
<target>activate rating</target>
</trans-unit>
<trans-unit id="tl_news.addRating.1">
<source>Enables the rating for this news article</source>
<target>Enables the rating for this news article</target>
</trans-unit>
<trans-unit id="tl_news.rateit_position.0">
<source>position</source>
<target>position</target>
</trans-unit>
<trans-unit id="tl_news.rateit_position.1">
<source>position of the rating (before or above) the news entry.</source>
<target>position of the rating (before or above) the news entry.</target>
</trans-unit>
<trans-unit id="tl_news.before.0">
<source>above</source>
<target>above</target>
</trans-unit>
<trans-unit id="tl_news.before.1">
<source>Display the text above the news entry</source>
<target>Display the text above the news entry</target>
</trans-unit>
<trans-unit id="tl_news.after.0">
<source>below</source>
<target>below</target>
</trans-unit>
<trans-unit id="tl_news.after.1">
<source>Display the text below the news entry</source>
<target>Display the text below the news entry</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_page" source-language="en" target-language="en">
<body>
<trans-unit id="tl_page.rateit_legend">
<source>Rate It-Settings</source>
<target>Rate It-Settings</target>
</trans-unit>
<trans-unit id="tl_page.addRating.0">
<source>activate rating</source>
<target>activate rating</target>
</trans-unit>
<trans-unit id="tl_page.addRating.1">
<source>Enables the rating for this page</source>
<target>Enables the rating for this page</target>
</trans-unit>
<trans-unit id="tl_page.rateit_position.0">
<source>position</source>
<target>position</target>
</trans-unit>
<trans-unit id="tl_page.rateit_position.1">
<source>position of the rating (before or above) the page.</source>
<target>position of the rating (before or above) the page.</target>
</trans-unit>
<trans-unit id="tl_page.before.0">
<source>above</source>
<target>above</target>
</trans-unit>
<trans-unit id="tl_page.before.1">
<source>Display the text above the page</source>
<target>Display the text above the page</target>
</trans-unit>
<trans-unit id="tl_page.after.0">
<source>below</source>
<target>below</target>
</trans-unit>
<trans-unit id="tl_page.after.1">
<source>Display the text below the page</source>
<target>Display the text below the page</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,135 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="php" date="2015-06-18T07:01:15+02:00" original="tl_settings" source-language="en" target-language="en">
<body>
<trans-unit id="tl_settings.rateit">
<source>Rate It</source>
<target>Rate It</target>
</trans-unit>
<trans-unit id="tl_settings.rateit_legend">
<source>Rate It-Settings</source>
<target>Rate It-Settings</target>
</trans-unit>
<trans-unit id="tl_settings.rating_type.0">
<source>Type</source>
<target>Type</target>
</trans-unit>
<trans-unit id="tl_settings.rating_type.1">
<source>Type of representation. Possible options are the "hearts" or "stars".</source>
<target>Type of representation. Possible options are the "hearts" or "stars".</target>
</trans-unit>
<trans-unit id="tl_settings.rating_count.0">
<source>Number of hearts/stars</source>
<target>Number of hearts/stars</target>
</trans-unit>
<trans-unit id="tl_settings.rating_count.1">
<source>Number of hearts/stars which are shown.</source>
<target>Number of hearts/stars which are shown.</target>
</trans-unit>
<trans-unit id="tl_settings.rating_textposition.0">
<source>Text position</source>
<target>Text position</target>
</trans-unit>
<trans-unit id="tl_settings.rating_textposition.1">
<source>Specifies whether the text should appear above or below the hearts or stars.</source>
<target>Specifies whether the text should appear above or below the hearts or stars.</target>
</trans-unit>
<trans-unit id="tl_settings.rating_listsize.0">
<source>number of entries</source>
<target>number of entries</target>
</trans-unit>
<trans-unit id="tl_settings.rating_listsize.1">
<source>Number of entries displayed per page in the representation of ratings in the backend.</source>
<target>Number of entries displayed per page in the representation of ratings in the backend.</target>
</trans-unit>
<trans-unit id="tl_settings.allow_duplicate_ratings.0">
<source>Allow Duplicate votes</source>
<target>Allow Duplicate votes</target>
</trans-unit>
<trans-unit id="tl_settings.allow_duplicate_ratings.1">
<source>The same ip address may vote more than once for the same rating?</source>
<target>The same ip address may vote more than once for the same rating?</target>
</trans-unit>
<trans-unit id="tl_settings.allow_duplicate_ratings_for_members.0">
<source>Allow Duplicate votes for members</source>
<target>Allow Duplicate votes for members</target>
</trans-unit>
<trans-unit id="tl_settings.allow_duplicate_ratings_for_members.1">
<source>A logged in frontend user may vote more than once for the same rating?</source>
<target>A logged in frontend user may vote more than once for the same rating?</target>
</trans-unit>
<trans-unit id="tl_settings.rating_template.0">
<source>Template</source>
<target>Template</target>
</trans-unit>
<trans-unit id="tl_settings.rating_template.1">
<source>Here you can select the template for the rating.</source>
<target>Here you can select the template for the rating.</target>
</trans-unit>
<trans-unit id="tl_settings.rating_description.0">
<source>Label</source>
<target>Label</target>
</trans-unit>
<trans-unit id="tl_settings.rating_description.1">
<source>Label for ratings. Variables are replaced&lt;br&gt;available variables: &lt;br&gt;%current% - current rating&lt;br&gt;%max% - max. possible rating&lt;br&gt;%type% - type of rating (hearts/stars)&lt;br&gt;%count% - number of votes&lt;br&gt;[singular|plural] - Text for votes&lt;br&gt;&lt;br&gt;examples:&lt;br &gt;%current%/%max% (%count% [vote|votes]) returns 3.7/5 stars (7 votes)&lt;br&gt;%count% [Like|Likes] returns 1 Like or 4 Likes</source>
<target>Label for ratings. Variables are replaced&lt;br&gt;available variables: &lt;br&gt;%current% - current rating&lt;br&gt;%max% - max. possible rating&lt;br&gt;%type% - type of rating (hearts/stars)&lt;br&gt;%count% - number of votes&lt;br&gt;[singular|plural] - Text for votes&lt;br&gt;&lt;br&gt;examples:&lt;br &gt;%current%/%max% (%count% [vote|votes]) returns 3.7/5 stars (7 votes)&lt;br&gt;%count% [Like|Likes] returns 1 Like or 4 Likes</target>
</trans-unit>
<trans-unit id="tl_settings.hearts.0">
<source>hearts</source>
<target>hearts</target>
</trans-unit>
<trans-unit id="tl_settings.hearts.1">
<source>Illustration with hearts</source>
<target>Illustration with hearts</target>
</trans-unit>
<trans-unit id="tl_settings.stars.0">
<source>stars</source>
<target>stars</target>
</trans-unit>
<trans-unit id="tl_settings.stars.1">
<source>Illustration with stars</source>
<target>Illustration with stars</target>
</trans-unit>
<trans-unit id="tl_settings.1.0">
<source>1</source>
<target>1</target>
</trans-unit>
<trans-unit id="tl_settings.1.1">
<source>1</source>
<target>1</target>
</trans-unit>
<trans-unit id="tl_settings.5.0">
<source>5</source>
<target>5</target>
</trans-unit>
<trans-unit id="tl_settings.5.1">
<source>5</source>
<target>5</target>
</trans-unit>
<trans-unit id="tl_settings.10.0">
<source>10</source>
<target>10</target>
</trans-unit>
<trans-unit id="tl_settings.10.1">
<source>10</source>
<target>10</target>
</trans-unit>
<trans-unit id="tl_settings.before.0">
<source>above</source>
<target>above</target>
</trans-unit>
<trans-unit id="tl_settings.before.1">
<source>Display the text above the hearts/stars</source>
<target>Display the text above the hearts/stars</target>
</trans-unit>
<trans-unit id="tl_settings.after.0">
<source>below</source>
<target>below</target>
</trans-unit>
<trans-unit id="tl_settings.after.1">
<source>Display the text below the heart / star</source>
<target>Display the text below the heart / star</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -0,0 +1,70 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->printable): ?>
<!-- indexer::stop -->
<div class="pdf_link">
<?php if ($this->printButton): ?>
<a href="<?php echo $this->print; ?>" rel="nofollow" title="<?php echo $this->printTitle; ?>" onclick="window.print();return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/print.gif" width="16" height="16" alt=""></a>
<?php endif; ?>
<?php if ($this->pdfButton): ?>
<a href="<?php echo $this->href; ?>" rel="nofollow" title="<?php echo $this->pdfTitle; ?>"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/pdf.gif" width="16" height="16" alt=""></a>
<?php endif; ?>
<?php if ($this->facebookButton): ?>
<a href="share/?p=facebook[&]u=<?php echo $this->encUrl; ?>[&]t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->facebookTitle; ?>" onclick="window.open(this.href,'','width=640,height=380,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/facebook.gif" width="24" height="24" alt=""></a>
<?php endif; ?>
<?php if ($this->twitterButton): ?>
<a href="share/?p=twitter[&]u=<?php echo $this->encUrl; ?>[&]t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->twitterTitle; ?>" onclick="window.open(this.href,'','width=640,height=380,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/twitter.gif" width="24" height="24" alt=""></a>
<?php endif; ?>
<?php if ($this->gplusButton): ?>
<a href="share/?p=gplus[&]u=<?php echo $this->encUrl; ?>[&]t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->gplusTitle; ?>" onclick="window.open(this.href,'','width=600,height=200,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/gplus.gif" width="24" height="24" alt=""></a>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<?php echo implode($this->elements); ?>
<?php if ($this->backlink): ?>
<!-- indexer::stop -->
<p class="back"><a href="<?php echo $this->backlink; ?>" title="<?php echo $this->back; ?>"><?php echo $this->back; ?></a></p>
<!-- indexer::continue -->
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,71 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->printable): ?>
<!-- indexer::stop -->
<div class="pdf_link">
<?php if ($this->printButton): ?>
<a href="<?php echo $this->print; ?>" rel="nofollow" title="<?php echo $this->printTitle; ?>" onclick="window.print();return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/print.gif" width="16" height="16" alt="" /></a>
<?php endif; ?>
<?php if ($this->pdfButton): ?>
<a href="<?php echo $this->href; ?>" rel="nofollow" title="<?php echo $this->pdfTitle; ?>"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/pdf.gif" width="16" height="16" alt="" /></a>
<?php endif; ?>
<?php if ($this->facebookButton): ?>
<a href="share/?p=facebook&amp;u=<?php echo $this->encUrl; ?>&amp;t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->facebookTitle; ?>" onclick="window.open(this.href,'','width=640,height=380,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/facebook.gif" width="16" height="16" alt="" /></a>
<?php endif; ?>
<?php if ($this->twitterButton): ?>
<a href="share/?p=twitter&amp;u=<?php echo $this->encUrl; ?>&amp;t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->twitterTitle; ?>" onclick="window.open(this.href,'','width=640,height=380,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/twitter.gif" width="16" height="16" alt="" /></a>
<?php endif; ?>
<?php if ($this->gplusButton): ?>
<a href="share/?p=gplus&amp;u=<?php echo $this->encUrl; ?>&amp;t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->gplusTitle; ?>" onclick="window.open(this.href,'','width=600,height=200,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/gplus.gif" width="16" height="16" alt="" /></a>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<?php echo implode($this->elements); ?>
<?php if ($this->backlink): ?>
<!-- indexer::stop -->
<p class="back"><a href="<?php echo $this->backlink; ?>" title="<?php echo $this->back; ?>"><?php echo $this->back; ?></a></p>
<!-- indexer::continue -->
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,88 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->printable): ?>
<!-- indexer::stop -->
<div class="pdf_link">
<?php if ($this->printButton): ?>
<a href="<?php echo $this->print; ?>" rel="nofollow" title="<?php echo $this->printTitle; ?>" onclick="window.print();return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/print.gif" width="16" height="16" alt=""></a>
<?php endif; ?>
<?php if ($this->pdfButton): ?>
<a href="<?php echo $this->href; ?>" rel="nofollow" title="<?php echo $this->pdfTitle; ?>"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/pdf.gif" width="16" height="16" alt=""></a>
<?php endif; ?>
<?php if ($this->facebookButton): ?>
<a href="share/?p=facebook[&]u=<?php echo $this->encUrl; ?>[&]t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->facebookTitle; ?>" onclick="window.open(this.href,'','width=640,height=380,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/facebook.gif" width="24" height="24" alt=""></a>
<?php endif; ?>
<?php if ($this->twitterButton): ?>
<a href="share/?p=twitter[&]u=<?php echo $this->encUrl; ?>[&]t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->twitterTitle; ?>" onclick="window.open(this.href,'','width=640,height=380,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/twitter.gif" width="24" height="24" alt=""></a>
<?php endif; ?>
<?php if ($this->gplusButton): ?>
<a href="share/?p=gplus[&]u=<?php echo $this->encUrl; ?>[&]t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->gplusTitle; ?>" onclick="window.open(this.href,'','width=600,height=200,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/gplus.gif" width="24" height="24" alt=""></a>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<?php echo implode($this->elements); ?>
<?php if ($this->backlink): ?>
<!-- indexer::stop -->
<p class="back"><a href="<?php echo $this->backlink; ?>" title="<?php echo $this->back; ?>"><?php echo $this->back; ?></a></p>
<!-- indexer::continue -->
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,89 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->printable): ?>
<!-- indexer::stop -->
<div class="pdf_link">
<?php if ($this->printButton): ?>
<a href="<?php echo $this->print; ?>" rel="nofollow" title="<?php echo $this->printTitle; ?>" onclick="window.print();return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/print.gif" width="16" height="16" alt="" /></a>
<?php endif; ?>
<?php if ($this->pdfButton): ?>
<a href="<?php echo $this->href; ?>" rel="nofollow" title="<?php echo $this->pdfTitle; ?>"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/pdf.gif" width="16" height="16" alt="" /></a>
<?php endif; ?>
<?php if ($this->facebookButton): ?>
<a href="share/?p=facebook&amp;u=<?php echo $this->encUrl; ?>&amp;t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->facebookTitle; ?>" onclick="window.open(this.href,'','width=640,height=380,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/facebook.gif" width="16" height="16" alt="" /></a>
<?php endif; ?>
<?php if ($this->twitterButton): ?>
<a href="share/?p=twitter&amp;u=<?php echo $this->encUrl; ?>&amp;t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->twitterTitle; ?>" onclick="window.open(this.href,'','width=640,height=380,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/twitter.gif" width="16" height="16" alt="" /></a>
<?php endif; ?>
<?php if ($this->gplusButton): ?>
<a href="share/?p=gplus&amp;u=<?php echo $this->encUrl; ?>&amp;t=<?php echo $this->encTitle; ?>" rel="nofollow" title="<?php echo $this->gplusTitle; ?>" onclick="window.open(this.href,'','width=600,height=200,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false"><img src="<?php echo TL_FILES_URL; ?>assets/contao/images/gplus.gif" width="16" height="16" alt="" /></a>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<?php echo implode($this->elements); ?>
<?php if ($this->backlink): ?>
<!-- indexer::stop -->
<p class="back"><a href="<?php echo $this->backlink; ?>" title="<?php echo $this->back; ?>"><?php echo $this->back; ?></a></p>
<!-- indexer::continue -->
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,48 @@
<ul>
<?php foreach ($this->body as $class=>$row): ?>
<?php foreach ($row as $col): ?>
<?php if ($col->addImage): ?>
<li class="<?php echo $class; ?> <?php echo $col->class; ?>">
<figure class="image_container"<?php if ($col->margin): ?> style="<?php echo $col->margin; ?>"<?php endif; ?>>
<?php if ($col->href): ?>
<a href="<?php echo $col->href; ?>"<?php echo $col->attributes; ?> title="<?php echo $col->alt; ?>"><img src="<?php echo $col->src; ?>"<?php echo $col->imgSize; ?> alt="<?php echo $col->alt; ?>"></a>
<?php else: ?>
<img src="<?php echo $col->src; ?>"<?php echo $col->imgSize; ?> alt="<?php echo $col->alt; ?>">
<?php endif; ?>
<?php if ($col->caption): ?>
<figcaption class="caption" style="width:<?php echo $col->arrSize[0]; ?>px"><?php echo $col->caption; ?></figcaption>
<?php endif; ?>
</figure>
<!-- indexer::stop -->
<div id="<?php echo $this->arrRating[$col->singleSRC]['rateItID']; ?>" class="<?php echo $this->arrRating[$col->singleSRC]['rateit_class']; ?>">
<?php if ($this->arrRating[$col->singleSRC]['showBefore']) : ?>
<div id="<?php echo $this->arrRating[$col->singleSRC]['descriptionId']; ?>" class="ratingText"><?php echo $this->arrRating[$col->singleSRC]['description']; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->arrRating[$col->singleSRC]['showAfter']) : ?>
<div id="<?php echo $this->arrRating[$col->singleSRC]['descriptionId']; ?>" class="ratingText"><?php echo $this->arrRating[$col->singleSRC]['description']; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
</li>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
</ul>
<script>
var arrRatings = new Array();
<?php $i = 0; ?>
<?php foreach ($this->arrRating as $url=>$rating): ?>
arrRatings[<?php echo $i;?>] = new Object();
arrRatings[<?php echo $i;?>]["URL"] = "<?php echo $url; ?>";
arrRatings[<?php echo $i;?>]["rated"] = false;
<?php foreach ($rating as $key=>$value): ?>
arrRatings[<?php echo $i;?>]["<?php echo $key; ?>"] = "<?php echo $value; ?>";
<?php endforeach; ?>
<?php $i = $i + 1; ?>
<?php endforeach; ?>
</script>

View File

@ -0,0 +1,50 @@
<ul>
<?php foreach ($this->body as $class=>$row): ?>
<?php foreach ($row as $col): ?>
<?php if ($col->addImage): ?>
<li class="<?php echo $class; ?> <?php echo $col->class; ?>">
<div class="image_container"<?php if ($col->margin): ?> style="<?php echo $col->margin; ?>"<?php endif; ?>>
<?php if ($col->href): ?>
<a href="<?php echo $col->href; ?>"<?php echo $col->attributes; ?> title="<?php echo $col->alt; ?>"><img src="<?php echo $col->src; ?>"<?php echo $col->imgSize; ?> alt="<?php echo $col->alt; ?>" /></a>
<?php else: ?>
<img src="<?php echo $col->src; ?>"<?php echo $col->imgSize; ?> alt="<?php echo $col->alt; ?>" />
<?php endif; ?>
<?php if ($col->caption): ?>
<div class="caption" style="width:<?php echo $col->arrSize[0]; ?>px"><?php echo $col->caption; ?></div>
<?php endif; ?>
</div>
<!-- indexer::stop -->
<div id="<?php echo $this->arrRating[$col->singleSRC]['rateItID']; ?>" class="<?php echo $this->arrRating[$col->singleSRC]['rateit_class']; ?>">
<?php if ($this->arrRating[$col->singleSRC]['showBefore']) : ?>
<div id="<?php echo $this->arrRating[$col->singleSRC]['descriptionId']; ?>" class="ratingText"><?php echo $this->arrRating[$col->singleSRC]['description']; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->arrRating[$col->singleSRC]['showAfter']) : ?>
<div id="<?php echo $this->arrRating[$col->singleSRC]['descriptionId']; ?>" class="ratingText"><?php echo $this->arrRating[$col->singleSRC]['description']; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
</li>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
</ul>
<script type="text/javascript">
/* <![CDATA[ */
var arrRatings = new Array();
<?php $i = 0; ?>
<?php foreach ($this->arrRating as $url=>$rating): ?>
arrRatings[<?php echo $i;?>] = new Object();
arrRatings[<?php echo $i;?>]["URL"] = "<?php echo $url; ?>";
arrRatings[<?php echo $i;?>]["rated"] = false;
<?php foreach ($rating as $key=>$value): ?>
arrRatings[<?php echo $i;?>]["<?php echo $key; ?>"] = "<?php echo $value; ?>";
<?php endforeach; ?>
<?php $i = $i + 1; ?>
<?php endforeach; ?>
/* ]]> */
</script>

View File

@ -0,0 +1,27 @@
<?php
// Add the colorbox style sheet and javascript
$GLOBALS['TL_CSS'][] = 'assets/jquery/colorbox/'. COLORBOX .'/css/colorbox.min.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/jquery/colorbox/colorbox-rateit.min.js|static';
?>
<script>
(function($) {
$(document).ready(function() {
$('a[data-lightbox]').map(function() {
$(this).colorbox({
// Put custom options here
loop: false,
rel: $(this).attr('data-lightbox'),
maxWidth: '95%',
maxHeight: '95%'
});
});
});
String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};
})(jQuery);
</script>

View File

@ -0,0 +1,26 @@
<?php
// Add the colorbox style sheet and javascript
$GLOBALS['TL_CSS'][] = 'assets/jquery/colorbox/'. COLORBOX .'/css/colorbox.min.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/jquery/colorbox/colorbox-rateit.min.js|static';
?>
<script type="text/javascript">
/* <![CDATA[ */
(function($) {
$(document).ready(function() {
$('a[rel^=lightbox]').colorbox({
// Put custom options here
loop: false,
maxWidth: '95%',
maxHeight: '95%'
});
});
String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};
})(jQuery);
/* ]]> */
</script>

View File

@ -0,0 +1,48 @@
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<ul>
<?php foreach ($this->articles as $article): ?>
<li>
<?php if ($article['rateit_rating_before']): ?>
<!-- indexer::stop -->
<div id="<?php echo $article['rateItID']; ?>" class="<?php echo $article['rateit_class']; ?>">
<?php if ($article['showBefore']) : ?>
<div id="<?php echo $article['descriptionId']; ?>" class="ratingText"><?php echo $article['description']; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($article['showAfter']) : ?>
<div id="<?php echo $article['descriptionId']; ?>" class="ratingText"><?php echo $article['description']; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<a href="<?php echo $this->request; ?>#<?php echo $article['id']; ?>" title="<?php echo $article['title']; ?>"><?php echo $article['link']; ?></a>
<?php if ($article['rateit_rating_after']): ?>
<!-- indexer::stop -->
<div id="<?php echo $article['rateItID']; ?>" class="<?php echo $article['rateit_class']; ?>">
<?php if ($article['showBefore']) : ?>
<div id="<?php echo $article['descriptionId']; ?>" class="ratingText"><?php echo $article['description']; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($article['showAfter']) : ?>
<div id="<?php echo $article['descriptionId']; ?>" class="ratingText"><?php echo $article['description']; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</div>

View File

@ -0,0 +1,46 @@
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<ul>
<?php foreach ($this->articles as $article): ?>
<?php if ($article['rateit_rating_before']): ?>
<!-- indexer::stop -->
<div id="<?php echo $article['rateItID']; ?>" class="<?php echo $article['rateit_class']; ?>">
<?php if ($article['showBefore']) : ?>
<div id="<?php echo $article['descriptionId']; ?>" class="ratingText"><?php echo $article['description']; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($article['showAfter']) : ?>
<div id="<?php echo $article['descriptionId']; ?>" class="ratingText"><?php echo $article['description']; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<li><a href="<?php echo $this->request; ?>#<?php echo $article['id']; ?>" title="<?php echo $article['title']; ?>"><?php echo $article['link']; ?></a></li>
<?php if ($article['rateit_rating_after']): ?>
<!-- indexer::stop -->
<div id="<?php echo $article['rateItID']; ?>" class="<?php echo $article['rateit_class']; ?>">
<?php if ($article['showBefore']) : ?>
<div id="<?php echo $article['descriptionId']; ?>" class="ratingText"><?php echo $article['description']; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($article['showAfter']) : ?>
<div id="<?php echo $article['descriptionId']; ?>" class="ratingText"><?php echo $article['description']; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<?php endforeach; ?>
</ul>
</div>

View File

@ -0,0 +1,66 @@
<article class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="ce_text block">
<h2><?php echo $this->headline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
<p class="more"><a href="<?php echo $this->href; ?>" title="<?php echo $this->readMore; ?>"><?php echo $this->more; ?> <span class="invisible"><?php echo $this->headline; ?></span></a></p>
</div>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
</article>

View File

@ -0,0 +1,66 @@
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="ce_text block">
<h2><?php echo $this->headline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
<p class="more"><a href="<?php echo $this->href; ?>" title="<?php echo $this->readMore; ?>"><?php echo $this->more; ?> <span class="invisible"><?php echo $this->headline; ?></span></a></p>
</div>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
</div>

View File

@ -0,0 +1,48 @@
<article class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="ce_text block">
<h2><?php echo $this->headline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
<p class="more"><a href="<?php echo $this->href; ?>" title="<?php echo $this->readMore; ?>"><?php echo $this->more; ?> <span class="invisible"><?php echo $this->headline; ?></span></a></p>
</div>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
</article>

View File

@ -0,0 +1,48 @@
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="ce_text block">
<h2><?php echo $this->headline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
<p class="more"><a href="<?php echo $this->href; ?>" title="<?php echo $this->readMore; ?>"><?php echo $this->more; ?> <span class="invisible"><?php echo $this->headline; ?></span></a></p>
</div>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->rateItID; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
</div>

View File

@ -0,0 +1,33 @@
<div class="<?= $this->class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?= $this->hl ?>><?= $this->headline ?></<?= $this->hl ?>>
<?php endif; ?>
<ul>
<?php foreach ($this->arrRatings as $rating): ?>
<li>
<!-- indexer::stop -->
<div class="rateItContainer">
<div class="rateItTitle">
<?php if ($rating->url): ?>
<a href="<?= $rating->url ?>"><?= $rating->title ?></a>
<?php else: ?>
<?= $rating->title ?>
<?php endif; ?>
</div>
<div id="<?= $rating->rateItID ?>" class="<?= $rating->rateit_class ?>" rel="<?= $rating->rel ?>">
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<div id="<?= $rating->descriptionId ?>" class="ratingText"><?= $rating->description ?></div>
</div>
</div>
<!-- indexer::continue -->
</li>
<?php endforeach; ?>
</ul>
</div>

View File

@ -0,0 +1,31 @@
<div class="<?= $this->class; ?> block"<?= $this->cssID; ?><?php if ($this->style): ?> style="<?= $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?= $this->hl ?>><?= $this->headline; ?></<?= $this->hl; ?>>
<?php endif; ?>
<ul>
<?php foreach ($this->arrRatings as $rating): ?>
<li>
<!-- indexer::stop -->
<div class="rateItTitle">
<?php if ($rating->url): ?>
<a href="<?= $rating->url ?>"><?= $rating->title ?></a>
<?php else: ?>
<?= $rating->title ?>
<?php endif; ?>
</div>
<div id="<?= $rating->rateItID ?>" class="<?= $rating->rateit_class ?>" rel="<?= $rating->rel ?>">
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<div id="<?= $rating->descriptionId ?>" class="ratingText"><?= $rating->description ?></div>
</div>
<!-- indexer::continue -->
</li>
<?php endforeach; ?>
</ul>
</div>

View File

@ -0,0 +1,32 @@
<?php
// Add the mediabox style sheet and javascript
$GLOBALS['TL_CSS'][] = 'assets/mootools/mediabox/'. MEDIABOX .'/css/mediaboxAdvBlack21.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/mootools/mediabox/mediabox-rateit.js|static';
?>
<script>
(function($) {
window.addEvent('domready', function() {
var links = $$('a').filter(function(el) {
return el.getAttribute('data-lightbox') != null;
});
$$(links).mediabox({
// Put custom options here
}, function(el) {
return [el.href, el.title, el.getAttribute('data-lightbox')];
}, function(el) {
var data = this.getAttribute('data-lightbox').split(' ');
return (this == el) || (data[0] && el.getAttribute('data-lightbox').match(data[0]));
});
$('mbImage').addEvent('swipe', function(e) {
(e.direction == 'left') ? $('mbNextLink').fireEvent('click') : $('mbPrevLink').fireEvent('click');
});
});
String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};
})(document.id);
</script>

View File

@ -0,0 +1,33 @@
<?php
// Add the mediabox style sheet
$GLOBALS['TL_CSS'][] = 'assets/mootools/mediabox/'. MEDIABOX .'/css/mediaboxAdvBlack21.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/public/js/mootools/mediabox/mediabox-rateit.js|static';
?>
<script type="text/javascript">
/* <![CDATA[ */
(function($) {
window.addEvent('domready', function() {
var links = $$('a').filter(function(el) {
return el.rel && el.rel.test(/^lightbox/i);
});
$$(links).mediabox({
/* Put custom options here */
}, null, function(el) {
var rel0 = this.rel.replace(/[[]|]/gi,' ');
var relsize = rel0.split(' ');
return (this == el) || ((this.rel.length > 8) && el.rel.match(relsize[1]));
});
$('mbImage').addEvent('swipe', function(e) {
(e.direction == 'left') ? $('mbNextLink').fireEvent('click') : $('mbPrevLink').fireEvent('click');
});
});
String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};
})(document.id);
/* ]]> */
</script>

View File

@ -0,0 +1,82 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_full block<?php echo $this->class; ?>">
<h1><?php echo $this->newsHeadline; ?></h1>
<?php if ($this->hasMetaFields): ?>
<p class="info"><time datetime="<?php echo $this->datetime; ?>"><?php echo $this->date; ?></time> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<?php if ($this->hasSubHeadline): ?>
<h2><?php echo $this->subHeadline; ?></h2>
<?php endif; ?>
<div class="ce_text">
<?php if (!$this->addBefore): ?>
<?php echo $this->text; ?>
<?php endif; ?>
<?php if ($this->addImage): ?>
<figure class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>">
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<figcaption class="caption" style="width:<?php echo $this->arrSize[0]; ?>px"><?php echo $this->caption; ?></figcaption>
<?php endif; ?>
</figure>
<?php endif; ?>
<?php if ($this->addBefore): ?>
<?php echo $this->text; ?>
<?php endif; ?>
</div>
<?php if ($this->enclosure): ?>
<div class="enclosure">
<?php foreach ($this->enclosure as $enclosure): ?>
<p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['mime']; ?>" class="mime_icon"> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,90 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_full block<?php echo $this->class; ?>">
<h1><?php echo $this->newsHeadline; ?></h1>
<?php if ($this->hasMetaFields): ?>
<p class="info"><?php echo $this->date; ?> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<?php if ($this->hasSubHeadline): ?>
<h2><?php echo $this->subHeadline; ?></h2>
<?php endif; ?>
<div class="ce_text">
<?php if (!$this->addBefore): ?>
<?php echo $this->text; ?>
<?php endif; ?>
<?php if ($this->addImage): ?>
<div class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>" />
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<div class="caption" style="width:<?php echo $this->arrSize[0]; ?>px"><?php echo $this->caption; ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->addBefore): ?>
<?php echo $this->text; ?>
<?php endif; ?>
</div>
<?php if ($this->enclosure): ?>
<div class="enclosure">
<?php foreach ($this->enclosure as $enclosure): ?>
<p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['mime']; ?>" class="mime_icon" /> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://data-vocabulary.org/Review-aggregate" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="itemreviewed"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://data-vocabulary.org/Rating" itemscope="" itemprop="rating">
<span itemprop="average"><?php echo $this->actRating; ?></span>
<span itemprop="best"><?php echo $this->maxRating; ?></span>
</span>
<span class="rating-microdata" itemprop="votes"><?php echo $this->votes; ?></span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,101 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_full block<?php echo $this->class; ?>">
<h1><?php echo $this->newsHeadline; ?></h1>
<?php if ($this->hasMetaFields): ?>
<p class="info"><time datetime="<?php echo $this->datetime; ?>"><?php echo $this->date; ?></time> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<?php if ($this->hasSubHeadline): ?>
<h2><?php echo $this->subHeadline; ?></h2>
<?php endif; ?>
<div class="ce_text">
<?php if (!$this->addBefore): ?>
<?php echo $this->text; ?>
<?php endif; ?>
<?php if ($this->addImage): ?>
<figure class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>">
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<figcaption class="caption" style="width:<?php echo $this->arrSize[0]; ?>px"><?php echo $this->caption; ?></figcaption>
<?php endif; ?>
</figure>
<?php endif; ?>
<?php if ($this->addBefore): ?>
<?php echo $this->text; ?>
<?php endif; ?>
</div>
<?php if ($this->enclosure): ?>
<div class="enclosure">
<?php foreach ($this->enclosure as $enclosure): ?>
<p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['mime']; ?>" class="mime_icon"> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,101 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_full block<?php echo $this->class; ?>">
<h1><?php echo $this->newsHeadline; ?></h1>
<?php if ($this->hasMetaFields): ?>
<p class="info"><?php echo $this->date; ?> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<?php if ($this->hasSubHeadline): ?>
<h2><?php echo $this->subHeadline; ?></h2>
<?php endif; ?>
<div class="ce_text">
<?php if (!$this->addBefore): ?>
<?php echo $this->text; ?>
<?php endif; ?>
<?php if ($this->addImage): ?>
<div class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>" />
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<div class="caption" style="width:<?php echo $this->arrSize[0]; ?>px"><?php echo $this->caption; ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->addBefore): ?>
<?php echo $this->text; ?>
<?php endif; ?>
</div>
<?php if ($this->enclosure): ?>
<div class="enclosure">
<?php foreach ($this->enclosure as $enclosure): ?>
<p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['mime']; ?>" class="mime_icon" /> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,69 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_latest block<?php echo $this->class; ?>">
<?php if ($this->hasMetaFields): ?>
<p class="info"><time datetime="<?php echo $this->datetime; ?>"><?php echo $this->date; ?></time> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<?php if ($this->addImage): ?>
<figure class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>">
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<figcaption class="caption" style="width:<?php echo $this->arrSize[0]; ?>px"><?php echo $this->caption; ?></figcaption>
<?php endif; ?>
</figure>
<?php endif; ?>
<h2><?php echo $this->text ? $this->linkHeadline : $this->newsHeadline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
</div>
<?php if ($this->text): ?>
<p class="more"><?php echo $this->more; ?></p>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://data-vocabulary.org/Review-aggregate" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="itemreviewed"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://data-vocabulary.org/Rating" itemscope="" itemprop="rating">
<span itemprop="average"><?php echo $this->actRating; ?></span>
<span itemprop="best"><?php echo $this->maxRating; ?></span>
</span>
<span class="rating-microdata" itemprop="votes"><?php echo $this->votes; ?></span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,69 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_latest block<?php echo $this->class; ?>">
<?php if ($this->hasMetaFields): ?>
<p class="info"><?php echo $this->date; ?> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<?php if ($this->addImage): ?>
<div class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>" />
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<div class="caption" style="width:<?php echo $this->arrSize[0]; ?>px"><?php echo $this->caption; ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
<h2><?php echo $this->text ? $this->linkHeadline : $this->newsHeadline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
</div>
<?php if ($this->text): ?>
<p class="more"><?php echo $this->more; ?></p>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://data-vocabulary.org/Review-aggregate" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="itemreviewed"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://data-vocabulary.org/Rating" itemscope="" itemprop="rating">
<span itemprop="average"><?php echo $this->actRating; ?></span>
<span itemprop="best"><?php echo $this->maxRating; ?></span>
</span>
<span class="rating-microdata" itemprop="votes"><?php echo $this->votes; ?></span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,79 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_latest block<?php echo $this->class; ?>">
<?php if ($this->hasMetaFields): ?>
<p class="info"><time datetime="<?php echo $this->datetime; ?>"><?php echo $this->date; ?></time> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<?php if ($this->addImage): ?>
<figure class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>">
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<figcaption class="caption" style="width:<?php echo $this->arrSize[0]; ?>px"><?php echo $this->caption; ?></figcaption>
<?php endif; ?>
</figure>
<?php endif; ?>
<h2><?php echo $this->text ? $this->linkHeadline : $this->newsHeadline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
</div>
<?php if ($this->text): ?>
<p class="more"><?php echo $this->more; ?></p>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,79 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_latest block<?php echo $this->class; ?>">
<?php if ($this->hasMetaFields): ?>
<p class="info"><?php echo $this->date; ?> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<?php if ($this->addImage): ?>
<div class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>" />
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<div class="caption" style="width:<?php echo $this->arrSize[0]; ?>px"><?php echo $this->caption; ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
<h2><?php echo $this->text ? $this->linkHeadline : $this->newsHeadline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
</div>
<?php if ($this->text): ?>
<p class="more"><?php echo $this->more; ?></p>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,55 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_short block<?php echo $this->class; ?>">
<?php if ($this->hasMetaFields): ?>
<p class="info"><time datetime="<?php echo $this->datetime; ?>"><?php echo $this->date; ?></time> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<h2><?php echo $this->text ? $this->linkHeadline : $this->newsHeadline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
</div>
<?php if ($this->text): ?>
<p class="more"><?php echo $this->more; ?></p>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://data-vocabulary.org/Review-aggregate" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="itemreviewed"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://data-vocabulary.org/Rating" itemscope="" itemprop="rating">
<span itemprop="average"><?php echo $this->actRating; ?></span>
<span itemprop="best"><?php echo $this->maxRating; ?></span>
</span>
<span class="rating-microdata" itemprop="votes"><?php echo $this->votes; ?></span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,55 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_short block<?php echo $this->class; ?>">
<?php if ($this->hasMetaFields): ?>
<p class="info"><?php echo $this->date; ?> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<h2><?php echo $this->text ? $this->linkHeadline : $this->newsHeadline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
</div>
<?php if ($this->text): ?>
<p class="more"><?php echo $this->more; ?></p>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://data-vocabulary.org/Review-aggregate" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="itemreviewed"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://data-vocabulary.org/Rating" itemscope="" itemprop="rating">
<span itemprop="average"><?php echo $this->actRating; ?></span>
<span itemprop="best"><?php echo $this->maxRating; ?></span>
</span>
<span class="rating-microdata" itemprop="votes"><?php echo $this->votes; ?></span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,65 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_short block<?php echo $this->class; ?>">
<?php if ($this->hasMetaFields): ?>
<p class="info"><time datetime="<?php echo $this->datetime; ?>"><?php echo $this->date; ?></time> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<h2><?php echo $this->text ? $this->linkHeadline : $this->newsHeadline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
</div>
<?php if ($this->text): ?>
<p class="more"><?php echo $this->more; ?></p>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,65 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_short block<?php echo $this->class; ?>">
<?php if ($this->hasMetaFields): ?>
<p class="info"><?php echo $this->date; ?> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<h2><?php echo $this->text ? $this->linkHeadline : $this->newsHeadline; ?></h2>
<div class="teaser">
<?php echo $this->teaser; ?>
</div>
<?php if ($this->text): ?>
<p class="more"><?php echo $this->more; ?></p>
<?php endif; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,38 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_simple block<?php echo $this->class; ?>">
<?php if ($this->date): ?><time datetime="<?php echo $this->datetime; ?>"><?php echo $this->date; ?></time> <?php endif; ?><?php echo $this->linkHeadline; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,38 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_simple block<?php echo $this->class; ?>">
<?php if ($this->date): ?><?php echo $this->date; ?> <?php endif; ?><?php echo $this->linkHeadline; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,56 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_simple block<?php echo $this->class; ?>">
<?php if ($this->date): ?><time datetime="<?php echo $this->datetime; ?>"><?php echo $this->date; ?></time> <?php endif; ?><?php echo $this->linkHeadline; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,56 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<div class="layout_simple block<?php echo $this->class; ?>">
<?php if ($this->date): ?><?php echo $this->date; ?> <?php endif; ?><?php echo $this->linkHeadline; ?>
</div>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->ratingId; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,14 @@
<!-- indexer::stop -->
<div id="<?php echo $this->id; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->

View File

@ -0,0 +1,14 @@
<!-- indexer::stop -->
<div id="<?php echo $this->id; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->

View File

@ -0,0 +1,23 @@
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?php echo $this->id; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->

View File

@ -0,0 +1,23 @@
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope="" class="rating-microdata">
<div id="<?php echo $this->id; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->showBefore) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
<div class="wrapper">
<div class="rateItRating-selected" style="display: block;"></div>
<div class="rateItRating-hover"></div>
</div>
<?php if ($this->showAfter) : ?>
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
<?php endif; ?>
</div>
<span class="rating-microdata" itemprop="name"><?php echo $this->itemreviewed; ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope="" itemprop="aggregateRating">
<span itemprop="ratingValue"><?php echo $this->actRating; ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?php echo $this->maxRating; ?></span>
<span itemprop="ratingCount"><?php echo $this->votes; ?></span>
</span>
</div>
<!-- indexer::continue -->

View File

@ -0,0 +1,182 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @version 3.1.0 stable
* @license GNU/LGPL
* @filesource
*/
$rateit = &$this->rateit;
$theme = &$rateit->theme;
$text = &$GLOBALS['TL_LANG']['tl_rateit'];
$type_options = &$GLOBALS['TL_LANG']['tl_rateit_type_options'];
$active_options = &$GLOBALS['TL_LANG']['tl_rateit_active_options'];
$order_options = &$GLOBALS['TL_LANG']['tl_rateit_order_options'];
?>
<div class="mod_rateit">
<form action="<?php echo $rateit->f_link; ?>" id="rateit_editform" method="post">
<div class="tl_formbody">
<input type="hidden" name="rateit_action" value="<?php echo $rateit->f_action; ?>">
<input type="hidden" name="REQUEST_TOKEN" value="<?php echo REQUEST_TOKEN; ?>">
<div class="tl_panel">
<div class="tl_filter tl_subpanel">
<strong><?php echo $GLOBALS['TL_LANG']['MSC']['filter']; ?>:</strong>
<select name="rateit_typ" id="rateit_typ" class="tl_select<?php if ($rateit->f_type!='') echo ' active'; ?>">
<option value=""><?php echo $text['seltyp'][0]; ?></option>
<option value="">---</option>
<?php foreach ($type_options as $k=>$v): ?>
<option value="<?php echo $k; ?>"<?php if (strcasecmp($rateit->f_typ, $k) == 0) echo ' selected="selected"'; ?>><?php echo $v; ?></option>
<?php endforeach; ?>
</select>
<select name="rateit_active" id="rateit_active" class="tl_select<?php if ($rateit->f_active!='') echo ' active'; ?>">
<option value=""><?php echo $text['selactive'][0]; ?></option>
<option value="">---</option>
<?php foreach ($active_options as $k=>$v): ?>
<option value="<?php echo $k; ?>"<?php if (strcasecmp($rateit->f_active, $k) == 0) echo ' selected="selected"'; ?>><?php echo $v; ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="clear"></div>
</div>
<div class="tl_panel">
<div class="tl_submit_panel tl_subpanel">
<input type="image" name="filter" id="filter" src="<?php echo TL_FILES_URL; ?>system/themes/<?php echo $this->getTheme(); ?>/images/reload.gif" class="tl_img_submit" title="<?php echo $text['apply']; ?>" alt="<?php echo $text['apply']; ?>">
</div>
<div class="tl_limit tl_subpanel">
<strong><?php echo $GLOBALS['TL_LANG']['MSC']['showOnly']; ?>:</strong>
<select name="rateit_page" id="rateit_page" class="tl_select<?php if ($rateit->f_page!=-1) echo ' active'; ?>" onchange="this.form.submit()">
<option value="0"><?php echo $GLOBALS['TL_LANG']['MSC']['filterRecords']; ?></option>
<?php for ($page=0; $page<count($rateit->pages); $page++): ?>
<option value="<?php echo $page; ?>"<?php if ($rateit->f_page==$page) echo ' selected="selected"'; ?>><?php echo $rateit->pages[$page]; ?></option>
<?php endfor; ?>
<option value="-1"<?php if ($rateit->f_page<0) echo ' selected="selected"'; ?>><?php echo $GLOBALS['TL_LANG']['MSC']['filterAll']; ?></option>
</select>
</div>
<div class="tl_search tl_subpanel">
<strong><?php echo $GLOBALS['TL_LANG']['MSC']['search']; ?>:</strong>
<input type="text" name="rateit_find" id="rateit_find" value="<?php echo specialchars($rateit->f_find); ?>" class="tl_text fulltextsearch<?php if ($rateit->f_find!='') echo ' active'; ?>"/>
</div>
<div class="tl_sorting tl_subpanel">
<strong><?php echo $GLOBALS['TL_LANG']['MSC']['sortBy']; ?>:</strong>
<select name="rateit_order" id="rateit_order" class="tl_select">
<?php foreach (array_keys($order_options) as $oby): ?>
<option value="<?php echo $oby; ?>"<?php if ($rateit->f_order==$oby) echo ' selected="selected"'; ?>><?php echo sprintf($text['byorder'], $order_options[$oby]); ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="clear"></div>
</div>
<div id="tl_buttons">
<a onclick="Backend.getScrollOffset()" accesskey="n" class="header_export_excel" title="Export nach Excel" href="<?php echo $rateit->exportLink; ?>">Excel-Export</a>
</div>
</div>
</form>
<div class="rating_container">
<form action="<?php echo $rateit->f_link; ?>" id="rateit_clearform" method="post" >
<input type="hidden" name="act" value="reset_ratings">
<input type="hidden" name="REQUEST_TOKEN" value="<?php echo REQUEST_TOKEN; ?>">
<?php if (count($rateit->ratingitems) < 1): ?>
<p><?php echo $text['noratingsfound']; ?></p>
<?php else: ?>
<div>
<table class="rating-selectall">
<th class="selectall"><input type="checkbox" id="selectall" onclick="selectUnselectAll()">
</table>
</div>
<?php foreach ($rateit->ratingitems as $rating): ?>
<table class="rating">
<tr class="title">
<th colspan="4"><span class="leftblock"><input type="checkbox" name="selectedids[]" value="<?php echo $rating->rkey; ?>__<?php echo $rating->typ; ?>" onclick="enableSelectFunctions()">&nbsp;<a href="<?php echo $rating->viewLink; ?>" title="<?php echo $text['showdetails']; ?>"><?php echo $rating->title; ?></a></span> <span class="rightblock"><?php echo $theme->createListButton('info', $rating->viewLink, $text['showdetails']); ?></span></th>
</tr>
<tr class="info">
<th class="listcol1"><?php echo $text['title'][0]; ?></th>
<td class="listcol2"><?php echo $rating->title; ?></td>
<th class="listcol3"><?php echo $text['typ'][0]; ?></th>
<td class="type-<?php echo $rating->typ; ?>"><?php echo $type_options[$rating->typ]; ?></td>
</tr>
<tr class="info">
<th><?php echo $text['createdat'][0]; ?></th>
<td><?php echo $this->parseDate($GLOBALS['TL_CONFIG']['dateFormat'], $rating->createdat); ?></td>
<th><?php echo $text['status'][0]; ?></th>
<td class="active-<?php echo $rating->active; ?>"><?php echo $active_options[$rating->active]; ?></td>
</tr>
<tr class="info">
<th><?php echo property_exists($rating, 'rating') ? $text['rateit'][0] : '&nbsp;'; ?></th>
<td class="nowrap"><?php if (property_exists($rating, 'rating')): ?><div class="ratebarframe"><div class="ratebar" style="width:<?php echo number_format($rating->percent,12,'.',','); ?>%"></div></div> <div class="ratebartext"><?php echo sprintf($text['ratingfmt'], str_replace(".", ",", $rating->rating), $rating->stars, $rating->totalRatings); ?></div><?php endif; ?></td>
<th>&nbsp;</th>
<td>&nbsp;</td>
</tr>
</table>
<?php endforeach; ?>
<div class="tl_formbody_submit">
<div class="tl_submit_container">
<input type="submit" name="rateit_clearbutton" id="rateit_clearbutton" class="tl_submit" value="<?php echo $text['clearratings']; ?>">
</div>
</div>
<?php endif; ?>
</div>
</form>
</div>
<script>
function enableSelectFunctions() {
var sel = false;
var cbs = document.getElementsByName('selectedids[]');
for (var i = 0; i < cbs.length; ++i) {
if (cbs[i].checked) {
sel = true;
break;
}
}
document.getElementById('rateit_clearbutton').disabled = !sel;
}
function selectUnselectAll() {
var chk = document.getElementById('selectall').checked;
var cbs = document.getElementsByName('selectedids[]');
for (var i = 0; i < cbs.length; ++i) cbs[i].checked = chk;
enableSelectFunctions();
}
enableSelectFunctions();
</script>

View File

@ -0,0 +1,199 @@
<?php
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @version 3.1.0 stable
* @license GNU/LGPL
* @filesource
*/
$rateit = &$this->rateit;
$theme = &$rateit->theme;
$text = &$GLOBALS['TL_LANG']['tl_rateit'];
$type_options = &$GLOBALS['TL_LANG']['tl_rateit_type_options'];
$active_options = &$GLOBALS['TL_LANG']['tl_rateit_active_options'];
$rating = &$rateit->ratingitems[0];
$label = $GLOBALS['TL_CONFIG']['rating_type'] == 'hearts' ? $GLOBALS['TL_LANG']['rateit']['heart'] : $GLOBALS['TL_LANG']['rateit']['star'];
$labels = $GLOBALS['TL_CONFIG']['rating_type'] == 'hearts' ? $GLOBALS['TL_LANG']['rateit']['hearts'] : $GLOBALS['TL_LANG']['rateit']['stars'];
?>
<div class="mod_rateit mod_rateit_view">
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawRatingsChart);
google.setOnLoadCallback(drawMonthsChart);
function drawRatingsChart() {
var data = new google.visualization.DataTable(<?php echo $rating->ratingsChartData; ?>);
var options = {
title: '<?php echo $text['rating_chart_legend'][0]; ?>',
is3D: true,
height: 350,
legend: {position: 'bottom'}
};
var chart = new google.visualization.PieChart(document.getElementById('chart_ratings'));
chart.draw(data, options);
}
function drawMonthsChart() {
var data = new google.visualization.DataTable(<?php echo $rating->monthsChartData; ?>);
var options = {
title: '<?php echo $text['month_chart_legend'][0]; ?>',
height: 350,
legend: {position: 'bottom'},
animation: {
duration: 1000
},
vAxes: [
{title: '<?php echo $text['month_chart_legend'][1]; ?>', minValue: 0},
{title: '<?php echo $text['month_chart_legend'][2]; ?>', minValue: 0, maxValue: <?php echo intval($GLOBALS['TL_CONFIG']['rating_count']); ?>}
],
hAxis: {title: '<?php echo $text['month_chart_legend'][3]; ?>'},
series: {
0: {type: "bars", targetAxisIndex: 0},
1: {type: "line", targetAxisIndex: 1}
}
};
var chart = new google.visualization.ComboChart(document.getElementById('chart_months'));
chart.draw(data, options);
}
</script>
<form action="<?php echo $rateit->f_link; ?>" id="rateit_editform" method="post">
<div class="tl_formbody">
<input type="hidden" name="rateit_action" value="<?php echo $rateit->f_action; ?>">
<input type="hidden" name="REQUEST_TOKEN" value="<?php echo REQUEST_TOKEN; ?>">
<div class="tl_panel">
<div class="tl_panel" style="border-bottom: none !important;">
<div class="tl_submit_panel tl_subpanel">
<input type="image" name="filter" id="filter" src="<?php echo TL_FILES_URL; ?>system/themes/<?php echo $this->getTheme(); ?>/images/reload.gif" class="tl_img_submit" title="<?php echo $text['apply']; ?>" alt="<?php echo $text['apply']; ?>">
</div>
<div class="tl_limit tl_subpanel">
<strong><?php echo $GLOBALS['TL_LANG']['MSC']['showOnly']; ?>:</strong>
<select name="rateit_details_page" id="rateit_details_page" class="tl_select<?php if ($rateit->f_page!=-1) echo ' active'; ?>" onchange="this.form.submit()">
<option value="0"><?php echo $GLOBALS['TL_LANG']['MSC']['filterRecords']; ?></option>
<?php for ($page=0; $page<count($rateit->pages); $page++): ?>
<option value="<?php echo $page; ?>"<?php if ($rateit->f_page==$page) echo ' selected="selected"'; ?>><?php echo $rateit->pages[$page]; ?></option>
<?php endfor; ?>
<option value="-1"<?php if ($rateit->f_page<0) echo ' selected="selected"'; ?>><?php echo $GLOBALS['TL_LANG']['MSC']['filterAll']; ?></option>
</select>
</div>
</div>
<div class="clear"></div>
</div>
<div id="tl_buttons">
<a onclick="Backend.getScrollOffset()" accesskey="n" class="header_export_excel" title="Export nach Excel" href="<?php echo $rateit->exportLink; ?>">Excel-Export</a> <a href="<?php echo $rateit->backLink; ?>" class="header_back" title="<?php echo $text['goback']; ?>" accesskey="b" onclick="Backend.getScrollOffset()"><?php echo $text['goback']; ?></a>
</div>
</div>
</form>
<div class="rating_container">
<table class="rating">
<tr class="title">
<th colspan="4"><span class="title"><?php echo $rating->title; ?></span></th>
</tr>
<tr class="spacer"><td colspan="4" class="spacer">&nbsp;</td></tr>
<tr>
<th class="viewcol1"><?php echo $text['title'][0]; ?></th>
<td class="viewcol2"><?php echo $rating->title; ?></td>
<th class="viewcol3"><?php echo $text['typ'][0]; ?></th>
<td class="type-<?php echo $rating->typ; ?>"><?php echo $type_options[$rating->typ]; ?></td>
</tr>
<tr>
<th><?php echo $text['createdat'][0]; ?></th>
<td><?php echo $this->parseDate($GLOBALS['TL_CONFIG']['dateFormat'], $rating->createdat); ?></td>
<th><?php echo $text['status'][0]; ?></th>
<td class="active-<?php echo $rating->active; ?>"><?php echo $active_options[$rating->active]; ?></td>
</tr>
<tr>
<th><?php echo property_exists($rating, 'rating') ? $text['overall_rating'][0] : '&nbsp;'; ?></th>
<td class="nowrap"><?php if (property_exists($rating, 'rating')): ?><div class="ratebarframe"><div class="ratebar" style="width:<?php echo number_format($rating->percent,12,'.',','); ?>%"></div></div> <div class="ratebartext"><?php echo sprintf($text['ratingfmt'], str_replace(".", ",", $rating->rating), $rating->stars, $rating->totalRatings); ?></div><?php endif; ?></td>
<th>&nbsp;</th>
<td>&nbsp;</td>
</tr>
<tr class="spacer"><td colspan="4" class="spacer">&nbsp;</td></tr>
<tr>
<th colspan="4"><?php echo $text['statistics'][0]; ?></th>
</tr>
<tr>
<td colspan="4">
<table class="rating">
<tr>
<td class="w50 h100"><div id="chart_ratings" class="chart"/></td>
<td class="w50 h100"><div id="chart_months" class="chart"/></td>
</tr>
</table>
</td>
</tr>
<tr class="spacer"><td colspan="4" class="spacer">&nbsp;</td></tr>
<tr>
<th colspan="4"><?php echo $text['ratings'][0]; ?></th>
</tr>
<tr>
<td colspan="4">
<?php if (count($rating->ratings) < 1): ?>
<p><?php echo $text['noratingsfound']; ?></p>
<?php else: ?>
<table class="rating">
<tr>
<th><?php echo $text['ip'][0]; ?></th>
<th><?php echo $text['member'][0]; ?></th>
<th><?php echo $text['rating'][0]; ?></th>
<th><?php echo $text['createdatdetail'][0]; ?></th>
</tr>
<?php foreach($rating->ratings as $r) : ?>
<tr>
<td><?php echo $r->ip; ?></td>
<td><?php echo $r->member; ?></td>
<td><div class="ratebarframe"><div class="ratebar" style="width:<?php echo number_format($r->percent,12,'.',','); ?>%"></div></div> <div class="ratebartext"><?php echo sprintf($text['ratingviewfmt'], str_replace(".", ",", $r->rating), $rating->stars).' '.$labels; ?></div></td>
<td><?php echo $this->parseDate($GLOBALS['TL_CONFIG']['datimFormat'], $r->createdat); ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
</td>
</tr>
</table>
</div>
</div>

View File

@ -0,0 +1,7 @@
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
<IfModule mod_authz_core.c>
Require all granted
</IfModule>

View File

@ -0,0 +1,136 @@
/**
* Contao Open Source CMS
* Copyright (C) 2005-2011 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright cgo IT, 2013
* @author Carsten Götzinger (info@cgo-it.de)
* @package rateit
* @license GNU/LGPL
* @filesource
*/
/* General */
.mod_rateit .nowrap { white-space:nowrap; }
.mod_rateit .middle, .mod_rateit .middle * { vertical-align:middle; }
.mod_rateit table.nested { width:100%; margin:0; border:0; }
.mod_rateit table td.nopadding { vertical-align:top; padding:0px !important;}
/* Rating list */
/*.rating_container { margin:12px; }*/
.mod_rateit table
{
width:100%;
margin:6px 0;
border-top:1px solid #ddd;
border-bottom:1px solid #ddd;
}
.mod_rateit table th, .mod_rateit table td
{
padding:3px 6px;
background-color:#f9f9f9;
text-align:left;
line-height:1;
}
.mod_rateit table th.selectall {
background-color:#fff;
}
.mod_rateit table.rating-selectall {
border:0px;
}
.mod_rateit table th { background-color:#fbf7f1; }
.mod_rateit table tr.title th
{
padding:6px;
background-color:#f0f0f0;
border-bottom:1px solid #ddd;
}
.mod_rateit table tr.title span.leftblock
{
padding-top:2px;
display:block;
float:left;
}
.mod_rateit table tr.title span.leftblock a { color:#8ab858 !important; }
.mod_rateit table tr.title span.rightblock { display:block; float:right; }
.mod_rateit table tr.info th, .mod_rateit table tr.info td { border-top:1px solid #fff; font-size:10px; }
.mod_rateit table .listcol1, .mod_rateit table .listcol3, .mod_rateit table .viewcol1, .mod_rateit table .viewcol3 { width:23%; }
.mod_rateit table .listcol2, .mod_rateit table .viewcol2 { width:27%; }
/* Details view */
.mod_rateit_view tr.spacer td
{
background-color:#fff;
border-top:1px solid #ddd;
border-bottom:1px solid #ddd;
line-height:4px;
}
/* Status colors */
.mod_rateit table.rating td.active-0 { background-color:#ffe0e0; }
.mod_rateit table.rating td.type-ce { background-color:#e0e0ff; }
.mod_rateit table.rating td.type-module { background-color:#ffe0e0; }
.mod_rateit table.rating td.type-news { background-color:#aae0e0; }
.mod_rateit table.rating td.type-faq { background-color:#ffe0aa; }
.mod_rateit table.rating td.type-article { background-color:#ffcce0; }
.mod_rateit table.rating td.type-galpic { background-color:#ffe066; }
.mod_rateit table.rating td.type-news4ward { background-color:#ffe011; }
.mod_rateit table.rating td.active-1, .mod_rateit table.rating td.type-page { background-color:#e0ffe0; }
.mod_rateit table.rating td.
/* Rating-Statistics */
.mod_rateit table th.statistics { float:left; }
/* Rating */
.mod_rateit div.ratebarframe
{
width:60px;
float:left;
background-color:#ffe0e0;
border:1px solid #999;
font-size:1px;
line-height:1px;
}
.mod_rateit div.ratebar
{
width:10%;
height:12px;
background-color:#c0ffc0;
font-size:1px;
}
.mod_rateit div.ratebartext { margin-left:65px; }
.mod_rateit a.header_export_excel{
padding:2px 0 3px 20px;
background-image:url("../images/exportEXCEL.gif");
background-position:left center;
background-repeat:no-repeat;
}
.mod_rateit div.chart {
width: 100%;
}
.mod_rateit .w50 {
width: 48%;
}
.mod_rateit .h100 {
height: 100%;
}

View File

@ -0,0 +1,11 @@
.rateItRating .wrapper, .mbrateItRating .wrapper {
background: url("../images/heart.gif");
}
div.rateItRating div.rateItRating-hover, div.mbrateItRating div.rateItRating-hover {
background: url("../images/heart.gif") left;
}
div.rateItRating div.rateItRating-selected, div.mbrateItRating div.rateItRating-selected {
background: url("../images/heart.gif") left;
}

View File

@ -0,0 +1 @@
.mbrateItRating .wrapper,.rateItRating .wrapper{background:url("../images/heart.gif")}div.mbrateItRating div.rateItRating-hover,div.mbrateItRating div.rateItRating-selected,div.rateItRating div.rateItRating-hover,div.rateItRating div.rateItRating-selected{background:url("../images/heart.gif") left}

View File

@ -0,0 +1,74 @@
.rateItRating {
position: relative;
display: inline-block;
}
.mbrateItRating {
position: relative;
opacity: 1;
}
.rateItRating .wrapper, .mbrateItRating .wrapper {
cursor: pointer;
position: relative;
diplay: inline-block;
height: 16px;
}
.ce_rateit_top_ratings .rateItContainer {
display: inline-block;
width: 100%;
}
.ce_rateit_top_ratings .rateItTitle {
float: left;
}
.rateItRating[rel="not-rateable"] {
float: right;
}
.rateItRating[rel="not-rateable"] .wrapper {
cursor: default;
}
div.mod_rateit_top_ratings ul {
padding: 0;
}
div.mod_rateit_top_ratings li {
list-style-type: none;
}
div.mod_rateit_top_ratings div.rateItTitle {
display: inline-block;
max-width: 40%;
min-height: 30px;
}
div.rateItRating div.rateItRating-hover, div.rateItRating div.rateItRating-selected,
div.mbrateItRating div.rateItRating-hover, div.mbrateItRating div.rateItRating-selected {
position: absolute;
}
.rateItRating .ratingText {
color: #000;
}
.mbrateItRating .mbratingText {
display: inline-block;
color: #ccc;
}
.ratingText.ratingError {
color: #f00;
}
.rateItRating .ratingText.loading, .mbrateItRating .mbratingText.loading {
background: url("../images/ajax-loading.gif") no-repeat;
/*text-indent: -999em;*/
}
span.rating-microdata {
display: none;
}

View File

@ -0,0 +1 @@
.rateItRating{position:relative;display:inline-block}.mbrateItRating{position:relative;opacity:1}.mbrateItRating .wrapper,.rateItRating .wrapper{cursor:pointer;position:relative;diplay:inline-block;height:16px}.ce_rateit_top_ratings .rateItContainer{display:inline-block;width:100%;}.ce_rateit_top_ratings .rateItTitle{float: left;}.rateItRating[rel=not-rateable]{float:right}.rateItRating[rel=not-rateable] .wrapper{cursor:default}div.mod_rateit_top_ratings ul{padding:0}div.mod_rateit_top_ratings li{list-style-type:none}div.mod_rateit_top_ratings div.rateItTitle{display:inline-block;max-width:40%;min-height:30px}div.mbrateItRating div.rateItRating-hover,div.mbrateItRating div.rateItRating-selected,div.rateItRating div.rateItRating-hover,div.rateItRating div.rateItRating-selected{position:absolute}.rateItRating .ratingText{color:#000}.mbrateItRating .mbratingText{display:inline-block;color:#ccc}.ratingText.ratingError{color:red}.mbrateItRating .mbratingText.loading,.rateItRating .ratingText.loading{background:url("../images/ajax-loading.gif") no-repeat}span.rating-microdata{display:none}

View File

@ -0,0 +1,11 @@
.rateItRating .wrapper, .mbrateItRating .wrapper {
background: url("../images/star.gif");
}
div.rateItRating div.rateItRating-hover, div.mbrateItRating div.rateItRating-hover {
background: url("../images/star.gif") left;
}
div.rateItRating div.rateItRating-selected, div.mbrateItRating div.rateItRating-selected {
background: url("../images/star.gif") left;
}

1
src/Resources/public/css/star.min.css vendored Normal file
View File

@ -0,0 +1 @@
.mbrateItRating .wrapper,.rateItRating .wrapper{background:url("../images/star.gif")}div.mbrateItRating div.rateItRating-hover,div.mbrateItRating div.rateItRating-selected,div.rateItRating div.rateItRating-hover,div.rateItRating div.rateItRating-selected{background:url("../images/star.gif") left}

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Some files were not shown because too many files have changed in this diff Show More