Compare commits

...

64 Commits

Author SHA1 Message Date
Carsten Götzinger 51eb572d73 Updated composer.json with repositories block 2018-04-23 07:09:21 +02:00
Carsten Götzinger 2de2194556 Updated composer.json with repositories block 2018-04-23 07:00:45 +02:00
Carsten Götzinger c0cae89ce5 Updated composer.json with repositories block 2018-04-23 06:59:33 +02:00
Carsten Götzinger 9e3946a03d Updated composer.json with repositories block 2018-04-23 06:58:08 +02:00
Carsten Götzinger e195e77ee7 Updated composer.json with repositories block 2018-04-23 06:32:05 +02:00
Carsten Götzinger e42a1753d1 Final commit?! 2018-02-15 13:58:00 +01:00
Carsten Götzinger 06fb02136c ID korrigiert 2018-02-15 13:47:24 +01:00
Carsten Götzinger 3c4848f0be Überflüssiges div entfernt 2018-02-15 13:44:19 +01:00
Carsten Götzinger 09d1e7ca4b Test entfernt 2018-02-15 13:42:24 +01:00
Carsten Götzinger 8cf0ca8014 test 2018-02-15 13:41:03 +01:00
Carsten Götzinger c6057936d7 news_full template 2018-02-15 13:38:39 +01:00
Carsten Götzinger ad82178c75 korrektur 2018-02-15 13:25:50 +01:00
Carsten Götzinger 03dda889a9 Templates korrigiert 2018-02-15 12:44:10 +01:00
Carsten Götzinger 129146a92c Verzicht auf article_rateit_* 2018-02-15 12:39:33 +01:00
Carsten Götzinger f4a1ff3c73 added templates 2018-02-15 12:32:42 +01:00
Carsten Götzinger f16141a390 Templates überarbeitet 2018-02-15 12:28:15 +01:00
Carsten Götzinger 3c75287785 deleted exportEXCEL.gif 2018-02-15 10:30:33 +01:00
Carsten Götzinger ac7e49cabc size attribute für exportEXCEL 2018-02-15 10:27:26 +01:00
Carsten Götzinger 3e3377bfa8 added exportEXCEL.svg 2018-02-15 10:24:21 +01:00
Carsten Götzinger dfdc956121 Use svg-image in backend 2018-02-15 10:20:25 +01:00
Carsten Götzinger 3e63d90c19 Backend url generation fixed 2018-02-15 09:33:14 +01:00
Carsten Götzinger 3bd810e662 fix BackenModule 2018-02-15 08:15:13 +01:00
Carsten Götzinger 78a97b83c4 fix BackenModule 2018-02-15 07:33:58 +01:00
Carsten Götzinger d4aafb186f fix BackenModule 2018-02-15 07:21:44 +01:00
Carsten Götzinger 4460c9f8bb send response in ajax Controller/AjaxRateItController.php 2018-02-15 07:08:22 +01:00
Carsten Götzinger 25403155b1 JsonResponse angepasst 2018-02-15 06:57:39 +01:00
Carsten Götzinger 01dc5be820 Korrektes JSON zurückgeben 2018-02-15 06:27:02 +01:00
Carsten Götzinger 1ab4a1c6de Umstellung auf eigene Ajax-Verarbeitung über Route "rateit" 2018-02-15 06:16:05 +01:00
Carsten Götzinger 1dd2979664 Umstellung auf eigene Ajax-Verarbeitung über Route "rateit" 2018-02-15 06:14:26 +01:00
Carsten Götzinger 107e32c3be Event-Verarbeitung 2018-02-15 05:01:49 +01:00
Carsten Götzinger 38d4df8232 Anpassung Pfad zu public Ressourcen 2018-02-14 16:17:58 +01:00
Carsten Götzinger 9cef234103 GROUP BY korrigiert 2018-02-14 16:11:30 +01:00
Carsten Götzinger c63c4dd127 Klasse tl_settings_rateit hinzugefügt 2018-02-14 13:36:52 +01:00
Carsten Götzinger 08fd8c1319 use statement korrigiert 2018-02-14 13:14:48 +01:00
Carsten Götzinger 93e4d2dd63 Imports für DcaHelper ergänzt 2018-02-14 12:51:55 +01:00
Carsten Götzinger d15a1b43d2 Klassenname in config.php korrigiert 2018-02-14 09:55:54 +01:00
Carsten Götzinger ff5be550eb runonce integriert 2018-02-14 09:41:11 +01:00
Carsten Götzinger 02cf727e11 Umstellung auf Events für simple-ajax 2018-02-14 09:32:24 +01:00
Carsten Götzinger 7915541c6e composer.json korrigiert 2018-02-14 09:00:31 +01:00
Carsten Götzinger c1f05e556c Vendor-Ordner zu .gitignore hinzugefügt 2018-02-14 08:32:25 +01:00
Carsten Götzinger b1d3d540bb Umstellung auf Contao 4 Bundle 2018-02-14 08:30:39 +01:00
Carsten Götzinger b922fe527c Updated to xls_export 3.1.0 2018-02-14 05:24:21 +01:00
Carsten Götzinger 2a4001f77c Updated composer.json 2018-02-14 05:16:50 +01:00
Carsten Götzinger fe9436a16f composer.json korrigiert 2017-03-31 10:50:30 +02:00
Carsten Götzinger fb9540fe2e Verlinkung für Top-Modul eingebaut 2017-03-31 10:41:53 +02:00
Carsten Götzinger 8ca4aad975 Abhängigkeit zu SimpleAjax entfernt
Kompatibilität zu PHP 7 hergestellt
2017-03-31 08:34:43 +02:00
Carsten Götzinger 11e3e2817c Version 3.5.3
Microdata auf schema.org umgestellt
ID für News-Rating wird nicht mehr überschrieben
2017-02-22 07:20:05 +01:00
Carsten Götzinger d0359fa26a Merge branch 'master' of https://git.cgo-it.de/contao/rate-it 2017-02-22 06:27:10 +01:00
Carsten Goetzinger a832e33012 Umzug zu gitlab 2017-01-27 13:01:29 +01:00
Carsten Götzinger 96b6bc3bf4 Merged in frontendschlampe/contao-rate-it/bugfix/image-path (pull request #1)
use " image url, also in minified version, otherwise contao will not rewrite the image url and the images will not be found
2016-04-27 12:59:41 +02:00
Nicky Hoff e73e6a8563 use " image url, also in minified version, otherwise contao will not rewrite the image url and the images will not be found 2016-04-27 11:42:25 +02:00
Carsten Götzinger 4535d94266 SimpleAjax-Action nur noch ausführen, wenn do=rateit übergeben wird 2015-07-16 08:29:24 +02:00
Carsten Götzinger 5033e0688a Update auf Colorbox 1.6.1 2015-06-29 09:12:27 +02:00
Carsten Götzinger 32ea39f8a3 Versucht, Fehlermeldungen zu unterbinden 2015-06-25 14:08:19 +02:00
Carsten Götzinger 75197145d5 Umstellung auf XLIFF 2015-06-18 07:38:08 +02:00
Carsten Götzinger 0f080a32be Konfiguration Positionierung Rating auf Seiten (oberhalb/unterhalb) eingebaut 2015-06-12 07:39:01 +02:00
Carsten Götzinger 3ce491f16c JavaScript minifiziert 2015-04-02 08:24:26 +02:00
Carsten Götzinger a6f5648fbd News4ward für Beste/Meiste Bewertungen aufgenommen 2015-03-11 19:12:53 +01:00
Carsten Götzinger 65bbc92119 Neue Version 3.4.3 2015-03-11 11:08:56 +01:00
Carsten Götzinger 61b4ea3613 Abhängigkeit auf leounglaub/contao-simple-ajax umgestellt 2015-03-10 20:49:19 +01:00
Carsten Götzinger 290ac55974 Löschen von Ratings zu gelöschten Bildern 2015-02-27 22:22:49 +01:00
Carsten Götzinger 121168f005 Fehler beim Löschen und Aktualisieren von Galerie-Bildern behoben 2015-02-27 21:57:47 +01:00
Carsten Götzinger 8cc7a80182 Fehler im Backend-Modul behoben. 2015-02-26 12:17:29 +01:00
Carsten Götzinger b1934458fd Version angepasst 2015-02-24 07:41:37 +01:00
160 changed files with 3188 additions and 3762 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/.project
/vendor

View File

@ -1,142 +0,0 @@
<?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
{
//protected $intStars = 5;
/**
* 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'][] = 'system/modules/rateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/rateit.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/heart.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/star.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';
// 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;
}
}
?>

View File

@ -1,9 +1,18 @@
{
"name":"cgo-it/rate-it",
"description":"RateIt extension for the Contao Open Source CMS",
"keywords":["contao", "rating", "rateit", "bewertung"],
"type":"contao-module",
"name":"cgo-it/contao-rate-it-bundle",
"description":"RateIt extension for the Contao Open Source CMS as contao 4 bundle",
"keywords":["contao", "rating", "rateit", "bewertung", "bundle"],
"type":"contao-bundle",
"homepage":"https://cgo-it.de",
"license":"LGPL-3.0+",
"prefer-stable": true,
"config": {
"preferred-install": {
"cgo-it/*": "dist",
"*": "dist"
},
"gitlab-domains": [ "git.cgo-it.de" ]
},
"authors":[
{
"name":"cgo IT",
@ -13,29 +22,46 @@
}
],
"support": {
"email": "info@cgo-it.de",
"issues": "https://bitbucket.org/cgo-it/contao-rate-it/issues?status=new&status=open",
"issues": "https://git.cgo-it.de/contao/rate-it/issues",
"forum": "https://community.contao.org/de/showthread.php?38471-Rate-It",
"source": "https://bitbucket.org/cgo-it/contao-rate-it/src"
"source": "https://git.cgo-it.de/contao/rate-it.git"
},
"require":{
"php":">=5.3",
"contao/core":">=3.0",
"contao-community-alliance/composer-plugin": "~2.0",
"cgo-it/simple_ajax":"1.0.1",
"cgo-it/xls_export":"3.0.0"
"php":">=7.0",
"contao/core-bundle": "^4.4",
"cgo-it/contao-xls_export-bundle": "^4.0"
},
"replace": {
"cgo-it/rate-it": "self.version"
"require-dev": {
"contao/manager-plugin": "^2.0"
},
"conflict": {
"contao/core": "2.11.*"
"conflict": {
"contao/core": "*",
"contao/manager-plugin": "<2.0 || >=3.0"
},
"extra":{
"contao": {
"sources":{
"":"system/modules/rateit"
}
"repositories": [
{
"type": "gitlab",
"url": "https://git.cgo-it.de/contao/rate-it.git"
}
],
"autoload": {
"psr-4": {
"cgoIT\\rateit\\": "src/"
},
"classmap": [
"src/Resources/contao/"
],
"exclude-from-classmap": [
"src/Resources/contao/config/",
"src/Resources/contao/dca/",
"src/Resources/contao/languages/",
"src/Resources/contao/templates/"
]
},
"extra": {
"contao": {
"runonce": ["src/Resources/contao/runonce/create-initial-data.php"]
},
"contao-manager-plugin": "cgoIT\\rateit\\ContaoManagerPlugin"
}
}
}

View File

@ -1,7 +0,0 @@
;;
; Configure what you want the autoload creator to register
;;
register_namespaces = true
register_classes = true
register_templates = true

View File

@ -1,73 +0,0 @@
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2014 Leo Feyer
*
* @package Rateit
* @link https://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array
(
'cgoIT',
));
/**
* Register the classes
*/
ClassLoader::addClasses(array
(
// Classes
'cgoIT\rateit\DcaHelper' => 'system/modules/rateit/classes/DcaHelper.php',
'cgoIT\rateit\RateItArticle' => 'system/modules/rateit/classes/RateItArticle.php',
'cgoIT\rateit\RateItBackend' => 'system/modules/rateit/classes/RateItBackend.php',
'cgoIT\rateit\RateItCE' => 'system/modules/rateit/classes/RateItCE.php',
'cgoIT\rateit\RateItFaq' => 'system/modules/rateit/classes/RateItFaq.php',
'cgoIT\rateit\RateItFrontend' => 'system/modules/rateit/classes/RateItFrontend.php',
'cgoIT\rateit\RateItHybrid' => 'system/modules/rateit/classes/RateItHybrid.php',
'cgoIT\rateit\RateItModule' => 'system/modules/rateit/classes/RateItModule.php',
'cgoIT\rateit\RateItNews' => 'system/modules/rateit/classes/RateItNews.php',
'cgoIT\rateit\RateItPage' => 'system/modules/rateit/classes/RateItPage.php',
'cgoIT\rateit\RateItRating' => 'system/modules/rateit/classes/RateItRating.php',
'cgoIT\rateit\RateItBackendModule' => 'system/modules/rateit/classes/RateItBackendModule.php',
'cgoIT\rateit\RateItTopRatingsModule' => 'system/modules/rateit/classes/RateItTopRatingsModule.php',
'cgoIT\rateit\RateIt' => 'system/modules/rateit/public/php/rateit.php',
'simple_html_dom' => 'system/modules/rateit/classes/extern/simple_html_dom.php',
));
/**
* Register the templates
*/
TemplateLoader::addFiles(array
(
'article_rateit_default' => 'system/modules/rateit/templates',
'article_rateit_default_microdata' => 'system/modules/rateit/templates',
'gallery_rateit_default' => 'system/modules/rateit/templates',
'j_colorbox_rateit' => 'system/modules/rateit/templates',
'mod_article_list_rateit' => 'system/modules/rateit/templates',
'mod_article_rateit_default_microdata_teaser' => 'system/modules/rateit/templates',
'mod_article_rateit_default_teaser' => 'system/modules/rateit/templates',
'mod_rateit_top_ratings' => 'system/modules/rateit/templates',
'moo_mediabox_rateit' => 'system/modules/rateit/templates',
'news_full_rateit' => 'system/modules/rateit/templates',
'news_full_rateit_microdata' => 'system/modules/rateit/templates',
'news_latest_rateit' => 'system/modules/rateit/templates',
'news_latest_rateit_microdata' => 'system/modules/rateit/templates',
'news_short_rateit' => 'system/modules/rateit/templates',
'news_short_rateit_microdata' => 'system/modules/rateit/templates',
'news_simple_rateit' => 'system/modules/rateit/templates',
'news_simple_rateit_microdata' => 'system/modules/rateit/templates',
'rateitbe_ratinglist' => 'system/modules/rateit/templates',
'rateitbe_ratingview' => 'system/modules/rateit/templates',
'rateit_default' => 'system/modules/rateit/templates',
'rateit_microdata' => 'system/modules/rateit/templates',
));

View File

@ -1,56 +0,0 @@
<?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
*/
/**
* front end modules
*/
$GLOBALS['TL_LANG']['FMD']['rateit'] = array('Rate It', 'Bietet Benutzern die Möglichkeit Bewertungen für Artikel, Seiten, News und FAQs abzugeben.');
$GLOBALS['TL_LANG']['FMD']['rateit_top_ratings'] = array('Rate It - Beste/Meiste Bewertungen', 'Auflistung der x besten Bewertungen als Liste.');
/**
* content Elements
*/
$GLOBALS['TL_LANG']['CTE']['rateit'] = array('Rate It', 'Bietet Benutzern die Möglichkeit Bewertungen für Artikel, Seiten, News und FAQs abzugeben.');
$GLOBALS['TL_LANG']['rateit']['rating_label'] = array('Stimme', 'Stimmen');
$GLOBALS['TL_LANG']['rateit']['heart'] = 'Herz';
$GLOBALS['TL_LANG']['rateit']['hearts'] = 'Herzen';
$GLOBALS['TL_LANG']['rateit']['star'] = 'Stern';
$GLOBALS['TL_LANG']['rateit']['stars'] = 'Sterne';
/**
* Fehler
*/
$GLOBALS['TL_LANG']['rateit']['error']['invalid_id'] = 'ERROR: Ungültige ID für Rating angegeben.';
$GLOBALS['TL_LANG']['rateit']['error']['invalid_rating'] = 'ERROR: Ungültiges Rating angegeben.';
$GLOBALS['TL_LANG']['rateit']['error']['invalid_type'] = 'ERROR: Ungültiger Typ für Rating angegeben.';
$GLOBALS['TL_LANG']['rateit']['error']['duplicate_vote'] = 'ERROR: Sie dürfen nicht mehrfach abstimmen.';
$GLOBALS['TL_LANG']['rateit']['error']['duplicate_rkey'] = 'Der eindeutige Bezeichner "%s" für ein Rating existiert bereits. Bitte wählen Sie einen anderen Bezeichner.';
?>

View File

@ -1,34 +0,0 @@
<?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
*/
// Back end modules
$GLOBALS['TL_LANG']['MOD']['rateit'] = array('Rate It', 'Bewertungen für Artikel, Seiten, News und FAQs ansehen');
?>

View File

@ -1,86 +0,0 @@
<?php
/**
* Contao Open Source CMS
*
* Copyright (C) 2005-2012 Leo Feyer
*
* Core translations are managed using Transifex. To create a new translation
* or to help to maintain an existing one, please register at transifex.com.
*
* @link http://help.transifex.com/intro/translating.html
* @link https://www.transifex.com/projects/p/contao/language/de/
*
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
$GLOBALS['TL_LANG']['tl_rateit']['goback'] = 'Zurück';
$GLOBALS['TL_LANG']['tl_rateit']['noratingsfound'] = 'Keine entsprechenden Bewertungen gefunden.';
$GLOBALS['TL_LANG']['tl_rateit']['showdetails'] = 'Detailanzeige';
$GLOBALS['TL_LANG']['tl_rateit']['byorder'] = 'Nach %s';
$GLOBALS['TL_LANG']['tl_rateit']['seltyp'][0] = 'Typ';
$GLOBALS['TL_LANG']['tl_rateit']['seltyp'][1] = 'Bitte wählen Sie den Bewertungs-Typ.';
$GLOBALS['TL_LANG']['tl_rateit']['selactive'][0] = 'Aktiv/Inaktiv';
$GLOBALS['TL_LANG']['tl_rateit']['selactive'][1] = 'Bitte wählen Sie, ob Sie nur aktive bzw. inaktive Bewertungen anzeigen wollen.';
$GLOBALS['TL_LANG']['tl_rateit']['typ'][0] = 'Typ';
$GLOBALS['TL_LANG']['tl_rateit']['typ'][1] = 'Typ des Ratings (Rating für eine "Seite" oder einen "Artikel")';
$GLOBALS['TL_LANG']['tl_rateit']['title'][0] = 'Titel';
$GLOBALS['TL_LANG']['tl_rateit']['title'][1] = 'Titel der Seite oder des Artikels, auf der/dem das Rating eingebunden ist.';
$GLOBALS['TL_LANG']['tl_rateit']['createdat'][0] = 'aktiviert seit';
$GLOBALS['TL_LANG']['tl_rateit']['createdat'][1] = 'Tag ab dem dieses Bewertung aktiviert gewesen ist im Format %s';
$GLOBALS['TL_LANG']['tl_rateit']['status'][0] = 'Status';
$GLOBALS['TL_LANG']['tl_rateit']['status'][1] = 'Gibt an, ob diese Bewertung derzeit aktiviert ist oder nicht.';
$GLOBALS['TL_LANG']['tl_rateit']['rating'][0] = 'Bewertung';
$GLOBALS['TL_LANG']['tl_rateit']['rating'][1] = 'aktueller Bewertungsstand';
$GLOBALS['TL_LANG']['tl_rateit']['overall_rating'][0] = 'Gesamtbewertung';
$GLOBALS['TL_LANG']['tl_rateit']['overall_rating'][1] = 'aktueller Gesamt-Bewertungsstand';
$GLOBALS['TL_LANG']['tl_rateit']['totalratings'][0] = 'Anzahl Bewertungen';
$GLOBALS['TL_LANG']['tl_rateit']['totalratings'][1] = 'Anzahl der abgegebenen Stimmen für diese Bewertung';
$GLOBALS['TL_LANG']['tl_rateit']['ratingfmt'] = '%s/%d (%d Stimmen)';
$GLOBALS['TL_LANG']['tl_rateit']['ratingviewfmt'] = '%s/%d';
$GLOBALS['TL_LANG']['tl_rateit']['ratingstatisticsfmt'] = 'Bewertung %s: %d von %d abgegebenen Bewertungen (entspricht %s%%)';
$GLOBALS['TL_LANG']['tl_rateit']['statistics'][0] = 'Statistik';
$GLOBALS['TL_LANG']['tl_rateit']['statistics'][1] = 'Statistik';
$GLOBALS['TL_LANG']['tl_rateit']['rating_chart_legend'][0] = 'Verteilung der Bewertungen';
$GLOBALS['TL_LANG']['tl_rateit']['rating_chart_legend'][1] = 'Anzahl Bewertungen';
$GLOBALS['TL_LANG']['tl_rateit']['rating_chart_legend'][2] = 'Bewertung';
$GLOBALS['TL_LANG']['tl_rateit']['rating_chart_legend'][3] = 'Anzahl';
$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][0] = 'abgegebene Bewertungen pro Monat';
$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][1] = 'abgegebene Bewertungen pro Monat';
$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][2] = 'durchschn. Bewertung';
$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][3] = 'Monat';
$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][4] = 'Anzahl';
$GLOBALS['TL_LANG']['tl_rateit']['ratings'][0] = 'Abgegebene Bewertungen';
$GLOBALS['TL_LANG']['tl_rateit']['ratings'][1] = 'Liste aller abgegebenen Bewertungen';
$GLOBALS['TL_LANG']['tl_rateit']['ip'][0] = 'IP-Adresse';
$GLOBALS['TL_LANG']['tl_rateit']['member'][0] = 'Frontend Benutzer';
$GLOBALS['TL_LANG']['tl_rateit']['createdatdetail'][0] = 'Bewertungszeitpunkt';
$GLOBALS['TL_LANG']['tl_rateit']['vote'][0] = 'Stimme';
$GLOBALS['TL_LANG']['tl_rateit']['vote'][1] = 'Stimmen';
$GLOBALS['TL_LANG']['tl_rateit']['clearratings'] = 'Markierte Bewertungen zurücksetzen';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['page'] = 'Seite';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['article'] = 'Artikel';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['news'] = 'Nachricht';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['faq'] = 'FAQ';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['ce'] = 'Inhaltselement';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['module'] = 'Modul';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['galpic'] = 'Galerie-Bild';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['news4ward'] = 'Beitrag';
$GLOBALS['TL_LANG']['tl_rateit_order_options']['rating desc'] = 'Bewertung';
$GLOBALS['TL_LANG']['tl_rateit_order_options']['title'] = 'Titel';
$GLOBALS['TL_LANG']['tl_rateit_order_options']['typ'] = 'Typ';
$GLOBALS['TL_LANG']['tl_rateit_order_options']['createdat'] = 'Aktivierungsdatum';
$GLOBALS['TL_LANG']['tl_rateit_active_options']['0'] = 'inaktiv';
$GLOBALS['TL_LANG']['tl_rateit_active_options']['1'] = 'aktiv';
$GLOBALS['TL_LANG']['tl_rateit']['xls_sheetname_ratings'] = 'Bewertungen';
$GLOBALS['TL_LANG']['tl_rateit']['xls_sheetname_rating'] = 'Bewertung';
$GLOBALS['TL_LANG']['tl_rateit']['xls_headers'] = array('rkey'=>'Rating-Key', 'typ'=>'Typ', 'title'=>'Titel',
'createdat'=>'Aktivierungszeitpunkt', 'active'=>'Aktiv',
'rating'=>'Bewertung', 'stars'=>'Max. Bewertung',
'percent'=>'Bewertung in Prozent', 'totalRatings'=>'Anzahl Bewertungen');
$GLOBALS['TL_LANG']['tl_rateit']['xls_headers_detail'] = array('ip'=>'IP Adresse', 'member'=>'Frontend Benutzer', 'rating'=>'Bewertung', 'percent'=>'Bewertung in Prozent',
'createdat'=>'Bewertungszeitpunkt');

View File

@ -1,40 +0,0 @@
<?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_LANG']['tl_article']['rateit_legend'] = 'Rate It-Einstellungen';
$GLOBALS['TL_LANG']['tl_article']['addRating'] = array('Rating aktivieren', 'Aktiviert das Rating für diesen Artikel');
$GLOBALS['TL_LANG']['tl_article']['rateit_position'] = array('Position', 'Position des Rating (ober- oder unterhalb) des Artikels.');
$GLOBALS['TL_LANG']['tl_article']['rateit_template'] = array('Template', 'Hier können Sie das Template für die Bewertung des Artikels auswählen.');
$GLOBALS['TL_LANG']['tl_article']['before'] = array('oberhalb', 'Anzeige des Texts oberhalb des Artikels');
$GLOBALS['TL_LANG']['tl_article']['after'] = array('unterhalb', 'Anzeige des Texts unterhalb des Artikels');
?>

View File

@ -1,41 +0,0 @@
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
/**
* 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
*/
/**
* legends
*/
$GLOBALS['TL_LANG']['tl_content']['rateit_legend'] = 'Rate It-Einstellungen';
/**
* fields
*/
$GLOBALS['TL_LANG']['tl_content']['rateit_title'] = array('Titel der Bewertung', 'Titel der Bewertung (wird im Backend angezeigt).');
$GLOBALS['TL_LANG']['tl_content']['rateit_active'] = array('Aktiv', 'Aktiv bedeutet, dass die Bewertung sichtbar für den Frontend-Nutzer ist.');
?>

View File

@ -1,38 +0,0 @@
<?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_LANG']['tl_faq']['rating_legend'] = 'Rate It-Einstellungen';
$GLOBALS['TL_LANG']['tl_faq']['addRating'] = array('Rating aktivieren', 'Aktiviert das Rating für diese FAQ');
$GLOBALS['TL_LANG']['tl_faq']['rateit_position'] = array('Position', 'Position des Rating (ober- oder unterhalb) des FAQ-Beitrags.');
$GLOBALS['TL_LANG']['tl_faq']['before'] = array('oberhalb', 'Anzeige des Texts oberhalb des FAQ-Beitrags');
$GLOBALS['TL_LANG']['tl_faq']['after'] = array('unterhalb', 'Anzeige des Texts unterhalb des FAQ-Beitrags');
?>

View File

@ -1,56 +0,0 @@
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
/**
* 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
*/
/**
* legends
*/
$GLOBALS['TL_LANG']['tl_module']['rateit_legend'] = 'Rate It-Einstellungen';
/**
* fields
*/
$GLOBALS['TL_LANG']['tl_module']['rateit_title'] = array('Titel der Bewertung', 'Titel der Bewertung (wird im Backend angezeigt).');
$GLOBALS['TL_LANG']['tl_module']['rateit_active'] = array('Aktiv', 'Aktiv bedeutet, dass die Bewertung sichtbar für den Frontend-Nutzer ist.');
$GLOBALS['TL_LANG']['tl_module']['rateit_types'] = array('Seite', 'Artikel', 'Inhaltselement', 'Modul', 'Nachrichten', 'FAQ', 'Galeriebild');
$GLOBALS['TL_LANG']['tl_module']['rateit_count'] = array('Max. Anzahl', 'Max. Anzahl anzuzeigender Einträge.');
$GLOBALS['TL_LANG']['tl_module']['rateit_toptype'] = array('Art der Liste', 'Die x bestbewerteten Einträge oder die x meistbewerteten Einträge.');
$GLOBALS['TL_LANG']['tl_module']['rateit_template'] = array('Template', 'Hier können Sie das Template für die Bewertung des Artikels auswählen.');
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['page'] = 'Seite';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['article'] = 'Artikel';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['ce'] = 'Inhaltselement';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['module'] = 'Modul';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['news'] = 'Nachrichten';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['faq'] = 'FAQ';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['galpic'] = 'Galeriebild';
$GLOBALS['TL_LANG']['tl_module']['rateit_toptype']['best'] = 'Beste Bewertungen';
$GLOBALS['TL_LANG']['tl_module']['rateit_toptype']['most'] = 'Meiste Bewertungen';
?>

View File

@ -1,40 +0,0 @@
<?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_LANG']['tl_news']['rating_legend'] = 'Rate It-Einstellungen';
$GLOBALS['TL_LANG']['tl_news']['addRating'] = array('Rating aktivieren', 'Aktiviert das Rating für diese Nachricht');
$GLOBALS['TL_LANG']['tl_news']['rateit_position'] = array('Position', 'Position des Rating (ober- oder unterhalb) des News-Beitrags.');
$GLOBALS['TL_LANG']['tl_news']['before'] = array('oberhalb', 'Anzeige des Texts oberhalb des News-Beitrags');
$GLOBALS['TL_LANG']['tl_news']['after'] = array('unterhalb', 'Anzeige des Texts unterhalb des News-Beitrags');
?>

View File

@ -1,36 +0,0 @@
<?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_LANG']['tl_page']['rateit_legend'] = 'Rate It-Einstellungen';
$GLOBALS['TL_LANG']['tl_page']['addRating'] = array('Rating aktivieren', 'Aktiviert das Rating für diese Seite');
?>

View File

@ -1,64 +0,0 @@
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
/**
* 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
*/
/**
* Name
*/
$GLOBALS['TL_LANG']['tl_settings']['rateit'] = "Rate It";
/**
* legends
*/
$GLOBALS['TL_LANG']['tl_settings']['rateit_legend'] = 'Rate It-Einstellungen';
/**
* fields
*/
$GLOBALS['TL_LANG']['tl_settings']['rating_type'] = array('Typ', 'Art der Darstellung. Mögliche Optionen sind "Herzen" oder "Sterne".');
$GLOBALS['TL_LANG']['tl_settings']['rating_count'] = array('Anzahl der Herzen/Sterne', 'Anzahl der Herzen/Sterne die dargestellt werden.');
$GLOBALS['TL_LANG']['tl_settings']['rating_textposition'] = array('Textposition', 'Gibt an, ob der Text ober- oder unterhalb der Herzen bzw. Sterne erscheinen soll.');
$GLOBALS['TL_LANG']['tl_settings']['rating_listsize'] = array('Anzahl Einträge', 'Anzahl der angezeigten Einträge pro Seite in der Darstellung der Bewertungen im Backend.');
$GLOBALS['TL_LANG']['tl_settings']['allow_duplicate_ratings'] = array('Doppelte Bewertungen zulassen', 'Darf mit der gleichen IP-Adresse mehrfach für das gleiche Rating abstimmen?');
$GLOBALS['TL_LANG']['tl_settings']['allow_duplicate_ratings_for_members'] = array('Doppelte Bewertungen für Mitglieder zulassen', 'Darf ein angemeldeter Frontendbenutzer mehrfach für das gleiche Rating abstimmen?');
$GLOBALS['TL_LANG']['tl_settings']['rating_template'] = array('Template', 'Hier können Sie das Template für die Bewertung auswählen.');
$GLOBALS['TL_LANG']['tl_settings']['rating_description'] = array('Beschriftung', 'Beschriftung für die einzelnen Ratings. Variablen werden dabei entsprechend ersetzt.<br>verfügbare Variablen:<br>%current% - aktuelle Bewertung<br>%max% - max. mögliche Bewertung<br>%type% - Art der Bewertung (Herzen/Sterne)<br>%count% - Anzahl abgegebener Stimmen<br>[Singular|Plural] - Text für abgegebene Stimmen<br><br>Beispiele:<br><br>%current%/%max% (%count% [Stimme|Stimmen]) liefert 3,7/5 Sterne (7 Stimmen)<br>%count% [Like|Likes] liefert 1 Like bzw. 4 Likes');
/**
* options
*/
$GLOBALS['TL_LANG']['tl_settings']['hearts'] = array('Herzen', 'Darstellung mit Herzen');
$GLOBALS['TL_LANG']['tl_settings']['stars'] = array('Sterne', 'Darstellung mit Sternen');
$GLOBALS['TL_LANG']['tl_settings']['1'] = array('1', '1');
$GLOBALS['TL_LANG']['tl_settings']['5'] = array('5', '5');
$GLOBALS['TL_LANG']['tl_settings']['10'] = array('10', '10');
$GLOBALS['TL_LANG']['tl_settings']['before'] = array('oberhalb', 'Anzeige des Texts oberhalb der Herzen/Sterne');
$GLOBALS['TL_LANG']['tl_settings']['after'] = array('unterhalb', 'Anzeige des Texts unterhalb der Herzen/Sterne');
?>

View File

@ -1,56 +0,0 @@
<?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
*/
/**
* front end modules
*/
$GLOBALS['TL_LANG']['FMD']['rateit'] = array('Rate It', 'Enables users to leave ratings for articles, pages, news and FAQs.');
$GLOBALS['TL_LANG']['FMD']['rateit_top_ratings'] = array('Rate It - Best/Most ratings', 'List of the x best ratings.');
/**
* content Elements
*/
$GLOBALS['TL_LANG']['CTE']['rateit'] = array('Rate It', 'Enables users to leave ratings for articles, pages, news and FAQs.');
$GLOBALS['TL_LANG']['rateit']['rating_label'] = array('vote', 'votes');
$GLOBALS['TL_LANG']['rateit']['heart'] = 'heart';
$GLOBALS['TL_LANG']['rateit']['hearts'] = 'hearts';
$GLOBALS['TL_LANG']['rateit']['star'] = 'star';
$GLOBALS['TL_LANG']['rateit']['stars'] = 'stars';
/**
* Fehler
*/
$GLOBALS['TL_LANG']['rateit']['error']['invalid_id'] = 'ERROR: Invalid ID for rating given.';
$GLOBALS['TL_LANG']['rateit']['error']['invalid_rating'] = 'ERROR: Invalid rating given.';
$GLOBALS['TL_LANG']['rateit']['error']['invalid_type'] = 'ERROR: Invalid type for rating given.';
$GLOBALS['TL_LANG']['rateit']['error']['duplicate_vote'] = 'ERROR: You may not vote more than once.';
$GLOBALS['TL_LANG']['rateit']['error']['duplicate_rkey'] = 'The unique identifier "% s" already exists for a rating. Please choose a different identifier.';
?>

View File

@ -1,34 +0,0 @@
<?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
*/
// Back end modules
$GLOBALS['TL_LANG']['MOD']['rateit'] = array('Rate It', 'View ratings for articles, pages, news and faqs');
?>

View File

@ -1,86 +0,0 @@
<?php
/**
* Contao Open Source CMS
*
* Copyright (C) 2005-2012 Leo Feyer
*
* Core translations are managed using Transifex. To create a new translation
* or to help to maintain an existing one, please register at transifex.com.
*
* @link http://help.transifex.com/intro/translating.html
* @link https://www.transifex.com/projects/p/contao/language/de/
*
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
$GLOBALS['TL_LANG']['tl_rateit']['goback'] = 'Back';
$GLOBALS['TL_LANG']['tl_rateit']['noratingsfound'] = 'No matching ratings found.';
$GLOBALS['TL_LANG']['tl_rateit']['showdetails'] = 'Detailview';
$GLOBALS['TL_LANG']['tl_rateit']['byorder'] = 'By %s';
$GLOBALS['TL_LANG']['tl_rateit']['seltyp'][0] = 'Type';
$GLOBALS['TL_LANG']['tl_rateit']['seltyp'][1] = 'Please choose the rating type.';
$GLOBALS['TL_LANG']['tl_rateit']['selactive'][0] = 'Active/Inactive';
$GLOBALS['TL_LANG']['tl_rateit']['selactive'][1] = 'Please choose whether you want to display only active or inactive ratings.';
$GLOBALS['TL_LANG']['tl_rateit']['typ'][0] = 'Type';
$GLOBALS['TL_LANG']['tl_rateit']['typ'][1] = 'Rating type (rating for an "article", a "page", a "news" or a "faq")';
$GLOBALS['TL_LANG']['tl_rateit']['title'][0] = 'Title';
$GLOBALS['TL_LANG']['tl_rateit']['title'][1] = 'Title of the article, page, news or faq, on which the rating is included.';
$GLOBALS['TL_LANG']['tl_rateit']['createdat'][0] = 'activated since';
$GLOBALS['TL_LANG']['tl_rateit']['createdat'][1] = 'Day from which this rating has been enabled in the format "%s"';
$GLOBALS['TL_LANG']['tl_rateit']['status'][0] = 'Status';
$GLOBALS['TL_LANG']['tl_rateit']['status'][1] = 'Indicates whether this rating is currently enabled or not.';
$GLOBALS['TL_LANG']['tl_rateit']['rating'][0] = 'Rating';
$GLOBALS['TL_LANG']['tl_rateit']['rating'][1] = 'actual rating';
$GLOBALS['TL_LANG']['tl_rateit']['overall_rating'][0] = 'Overall rating';
$GLOBALS['TL_LANG']['tl_rateit']['overall_rating'][1] = 'actual overall rating';
$GLOBALS['TL_LANG']['tl_rateit']['totalratings'][0] = 'Total votes';
$GLOBALS['TL_LANG']['tl_rateit']['totalratings'][1] = 'Number of votes for this rating';
$GLOBALS['TL_LANG']['tl_rateit']['ratingfmt'] = '%s/%d (%d Votes)';
$GLOBALS['TL_LANG']['tl_rateit']['ratingviewfmt'] = '%s/%d';
$GLOBALS['TL_LANG']['tl_rateit']['ratingstatisticsfmt'] = 'Rating %s: %d of %d votes (corresponds %s%%)';
$GLOBALS['TL_LANG']['tl_rateit']['statistics'][0] = 'Statistics';
$GLOBALS['TL_LANG']['tl_rateit']['statistics'][1] = 'Statistics';
$GLOBALS['TL_LANG']['tl_rateit']['rating_chart_legend'][0] = 'Distribution of ratings';
$GLOBALS['TL_LANG']['tl_rateit']['rating_chart_legend'][1] = 'Count of ratings';
$GLOBALS['TL_LANG']['tl_rateit']['rating_chart_legend'][2] = 'Rating';
$GLOBALS['TL_LANG']['tl_rateit']['rating_chart_legend'][3] = 'Count';
$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][0] = 'Ratings per month';
$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][1] = 'Ratings per month';
$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][2] = 'Average rating';
$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][3] = 'Month';
$GLOBALS['TL_LANG']['tl_rateit']['month_chart_legend'][4] = 'Count';
$GLOBALS['TL_LANG']['tl_rateit']['ratings'][0] = 'Ratings';
$GLOBALS['TL_LANG']['tl_rateit']['ratings'][1] = 'List of all ratings';
$GLOBALS['TL_LANG']['tl_rateit']['ip'][0] = 'IP address';
$GLOBALS['TL_LANG']['tl_rateit']['member'][0] = 'Frontend member';
$GLOBALS['TL_LANG']['tl_rateit']['createdatdetail'][0] = 'Valuation Point';
$GLOBALS['TL_LANG']['tl_rateit']['vote'][0] = 'vote';
$GLOBALS['TL_LANG']['tl_rateit']['vote'][1] = 'votes';
$GLOBALS['TL_LANG']['tl_rateit']['clearratings'] = 'Reset selected ratings';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['page'] = 'Page';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['article'] = 'Article';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['news'] = 'News';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['faq'] = 'FAQ';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['ce'] = 'Content element';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['module'] = 'Module';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['galpic'] = 'Gallery picture';
$GLOBALS['TL_LANG']['tl_rateit_type_options']['news4ward'] = 'Blog entry';
$GLOBALS['TL_LANG']['tl_rateit_order_options']['rating desc'] = 'Rating';
$GLOBALS['TL_LANG']['tl_rateit_order_options']['title'] = 'Title';
$GLOBALS['TL_LANG']['tl_rateit_order_options']['typ'] = 'Type';
$GLOBALS['TL_LANG']['tl_rateit_order_options']['createdat'] = 'Activation date';
$GLOBALS['TL_LANG']['tl_rateit_active_options']['0'] = 'inactive';
$GLOBALS['TL_LANG']['tl_rateit_active_options']['1'] = 'active';
$GLOBALS['TL_LANG']['tl_rateit']['xls_sheetname_ratings'] = 'Ratings';
$GLOBALS['TL_LANG']['tl_rateit']['xls_sheetname_rating'] = 'Rating';
$GLOBALS['TL_LANG']['tl_rateit']['xls_headers'] = array('rkey'=>'Rating-Key', 'typ'=>'Type', 'title'=>'Title',
'createdat'=>'Activation date', 'active'=>'Active',
'rating'=>'Rating', 'stars'=>'Max. Rating',
'percent'=>'Rating in percent', 'totalRatings'=>'Total votes');
$GLOBALS['TL_LANG']['tl_rateit']['xls_headers_detail'] = array('ip'=>'IP address', 'member'=>'Frontend member', 'rating'=>'Rating', 'percent'=>'Rating in percent',
'createdat'=>'Valuation Point');

View File

@ -1,41 +0,0 @@
<?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_LANG']['tl_article']['rateit_legend'] = 'Rate It-Settings';
$GLOBALS['TL_LANG']['tl_article']['addRating'] = array('activate rating', 'Enables the rating for this article');
$GLOBALS['TL_LANG']['tl_article']['rateit_position'] = array('position', 'position of the rating (before or above) the article.');
$GLOBALS['TL_LANG']['tl_article']['rateit_template'] = array('Template', 'Here you can select the template for the article\'s rating.');
$GLOBALS['TL_LANG']['tl_article']['before'] = array('above', 'Display the text above the article');
$GLOBALS['TL_LANG']['tl_article']['after'] = array('below', 'Display the text below the article');
?>

View File

@ -1,41 +0,0 @@
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
/**
* 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
*/
/**
* legends
*/
$GLOBALS['TL_LANG']['tl_content']['rateit_legend'] = 'Rate It-Settings';
/**
* fields
*/
$GLOBALS['TL_LANG']['tl_content']['rateit_title'] = array('Rating title', 'Rating title (shown in backend).');
$GLOBALS['TL_LANG']['tl_content']['rateit_active'] = array('Active', 'Active means that the review is visible to the front-end users.');
?>

View File

@ -1,40 +0,0 @@
<?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_LANG']['tl_faq']['rating_legend'] = 'Rate It-Settings';
$GLOBALS['TL_LANG']['tl_faq']['addRating'] = array('activate rating', 'Enables the rating for this news article');
$GLOBALS['TL_LANG']['tl_faq']['rateit_position'] = array('position', 'position of the rating (before or above) the FAQ entry.');
$GLOBALS['TL_LANG']['tl_faq']['before'] = array('above', 'Display the text above the FAQ entry');
$GLOBALS['TL_LANG']['tl_faq']['after'] = array('below', 'Display the text below the FAQ entry');
?>

View File

@ -1,56 +0,0 @@
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
/**
* 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
*/
/**
* legends
*/
$GLOBALS['TL_LANG']['tl_module']['rateit_legend'] = 'Rate It-Settings';
/**
* fields
*/
$GLOBALS['TL_LANG']['tl_module']['rateit_title'] = array('Rating title', 'Rating title (shown in backend).');
$GLOBALS['TL_LANG']['tl_module']['rateit_active'] = array('Active', 'Active means that the review is visible to the front-end users.');
$GLOBALS['TL_LANG']['tl_module']['rateit_types'] = array('Types', 'Select the types for which you would like the best ratings to be displayed.');
$GLOBALS['TL_LANG']['tl_module']['rateit_count'] = array('Max. count', 'Max. count of displayed values.');
$GLOBALS['TL_LANG']['tl_module']['rateit_toptype'] = array('List type', 'The x best voted entries oder the x most voted entries.');
$GLOBALS['TL_LANG']['tl_module']['rateit_template'] = array('Template', 'Here you can select the template for the article\'s rating.');
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['page'] = 'Page';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['article'] = 'Article';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['ce'] = 'Content Element';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['module'] = 'Module';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['news'] = 'News';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['faq'] = 'FAQ';
$GLOBALS['TL_LANG']['tl_module']['rateit_types']['galpic'] = 'Gallery Picture';
$GLOBALS['TL_LANG']['tl_module']['rateit_toptype']['best'] = 'Best votes';
$GLOBALS['TL_LANG']['tl_module']['rateit_toptype']['most'] = 'Most votes';
?>

View File

@ -1,40 +0,0 @@
<?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_LANG']['tl_news']['rating_legend'] = 'Rate It-Settings';
$GLOBALS['TL_LANG']['tl_news']['addRating'] = array('activate rating', 'Enables the rating for this news article');
$GLOBALS['TL_LANG']['tl_news']['rateit_position'] = array('position', 'position of the rating (before or above) the news entry.');
$GLOBALS['TL_LANG']['tl_news']['before'] = array('above', 'Display the text above the news entry');
$GLOBALS['TL_LANG']['tl_news']['after'] = array('below', 'Display the text below the news entry');
?>

View File

@ -1,36 +0,0 @@
<?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_LANG']['tl_page']['rateit_legend'] = 'Rate It-Settings';
$GLOBALS['TL_LANG']['tl_page']['addRating'] = array('activate rating', 'Enables the rating for this page');
?>

View File

@ -1,64 +0,0 @@
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
/**
* 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
*/
/**
* Name
*/
$GLOBALS['TL_LANG']['tl_settings']['rateit'] = "Rate It";
/**
* legends
*/
$GLOBALS['TL_LANG']['tl_settings']['rateit_legend'] = 'Rate It-Settings';
/**
* fields
*/
$GLOBALS['TL_LANG']['tl_settings']['rating_type'] = array('Type', 'Type of representation. Possible options are the "hearts" or "stars".');
$GLOBALS['TL_LANG']['tl_settings']['rating_count'] = array('Number of hearts/stars', 'Number of hearts/stars which are shown.');
$GLOBALS['TL_LANG']['tl_settings']['rating_textposition'] = array('Text position', 'Specifies whether the text should appear above or below the hearts or stars.');
$GLOBALS['TL_LANG']['tl_settings']['rating_listsize'] = array('number of entries', 'Number of entries displayed per page in the representation of ratings in the backend.');
$GLOBALS['TL_LANG']['tl_settings']['allow_duplicate_ratings'] = array('Allow Duplicate votes', 'The same ip address may vote more than once for the same rating?');
$GLOBALS['TL_LANG']['tl_settings']['allow_duplicate_ratings_for_members'] = array('Allow Duplicate votes for members', 'A logged in frontend user may vote more than once for the same rating?');
$GLOBALS['TL_LANG']['tl_settings']['rating_template'] = array('Template', 'Here you can select the template for the rating.');
$GLOBALS['TL_LANG']['tl_settings']['rating_description'] = array('Label', 'Label for ratings. Variables are replaced<br>available variables: <br>%current% - current rating<br>%max% - max. possible rating<br>%type% - type of rating (hearts/stars)<br>%count% - number of votes<br>[singular|plural] - Text for votes<br><br>examples:<br >%current%/%max% (%count% [vote|votes]) returns 3.7/5 stars (7 votes)<br>%count% [Like|Likes] returns 1 Like or 4 Likes');
/**
* options
*/
$GLOBALS['TL_LANG']['tl_settings']['hearts'] = array('hearts', 'Illustration with hearts');
$GLOBALS['TL_LANG']['tl_settings']['stars'] = array('stars', 'Illustration with stars');
$GLOBALS['TL_LANG']['tl_settings']['1'] = array('1', '1');
$GLOBALS['TL_LANG']['tl_settings']['5'] = array('5', '5');
$GLOBALS['TL_LANG']['tl_settings']['10'] = array('10', '10');
$GLOBALS['TL_LANG']['tl_settings']['before'] = array('above', 'Display the text above the hearts/stars');
$GLOBALS['TL_LANG']['tl_settings']['after'] = array('below', 'Display the text below the heart / star');
?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 B

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,42 @@
<?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;
use Contao\ManagerPlugin\Routing\RoutingPluginInterface;
use Symfony\Component\Config\Loader\LoaderResolverInterface;
use Symfony\Component\HttpKernel\KernelInterface;
/**
* Plugin for the Contao Manager.
*
* @author Carsten Götzinger
*/
class ContaoManagerPlugin implements BundlePluginInterface, RoutingPluginInterface
{
/**
* {@inheritdoc}
*/
public function getBundles(ParserInterface $parser)
{
return [
BundleConfig::create(CgoITRateItBundle::class)
->setLoadAfter([ContaoCoreBundle::class])
->setReplace(['rate-it']),
];
}
/**
* {@inheritdoc}
*/
public function getRouteCollection(LoaderResolverInterface $resolver, KernelInterface $kernel)
{
return $resolver
->resolve(__DIR__.'/Resources/config/routing.yml')
->load(__DIR__.'/Resources/config/routing.yml')
;
}
}

View File

@ -0,0 +1,36 @@
<?php
/**
* Created by PhpStorm.
* User: darko
* Date: 23.10.17
* Time: 23:55
*/
namespace cgoIT\rateit\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use cgoIT\rateit\RateIt;
class AjaxRateItController extends Controller {
/**
* Handles rating requests.
*
* @return JsonResponse
*
* @Route("/rateit", name="ajax_rateit", defaults={"_scope" = "frontend", "_token_check" = false})
*/
public function ajaxAction() {
$this->container->get('contao.framework')->initialize();
$controller = new RateIt();
$response = $controller->doVote();
$response->send();
return new Response(null);
}
}

View File

@ -0,0 +1,3 @@
ajax_rateit:
resource: "@CgoITRateItBundle/Controller/"
type: annotation

View File

@ -30,18 +30,32 @@
namespace cgoIT\rateit;
define(RETURN_AJAX_HEADER, 'Content-Type: text/html');
use cgoIT\rateit\RateItFrontend;
use Symfony\Component\HttpFoundation\JsonResponse;
class RateIt extends \Frontend {
class RateIt extends \Frontend {
var $allowDuplicates = false;
var $rateItFrontend;
/**
* Initialize the controller
*/
public function __construct() {
parent::__construct();
// See #4099
if (!defined('BE_USER_LOGGED_IN'))
{
define('BE_USER_LOGGED_IN', false);
}
if (!defined('FE_USER_LOGGED_IN'))
{
define('FE_USER_LOGGED_IN', false);
}
$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'];
@ -57,34 +71,30 @@ class RateIt extends \Frontend {
* 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 id - The id of key to register a rating for.
* @param integer percent - The rating in percentages.
*/
function doVote() {
public function doVote() {
$ip = $_SERVER['REMOTE_ADDR'];
$rkey = $_POST['id'];
$percent = $_POST['vote'];
$type = $_POST['type'];
$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;
return new JsonResponse($GLOBALS['TL_LANG']['rateit']['error']['invalid_rating']);
}
$id = $rkey;
}
}
} else {
if (is_numeric($rkey)) {
$id = $rkey;
} else {
header(RETURN_AJAX_HEADER);
echo $GLOBALS['TL_LANG']['rateit']['error']['invalid_rating'];
exit;
return new JsonResponse($GLOBALS['TL_LANG']['rateit']['error']['invalid_rating']);
}
}
@ -92,32 +102,28 @@ class RateIt extends \Frontend {
if (is_numeric($percent) && $percent < 101) {
$rating = $percent;
} else {
header(RETURN_AJAX_HEADER);
echo $GLOBALS['TL_LANG']['rateit']['error']['invalid_rating'];
exit;
return new JsonResponse($GLOBALS['TL_LANG']['rateit']['error']['invalid_rating']);
}
//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;
return new JsonResponse($GLOBALS['TL_LANG']['rateit']['error']['invalid_type']);
}
$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();
@ -131,7 +137,7 @@ class RateIt extends \Frontend {
$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.
@ -145,31 +151,25 @@ class RateIt extends \Frontend {
$this->Database->prepare('INSERT INTO tl_rateit_ratings %s')
->set($arrSet)
->execute();
} elseif (!isset($countUser) && ((!$this->allowDuplicates && $countIp == 0) || $this->allowDuplicates)) {
} 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,
'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;
}
} else {
return new JsonResponse($GLOBALS['TL_LANG']['rateit']['error']['duplicate_vote']);
}
$this->import('rateit\\RateItFrontend', 'RateItFrontend');
$rating = $this->RateItFrontend->loadRating($id, $type);
header(RETURN_AJAX_HEADER);
echo $this->RateItFrontend->getStarMessage($rating);
exit;
$rating = $this->rateItFrontend->loadRating($id, $type);
return new JsonResponse($this->rateItFrontend->getStarMessage($rating));
}
}
?>
?>

View File

@ -57,12 +57,6 @@ class RateItArticle extends RateItFrontend {
->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']);
@ -90,15 +84,15 @@ class RateItArticle extends RateItFrontend {
$objTemplate->rateit_rating_after = true;
}
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/rateit.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/heart.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/star.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/star.min.css||static';
}
}
@ -114,7 +108,7 @@ class RateItArticle extends RateItFrontend {
->limit(1)
->execute($article['articleId'])
->fetchAssoc();
if ($arrArticle['addRating']) {
if (!$bolTemplateFixed) {
$objTemplate->setName($objTemplate->getName().'_rateit');
@ -125,7 +119,7 @@ class RateItArticle extends RateItFrontend {
$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;
@ -134,32 +128,32 @@ class RateItArticle extends RateItFrontend {
$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'][] = 'system/modules/rateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/rateit.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/heart.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/star.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/star.min.css||static';
}
}
$arrArticles[] = $article;
}
$objTemplate->articles = $arrArticles;
@ -172,10 +166,10 @@ class RateItArticle extends RateItFrontend {
->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 {
@ -185,19 +179,19 @@ class RateItArticle extends RateItFrontend {
if ($objFiles !== null) {
// Get all images
while ($objFiles->next()) {
// Continue if the files has been processed or does not exist
// 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
@ -207,23 +201,23 @@ class RateItArticle extends RateItFrontend {
} 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);
}
}
@ -232,27 +226,27 @@ class RateItArticle extends RateItFrontend {
$objTemplate->arrRating = $arrRating;
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/rateit.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/heart.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/star.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/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);
@ -262,7 +256,7 @@ class RateItArticle extends RateItFrontend {
$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;
}
@ -271,4 +265,4 @@ class RateItArticle extends RateItFrontend {
}
}
}
?>
?>

View File

@ -32,7 +32,7 @@ namespace cgoIT\rateit;
class RateItBackend
{
const path = 'system/modules/rateit/';
const path = 'bundles/cgoitrateit/';
/**
* Get a css file.
@ -41,7 +41,7 @@ class RateItBackend
*/
public static function css($file)
{
return self::path.'public/css/'. $file.'.css';
return self::path.'css/'. $file.'.css';
} // file
/**
@ -51,7 +51,7 @@ class RateItBackend
*/
public static function js($file)
{
return self::path.'public/js/'. $file.'.js';
return self::path.'js/'. $file.'.js';
} // file
/**
@ -61,7 +61,7 @@ class RateItBackend
*/
public static function image($file)
{
$url = self::path.'public/images/';
$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';

View File

@ -30,7 +30,7 @@
namespace cgoIT\rateit;
class rateitBackendModule extends \BackendModule
class RateItBackendModule extends \BackendModule
{
protected $strTemplate;
protected $actions = array();
@ -235,7 +235,7 @@ class rateitBackendModule extends \BackendModule
*/
protected function exportRatings()
{
$this->import('String');
$this->import('StringUtil');
$rateit = &$this->Template->rateit;
$options['order'] = 'rating desc';
@ -264,11 +264,11 @@ class rateitBackendModule extends \BackendModule
// Werte setzen
foreach($rateit->ratingitems as $item) {
$arrItem = (array)$item;
$intColCounter = 0;
foreach(array_keys($this->arrExportHeader) as $key) {
$strVal = $arrItem[$key];
$strVal = $this->String->decodeEntities($strVal);
$strVal = $this->StringUtil->decodeEntities($strVal);
$strVal = preg_replace(array('/<br.*\/*>/si'), array("\n"), $strVal);
$strVal = $this->convertEncoding($strVal, $GLOBALS['TL_CONFIG']['characterSet'], 'CP1252');
@ -299,7 +299,7 @@ class rateitBackendModule extends \BackendModule
$xls->setcell(array("sheetname" => $strXlsSheet,"row" => $intRowCounter, "col" => $intColCounter, "data" => $strVal, "type" => $cellType, "vallign" => XLSXF_VALLIGN_TOP, "fontfamily" => XLSFONT_FAMILY_NORMAL));
$intColCounter++;
}
$intRowCounter++;
}
@ -449,7 +449,7 @@ class rateitBackendModule extends \BackendModule
'typ' => $typ
);
$this->import('String');
$this->import('StringUtil');
$rateit = &$this->Template->rateit;
// query ratings
@ -480,11 +480,11 @@ class rateitBackendModule extends \BackendModule
// Werte setzen
foreach($ext->ratings as $item) {
$arrItem = (array)$item;
$intColCounter = 0;
foreach(array_keys($this->arrExportHeaderDetails) as $key) {
$strVal = $arrItem[$key];
$strVal = $this->String->decodeEntities($strVal);
$strVal = $this->StringUtil->decodeEntities($strVal);
$strVal = preg_replace(array('/<br.*\/*>/si'), array("\n"), $strVal);
$strVal = $this->convertEncoding($strVal, $GLOBALS['TL_CONFIG']['characterSet'], 'CP1252');
@ -509,7 +509,7 @@ class rateitBackendModule extends \BackendModule
$xls->setcell(array("sheetname" => $strXlsSheet,"row" => $intRowCounter, "col" => $intColCounter, "data" => $strVal, "type" => $cellType, "vallign" => XLSXF_VALLIGN_TOP, "fontfamily" => XLSFONT_FAMILY_NORMAL));
$intColCounter++;
}
$intRowCounter++;
}
@ -535,7 +535,7 @@ class rateitBackendModule extends \BackendModule
*/
protected function createPageUrl($aPage, $aParams = null)
{
$url = \Environment::get('script') . '?do='.$aPage;
$url = 'contao?do='.$aPage;
if (is_array($aParams)) {
foreach ($aParams as $key => $val)
if ($val!='')
@ -633,13 +633,9 @@ class rateitBackendModule extends \BackendModule
$cntSql = str_replace('%s', $where, $cntSql);
$count = $this->Database->prepare($cntSql)
->execute()
->fetchRow();
$count = $this->Database->query($cntSql)->fetchRow();
$arrRatingItems = $this->Database->prepare($sql)
->execute()
->fetchAllAssoc();
$arrRatingItems = $this->Database->query($sql)->fetchAllAssoc();
$arrReturn = array();
foreach ($arrRatingItems as $rating) {
if ($rating['active'] != '1') $rating['active'] = '0';

View File

@ -30,64 +30,69 @@
namespace cgoIT\rateit;
class RateItFaq extends RateItFrontend {
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'][] = 'system/modules/rateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/rateit.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/heart.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/star.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/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) {
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') {
@ -95,37 +100,37 @@ class RateItFaq extends RateItFrontend {
}
}
}
$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') {
@ -134,26 +139,25 @@ class RateItFaq extends RateItFrontend {
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->import('rateit\\RateItRating', 'RateItRating');
$this->RateItRating->rkey = $arrFaq['id'];
$this->RateItRating->ratingType = 'faq';
$this->RateItRating->generate();
$rating = $this->RateItRating->output();
$this->rateItRating->rkey = $arrFaq['id'];
$this->rateItRating->ratingType = 'faq';
$this->rateItRating->generate();
$rating = $this->rateItRating->output();
}
}
return $rating;
}
}
?>
?>

View File

@ -41,31 +41,31 @@ class RateItFrontend extends \Hybrid
* @var string
*/
protected $strPk = 'id';
/**
* Typ
* @var string
*/
protected $strType = 'hearts';
protected $strType = 'hearts';
/**
* Template
* @var string
*/
protected $strTemplate = 'rateit_default';
protected $strTemplate = 'rateit_default';
/**
* Anzahl der Herzen/Sterne
* @var int
*/
protected $intStars = 5;
/**
* Textposition
* @var string
*/
protected $strTextPosition = 'after';
/**
* Initialize the controller
*/
@ -77,10 +77,10 @@ class RateItFrontend extends \Hybrid
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;
@ -110,7 +110,7 @@ class RateItFrontend extends \Hybrid
*/
protected function compile() {
}
public function getStarMessage($rating) {
$this->loadLanguageFile('default');
$stars = $this->percentToStars($rating['rating']);
@ -136,12 +136,12 @@ class RateItFrontend extends \Hybrid
public function loadRating($rkey, $typ) {
$SQL_GET_RATINGS = "SELECT i.rkey AS rkey,
i.title AS title,
IFNULL(AVG(r.rating),0) AS rating,
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;";
GROUP BY i.rkey, i.title;";
$result = $this->Database->prepare($SQL_GET_RATINGS)
->execute($rkey, $typ)
->fetchAssoc();
@ -154,4 +154,4 @@ class RateItFrontend extends \Hybrid
}
}
?>
?>

View File

@ -66,15 +66,15 @@ abstract class RateItHybrid extends RateItFrontend
$this->strType = $GLOBALS['TL_CONFIG']['rating_type'];
$this->strTextPosition = $GLOBALS['TL_CONFIG']['rating_textposition'];
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/rateit.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/rateit.min.css||static';
switch ($this->strType) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/heart.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/star.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/star.min.css||static';
}
return parent::generate();

View File

@ -49,7 +49,7 @@ class RateItNews extends RateItFrontend {
$objTemplate->descriptionId = 'rateItRating-'.$ratingId.'-description';
$objTemplate->description = $this->getStarMessage($rating);
$objTemplate->id = 'rateItRating-'.$ratingId.'-news-'.$stars.'_'.$this->intStars;
$objTemplate->ratingId = 'rateItRating-'.$ratingId.'-news-'.$stars.'_'.$this->intStars;
$objTemplate->rateit_class = 'rateItRating';
$objTemplate->itemreviewed = $rating['title'];
$objTemplate->actRating = $this->percentToStars($rating['rating']);
@ -69,15 +69,15 @@ class RateItNews extends RateItFrontend {
$objTemplate->rateit_rating_after = true;
}
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/rateit.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/heart.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/star.css||static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/star.min.css||static';
}
}
}

View File

@ -29,82 +29,95 @@
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 outputFrontendTemplate($strContent, $strTemplate) {
global $objPage;
if ($objPage->addRating && !($strTemplate == $GLOBALS['TL_CONFIG']['rating_template'])) {
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->import('rateit\\RateItRating', 'RateItRating');
$this->RateItRating->rkey = $objPage->id;
$this->RateItRating->generate();
$rating = $this->RateItRating->output();
$this->rateItRating->rkey = $objPage->id;
$this->rateItRating->generate();
$rating = $this->rateItRating->output();
$rating .= $this->includeJs();
$rating .= $this->includeCss();
$posMainDiv = strpos($strContent, '<div id="main">');
$posInsideDiv = strpos($strContent, '<div class="inside">', $posMainDiv);
$return = substr($strContent, 0, $posInsideDiv).'<div class="inside">';
$return .= $rating;
$return .= substr($strContent, $posInsideDiv + strlen('<div id="inside">') + 3);
$strContent = $return;
$objTemplate = $objPageType->Template;
if ($objTemplate) {
if ($objPage->rateit_position == 'after') {
$objTemplate->main .= $rating;
} else {
$objTemplate->main = $rating.$objTemplate->main;
}
}
}
}
return $strContent;
}
private function includeCss() {
$included = false;
$strHeadTags = '';
foreach ($GLOBALS['TL_CSS'] as $script) {
if ($script == 'system/modules/rateit/public/css/rateit.css') {
$included = true;
if (is_array($GLOBALS['TL_CSS'])) {
foreach ($GLOBALS['TL_CSS'] as $script) {
if ($this->startsWith($script, 'bundles/cgoitrateit/css/rateit') === true) {
$included = true;
break;
}
}
}
if (!$included) {
$strHeadTags = '<link rel="stylesheet" href="'.$this->addStaticUrlTo('system/modules/rateit/public/css/rateit.css').'">';
$strHeadTags = '<link rel="stylesheet" href="'.$this->addStaticUrlTo('bundles/cgoitrateit/css/rateit.min.css').'">';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$strHeadTags .= '<link rel="stylesheet" href="'.$this->addStaticUrlTo('system/modules/rateit/public/css/heart.css').'">';
$strHeadTags .= '<link rel="stylesheet" href="'.$this->addStaticUrlTo('bundles/cgoitrateit/css/heart.min.css').'">';
break;
default:
$strHeadTags .= '<link rel="stylesheet" href="'.$this->addStaticUrlTo('system/modules/rateit/public/css/star.css').'">';
$strHeadTags .= '<link rel="stylesheet" href="'.$this->addStaticUrlTo('bundles/cgoitrateit/css/star.min.css').'">';
}
}
return $strHeadTags;
}
private function includeJs() {
$included = false;
$strHeadTags = '';
foreach ($GLOBALS['TL_JAVASCRIPT'] as $script) {
if ($script == 'system/modules/rateit/public/js/rateit.js') {
$included = true;
if (is_array($GLOBALS['TL_JAVASCRIPT'])) {
foreach ($GLOBALS['TL_JAVASCRIPT'] as $script) {
if ($this->startsWith($script, 'bundles/cgoitrateit/js/rateit') === true) {
$included = true;
break;
}
}
}
if (!$included) {
$strHeadTags = '<script' . (($objPage->outputFormat == 'xhtml') ? ' type="text/javascript"' : '') . ' src="' . $this->addStaticUrlTo('system/modules/rateit/public/js/onReadyRateIt.js') . '"></script>' . "\n";
$strHeadTags .= '<script' . (($objPage->outputFormat == 'xhtml') ? ' type="text/javascript"' : '') . ' src="' . $this->addStaticUrlTo('system/modules/rateit/public/js/rateit.js') . '"></script>' . "\n";
$strHeadTags = '<script' . (($objPage->outputFormat == 'xhtml') ? ' type="text/javascript"' : '') . ' src="' . $this->addStaticUrlTo('bundles/cgoitrateit/js/onReadyRateIt.js') . '"></script>' . "\n";
$strHeadTags .= '<script' . (($objPage->outputFormat == 'xhtml') ? ' type="text/javascript"' : '') . ' src="' . $this->addStaticUrlTo('bundles/cgoitrateit/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,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/js/onReadyRateIt.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/rateit.js|static';
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/rateit.min.css||static';
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
case 'hearts' :
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/css/heart.min.css||static';
break;
default:
$GLOBALS['TL_CSS'][] = 'bundles/cgoitrateit/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];
}
}
?>

View File

@ -33,33 +33,32 @@ use cgoIT\rateit\RateItBackend;
/**
* Hooks
*/
$GLOBALS['TL_HOOKS']['outputFrontendTemplate'][] = array('rateit\\RateItPage', 'outputFrontendTemplate');
$GLOBALS['TL_HOOKS']['simpleAjax'][] = array('rateit\\RateIt', 'doVote');
$GLOBALS['TL_HOOKS']['parseArticles'][] = array('rateit\\RateItNews', 'parseArticle');
$GLOBALS['TL_HOOKS']['getContentElement'][] = array('rateit\\RateItFaq', 'getContentElementRateIt');
$GLOBALS['TL_HOOKS']['parseTemplate'][] = array('rateit\\RateItArticle', 'parseTemplateRateIt');
$GLOBALS['TL_HOOKS']['generatePage'][] = array('cgoIT\rateit\RateItPage', 'generatePage');
$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_insert($GLOBALS['BE_MOD']['content'], -1,
array('rateit' => array (
'callback' => 'rateit\\RateItBackendModule',
'icon' => rateit\RateItBackend::image('icon'),
'stylesheet' => rateit\RateItBackend::css('backend'),
'javascript' => rateit\RateItBackend::js('RateItBackend')
'callback' => 'cgoIT\rateit\RateItBackendModule',
'icon' => RateItBackend::image('icon'),
'stylesheet' => RateItBackend::css('backend'),
'javascript' => RateItBackend::js('RateItBackend')
)
));
/**
* frontend moduls
*/
$GLOBALS['FE_MOD']['application']['rateit'] = 'rateit\\RateItModule';
$GLOBALS['FE_MOD']['application']['rateit_top_ratings'] = 'rateit\\RateItTopRatingsModule';
$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'] = 'rateit\\RateItCE';
$GLOBALS['TL_CTE']['includes']['rateit'] = 'cgoIT\rateit\RateItCE';
?>

View File

@ -27,8 +27,9 @@
* @license GNU/LGPL
* @filesource
*/
use cgoIT\rateit\DcaHelper;
/**
* Extend tl_article
*/
@ -69,40 +70,13 @@ $GLOBALS['TL_DCA']['tl_article']['fields']['rateit_position'] = array
'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 {
class tl_article_rating extends 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);

View File

@ -28,6 +28,8 @@
* @filesource
*/
use cgoIT\rateit\DcaHelper;
$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');
@ -62,7 +64,7 @@ $GLOBALS['TL_DCA']['tl_content']['fields']['rateit_active'] = array
/**
* Class tl_content_rateit
*/
class tl_content_rateit extends rateit\DcaHelper {
class tl_content_rateit extends DcaHelper {
/**
* Constructor
@ -75,23 +77,26 @@ class tl_content_rateit extends rateit\DcaHelper {
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
@ -101,23 +106,23 @@ class tl_content_rateit extends rateit\DcaHelper {
} 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' : ''));
}
}
@ -131,62 +136,15 @@ class tl_content_rateit extends rateit\DcaHelper {
public function delete(\DC_Table $dc) {
if ($dc->activeRecord->type == "gallery") {
if (version_compare(VERSION, '3.2', '>=')) {
$objFiles = \FilesModel::findMultipleByUuids(deserialize($dc->activeRecord->multiSRC));
} else {
$objFiles = \FilesModel::findMultipleByIds(deserialize($dc->activeRecord->multiSRC));
}
// Get all images
while ($objFiles->next()) {
// Single files
if ($objFiles->type == 'file') {
$objFile = new \File($objFiles->path, true);
if (!$objFile->isGdImage) {
continue;
}
$rkey = $dc->activeRecord->id.'_'.$objFiles->id;
$this->Database->prepare("DELETE FROM tl_rateit_items WHERE rkey=? and typ=?")
->execute($rkey, 'galpic');
}
// 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;
}
$rkey = $dc->activeRecord->id.'_'.$objSubfiles->id;
$this->Database->prepare("DELETE FROM tl_rateit_items WHERE rkey=? and typ=?")
->execute($rkey, 'galpic');
}
}
}
$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);
@ -217,4 +175,4 @@ class tl_content_rateit extends rateit\DcaHelper {
}
}
}
?>
?>

View File

@ -27,8 +27,9 @@
* @license GNU/LGPL
* @filesource
*/
use cgoIT\rateit\DcaHelper;
/**
* Extend tl_article
*/
@ -69,14 +70,14 @@ $GLOBALS['TL_DCA']['tl_faq']['fields']['rateit_position'] = array
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
class tl_faq_rating extends rateit\DcaHelper {
class tl_faq_rating extends DcaHelper {
/**
* Constructor
*/
public function __construct() {
parent::__construct();
}
public function insert(\DC_Table $dc) {
return $this->insertOrUpdateRatingKey($dc, 'faq', $dc->activeRecord->question);
}

View File

@ -1,4 +1,4 @@
<?php
<?php
/**
* Contao Open Source CMS
@ -28,6 +28,8 @@
* @filesource
*/
use cgoIT\rateit\DcaHelper;
$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');
@ -65,7 +67,7 @@ $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'),
'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 ''"
@ -107,7 +109,7 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['rateit_template'] = array
/**
* Class tl_module_rateit
*/
class tl_module_rateit extends rateit\DcaHelper {
class tl_module_rateit extends DcaHelper {
/**
* Constructor
@ -115,7 +117,7 @@ class tl_module_rateit extends rateit\DcaHelper {
public function __construct() {
parent::__construct();
}
public function insert(\DC_Table $dc) {
return $this->insertOrUpdateRatingKey($dc, 'module', $dc->activeRecord->rateit_title);
}
@ -137,4 +139,4 @@ class tl_module_rateit extends rateit\DcaHelper {
return $this->getTemplateGroup('mod_rateit_top', $intPid);
}
}
?>
?>

View File

@ -27,8 +27,9 @@
* @license GNU/LGPL
* @filesource
*/
use cgoIT\rateit\DcaHelper;
/**
* Extend tl_article
*/
@ -69,14 +70,14 @@ $GLOBALS['TL_DCA']['tl_news']['fields']['rateit_position'] = array
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
class tl_news_rating extends rateit\DcaHelper {
class tl_news_rating extends DcaHelper {
/**
* Constructor
*/
public function __construct() {
parent::__construct();
}
public function insert(\DC_Table $dc) {
return $this->insertOrUpdateRatingKey($dc, 'news', $dc->activeRecord->headline);
}

View File

@ -27,8 +27,10 @@
* @license GNU/LGPL
* @filesource
*/
use cgoIT\rateit\DcaHelper;
/**
* Extend tl_page
*/
@ -39,6 +41,7 @@ $GLOBALS['TL_DCA']['tl_page']['config']['ondelete_callback'][] = array('tl_page_
/**
* 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
@ -53,23 +56,41 @@ foreach ($GLOBALS['TL_DCA']['tl_page']['palettes'] as $keyPalette => $valuePalet
$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'],
'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)
);
class tl_page_rateit extends rateit\DcaHelper {
$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 DcaHelper {
/**
* Constructor
*/
public function __construct() {
parent::__construct();
}
public function insert(\DC_Table $dc) {
return $this->insertOrUpdateRatingKey($dc, 'page', $dc->activeRecord->title);
}

View File

@ -28,6 +28,8 @@
* @filesource
*/
use cgoIT\rateit\DcaHelper;
/**
* palettes
*/
@ -113,21 +115,7 @@ $GLOBALS['TL_DCA']['tl_settings']['fields']['rating_description'] = array
'eval' => array('mandatory'=>true, 'allowHtml'=>true, 'tl_class'=>'w50')
);
class tl_settings_rateit extends rateit\DcaHelper
class tl_settings_rateit extends DcaHelper
{
public function getUserFullName() {
$this->import('jicw\\JICWHelper', 'JICWHelper');
return $this->JICWHelper->getUserFullName();
}
public function getUserEmail() {
$this->import('jicw\\JICWHelper', 'JICWHelper');
return $this->JICWHelper->getUserEmail();
}
public function getInstalledModules() {
$this->import('jicw\\JICWHelper', 'JICWHelper');
return $this->JICWHelper->getInstalledModules();
}
}
?>

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

@ -1,11 +1,11 @@
<?php
// Add the colorbox style sheet
// Add the colorbox style sheet and javascript
$GLOBALS['TL_CSS'][] = 'assets/jquery/colorbox/'. COLORBOX .'/css/colorbox.min.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/jquery/colorbox/colorbox-rateit.min.js|static';
?>
<script src="system/modules/rateit/public/js/jquery/colorbox/colorbox-rateit.min.js"></script>
<script>
(function($) {
$(document).ready(function() {

View File

@ -0,0 +1,37 @@
<?php $this->extend('mod_article'); ?>
<?php $this->block('content'); ?>
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div id="<?= $this->rateItID ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<?php $this->parent(); ?>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div id="<?= $this->rateItID ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
</div>
<!-- indexer::continue -->
<?php endif; ?>
<?php $this->endblock(); ?>

View File

@ -0,0 +1,55 @@
<?php $this->extend('mod_article'); ?>
<?php $this->block('content'); ?>
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?= $this->rateItID ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $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; ?>
<?php $this->parent(); ?>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<div id="<?= $this->rateItID ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $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; ?>
<?php $this->endblock(); ?>

View File

@ -0,0 +1,47 @@
<?php $this->extend('block_unsearchable'); ?>
<?php $this->block('content'); ?>
<ul>
<?php foreach ($this->articles as $article): ?>
<?php if ($article['rateit_rating_before']): ?>
<!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $article['rateItID'] ?>" class="<?= $article['rateit_class'] ?>">
<?php if ($article['showBefore']) : ?>
<div id="<?= $article['descriptionId'] ?>" class="ratingText"><?= $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="<?= $article['descriptionId'] ?>" class="ratingText"><?= $article['description'] ?></div>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>
<!-- indexer::continue -->
<?php endif; ?>
<?php $this->parent(); ?>
<?php if ($article['rateit_rating_after']): ?>
<!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $article['rateItID'] ?>" class="<?= $article['rateit_class'] ?>">
<?php if ($article['showBefore']) : ?>
<div id="<?= $article['descriptionId'] ?>" class="ratingText"><?= $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="<?= $article['descriptionId'] ?>" class="ratingText"><?= $article['description'] ?></div>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>
<!-- indexer::continue -->
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php $this->endblock(); ?>

View File

@ -0,0 +1,16 @@
<?php $this->extend('mod_articlelist_rateit'); ?>
<?php $this->block('rating'); ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<?php $this->parent(); ?>
<span class="rating-microdata" itemprop="name"><?= $article['itemreviewed'] ?></span>
<span class="rating-microdata" itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating">
<span itemprop="ratingValue"><?= $article['actRating'] ?></span>
<span itemprop="worstRating">0</span>
<span itemprop="bestRating"><?= $article['maxRating'] ?></span>
<span itemprop="ratingCount"><?= $article['votes'] ?></span>
</span>
</div>
<!-- indexer::continue -->
<?php $this->endblock(); ?>

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

@ -1,11 +1,11 @@
<?php
// Add the mediabox style sheet
// Add the mediabox style sheet and javascript
$GLOBALS['TL_CSS'][] = 'assets/mootools/mediabox/'. MEDIABOX .'/css/mediaboxAdvBlack21.css||static';
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/cgoitrateit/js/mootools/mediabox/mediabox-rateit.js|static';
?>
<script src="system/modules/rateit/public/js/mootools/mediabox/mediabox-rateit.js"></script>
<script>
(function($) {
window.addEvent('domready', function() {

View File

@ -0,0 +1,40 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $this->ratingId ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>
<!-- indexer::continue -->
<?php endif; ?>
<?php $this->insert('news_full', $this->arrData); ?>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $this->ratingId ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,17 @@
<?php $this->extend('news_full_rateit'); ?>
<?php $this->block('rating'); ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<?php $this->parent(); ?>
<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 $this->endblock(); ?>

View File

@ -0,0 +1,40 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $this->ratingId ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>
<!-- indexer::continue -->
<?php endif; ?>
<?php $this->insert('news_latest', $this->arrData); ?>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $this->ratingId ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,17 @@
<?php $this->extend('news_latest_rateit'); ?>
<?php $this->block('rating'); ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<?php $this->parent(); ?>
<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 $this->endblock(); ?>

View File

@ -0,0 +1,40 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $this->ratingId ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>
<!-- indexer::continue -->
<?php endif; ?>
<?php $this->insert('news_short', $this->arrData); ?>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $this->ratingId ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,17 @@
<?php $this->extend('news_short_rateit'); ?>
<?php $this->block('rating'); ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<?php $this->parent(); ?>
<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 $this->endblock(); ?>

View File

@ -0,0 +1,40 @@
<?php if ($this->rateit_rating_before): ?>
<!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $this->ratingId ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>
<!-- indexer::continue -->
<?php endif; ?>
<?php $this->insert('news_simple', $this->arrData); ?>
<?php if ($this->rateit_rating_after): ?>
<!-- indexer::stop -->
<?php $this->block('rating'); ?>
<div id="<?= $this->ratingId ?>" class="<?= $this->class ?> <?= $this->rateit_class ?>">
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $this->description ?></div>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>
<!-- indexer::continue -->
<?php endif; ?>

View File

@ -0,0 +1,17 @@
<?php $this->extend('news_simple_rateit'); ?>
<?php $this->block('rating'); ?>
<!-- indexer::stop -->
<div itemtype="http://schema.org/CreativeWork" itemscope class="rating-microdata">
<?php $this->parent(); ?>
<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 $this->endblock(); ?>

View File

@ -0,0 +1,14 @@
<!-- indexer::stop -->
<div id="<?= $this->id ?>" class="<?= $this->class ?> <?= $this->rateit_class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->id ?>" class="<?= $this->class ?> <?= $this->rateit_class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<?php if ($this->showBefore) : ?>
<div id="<?= $this->descriptionId ?>" class="ratingText"><?= $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="<?= $this->descriptionId ?>" class="ratingText"><?= $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

@ -71,7 +71,7 @@ $order_options = &$GLOBALS['TL_LANG']['tl_rateit_order_options'];
<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']; ?>">
<input type="image" name="filter" id="filter" src="<?php echo TL_FILES_URL; ?>system/themes/<?php echo $this->getTheme(); ?>/icons/filter-apply.svg" class="tl_img_submit" title="<?php echo $text['apply']; ?>" alt="<?php echo $text['apply']; ?>">
</div>
<div class="tl_limit tl_subpanel">

View File

@ -99,7 +99,7 @@ $labels = $GLOBALS['TL_CONFIG']['rating_type'] == 'hearts' ? $GLOBALS['TL_LANG']
<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']; ?>">
<input type="image" name="filter" id="filter" src="<?php echo TL_FILES_URL; ?>system/themes/<?php echo $this->getTheme(); ?>/icons/filter-apply.svg" class="tl_img_submit" title="<?php echo $text['apply']; ?>" alt="<?php echo $text['apply']; ?>">
</div>
<div class="tl_limit tl_subpanel">

View File

@ -48,10 +48,10 @@
text-align:left;
line-height:1;
}
.mod_rateit table th.selectall {
.mod_rateit table th.selectall {
background-color:#fff;
}
.mod_rateit table.rating-selectall {
.mod_rateit table.rating-selectall {
border:0px;
}
.mod_rateit table th { background-color:#fbf7f1; }
@ -116,11 +116,12 @@
}
.mod_rateit div.ratebartext { margin-left:65px; }
.mod_rateit a.header_export_excel{
.mod_rateit a.header_export_excel{
padding:2px 0 3px 20px;
background-image:url("../images/exportEXCEL.gif");
background-image:url("../images/exportEXCEL.svg");
background-size: 16px 16px;
background-position:left center;
background-repeat:no-repeat;
background-repeat:no-repeat;
}
.mod_rateit div.chart {

View File

@ -1,11 +1,11 @@
.rateItRating .wrapper, .mbrateItRating .wrapper {
background: url('../images/heart.gif');
background: url("../images/heart.gif");
}
div.rateItRating div.rateItRating-hover, div.mbrateItRating div.rateItRating-hover {
background: url('../images/heart.gif') left;
background: url("../images/heart.gif") left;
}
div.rateItRating div.rateItRating-selected, div.mbrateItRating div.rateItRating-selected {
background: url('../images/heart.gif') left;
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}

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