Umzug zu gitlab
This commit is contained in:
		
							
								
								
									
										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. | ||||
							
								
								
									
										56
									
								
								classes/RateItNews4ward.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								classes/RateItNews4ward.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,56 @@ | ||||
| <?php | ||||
|  | ||||
| namespace cgoIT\rateit; | ||||
|  | ||||
| class RateItNews4ward extends RateItFrontend {  | ||||
| 	 | ||||
| 	/** | ||||
| 	 * Initialize the controller | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 	} | ||||
|  | ||||
| 	public function parseArticle($caller, $objArticle, $objTemplate, $arrArticles) { | ||||
| 		if ($objArticle['addRating']) {  | ||||
| 			   $ratingId = $objTemplate->id; | ||||
| 	   		$rating = $this->loadRating($ratingId, 'news4ward'); | ||||
| 	   		$stars = !$rating ? 0 : $this->percentToStars($rating['rating']); | ||||
| 	   		$percent = round($rating['rating'], 0)."%"; | ||||
| 	   		 | ||||
| 	   		$objTemplate->descriptionId = 'rateItRating-'.$ratingId.'-description'; | ||||
| 	   		$objTemplate->description = $this->getStarMessage($rating); | ||||
| 	   		$objTemplate->id = 'rateItRating-'.$ratingId.'-news4ward-'.$stars.'_'.$this->intStars; | ||||
| 			   $objTemplate->rateit_class = 'rateItRating'; | ||||
| 	   		$objTemplate->itemreviewed = $rating['title']; | ||||
| 	   		$objTemplate->actRating = $this->percentToStars($rating['rating']); | ||||
| 	   		$objTemplate->maxRating = $this->intStars; | ||||
| 	   		$objTemplate->votes = $rating[totalRatings]; | ||||
| 	   		 | ||||
| 	   		if ($this->strTextPosition == "before") { | ||||
| 	   			$objTemplate->showBefore = true; | ||||
| 	   		} | ||||
| 	   		else if ($this->strTextPosition == "after") { | ||||
| 	   			$objTemplate->showAfter = true; | ||||
| 			} | ||||
| 				 | ||||
| 			if ($objArticle['rateit_position'] == 'before') { | ||||
| 				$objTemplate->rateit_rating_before = true; | ||||
| 			} else if ($objArticle['rateit_position'] == 'after') { | ||||
| 				$objTemplate->rateit_rating_after = true; | ||||
| 			} | ||||
| 			 | ||||
| 			$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/onReadyRateIt.js|static'; | ||||
| 			$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/rateit/public/js/rateit.js'; | ||||
| 	   		$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'; | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| ?> | ||||
							
								
								
									
										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" | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										19
									
								
								config/autoload.ini
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								config/autoload.ini
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| ;; | ||||
| ; List modules which are required to be loaded beforehand | ||||
| ;; | ||||
| requires[] = "core" | ||||
|  | ||||
| ;; | ||||
| ; Configure what you want the autoload creator to register | ||||
| ;; | ||||
| register_namespaces = true | ||||
| register_classes    = true | ||||
| register_templates  = true | ||||
|  | ||||
| ;; | ||||
| ; Override the default configuration for certain sub directories | ||||
| ;; | ||||
| [vendor/*] | ||||
| register_namespaces = false | ||||
| register_classes    = false | ||||
| register_templates  = false | ||||
							
								
								
									
										40
									
								
								config/autoload.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								config/autoload.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,40 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Contao Open Source CMS | ||||
|  * | ||||
|  * Copyright (c) 2005-2015 Leo Feyer | ||||
|  * | ||||
|  * @license LGPL-3.0+ | ||||
|  */ | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * Register the namespaces | ||||
|  */ | ||||
| ClassLoader::addNamespaces(array | ||||
| ( | ||||
| 	'cgoIT', | ||||
| )); | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * Register the classes | ||||
|  */ | ||||
| ClassLoader::addClasses(array | ||||
| ( | ||||
| 	// Classes | ||||
| 	'cgoIT\rateit\RateItNews4ward' => 'system/modules/news4ward_rateit/classes/RateItNews4ward.php', | ||||
| )); | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * Register the templates | ||||
|  */ | ||||
| TemplateLoader::addFiles(array | ||||
| ( | ||||
| 	'mod_news4ward_reader_rateit'    => '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_md'  => 'system/modules/news4ward_rateit/templates', | ||||
| )); | ||||
							
								
								
									
										3
									
								
								config/config.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								config/config.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| <?php | ||||
|  | ||||
| $GLOBALS['TL_HOOKS']['News4wardParseArticle'][]          = array('rateit\\RateItNews4ward', 'parseArticle'); | ||||
							
								
								
									
										58
									
								
								dca/tl_news4ward_article.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								dca/tl_news4ward_article.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,58 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Extend tl_news4ward_article | ||||
|  */ | ||||
| $GLOBALS['TL_DCA']['tl_news4ward_article']['config']['onsubmit_callback'][] = array('tl_news4ward_article_rating','insert'); | ||||
| $GLOBALS['TL_DCA']['tl_news4ward_article']['config']['ondelete_callback'][] = array('tl_news4ward_article_rating','delete'); | ||||
|  | ||||
| /** | ||||
|  * Palettes | ||||
|  */ | ||||
| $GLOBALS['TL_DCA']['tl_news4ward_article']['palettes']['__selector__'][] = 'addRating'; | ||||
| $GLOBALS['TL_DCA']['tl_news4ward_article']['palettes']['default'] = $GLOBALS['TL_DCA']['tl_news4ward_article']['palettes']['default'].';{rating_legend:hide},addRating'; | ||||
|  | ||||
| /** | ||||
|  * Add subpalettes to tl_article | ||||
|  */ | ||||
| $GLOBALS['TL_DCA']['tl_news4ward_article']['subpalettes']['addRating']  = 'rateit_position'; | ||||
|  | ||||
| // Fields | ||||
| $GLOBALS['TL_DCA']['tl_news4ward_article']['fields']['addRating'] = array | ||||
| ( | ||||
|   'label'						=> &$GLOBALS['TL_LANG']['tl_news4ward_article']['addRating'], | ||||
|   'exclude'						=> true, | ||||
|   'inputType'					=> 'checkbox', | ||||
|   'sql' 							=> "char(1) NOT NULL default ''", | ||||
|   'eval'           		   => array('tl_class'=>'w50 m12', 'submitOnChange'=>true) | ||||
| ); | ||||
|  | ||||
| $GLOBALS['TL_DCA']['tl_news4ward_article']['fields']['rateit_position'] = array | ||||
| ( | ||||
|   'label'                  => &$GLOBALS['TL_LANG']['tl_news4ward_article']['rateit_position'], | ||||
|   'default'                => 'before', | ||||
|   'exclude'                => true, | ||||
|   'inputType'              => 'select', | ||||
|   'options'                => array('after', 'before'), | ||||
|   'reference'              => &$GLOBALS['TL_LANG']['tl_news4ward_article'], | ||||
|   'sql' 							=> "varchar(6) NOT NULL default ''", | ||||
|   'eval'                   => array('mandatory'=>true, 'tl_class'=>'w50') | ||||
| ); | ||||
|  | ||||
| class tl_news4ward_article_rating extends rateit\DcaHelper { | ||||
| 	/** | ||||
| 	 * Constructor | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 	} | ||||
| 	 | ||||
| 	public function insert(\DC_Table $dc) { | ||||
|       return $this->insertOrUpdateRatingKey($dc, 'news4ward', $dc->activeRecord->title); | ||||
| 	} | ||||
|  | ||||
| 	public function delete(\DC_Table $dc) | ||||
| 	{ | ||||
|       return $this->deleteRatingKey($dc, 'news4ward'); | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										6
									
								
								languages/de/modules.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								languages/de/modules.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| <?php | ||||
|  | ||||
| // Back end modules | ||||
| $GLOBALS['TL_LANG']['MOD']['news4ward_rateit'] = array('Bewertung von Beiträgen', 'Bewertung von Beiträgen'); | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										9
									
								
								languages/de/tl_news4ward_article.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								languages/de/tl_news4ward_article.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| <?php | ||||
|  | ||||
| $GLOBALS['TL_LANG']['tl_news4ward_article']['rating_legend'] = 'Rate It-Einstellungen'; | ||||
|  | ||||
| $GLOBALS['TL_LANG']['tl_news4ward_article']['addRating'] = array('Rating aktivieren', 'Aktiviert das Rating für diese Nachricht'); | ||||
| $GLOBALS['TL_LANG']['tl_news4ward_article']['rateit_position'] = array('Position', 'Position des Rating (ober- oder unterhalb) des News-Beitrags.'); | ||||
|  | ||||
| $GLOBALS['TL_LANG']['tl_news4ward_article']['before']          = array('oberhalb', 'Anzeige des Texts oberhalb des News-Beitrags'); | ||||
| $GLOBALS['TL_LANG']['tl_news4ward_article']['after']           = array('unterhalb', 'Anzeige des Texts unterhalb des News-Beitrags'); | ||||
							
								
								
									
										6
									
								
								languages/en/modules.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								languages/en/modules.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| <?php | ||||
|  | ||||
| // Back end modules | ||||
| $GLOBALS['TL_LANG']['MOD']['news4ward_rateit'] = array('Rating for blog entries', 'Rating for blog entries'); | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										9
									
								
								languages/en/tl_news4ward_article.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								languages/en/tl_news4ward_article.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| <?php | ||||
|  | ||||
| $GLOBALS['TL_LANG']['tl_news4ward_article']['rating_legend'] = 'Rate It-Settings'; | ||||
|  | ||||
| $GLOBALS['TL_LANG']['tl_news4ward_article']['addRating'] = array('activate rating', 'Enables the rating for this news article'); | ||||
| $GLOBALS['TL_LANG']['tl_news4ward_article']['rateit_position'] = array('position', 'position of the rating (before or above) the news entry.'); | ||||
|  | ||||
| $GLOBALS['TL_LANG']['tl_news4ward_article']['before']          = array('above', 'Display the text above the news entry'); | ||||
| $GLOBALS['TL_LANG']['tl_news4ward_article']['after']           = array('below', 'Display the text below the news entry'); | ||||
							
								
								
									
										87
									
								
								templates/mod_news4ward_reader_rateit.html5
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										87
									
								
								templates/mod_news4ward_reader_rateit.html5
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,87 @@ | ||||
|  | ||||
| <div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>> | ||||
|  | ||||
| <?php if ($this->rateit_rating_before): ?> | ||||
| <!-- indexer::stop --> | ||||
| <div id="<?php echo $this->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 echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <?php if ($this->hasMetaFields): ?> | ||||
| <p class="info"><?php echo $this->date; ?> <?php echo $this->author; ?></p> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <h1><?php echo $this->title;?></h1> | ||||
|  | ||||
| <?php if(!empty($this->subheadline)): ?> | ||||
| <h2><?php echo $this->subheadline; ?></h2> | ||||
| <?php endif;?> | ||||
|  | ||||
| <?php echo $this->content; ?> | ||||
|  | ||||
| <?php if(!empty($this->socialButtons)): ?> | ||||
| <div class="socialButtons"> | ||||
| 	<?php if(in_array('facebook',$this->socialButtons)): ?> | ||||
| 	<span class="facebook"> | ||||
| 		<a href="https://www.facebook.com/sharer.php?display=popup&u=<?php echo urlencode($this->Environment->base . $this->Environment->request); ?>&t=<?php echo urlencode($this->title); ?>" rel="nofollow" title="Auf Facebook teilen" target="blank"  onclick="window.open(this.href, '', 'width=760,height=570,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;"><img src="system/modules/news4ward/html/social/facebook.png" alt="Facebook" width="30" height="30"></a> | ||||
| 	</span> | ||||
| 	<?php endif; ?> | ||||
| 	<?php if(in_array('twitter',$this->socialButtons)): ?> | ||||
| 	<span class="twitter"> | ||||
| 		<a href="http://twitter.com/share?url=<?php echo urlencode($this->Environment->base . $this->Environment->request); ?>&text=<?php echo urlencode($this->title); ?>" rel="nofollow" title="twittern" target="blank" onclick="window.open(this.href, '', 'width=800,height=600,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;"><img src="system/modules/news4ward/html/social/twitter.png" alt="Twitter" width="30" height="30"></a> | ||||
| 	</span> | ||||
| 	<?php endif; ?> | ||||
| 	<?php if(in_array('google',$this->socialButtons)): ?> | ||||
| 	<span class="googleplus"> | ||||
| 		<a href="https://plusone.google.com/_/+1/confirm?hl=de&url=<?php echo urlencode($this->Environment->base . $this->Environment->request); ?>" rel="nofollow" title="Auf Google+ teilen" target="blank" onclick="window.open(this.href, '', 'width=800,height=600,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;"><img src="system/modules/news4ward/html/social/google.png" alt="Google+" width="30" height="30"></a> | ||||
| 	</span> | ||||
| 	<?php endif; ?> | ||||
| 	<?php if(in_array('email',$this->socialButtons)): ?> | ||||
| 	<span class="email"> | ||||
| 		<a href="mailto:hier-empfänger@einsetzen.de?subject=Empfehlung:%20<?php echo rawurlencode($this->title); ?>&body=Dieser%20Artikel%20könnte%20Sie%20interessieren:%0A<?php echo urlencode($this->Environment->base . $this->Environment->request); ?>%0A%0A<?php echo rawurlencode(preg_replace("/<[^>]+>/", "", $this->teaser));?>"><img src="system/modules/news4ward/html/social/mail.png" alt="Per E-Mail empfehlen" width="30" height="30"></a> | ||||
| 	</span> | ||||
| 	<?php endif; ?> | ||||
| </div> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <?php if ($this->rateit_rating_after): ?> | ||||
| <!-- 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->prevArticle): ?> | ||||
| <span class="prevArticle"><a href="<?php echo $this->prevArticle['href']; ?>">« <?php echo $this->prevArticle['title']; ?></a></span> | ||||
| <?php endif; ?> | ||||
| <?php if($this->nextArticle): ?> | ||||
| <span class="nextArticle"><a href="<?php echo $this->nextArticle['href']; ?>"><?php echo $this->nextArticle['title']; ?> »</a></span> | ||||
| <?php endif; ?> | ||||
|  | ||||
|  | ||||
| </div> | ||||
							
								
								
									
										103
									
								
								templates/mod_news4ward_reader_rateit_md.html5
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										103
									
								
								templates/mod_news4ward_reader_rateit_md.html5
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,103 @@ | ||||
|  | ||||
| <div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>> | ||||
|  | ||||
| <?php if ($this->rateit_rating_before): ?> | ||||
| <!-- indexer::stop --> | ||||
| <div itemtype="http://data-vocabulary.org/Review-aggregate" itemscope="" class="rating-microdata"> | ||||
|    <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> | ||||
|    <span class="rating-microdata" itemprop="itemreviewed"><?php echo $this->itemreviewed; ?></span> | ||||
|    <span class="rating-microdata" itemtype="http://data-vocabulary.org/Rating" itemscope="" itemprop="rating"> | ||||
|       <span itemprop="average"><?php echo $this->actRating; ?></span> | ||||
|       <span itemprop="best"><?php echo $this->maxRating; ?></span> | ||||
|    </span> | ||||
|    <span class="rating-microdata" itemprop="votes"><?php echo $this->votes; ?></span> | ||||
| </div> | ||||
| <!-- indexer::continue --> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <?php if ($this->headline): ?> | ||||
| <<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <?php if ($this->hasMetaFields): ?> | ||||
| <p class="info"><?php echo $this->date; ?> <?php echo $this->author; ?></p> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <h1><?php echo $this->title;?></h1> | ||||
|  | ||||
| <?php if(!empty($this->subheadline)): ?> | ||||
| <h2><?php echo $this->subheadline; ?></h2> | ||||
| <?php endif;?> | ||||
|  | ||||
| <?php echo $this->content; ?> | ||||
|  | ||||
| <?php if(!empty($this->socialButtons)): ?> | ||||
| <div class="socialButtons"> | ||||
| 	<?php if(in_array('facebook',$this->socialButtons)): ?> | ||||
| 	<span class="facebook"> | ||||
| 		<a href="https://www.facebook.com/sharer.php?display=popup&u=<?php echo urlencode($this->Environment->base . $this->Environment->request); ?>&t=<?php echo urlencode($this->title); ?>" rel="nofollow" title="Auf Facebook teilen" target="blank"  onclick="window.open(this.href, '', 'width=760,height=570,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;"><img src="system/modules/news4ward/html/social/facebook.png" alt="Facebook" width="30" height="30"></a> | ||||
| 	</span> | ||||
| 	<?php endif; ?> | ||||
| 	<?php if(in_array('twitter',$this->socialButtons)): ?> | ||||
| 	<span class="twitter"> | ||||
| 		<a href="http://twitter.com/share?url=<?php echo urlencode($this->Environment->base . $this->Environment->request); ?>&text=<?php echo urlencode($this->title); ?>" rel="nofollow" title="twittern" target="blank" onclick="window.open(this.href, '', 'width=800,height=600,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;"><img src="system/modules/news4ward/html/social/twitter.png" alt="Twitter" width="30" height="30"></a> | ||||
| 	</span> | ||||
| 	<?php endif; ?> | ||||
| 	<?php if(in_array('google',$this->socialButtons)): ?> | ||||
| 	<span class="googleplus"> | ||||
| 		<a href="https://plusone.google.com/_/+1/confirm?hl=de&url=<?php echo urlencode($this->Environment->base . $this->Environment->request); ?>" rel="nofollow" title="Auf Google+ teilen" target="blank" onclick="window.open(this.href, '', 'width=800,height=600,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;"><img src="system/modules/news4ward/html/social/google.png" alt="Google+" width="30" height="30"></a> | ||||
| 	</span> | ||||
| 	<?php endif; ?> | ||||
| 	<?php if(in_array('email',$this->socialButtons)): ?> | ||||
| 	<span class="email"> | ||||
| 		<a href="mailto:hier-empfänger@einsetzen.de?subject=Empfehlung:%20<?php echo rawurlencode($this->title); ?>&body=Dieser%20Artikel%20könnte%20Sie%20interessieren:%0A<?php echo urlencode($this->Environment->base . $this->Environment->request); ?>%0A%0A<?php echo rawurlencode(preg_replace("/<[^>]+>/", "", $this->teaser));?>"><img src="system/modules/news4ward/html/social/mail.png" alt="Per E-Mail empfehlen" width="30" height="30"></a> | ||||
| 	</span> | ||||
| 	<?php endif; ?> | ||||
| </div> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <?php if ($this->rateit_rating_after): ?> | ||||
| <!-- indexer::stop --> | ||||
| <div itemtype="http://data-vocabulary.org/Review-aggregate" itemscope="" class="rating-microdata"> | ||||
|     <div id="<?php echo $this->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> | ||||
|     <span class="rating-microdata" itemprop="itemreviewed"><?php echo $this->itemreviewed; ?></span> | ||||
|     <span class="rating-microdata" itemtype="http://data-vocabulary.org/Rating" itemscope="" itemprop="rating"> | ||||
|         <span itemprop="average"><?php echo $this->actRating; ?></span> | ||||
|         <span itemprop="best"><?php echo $this->maxRating; ?></span> | ||||
|     </span> | ||||
|     <span class="rating-microdata" itemprop="votes"><?php echo $this->votes; ?></span> | ||||
| </div> | ||||
| <!-- indexer::continue --> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <?php if($this->prevArticle): ?> | ||||
| <span class="prevArticle"><a href="<?php echo $this->prevArticle['href']; ?>">« <?php echo $this->prevArticle['title']; ?></a></span> | ||||
| <?php endif; ?> | ||||
| <?php if($this->nextArticle): ?> | ||||
| <span class="nextArticle"><a href="<?php echo $this->nextArticle['href']; ?>"><?php echo $this->nextArticle['title']; ?> »</a></span> | ||||
| <?php endif; ?> | ||||
|  | ||||
|  | ||||
| </div> | ||||
							
								
								
									
										58
									
								
								templates/news4ward_list_item_rateit.html5
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								templates/news4ward_list_item_rateit.html5
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,58 @@ | ||||
|  | ||||
| <div class="layout_short news4ward_list block<?php echo $this->class; ?>"<?php echo $this->cssID; ?>> | ||||
|  | ||||
| <?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->hasMetaFields): ?> | ||||
| <p class="info"><?php echo $this->date; ?> <?php echo $this->author; ?></p> | ||||
| <?php endif; ?> | ||||
| <h2><a href="<?php echo $this->link; ?>"><?php echo $this->title; ?></a></h2> | ||||
| <?php if(!empty($this->subheadline)): ?> | ||||
| <h3><?php echo $this->subheadline; ?></h3> | ||||
| <?php endif;?> | ||||
| <div class="teaser <?php echo $this->teaserClass; ?>"<?php echo $this->teaserCssID; ?>> | ||||
| 	<?php if(!empty($this->teaserImage)): ?> | ||||
| 		<figure class="image_container"> | ||||
| 			<img src="<?php echo $this->teaserImage; ?>" alt="<?php echo $this->title; ?>"> | ||||
| 			<?php if ($this->teaserImageCaption): ?> | ||||
| 			<figcaption class="caption" style="width:<?php echo $this->arrSize[0]; ?>px"><?php echo $this->teaserImageCaption; ?></figcaption> | ||||
| 			<?php endif; ?> | ||||
| 		</figure> | ||||
| 	<?php endif; ?> | ||||
| 	<?php echo $this->teaser; ?> | ||||
| </div> | ||||
|  | ||||
| <?php if ($this->rateit_rating_after): ?> | ||||
| <!-- 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; ?> | ||||
|  | ||||
| <a href="<?php echo $this->link; ?>" class="more"><?php echo $GLOBALS['TL_LANG']['MSC']['more']; ?></a> | ||||
| </div> | ||||
							
								
								
									
										74
									
								
								templates/news4ward_list_item_rateit_md.html5
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								templates/news4ward_list_item_rateit_md.html5
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,74 @@ | ||||
|  | ||||
| <div class="layout_short news4ward_list block<?php echo $this->class; ?>"<?php echo $this->cssID; ?>> | ||||
|  | ||||
| <?php if ($this->rateit_rating_before): ?> | ||||
| <!-- indexer::stop --> | ||||
| <div itemtype="http://data-vocabulary.org/Review-aggregate" itemscope="" class="rating-microdata"> | ||||
|    <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> | ||||
|    <span class="rating-microdata" itemprop="itemreviewed"><?php echo $this->itemreviewed; ?></span> | ||||
|    <span class="rating-microdata" itemtype="http://data-vocabulary.org/Rating" itemscope="" itemprop="rating"> | ||||
|       <span itemprop="average"><?php echo $this->actRating; ?></span> | ||||
|       <span itemprop="best"><?php echo $this->maxRating; ?></span> | ||||
|    </span> | ||||
|    <span class="rating-microdata" itemprop="votes"><?php echo $this->votes; ?></span> | ||||
| </div> | ||||
| <!-- indexer::continue --> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <?php if ($this->hasMetaFields): ?> | ||||
| <p class="info"><?php echo $this->date; ?> <?php echo $this->author; ?></p> | ||||
| <?php endif; ?> | ||||
| <h2><a href="<?php echo $this->link; ?>"><?php echo $this->title; ?></a></h2> | ||||
| <?php if(!empty($this->subheadline)): ?> | ||||
| <h3><?php echo $this->subheadline; ?></h3> | ||||
| <?php endif;?> | ||||
| <div class="teaser <?php echo $this->teaserClass; ?>"<?php echo $this->teaserCssID; ?>> | ||||
| 	<?php if(!empty($this->teaserImage)): ?> | ||||
| 		<figure class="image_container"> | ||||
| 			<img src="<?php echo $this->teaserImage; ?>" alt="<?php echo $this->title; ?>"> | ||||
| 			<?php if ($this->teaserImageCaption): ?> | ||||
| 			<figcaption class="caption" style="width:<?php echo $this->arrSize[0]; ?>px"><?php echo $this->teaserImageCaption; ?></figcaption> | ||||
| 			<?php endif; ?> | ||||
| 		</figure> | ||||
| 	<?php endif; ?> | ||||
| 	<?php echo $this->teaser; ?> | ||||
| </div> | ||||
|  | ||||
| <?php if ($this->rateit_rating_after): ?> | ||||
| <!-- indexer::stop --> | ||||
| <div itemtype="http://data-vocabulary.org/Review-aggregate" itemscope="" class="rating-microdata"> | ||||
|     <div id="<?php echo $this->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> | ||||
|     <span class="rating-microdata" itemprop="itemreviewed"><?php echo $this->itemreviewed; ?></span> | ||||
|     <span class="rating-microdata" itemtype="http://data-vocabulary.org/Rating" itemscope="" itemprop="rating"> | ||||
|         <span itemprop="average"><?php echo $this->actRating; ?></span> | ||||
|         <span itemprop="best"><?php echo $this->maxRating; ?></span> | ||||
|     </span> | ||||
|     <span class="rating-microdata" itemprop="votes"><?php echo $this->votes; ?></span> | ||||
| </div> | ||||
| <!-- indexer::continue --> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <a href="<?php echo $this->link; ?>" class="more"><?php echo $GLOBALS['TL_LANG']['MSC']['more']; ?></a> | ||||
| </div> | ||||
		Reference in New Issue
	
	Block a user