Angefallene kleinere Sachen
modified: homepage/redesign2018/css/cwsvJudo-2018-wkKalender.css modified: homepage/redesign2018/markdownExperiment/admin/newsAdmin.php modified: homepage/redesign2018/markdownExperiment/phpLib/cwsvJudo/wkKalender.php deleted: homepage/redesign2018/markdownExperiment/phpLib/cwsvJudo/wkKalender.php.bak modified: homepage/redesign2018/markdownExperiment/phpLib/videoGallery/videoGallery.tmpl.php new file: homepage/redesign2018/markdownExperiment/src/jsonSd/cwsv.json new file: homepage/redesign2018/markdownExperiment/src/jsonSd/cwsvDojoAsSportsActivityLocation.json new file: homepage/redesign2018/markdownExperiment/src/jsonSd/cwsvJudo.json new file: homepage/redesign2018/markdownExperiment/src/jsonSd/cwsvJudoAsPublisher.json new file: homepage/redesign2018/markdownExperiment/src/jsonSd/cwsvJudoWebsite.json modified: homepage/redesign2018/markdownExperiment/src/md/index.md modified: homepage/redesign2018/markdownExperiment/src/md/trainingszeiten.md modified: homepage/redesign2018/markdownExperiment/zopfli
This commit is contained in:
@@ -100,6 +100,16 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wkInfoBox nav ul li {
|
||||
background-color: #FF8100;
|
||||
display: inline-block;
|
||||
padding: .25em;
|
||||
margin: .25em;
|
||||
box-shadow: 0.1em 0.1em 0.05em grey;
|
||||
border-radius: .5em;
|
||||
}
|
||||
|
||||
|
||||
/*abgeschaut*/
|
||||
.shadow-z-1 {
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
|
||||
|
||||
@@ -60,6 +60,7 @@ return;
|
||||
$defaultPromoImg['src'] = "http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.x256.png";
|
||||
$defaultPromoImg['width'] = "207";
|
||||
$defaultPromoImg['height'] = "256";
|
||||
$defaultPromoImg['alt'] = "cwsvJudo";
|
||||
|
||||
|
||||
/// Auslesen des Newsarrays
|
||||
@@ -88,6 +89,7 @@ return;
|
||||
// @todo Validierung!
|
||||
$newsArticle['datum'] = !empty($_POST['nachrichtenDatum']) ? $_POST['nachrichtenDatum'] : strftime ( "%F" );
|
||||
$newsArticle['betreff'] = !empty($_POST['nachrichtenBetreff']) ? $_POST['nachrichtenBetreff'] : "Kein Betreff!";
|
||||
if(empty($newsArticle['promoImg']['alt'])) $newsArticle['promoImg']['alt'] = $newsArticle['betreff']." (Promobildchen)";
|
||||
$newsArticle['text'] = !empty($_POST['nachrichtenText']) ? $_POST['nachrichtenText'] : "Kein Text!";
|
||||
$newsArticle['autor'] = !empty($_POST['nachrichtenAutor']) ? $_POST['nachrichtenAutor'] : "Kein Autor!";
|
||||
|
||||
|
||||
@@ -294,7 +294,7 @@ function wkTableHtml(){
|
||||
foreach($wkInfo as $wk){
|
||||
$siteData['mainContent'] .=
|
||||
"<h1>Einzelansicht</h1>".
|
||||
"<div class\"wkInfoBox\">".
|
||||
"<div class=\"wkInfoBox\">".
|
||||
"<h2>".$wk['Veranstaltung']."</h2>".
|
||||
"<h3>Veranstaltungsdaten</h3>".
|
||||
"<ul>".
|
||||
@@ -318,6 +318,7 @@ function wkTableHtml(){
|
||||
"</nav>".
|
||||
"</div>".
|
||||
"<hr />";
|
||||
// echo(wkInfoBoxHtml($wk));
|
||||
}
|
||||
}
|
||||
else{
|
||||
@@ -407,4 +408,56 @@ function wkTableHtml(){
|
||||
echo( $siteData['mainContent'] );
|
||||
return;
|
||||
}
|
||||
|
||||
/// Eine Box mit allen Informationen/Links eines Wettkampfes
|
||||
function wkInfoBoxHtml($aWk){
|
||||
//var_dump($aWk);
|
||||
if(empty($aWk)) return null;
|
||||
$wkInfoBoxHtml = "";
|
||||
|
||||
$wkInfoBoxHtml .=
|
||||
"<div class=\"wkInfoBox\">".
|
||||
"<h1>Einzelansicht ".$aWk['Veranstaltung']."</h1>".
|
||||
"<h2>Veranstaltungsdaten</h2>".
|
||||
"<ul>".
|
||||
"<li>Datum: <time datetime=".$aWk['Datum'].">".strftime("%a, %d. %B %Y", strtotime($aWk['Datum']))."</time></li>".
|
||||
"<li>Altersklassen: ".$aWk['Altersklassen']."</li>".
|
||||
"<li>Ort: <a href=\"".$aWk['Routenplaner']."\">".$aWk['Ort']."</a></li>".
|
||||
"</ul>".
|
||||
"<h2>Links zur Veranstaltung</h2>".
|
||||
"<nav>".
|
||||
"<ul>".
|
||||
"<li><a href =\"".$aWk['Ausschreibung']."\"><div>Link zur Ausschreibung</div></a></li>".
|
||||
"<li><a href =\"".$aWk['Routenplaner'] ."\"><div>Link zum Routenplaner</div></a></li>";
|
||||
(
|
||||
(date("Y-m-d")<$aWk['Datum'])
|
||||
?("<li><a href =\"/ressourcen/phpLib/calendar.php?wkID=".$wk['lfdeNr']."\"><div>Termin in Kalender übernehmen</div></a></li>")
|
||||
:("")
|
||||
);
|
||||
$wkGals = getGal(getCwsvJudoDbConn(), array( 'wkId'=>$aWk['lfdeNr']));
|
||||
if( !empty($wkGals) ){
|
||||
foreach($wkGals as $wkGal){
|
||||
$wkInfoBoxHtml .=
|
||||
"<li><a href=\"".$wkGal['url']."\">";
|
||||
switch( $wkGal['typ'] ){
|
||||
case "Videos":
|
||||
$wkInfoBoxHtml .=
|
||||
"<img width=48 height=48 src=\"/ressourcen/graphiken/icons/filmrolle-grau.svg\" alt=\"Videos\"/>";
|
||||
break;
|
||||
case "Bilder":
|
||||
$wkInfoBoxHtml .=
|
||||
"<img width=48 height=48 src=\"/ressourcen/graphiken/icons/kamera-grau.svg\" alt=\"Bilder\"/>";
|
||||
break;
|
||||
default:
|
||||
$wkInfoBoxHtml .=
|
||||
$wkGal['typ']."galerie";
|
||||
}
|
||||
$wkInfoBoxHtml .=
|
||||
"</a></li>";
|
||||
}
|
||||
}
|
||||
$wkInfoBoxHtml .= "</ul></nav></div>";
|
||||
return $wkInfoBoxHtml;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,323 +0,0 @@
|
||||
<?php
|
||||
|
||||
/// Abfrage der Daten eines Wettkampfes via ID
|
||||
/// Da über den primary key abgefragt wird, erfolgt keine Kontrolle, ob nur ein Ergebnis geliefert wurde
|
||||
function getWkData($anMysqlConn, $anWkId){
|
||||
$query = sprintf(
|
||||
"SELECT * FROM wettkampfkalender WHERE lfdeNr='%s';",
|
||||
$anMysqlConn->real_escape_string($anWkId)
|
||||
);
|
||||
$results = $anMysqlConn->query($query);
|
||||
if( !$results ) die("ERR: Fehler bei Datenbankabfrage (".$query.")!\n");
|
||||
$ret = $results->fetch_assoc();
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/// Einen Gallerie per ID abfragen
|
||||
///
|
||||
/// Der Rückgabewert sollte vor Verwendung (und zur Fehlerbehandlung)
|
||||
/// auf NULL und/oder leeres Array getestet werden.
|
||||
/// Der Zeichensatz wird von "ISO-8859-1" auf "UTF-8" gesetzt
|
||||
/// @aMysqlConn
|
||||
/// mySql-Datenbankverbindung via PDO
|
||||
/// @optionsArray
|
||||
/// dbCharset - Zeichensatz der Datenbank
|
||||
/// outCharset - Ausgabezeichensatz in den konvertiert werden soll
|
||||
/// @return Array von Galleriedaten im Erfolsfalle (evtl. aber leer, wenn in der Datenbank keine entsprechenden Nachrichten gefunden wurden), sonst NULL
|
||||
function getGal($aMysqlConn, $optionsArray = array("dbCharset" => "ISO-8859-1", "outCharset" => "UTF-8", "limit" => "1", "galId" => "0", "wkId"=>"0")){
|
||||
if(!$aMysqlConn) return NULL;
|
||||
|
||||
if( empty($optionsArray['dbCharset']) ) $optionsArray['dbCharset'] = "ISO-8859-1";
|
||||
if( empty($optionsArray['outCharset']) ) $optionsArray['outCharset'] = "UTF-8";
|
||||
|
||||
if( !is_positive_integer($optionsArray['limit']) ) $optionsArray['limit'] = "1";
|
||||
|
||||
$ret = array();
|
||||
|
||||
if( is_positive_integer($optionsArray['wkId']) ){
|
||||
// datenbank.tabelle könnte noch vaiabel gestaltet werden
|
||||
$pdoStatementForQuerryingGalById = $aMysqlConn->prepare(
|
||||
"SELECT * FROM cwsvjudo.wkGalerien WHERE wkGalerien.datum <= (SELECT wkGalerien.datum FROM wkGalerien WHERE wkGalerien.wkId = :wkId ) ORDER BY wkGalerien.datum DESC LIMIT :limit OFFSET 0;"
|
||||
);
|
||||
$pdoStatementForQuerryingGalById->bindParam(':limit', intval($optionsArray['limit']), PDO::PARAM_INT);
|
||||
$pdoStatementForQuerryingGalById->bindParam(':wkId', intval($optionsArray['wkId']), PDO::PARAM_INT);
|
||||
$pdoStatementForQuerryingGalById->execute();
|
||||
$ret = $pdoStatementForQuerryingGalById->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
else{
|
||||
$pdoStatementForQuerryingGalById = $aMysqlConn->prepare(
|
||||
"SELECT * FROM wkGalerien ORDER BY datum DESC, id DESC LIMIT :limit;"
|
||||
);
|
||||
$pdoStatementForQuerryingGalById->bindParam(':limit', intval($optionsArray['limit']), PDO::PARAM_INT);
|
||||
$pdoStatementForQuerryingGalById->execute();
|
||||
$ret = $pdoStatementForQuerryingGalById->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
// Zeichensatzkonvertierung
|
||||
foreach($ret as &$entry){
|
||||
array_walk(
|
||||
$entry,
|
||||
function (&$value, $key, $optionsArray) {
|
||||
$value = iconv($optionsArray['dbCharset'], $optionsArray['outCharset'], $value);
|
||||
},
|
||||
$optionsArray
|
||||
);
|
||||
}
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
// Ausgabe der Wettkampftabelle
|
||||
// @todo: elaborieren
|
||||
function wkTableHtml(){
|
||||
global $cwsvJudoConfig;
|
||||
// Vermutung ist, dass $__GET sowieso (?super?)global
|
||||
// global $__GET
|
||||
global $basePath;
|
||||
//require_once($basePath."/bonus/db.inc");
|
||||
//include_once($basePath."/bonus/db.inc");
|
||||
|
||||
// Deutsches Datumsformat
|
||||
setlocale(LC_ALL, 'de_DE');
|
||||
|
||||
$message = array();
|
||||
|
||||
if(is_positive_integer($_GET['wkId'])){
|
||||
// $sqlConn = @new mysqli($db_server, $db_user, $db_password, $db_name);
|
||||
$sqlConn = @new mysqli(
|
||||
$cwsvJudoConfig["db"]["host"],
|
||||
$cwsvJudoConfig["db"]["user"],
|
||||
$cwsvJudoConfig["db"]["password"],
|
||||
$cwsvJudoConfig["db"]["name"]
|
||||
);
|
||||
if ($sqlConn->connect_error) {
|
||||
$message['error'] .= "Datenbankverbindung fehlgeschlagen: " . $sqlConn->connect_error . "<br />";
|
||||
}
|
||||
else{
|
||||
$wkData = getWkData($sqlConn, $_GET["wkId"]);
|
||||
if( empty($wkData) ) $message['error'] .= "Fehler: WettkampfId ".$_GET['wkId']." nicht gefunden!<br />";
|
||||
}
|
||||
}
|
||||
// else $message['error'] .= "Fehler: wkId ist kein pos. Int (".$_GET['wkId'].")<br />";
|
||||
|
||||
if(!empty($message['error']))
|
||||
echo( "<div class=\"messageBox\">".$message['error']."</div>" );
|
||||
|
||||
if( !empty($wkData) ){
|
||||
echo( "<h1>Wettkampfdaten ".mb_convert_encoding($wkData['Veranstaltung'], 'UTF-8', 'ISO-8859-1')."</h1>" );
|
||||
|
||||
echo( "<ul>" );
|
||||
echo( "<li>Datum: ".$wkData['Datum']."</li>" );
|
||||
echo( "<li>AK: ".mb_convert_encoding($wkData['Altersklassen'], 'UTF-8', 'ISO-8859-1')."</li>" );
|
||||
echo( "<li>Ort: ".mb_convert_encoding($wkData['Ort'], 'UTF-8', 'ISO-8859-1')."</li>" );
|
||||
echo( "<li><a href=\"".$wkData['Ausschreibung']."\">Ausschreibung</a></li>" );
|
||||
echo( "<li><a href=\"".$wkData['Routenplaner']."\">Routenplaner</a></li>" );
|
||||
echo( "<li>Galerie: ".$wkData['galleryLink']."</li>" );
|
||||
echo( "<li>PromoPic: ".$wkData['promoPic']."</li>" );
|
||||
echo( "</ul>" );
|
||||
}
|
||||
|
||||
try{
|
||||
$db_connection = new PDO('mysql:host='.$db_server.';dbname='.$db_name, $db_user, $db_password);
|
||||
|
||||
// mögliche Werte für das jahr herausfinden
|
||||
$jahre = array();
|
||||
$query = "SELECT DISTINCT DATE_FORMAT( Datum, '%Y') FROM cwsvjudo.wettkampfkalender WHERE 1 ORDER BY DATE_FORMAT( Datum, '%Y' ) DESC";
|
||||
$ergebnis = $db_connection->query($query);
|
||||
foreach($ergebnis as $row){
|
||||
array_push($jahre, $row["DATE_FORMAT( Datum, '%Y')"]);
|
||||
}
|
||||
// ist das übergebene jahr ein gültiges?
|
||||
$jahr = $_GET["jahr"];
|
||||
if($jahr){
|
||||
if(in_array($jahr, $jahre)){
|
||||
$minDate = $jahr."-01-01";
|
||||
$maxDate = $jahr."-12-31";
|
||||
|
||||
echo( "<h1>Wettkampfkalender ".$jahr."</h1>" );
|
||||
}
|
||||
else{
|
||||
echo "Keine Wettkämpfe für das Jahr".$jahr." gefunden!";
|
||||
// die();
|
||||
}
|
||||
}
|
||||
else{
|
||||
$minDate = date("Y-m-d", time());
|
||||
$maxDate = "";
|
||||
|
||||
echo( "<h1>Kommende Wettkämpfe</h1>" );
|
||||
}
|
||||
|
||||
$query="SELECT Datum,Veranstaltung,Ausschreibung,Ort,Routenplaner,Altersklassen,lfdeNr FROM wettkampfkalender WHERE Datum >= \"".$minDate."\" ORDER BY Datum ASC";
|
||||
if($maxDate){
|
||||
$query="SELECT Datum,Veranstaltung,Ausschreibung,Ort,Routenplaner,Altersklassen,lfdeNr FROM wettkampfkalender WHERE Datum >= \"".$minDate."\" AND Datum <= \"".$maxDate."\" ORDER BY Datum ASC";
|
||||
}
|
||||
$ergebnis = $db_connection->query($query);
|
||||
|
||||
echo( "<table class=\"wkKalender\">");
|
||||
echo( "<thead><tr><th>Datum</th><th>Veranstaltung</th><th>Ort</th><th>Altersklasse(n)</th><th>iCal</th></tr></thead>" );
|
||||
echo( "<tbody>" );
|
||||
|
||||
$ergebnis = $db_connection->query($query);
|
||||
|
||||
// echo( "Debug: " . gettype($ergebnis) . " " . count($ergebnis) . "\n" );
|
||||
foreach($ergebnis as $wk){
|
||||
echo( "<tr><script type=\"application/ld+json\">".
|
||||
"{".
|
||||
"\"@context\": \"http://schema.org\",".
|
||||
"\"@type\": \"Event\",".
|
||||
"\"name\": \"".mb_convert_encoding($wk['Veranstaltung'], 'UTF-8', 'ISO-8859-1')."\",".
|
||||
"\"startDate\": \"".mb_convert_encoding($wk['Datum'], 'UTF-8', 'ISO-8859-1')."\",".
|
||||
"\"endDate\": \"".mb_convert_encoding($wk['Datum'], 'UTF-8', 'ISO-8859-1')."\",".
|
||||
"\"url\": \"http://cwsvjudo.bplaced.net".mb_convert_encoding($wk['Ausschreibung'], 'UTF-8', 'ISO-8859-1')."\",".
|
||||
"\"description\": \"Judo-Wettkampf der Altersklasse(n) ".mb_convert_encoding($wk['Altersklassen'], 'UTF-8', 'ISO-8859-1')."\",".
|
||||
"\"location\": {".
|
||||
"\"@type\": \"Place\",".
|
||||
"\"name\": \"".mb_convert_encoding($wk['Ort'], 'UTF-8', 'ISO-8859-1')."\",".
|
||||
"\"address\": {".
|
||||
"\"@type\": \"PostalAddress\",".
|
||||
"\"addressLocality\": \"".mb_convert_encoding($wk['Ort'], 'UTF-8', 'ISO-8859-1')."\"".
|
||||
"}".
|
||||
"}".
|
||||
"}".
|
||||
"</script>"
|
||||
);
|
||||
|
||||
// schlechter Hack solange die Browser nicht von selbst ordentlich trennen
|
||||
$wk['Veranstaltung'] =
|
||||
str_replace("meisterschaft", "­meisterschaft", $wk['Veranstaltung']);
|
||||
$wk['Veranstaltung'] =
|
||||
str_replace("turnier", "­turnier", $wk['Veranstaltung']);
|
||||
$wk['Veranstaltung'] =
|
||||
str_replace("randori", "­randori", $wk['Veranstaltung']);
|
||||
|
||||
echo(
|
||||
"<td class=\"noWrap\">".
|
||||
"<time datetime=".mb_convert_encoding($wk['Datum'], 'UTF-8', 'ISO-8859-1')."\">".strftime("<nobr>%Y-%m-%d</nobr> (%a)", strtotime($wk['Datum']) )."</time>".
|
||||
"</td>".
|
||||
"<td class=\"hyphenate\">".
|
||||
"<a title=\"Ausschreibung ".mb_convert_encoding($wk['Veranstaltung'], 'UTF-8', 'ISO-8859-1')."\" href=\"".mb_convert_encoding($wk['Ausschreibung'], 'UTF-8', 'ISO-8859-1')."\"><span property=\"name\">".mb_convert_encoding($wk['Veranstaltung'], 'UTF-8', 'ISO-8859-1')."</span></a>".
|
||||
"</td>".
|
||||
"<td>".
|
||||
"<a title=\"Wegbeschreibung ".mb_convert_encoding($wk['Veranstaltung'], 'UTF-8', 'ISO-8859-1')."\" href=\"".$wk['Routenplaner']."\"><span>".mb_convert_encoding($wk['Ort'], 'UTF-8', 'ISO-8859-1')."</span></a>".
|
||||
"</td>".
|
||||
"<td>".mb_convert_encoding($wk['Altersklassen'], 'UTF-8', 'ISO-8859-1')."</td>".
|
||||
"<td>".
|
||||
"<a title=\"Termin für ".mb_convert_encoding($wk['Veranstaltung'], 'UTF-8', 'ISO-8859-1')." in Kalender übernehmen\" href=\"/ressourcen/phpLib/calendar.php?wkID=".$wk['lfdeNr']."\">iCal</a>".
|
||||
"</td>".
|
||||
"</tr>" );
|
||||
}
|
||||
echo(
|
||||
"</tbody>".
|
||||
"<tfoot><tr><th>Datum</th><th>Veranstaltung</th><th>Ort</th><th>Altersklasse(n)</th><th>iCal</th></tr></tfoot>".
|
||||
"</table>".
|
||||
"<div style=\"font-size:xx-small\">Alle Angaben ohne Gewähr! Fehler und Ergänzungen dürfen gerne gemeldet werden.</div>".
|
||||
"<a href=\"/downloads/Ausschreibungen/\">Link zum Archiv mit allen Ausschreibungen</a>." );
|
||||
/*
|
||||
<!--Ende dynamische Wettkampfliste-->
|
||||
<hr />
|
||||
<div class="wkSelektor">
|
||||
Im folgendem kann man sich mehrere Wettkampftermine in einer <a href="https://de.wikipedia.org/wiki/ICalendar">ICalendar</a>-Datei zusammenstellen. Zum An-/Abwählen bei gedrückter Strg-Taste mit der linken Maustaste die jeweiligen Wettkämpfe anklicken.
|
||||
<form action="http://cwsvjudo.bplaced.net/ressourcen/phpLib/wkCustomICal.php" method="POST">
|
||||
<label>Kommende Wettkämpfe:</label>
|
||||
<div><select name="wkIDs[]" multiple="multiple" size="5">
|
||||
<?php
|
||||
$ergebnis = $db_connection->query($query);
|
||||
foreach($ergebnis as $wk){
|
||||
?>
|
||||
<option value="<?php echo $wk['lfdeNr'];?>">
|
||||
<?php echo mb_convert_encoding($wk['Datum'], 'UTF-8', 'ISO-8859-1');?>
|
||||
--
|
||||
<?php echo mb_convert_encoding($wk['Veranstaltung'], 'UTF-8', 'ISO-8859-1');?>
|
||||
(<?php echo mb_convert_encoding($wk['Altersklassen'], 'UTF-8', 'ISO-8859-1');?>)
|
||||
</option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</select></div>
|
||||
<button type="submit">iCal erzeugen</button>
|
||||
</form>
|
||||
<?php
|
||||
// Verbindung wieder schließen
|
||||
$db_connection = NULL;
|
||||
*/
|
||||
}
|
||||
catch(PDOException $db_error){
|
||||
print "Error!: " . $db_error->getMessage() . "<br/>";
|
||||
// die();
|
||||
}
|
||||
/*
|
||||
?>
|
||||
</div>
|
||||
</div> <!-- Ende div id content; des eigentlichen Inhaltes-->
|
||||
<!-- Vertikale Navigationsleiste an der Seite-->
|
||||
<div id="navVerti">
|
||||
<nav><ul>
|
||||
<?php
|
||||
if(!$_GET["jahr"]){
|
||||
echo "<li class=\"activeNav\">kommende Wett­kämpfe</li>";
|
||||
}
|
||||
else{
|
||||
echo "<li><a href=\"/pages/desktop/verein.wettkampfkalender.php\">komm­ende Wett­kämpfe</a></li>";
|
||||
}
|
||||
foreach($jahre as $runner){
|
||||
if($_GET["jahr"] == $runner){
|
||||
echo "<li class=\"activeNav\"> Wett­kämpfe ".$runner."</li>";
|
||||
}
|
||||
else{
|
||||
echo "<li><a href=\"/pages/desktop/verein.wettkampfkalender.php?jahr=".$runner."\">Wett­kämpfe ".$runner."</a></li>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul></nav>
|
||||
<hr />
|
||||
<!--Anfang der Einbindung des Counters; die Zeile 'TEMPLATE;' DARF NICHT EINGERÜCKT SEIN-->
|
||||
<div>
|
||||
<?php
|
||||
$chCounter_template = <<<TEMPLATE
|
||||
<span class="bold">Besucher</span><br/>
|
||||
Online: {V_VISITORS_CURRENTLY_ONLINE}<br/>
|
||||
Heute: {V_VISITORS_TODAY}<br/>
|
||||
Gestern: {V_VISITORS_YESTERDAY}<br/>
|
||||
Tagesrekord: {V_MAX_VISITORS_PER_DAY}<br/>
|
||||
Insgesamt: {V_TOTAL_VISITORS}<br/>
|
||||
<span class="bold">Seitenaufrufe</span><br/>
|
||||
Diese Seite: {V_PAGE_VIEWS_THIS_PAGE}<br/>
|
||||
Insgesamt: {V_TOTAL_PAGE_VIEWS}<br/>
|
||||
TEMPLATE;
|
||||
$chCounter_page_title = "Wettkampfkalender";
|
||||
if($_GET["jahr"]){
|
||||
$chCounter_page_title = "Wettkampfkalender ".$_GET["jahr"];
|
||||
}
|
||||
$chCounter_visible=1;
|
||||
include($_SERVER['DOCUMENT_ROOT']."/expCounter/counter.php");
|
||||
?>
|
||||
<!--Ende der Einbindung des Counters-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include($_SERVER['DOCUMENT_ROOT']."/pages/shared/sponsorList.html.inc");?>
|
||||
|
||||
<footer>
|
||||
<p>
|
||||
<?php
|
||||
if($_GET["jahr"]){
|
||||
?>
|
||||
<a href="http://validator.w3.org/check?uri=http%3A%2F%2Fcwsvjudo.bplaced.net%2Fpages%2Fdesktop%2Fverein.wettkampfkalender.php?jahr=<?php echo $_GET["jahr"]?>">Valid <img src="http://www.w3.org/html/logo/downloads/HTML5_1Color_Black.svg" alt="HTML 5" style="height:1em"></a>
|
||||
<?php
|
||||
}
|
||||
else{
|
||||
?>
|
||||
<a href="http://validator.w3.org/check?uri=http%3A%2F%2Fcwsvjudo.bplaced.net%2Fpages%2Fdesktop%2Fverein.wettkampfkalender.php">Valid <img src="http://www.w3.org/html/logo/downloads/HTML5_1Color_Black.svg" alt="HTML 5" style="height:1em"></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</footer>
|
||||
<link rel="stylesheet" media="screen and (min-width: 641px)" href="/ressourcen/css/cwsvJudo.css" />
|
||||
<link rel="stylesheet" media="screen and (max-width: 640px)" href="/ressourcen/css/cwsvJudoMobile.css" />
|
||||
</body>
|
||||
</html>
|
||||
*/
|
||||
return;
|
||||
}
|
||||
?>
|
||||
@@ -1,7 +1,13 @@
|
||||
<?php
|
||||
// Daten der Datenbank laden
|
||||
// @todo: veraltet
|
||||
require_once($_SERVER['DOCUMENT_ROOT']."/bonus/db.inc");
|
||||
|
||||
$basePath = "/users/cwsvjudo/www";
|
||||
require_once($basePath."/config/phpcount.config.php");
|
||||
require_once($basePath."/config/cwsvJudo.config.php");
|
||||
require_once($basePath."/ressourcen/phpLib/phpcount/phpcount.php");
|
||||
|
||||
$vidList = array();
|
||||
foreach( glob("./webm/*.webm") as $vid){
|
||||
$posterSrc = str_replace( ".webm", ".jpg", str_replace("webm/", "thumbnails/", $vid ) );
|
||||
@@ -28,6 +34,7 @@ return $retVal;
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title><?php echo $wkName?> - Videoalbum</title>
|
||||
<?php PHPCount::AddHit($wkName." - Videoalbum");?>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="description" content="<?php echo descrName($wkName);?>">
|
||||
<meta name="keywords" content="Album, Videos">
|
||||
@@ -44,12 +51,20 @@ return $retVal;
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
|
||||
<link rel="canonical" href="http://cwsvjudo.bplaced.net<?php echo $_SERVER['REQUEST_URI']?>" />
|
||||
<!--
|
||||
<script type="text/javascript" src="/ressourcen/jsLib/jquery-3.1.1.min.js" ></script>
|
||||
-->
|
||||
<script type="text/javascript" src="/ressourcen/blueimpGallery/js/blueimp-gallery.min.js" async=""></script>
|
||||
<!--https://github.com/aFarkas/lazysizes-->
|
||||
<script src="/ressourcen/jsLib/lazysizes.min.js" async=""></script>
|
||||
<style>
|
||||
.no-js img.lazyload {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" src="/ressourcen/jsLib/jquery-3.1.1.min.js"></script>
|
||||
<script type="text/javascript" src="/ressourcen/jsLib/jquery.lazyload.min.js"></script>
|
||||
<style>
|
||||
body{box-sizing: border-box; margin: 0;}
|
||||
.lazy{ display: none;}
|
||||
.smallFont{font-size: small;}
|
||||
.centerText{text-align: center;}
|
||||
.navButton{
|
||||
@@ -70,11 +85,6 @@ return $retVal;
|
||||
</head>
|
||||
<body style="color: #000000; background-color: #FFAE00" >
|
||||
<a title="Galerien der Judoka des Chemnitzer WSV" href="/galerien">Zur Galerieübersicht</a>
|
||||
<?php
|
||||
// require_once( $_SERVER['DOCUMENT_ROOT'].'/ressourcen/phpLib/is_mobile.php');
|
||||
// if(is_mobile()) echo "<a title=\"Galerien der Judoka des Chemnitzer WSV\" href=\"/pages/mobile/verein.wettkampfgalerien.php\">Zur Galerieübersicht</a>";
|
||||
// else echo "<a title=\"Galerien der Judoka des Chemnitzer WSV\" href=\"/pages/desktop/verein.galerien.php\">Zur Galerieübersicht</a>";
|
||||
?>
|
||||
<?php
|
||||
/// Eine kleine Messagebox
|
||||
if( !empty($messages) ){
|
||||
@@ -147,20 +157,15 @@ return $retVal;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
$("img.lazy").show().lazyload();
|
||||
// $("img.lazy").lazyload();
|
||||
});
|
||||
</script>
|
||||
|
||||
<div id="links" class="galImgList">
|
||||
<?php
|
||||
foreach( $vidList as $vidKey => $vidEntry ){
|
||||
echo( "<div>" );
|
||||
echo "<img class=\"lazy\" ".
|
||||
echo "<img class=\"lazyload\" ".
|
||||
"src=\"".$vidEntry['posterSrc']."\"".
|
||||
// "srcset=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"".
|
||||
"id=\"Video".( $vidKey )."\" ".
|
||||
"data-original=\"".( $vidEntry['posterSrc'] )."\" ".
|
||||
"data-src=\"".( $vidEntry['posterSrc'] )."\" ".
|
||||
"width=\"".$vidEntry['width']."\" ".
|
||||
"height=\"".$vidEntry['height']."\" ".
|
||||
"alt=\"[".( $vidKey + 1 )."/".( count($vidList) )."]\" ".
|
||||
@@ -191,8 +196,6 @@ return $retVal;
|
||||
<a class="play-pause"></a>
|
||||
<ol class="indicator"></ol>
|
||||
</div>
|
||||
<script type="text/javascript" src="/ressourcen/blueimpGallery/js/blueimp-gallery.min.js"></script>
|
||||
<script type="text/javascript" src="/ressourcen/blueimpGallery/js/jquery.blueimp-gallery.min.js"></script>
|
||||
<script>
|
||||
function startGalleryShow(startIndex = 0){
|
||||
var videoList = [
|
||||
@@ -228,18 +231,5 @@ return $retVal;
|
||||
// startGalleryShow();
|
||||
</script>
|
||||
<hr/>
|
||||
<!--Beginn der Einbindung des Counters-->
|
||||
<?php
|
||||
$chCounter_template = <<<TEMPLATE
|
||||
<table>
|
||||
<tr>
|
||||
<td>Besucher online: {V_VISITORS_CURRENTLY_ONLINE}</td>
|
||||
<td>Besucher bisher: {V_PAGE_VIEWS_THIS_PAGE}</td>
|
||||
</tr>
|
||||
</table>
|
||||
TEMPLATE;
|
||||
$chCounter_page_title = "Videoalbum ".$wkName;
|
||||
$chCounter_visible=1; include( $_SERVER['DOCUMENT_ROOT'].'/expCounter/counter.php');?>
|
||||
<!--Ende der Einbindung des Counters-->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"@context" : "http://schema.org",
|
||||
"@type" : "SportsClub",
|
||||
"name": "Chemnitzer Freizeit- und Wohngebietssportverein",
|
||||
"url": "http://cwsv-sport.de",
|
||||
"image": "http://img.webme.com/pic/c/cwsv-sport/cwsvLogo.x300.png",
|
||||
"email": "cwsv.sb@web.de",
|
||||
"telephone": "+49 (0) 371 28 23 370",
|
||||
"openingHours": [ "Mo 8:00-16:30", "Di 10:00-17:00", "Mi 8:00-17:00", "Do 10:00-17:00"],
|
||||
"sameAs": [ "https://www.facebook.com/CWSV-eV-149983928431116/" ],
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"addressLocality": "Chemnitz",
|
||||
"addressRegion": "Deutschland",
|
||||
"postalCode": "09119",
|
||||
"streetAddress": "Straße Usti nad Labem 42"
|
||||
},
|
||||
"geo": {
|
||||
"@type": "GeoCoordinates",
|
||||
"latitude": "50.8078784",
|
||||
"longitude": "12.8124339"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "SportsActivityLocation",
|
||||
"name": "Dojo des Chemnitzer WSV",
|
||||
"address":{
|
||||
"@type": "PostalAddress",
|
||||
"name": "Dojo Sportplatz Str. Usti nad Labem 42, 09120 Chemnitz"
|
||||
},
|
||||
"image": "http://img.webme.com/pic/c/cwsv-sport/dsc_1410.jpg"
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"@context" : "http://schema.org",
|
||||
"@type" : "SportsClub",
|
||||
"name": "Chemnitzer Freizeit- und Wohngebietssportverein - Abteilung Judo",
|
||||
"url": "http://cwsvjudo.bplaced.net",
|
||||
"image": "http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogo.x512.png",
|
||||
"email": "cwsv.sb@web.de",
|
||||
"telephone": "+49 (0) 371 28 23 370",
|
||||
"openingHours": [ "Mi 16:00-17:45", "Fr 16:00-17:45", "Fr 17:15-19:15"],
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"addressLocality": "Chemnitz",
|
||||
"addressRegion": "Deutschland",
|
||||
"postalCode": "09119",
|
||||
"streetAddress": "Straße Usti nad Labem 42"
|
||||
},
|
||||
"geo": {
|
||||
"@type": "GeoCoordinates",
|
||||
"latitude": "50.8078784",
|
||||
"longitude": "12.8124339"
|
||||
},
|
||||
"parentOrganization":{
|
||||
"@context" : "http://schema.org",
|
||||
"@type" : "SportsClub",
|
||||
"name": "Chemnitzer Freizeit- und Wohngebietssportverein",
|
||||
"url": "http://cwsv-sport.de",
|
||||
"image": "http://img.webme.com/pic/c/cwsv-sport/cwsvLogo.x300.png",
|
||||
"email": "cwsv.sb@web.de",
|
||||
"telephone": "+49 (0) 371 28 23 370",
|
||||
"contactPoint": [
|
||||
{
|
||||
"@type": "ContactPoint",
|
||||
"telephone": "+49 (0) 371 28 23 370",
|
||||
"contactType": "customer service"
|
||||
}
|
||||
],
|
||||
"openingHours": [ "Mo 8:00-16:30", "Di 10:00-17:00", "Mi 8:00-17:00", "Do 10:00-17:00"],
|
||||
"sameAs": [ "https://www.facebook.com/CWSV-eV-149983928431116/" ],
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"addressLocality": "Chemnitz",
|
||||
"addressRegion": "Deutschland",
|
||||
"postalCode": "09119",
|
||||
"streetAddress": "Straße Usti nad Labem 42"
|
||||
},
|
||||
"geo": {
|
||||
"@type": "GeoCoordinates",
|
||||
"latitude": "50.8078784",
|
||||
"longitude": "12.8124339"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"@context" : "http://schema.org",
|
||||
"@type" : "Organization",
|
||||
"name": "Chemnitzer Freizeit- und Wohngebietssportverein - Abteilung Judo",
|
||||
"url": "http://cwsvjudo.bplaced.net",
|
||||
"image": "http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogo.x512.png",
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
"url": "http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoPublisher.png",
|
||||
"width": 600,
|
||||
"height": 60
|
||||
},
|
||||
"email": "cwsv.sb@web.de",
|
||||
"telephone": "+49 (0) 371 28 23 370",
|
||||
"sameAs": [ "https://www.facebook.com/CWSV-eV-149983928431116/" ],
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"addressLocality": "Chemnitz",
|
||||
"addressRegion": "Deutschland",
|
||||
"postalCode": "09119",
|
||||
"streetAddress": "Straße Usti nad Labem 42"
|
||||
},
|
||||
"parentOrganization":{
|
||||
"@context" : "http://schema.org",
|
||||
"@type" : "SportsClub",
|
||||
"name": "Chemnitzer Freizeit- und Wohngebietssportverein",
|
||||
"url": "http://cwsv-sport.de",
|
||||
"image": "http://img.webme.com/pic/c/cwsv-sport/cwsvLogo.x300.png",
|
||||
"email": "cwsv.sb@web.de",
|
||||
"telephone": "+49 (0) 371 28 23 370",
|
||||
"openingHours": [ "Mo 8:00-16:30", "Di 10:00-17:00", "Mi 8:00-17:00", "Do 10:00-17:00"],
|
||||
"sameAs": [ "https://www.facebook.com/CWSV-eV-149983928431116/" ],
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"addressLocality": "Chemnitz",
|
||||
"addressRegion": "Deutschland",
|
||||
"postalCode": "09119",
|
||||
"streetAddress": "Straße Usti nad Labem 42"
|
||||
},
|
||||
"geo": {
|
||||
"@type": "GeoCoordinates",
|
||||
"latitude": "50.8078784",
|
||||
"longitude": "12.8124339"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"@context": "http://www.schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "Judo im Chemnitzer WSV",
|
||||
"alternateName": "Homepage der Abteilung Judo des Chemnitzer Freizeit- und Wohngebietssportvereines",
|
||||
"url": "http://cwsvjudo.bplaced.net",
|
||||
"image": "http://cwsvjudo.bplaced.net/ressourcen/graphiken/banner/cwsv-judo-logo.png"
|
||||
}
|
||||
@@ -21,8 +21,6 @@ und [Wettkampfterminen][cwsvJudoWettkampfKalender].
|
||||
Ein kleines Wiki bietet [Wissenswertes über Judo][cwsvJudoWiki], wie
|
||||
zum Beispiel das [Programm für die Gürtelprüfungen][cwsvJudoWikiKyu].
|
||||
|
||||
# Die letzten Neuigkeiten
|
||||
|
||||
<?php $options['limit']=6; echoNewsTableHtml( $options );?>
|
||||
|
||||
[cwsvHomepage]: http://www.cwsv-sport.de "Homepage des Chemnitzer Freizeit- und Wohngebietssportvereines"
|
||||
|
||||
@@ -9,6 +9,9 @@ keywords:
|
||||
description: "Wann und wo die Judoka des Chemnitzer Freizeit- und Wohngebietssportvereines trainieren"
|
||||
canonicalLink: "http://cwsvjudo.bplaced.net/trainingszeiten"
|
||||
ampVersionLink: "http://amp.cwsvjudo.bplaced.net/trainingszeiten"
|
||||
jsonSdFiles:
|
||||
- cwsvDojoAsSportsActivityLocation.json
|
||||
- cwsvJudo.json
|
||||
...
|
||||
|
||||
# Judotraining im CWSV
|
||||
|
||||
Submodule homepage/redesign2018/markdownExperiment/zopfli updated: ae43a8b738...f0010d0c13
Reference in New Issue
Block a user