Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
db9b4d8134 | |||
bcec72c3e6 | |||
369516bf7e | |||
fdc29206b8 | |||
f1c1f41dad | |||
6c74d52f6b | |||
c0d5a5e35c | |||
b9dbd95160 | |||
bb317377e1 | |||
77dbd941b1 |
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# news4ward-rateit #
|
||||||
|
|
||||||
|
Erweiterung für RateIt um news4ward-Beiträge bewerten zu können.
|
@ -41,7 +41,7 @@ class RateItNews4ward extends RateItFrontend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/onReadyRateIt.js|static';
|
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/onReadyRateIt.js|static';
|
||||||
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/rateit-uncompressed.js';
|
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/rateit.js';
|
||||||
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/rateit.css||static';
|
$GLOBALS['TL_CSS'][] = 'system/modules/rateit/public/css/rateit.css||static';
|
||||||
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
|
switch ($GLOBALS['TL_CONFIG']['rating_type']) {
|
||||||
case 'hearts' :
|
case 'hearts' :
|
||||||
|
40
composer.json
Normal file
40
composer.json
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"name":"cgo-it/news4ward-rateit",
|
||||||
|
"description":"News4ward-RateIt extension for the Contao Open Source CMS",
|
||||||
|
"keywords":["contao", "rating", "rateit", "bewertung", "news4ward"],
|
||||||
|
"type":"contao-module",
|
||||||
|
"license":"LGPL-3.0+",
|
||||||
|
"authors":[
|
||||||
|
{
|
||||||
|
"name":"cgo IT",
|
||||||
|
"email":"info@cgo-it.de",
|
||||||
|
"homepage":"https://cgo-it.de",
|
||||||
|
"role":"Developer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"email": "info@cgo-it.de",
|
||||||
|
"issues": "https://bitbucket.org/cgo-it/contao-news4ward-rateit/issues?status=new&status=open",
|
||||||
|
"source": "https://bitbucket.org/cgo-it/contao-news4ward-rateit/src"
|
||||||
|
},
|
||||||
|
"require":{
|
||||||
|
"php":">=5.3",
|
||||||
|
"contao/core":">=3.0",
|
||||||
|
"contao-community-alliance/composer-plugin": "~2.0",
|
||||||
|
"cgo-it/rate-it":">=3.5.1",
|
||||||
|
"psi/news4ward": ">=2.2.0"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"cgo-it/news4ward-rateit": "self.version"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"contao/core": "2.11.*"
|
||||||
|
},
|
||||||
|
"extra":{
|
||||||
|
"contao": {
|
||||||
|
"sources":{
|
||||||
|
"":"system/modules/news4ward_rateit"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -34,7 +34,7 @@ ClassLoader::addClasses(array
|
|||||||
TemplateLoader::addFiles(array
|
TemplateLoader::addFiles(array
|
||||||
(
|
(
|
||||||
'mod_news4ward_reader_rateit' => 'system/modules/news4ward_rateit/templates',
|
'mod_news4ward_reader_rateit' => 'system/modules/news4ward_rateit/templates',
|
||||||
'mod_news4ward_reader_rateit_microdata' => 'system/modules/news4ward_rateit/templates',
|
'mod_news4ward_reader_rateit_md' => 'system/modules/news4ward_rateit/templates',
|
||||||
'news4ward_list_item_rateit' => 'system/modules/news4ward_rateit/templates',
|
'news4ward_list_item_rateit' => 'system/modules/news4ward_rateit/templates',
|
||||||
'news4ward_list_item_rateit_microdata' => 'system/modules/news4ward_rateit/templates',
|
'news4ward_list_item_rateit_md' => 'system/modules/news4ward_rateit/templates',
|
||||||
));
|
));
|
||||||
|
@ -26,22 +26,6 @@
|
|||||||
<!-- indexer::continue -->
|
<!-- indexer::continue -->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($this->rateit_rating_before): ?>
|
|
||||||
<!-- indexer::stop -->
|
|
||||||
<div id="<?php echo $this->id; ?>" class="<?php echo $this->class; ?> <?php echo $this->rateit_class; ?>">
|
|
||||||
<?php if ($this->showBefore) : ?>
|
|
||||||
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<div class="wrapper">
|
|
||||||
<div class="rateItRating-selected" style="display: block;"></div>
|
|
||||||
<div class="rateItRating-hover"></div>
|
|
||||||
</div>
|
|
||||||
<?php if ($this->showAfter) : ?>
|
|
||||||
<div id="<?php echo $this->descriptionId; ?>" class="ratingText"><?php echo $this->description; ?></div>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
<!-- indexer::continue -->
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if ($this->headline): ?>
|
<?php if ($this->headline): ?>
|
||||||
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
|
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
Reference in New Issue
Block a user