added copyright infos, uses getEffectiveSettings for imagepath and toggle countdown now
Dieser Commit ist enthalten in:
		
							Ursprung
							
								
									7d45ce67a8
								
							
						
					
					
						Commit
						2087c6c918
					
				
					 1 geänderte Dateien mit 27 neuen und 16 gelöschten Zeilen
				
			
		|  | @ -14,7 +14,9 @@ | |||
|  */ | ||||
| 
 | ||||
| $cfgMod = array( | ||||
|     'debug' => false | ||||
|     'debug' => true, | ||||
|     'eak_imgset' => 'Extra/', | ||||
|     'show_countdown' => true | ||||
| ); | ||||
| 
 | ||||
| // init db-object
 | ||||
|  | @ -59,7 +61,8 @@ $oFourthAdvent = clone $oThirdAdvent; | |||
| $oFourthAdvent->modify("+7 days"); | ||||
| 
 | ||||
| if($oToday <= $oXmasMondayDate && $oToday >= $oFirstAdventDate) { | ||||
|     $sImgPath = $cfgClient[$client]['images']."adventskranz/Extra/"; | ||||
|     $sImgPath = $cfgClient[$client]['path']['htmlpath'].getEffectiveSetting('adventskranz', 'imghtmlpath', "images/adventskranz/".$cfgMod['eak_imgset']); | ||||
|     $bShowCountDown = getEffectiveSetting('adventskranz', 'show_countdown', $cfgMod['show_countdown']); | ||||
|      | ||||
|     if($oToday >= $oFirstAdventDate && $oToday < $oSecondAdvent) { | ||||
|         $sImgPath .= "advent1.gif"; | ||||
|  | @ -71,9 +74,12 @@ if($oToday <= $oXmasMondayDate && $oToday >= $oFirstAdventDate) { | |||
|         $sImgPath .= "advent4.gif"; | ||||
|     }     | ||||
|      | ||||
|     echo '<div id="adventskranz" style="width: 200px; margin: auto; text-align: center;">';  | ||||
|     echo '<img src="'.$sImgPath.'" alt="'.mi18n("Der ewige Adventskranz").'" />'; | ||||
|     echo '<p class="eak_countdown">'; | ||||
|     echo '<div id="adventskranz" style="position: relative; width: 200px; margin: auto; text-align: center;">'."\n";  | ||||
|     echo '<!-- Der Ewige Adventskranz 1.0 fuer Contenido, (c)2011 PHP-Backoffice <www.php-backoffice.de> -->'."\n"; | ||||
|     echo '<img src="'.$sImgPath.'" alt="'.mi18n("Der ewige Adventskranz").'" />'."\n"; | ||||
|      | ||||
|     if($bShowCountDown) { | ||||
|         echo '<p class="eak_countdown">'."\n"; | ||||
|         // countdown till xmas
 | ||||
|         $iDaysTillmas = (int) daysdiff( $oXmasDate->format("Y-m-d"), $oToday->format("Y-m-d")); | ||||
|         if($iDaysTillmas > 1) { | ||||
|  | @ -85,7 +91,12 @@ if($oToday <= $oXmasMondayDate && $oToday >= $oFirstAdventDate) { | |||
|         } else { | ||||
|             echo mi18n("Frohe Weihnacht!"); | ||||
|         } | ||||
|     echo "</p></div>"; | ||||
|         echo "</p>"."\n"; | ||||
|     } | ||||
|     echo '<div style="position: absolute; width:20px; height:20px; top:0; right: 0;"> | ||||
|         <a href="http://www.php-backoffice.de" style="color: #aaa; textdecoration: none; cursor: pointer;" | ||||
|         title="Der Ewige Adventskranz 1.0 fuer Contenido (c)2011 PHP-Backoffice">©</a></div>'; | ||||
|     echo "</div>"."\n"; | ||||
| } | ||||
| 
 | ||||
| // show debug & cleanup
 | ||||
|  |  | |||
		Laden …
	
	Tabelle hinzufügen
		
		In neuem Issue referenzieren