header-xh-01 header-xh-02 header-xh-03 header-xh-04 header-xh-05 header-xh-06 header-xh-07 header-xh-08 header-xh-09 header-xh-10 header-xh-11 header-xh-12 header-xh-13 header-xh-14
Templates für CMSimple_XH von
KRL Software-Development
private, nicht kommerzielle Website
by Karl Richard Lembach

config.php

Die config.php ist die Steuerzentrale der Konfiguration des Templates. Von ihr werden je nach Aufgabe die weiteren Dateien nachgeladen.

Version 3.2.1 Auswahl des Konfigurationspunktes

Wird als Aufgabe - keine Aktion - ausgewählt, dann geht die Konfiguration sozusagen auf Standby.

Dateiname: templates/krl-3col-flex/config/config.php

<?php
/*
* @category Template for CMSimple_XH Version 1.7+
* @package krl-3col-flex
* @version 3.2.1
* @file config.php | Funktionsauswahl der Konfiguration
* @last_modified 05.03.2024
* @author Karl Richard Lembach | https://lembach-cmsimple.de/?Home
* @copyright 2021 - 2024 Karl Richard Lembach <https://lembach-cmsimple.de>
* @license https://www.gnu.org/licenses/gpl-3.0 GNU GPLv3
* @link https://template.lembach-cmsimple.de/?Template-krl-3col-flex
* @contact https://lembach-cmsimple.de/?Home/Kontakt-Formular | webmaster@lembach-cmsimple.de

Dieses Programm ist freie Software.
Sie können es unter den Bedingungen der GNU General Public License, wie von der Free Software Foundation veröffentlicht,
weitergeben und/oder modifizieren, entweder gemäß Version 3 der Lizenz oder (nach Ihrer Option) jeder späteren Version.

Die Veröffentlichung dieses Programms erfolgt in der Hoffnung, daß es Ihnen von Nutzen sein wird, aber OHNE IRGENDEINE GARANTIE,
sogar ohne die implizite Garantie der MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. Details finden Sie in der GNU General Public License.

Sie sollten ein Exemplar der GNU General Public License zusammen mit diesem Programm erhalten haben. Falls nicht, siehe <https://www.gnu.org/licenses/gpl-3.0>.
Deutsche Übersetzung (kein rechtskräftiger Ersatz des Originals): http://www.gnu.de/documents/gpl.de.html

geplante Funktionen:
usermodify.css umstellen auf usermodify.css.php (in template.htm includiert) und dort über die config.php - stylemodify.php konfigurierte Styleabwandlungen dynamisch erzeugte Styles vorausladen
HTML-Snippets als Kopiervorlage
Default-Slideshow und Bilder von Online-Server
Hintergrundbild, das sich ausblendet, wenn gescrollt wird
*/

// Ausgabe der zusätzlichen Styles für die config.php an den Browser

include $pth['folder']['template'].'config/config.css.php';

// Defaultwert für $aktionswahl setzen

if (!isset($aktionswahl)) {
$aktionswahl = $text["noAktion"];
}

// Rahmen um das Konfigurations-Tableau

echo '<div class="configframe">'."\n";

actionselect:

if ($aktionswahl <> $text["noAktion"]) {

// Ausgabe eines Info-Punktes (i vor blauem Hintergrund, mit Schatten) rechts

echo InfoPunkt("info31");

// Drop-down-select

echo '<form method="post">
<fieldset class="conf1">
<legend class="shadow">'.$text["actionselect"].'</legend>';
echo '<select class="aktionswahl" name="aktionswahl" onmouseover="this.size=this.length;" onmouseout="this.size=1;" onclick="submit()">';
if ($aktionswahl <> $text["noAktion"]) {
echo '<option>'.$text["noAktion"].'</option>';
} else {
echo '<option selected>'.$text["noAktion"].'</option>';
}
if ($aktionswahl <> $text["versioncheck"]) {
echo '<option>'.$text["versioncheck"].'</option>';
} else {
echo '<option selected>'.$text["versioncheck"].'</option>';
}
if ($aktionswahl <> $text["switches"]) {
echo '<option>'.$text["switches"].'</option>';
} else {
echo '<option selected>'.$text["switches"].'</option>';
}
if ($aktionswahl <> $text["footer_links"]) {
echo '<option>'.$text["footer_links"].'</option>';
} else {
echo '<option selected>'.$text["footer_links"].'</option>';
}
if ($aktionswahl <> $text["columnwidth"]) {
echo '<option>'.$text["columnwidth"].'</option>';
} else {
echo '<option selected>'.$text["columnwidth"].'</option>';
}
if ($aktionswahl <> $text["maincolor"]) {
echo '<option>'.$text["maincolor"].'</option>';
} else {
echo '<option selected>'.$text["maincolor"].'</option>';
}
if ($aktionswahl <> $text["menucolor"]) {
echo '<option>'.$text["menucolor"].'</option>';
} else {
echo '<option selected>'.$text["menucolor"].'</option>';
}
if ($aktionswahl <> $text["colordefinition"]) {
echo '<option> '.$text["colordefinition"].'</option>';
} else {
echo '<option selected> '.$text["colordefinition"].'</option>';
}
if ($aktionswahl <> $text["headershiftimage"]) {
echo '<option>'.$text["headershiftimage"].'</option>';
} else {
echo '<option selected>'.$text["headershiftimage"].'</option>';
}
if ($aktionswahl <> $text["headercrossfade"]) {
echo '<option>'.$text["headercrossfade"].'</option>';
} else {
echo '<option selected>'.$text["headercrossfade"].'</option>';
}
if ($aktionswahl <> $text["headerslideshow"]) {
echo '<option>'.$text["headerslideshow"].'</option>';
} else {
echo '<option selected>'.$text["headerslideshow"].'</option>';
}
if ($aktionswahl <> $text["headerslideshowbelow"]) {
echo '<option>'.$text["headerslideshowbelow"].'</option>';
} else {
echo '<option selected>'.$text["headerslideshowbelow"].'</option>';
}
if ($aktionswahl <> $text["translation"]) {
echo '<option>' . $text["translation"] . '</option>';
} else {
echo '<option selected>'.$text["translation"].'</option>';
}
if ($aktionswahl <> $text["favicon_definition"]) {
echo '<option>' . $text["favicon_definition"] . '</option>';
} else {
echo '<option selected>' . $text["favicon_definition"] . '</option>';
}
echo '</select>
</fieldset>
</form>
<div class="krl_copyright">'.$text["krl_copyright"].'</div>';
}
if ($aktionswahl == $text["noAktion"]) {
echo '<form method="post">
<input name="aktionswahl" type="hidden" value="start" />
<button type="submit" id="startconfiguration">'.$text["actionmenuactivation"].'</button>
';
// Wenn das Plugin crazystat installiert ist, wird der Link zur Auswertung ausgegeben.
if (function_exists('crazystat')) {
echo '<span class="crazystatlink"><a href="/plugins/crazystat/stat/src/index.php" target="_blank" rel="noopener">CrazyStat - Auswertung</a></span>';
}
echo '<span class="krl_copyright2">'.$text["krl_copyright"].'</span>
</form>';
}

echo '
</div>
';

// Programmverzweigung zu dem gewählten Aktivitätenbereich, wenn die Aktionswahl einen Wert zugewiesen bekommen hat.

if (isset($aktionswahl)) {
switch ($aktionswahl) {
case $text["noAktion"]:
break;
case $text["versioncheck"]:
include $pth['folder']['template'].'config/versioncheck.php';
break;
case $text["switches"]:
include $pth['folder']['template'].'config/switchsetting.php';
break;
case $text["footer_links"]:
include $pth['folder']['template'].'config/FooterTextDefinition.php';
break;
case $text["columnwidth"]:
include $pth['folder']['template'].'config/columnwidth.php';
break;
case $text["maincolor"]:
include $pth['folder']['template'].'config/maincolor.php';
break;
case $text["menucolor"]:
include $pth['folder']['template'].'config/menucolor.php';
break;
case $text["colordefinition"]:
include $pth['folder']['template'] . 'config/colordefinitions_modify.php';
break;
case $text["headershiftimage"]:
include $pth['folder']['template'].'config/imageshift.php';
break;
case $text["headerslideshow"]:
include $pth['folder']['template'].'config/slideshow.php';
break;
case $text["headerslideshowbelow"]:
include $pth['folder']['template'].'config/SlideshowBelowHeader.php';
break;
case $text["headercrossfade"]:
include $pth['folder']['template'] . 'config/crossfade.php';
break;
case $text["translation"]:
include $pth['folder']['template']. 'config/translation.php';
break;
case $text["favicon_definition"]:
include $pth['folder']['template'] . 'config/favicon_def.php';
break;
}
}

// Funktion Infopunkt ausgeben | Aufruf z.B.: echo InfoPunkt("infoheadershow10");
// Ausgabe eines Info-Punktes (i vor blauem Hintergrund, mit Schatten) rechts

function InfoPunkt($textindex) {
global $text;
$infotext = '<div class="infohelp" data-tip="'.$text[$textindex].'"><span class="fa fa-info-circle"></span></div>';
return $infotext;
}
?>

| Seitenanfang |