Merge branch 'master' into coronaZeit
This commit is contained in:
@@ -11,11 +11,11 @@ configFiles = $(wildcard config/*.php)
|
||||
uploadMarker = \
|
||||
$(patsubst build/%.php, build/.uploadMarker/%.php, $(phpFiles)) \
|
||||
$(patsubst build/amp/%.php, build/.uploadMarker/amp/%.php, $(ampFiles)) \
|
||||
$(patsubst phpLib/%.php, build/.uploadMarker/phpLib/%.php, $(phpLibFiles)) \
|
||||
$(patsubst config/%.php, build/.uploadMarker/config/%.php, $(configFiles)) \
|
||||
build/.uploadMarker/config/.htaccess \
|
||||
build/.uploadMarker/css/cwsvJudo.css
|
||||
# $(patsubst phpLib/cwsvJudo/%.php, build/.uploadMarker/phpLib/cwsvJudo/%.php, $(phpLibFiles)) \
|
||||
build/.uploadMarker/css/cwsvJudo.css \
|
||||
$(patsubst phpLib/%.php, build/.uploadMarker/phpLib/%.php, $(phpLibFiles)) \
|
||||
#$(patsubst phpLib/cwsvJudo/%.php, build/.uploadMarker/phpLib/cwsvJudo/%.php, $(phpLibFiles)) \
|
||||
|
||||
.PHONY: all
|
||||
all: $(ampFiles) $(phpFiles) build/css/cwsvJudo.css
|
||||
@@ -25,7 +25,6 @@ clean:
|
||||
$(RM) -rf build
|
||||
mkdir -p build
|
||||
|
||||
|
||||
.PHONY: echo
|
||||
echo:
|
||||
@echo "phpFiles:"
|
||||
@@ -39,7 +38,6 @@ echo:
|
||||
@echo "uploadMarker:"
|
||||
@echo $(uploadMarker)
|
||||
|
||||
|
||||
.PHONY: ampTest
|
||||
ampTest: $(ampFiles)
|
||||
|
||||
@@ -56,6 +54,7 @@ build/%.php: src/md/%.md build/yaml/%.yaml pandocTemplate/cwsvJudo.html5.pandocT
|
||||
--standalone \
|
||||
--css="ressourcen/css/cwsvJudo.css" \
|
||||
--template=pandocTemplate/cwsvJudo.html5.pandocTemplate \
|
||||
--to=html \
|
||||
--output=$@ \
|
||||
$< $(word 2,$^)
|
||||
|
||||
@@ -65,6 +64,7 @@ build/amp/%.php: src/md/%.md build/yaml/%.yaml pandocTemplate/cwsvJudo.amp.pando
|
||||
--standalone \
|
||||
--css="ressourcen/css/cwsvJudo.css" \
|
||||
--template=pandocTemplate/cwsvJudo.amp.pandocTemplate \
|
||||
--to=html \
|
||||
--output=$@ \
|
||||
$< $(word 2,$^)
|
||||
# Die auskommentierte Variante fand ich besser, aber der Validator hat ein Problem mit http bei src in img ;)
|
||||
@@ -82,11 +82,6 @@ upload: $(uploadMarker)
|
||||
|
||||
build/.uploadMarker/%.php: build/%.php
|
||||
mkdir -p build/.uploadMarker
|
||||
# curl \
|
||||
# --upload-file $^ \
|
||||
# --user cwsvjudo:Dee4oquu \
|
||||
# ftp://cwsvjudo.square7.net/pages/responsive/$(patsubst build/%.php,%.php,$^) \
|
||||
# --ftp-create-dirs
|
||||
curl \
|
||||
--upload-file $^ \
|
||||
--user cwsvjudo:***REMOVED*** \
|
||||
@@ -97,11 +92,6 @@ build/.uploadMarker/%.php: build/%.php
|
||||
|
||||
build/.uploadMarker/amp/%.php: build/amp/%.php
|
||||
mkdir -p build/.uploadMarker/amp
|
||||
# curl \
|
||||
# --upload-file $^ \
|
||||
# --user cwsvjudo:Dee4oquu \
|
||||
# ftp://cwsvjudo.square7.net/pages/$(patsubst build/amp/%.php,amp/%.php,$^) \
|
||||
# --ftp-create-dirs
|
||||
curl \
|
||||
--upload-file $^ \
|
||||
--user cwsvjudo:***REMOVED*** \
|
||||
@@ -113,11 +103,6 @@ build/.uploadMarker/amp/%.php: build/amp/%.php
|
||||
build/.uploadMarker/phpLib/%.php: phpLib/%.php
|
||||
mkdir -p build/.uploadMarker/phpLib/cwsvJudo
|
||||
mkdir -p build/.uploadMarker/phpLib/phpcount
|
||||
# curl \
|
||||
# --upload-file $^ \
|
||||
# --user cwsvjudo:Dee4oquu \
|
||||
# ftp://cwsvjudo.square7.net/ressourcen/$(patsubst build/%.php,%.php,$^) \
|
||||
# --ftp-create-dirs
|
||||
curl \
|
||||
--upload-file $^ \
|
||||
--user cwsvjudo:***REMOVED*** \
|
||||
@@ -127,11 +112,6 @@ build/.uploadMarker/phpLib/%.php: phpLib/%.php
|
||||
|
||||
build/.uploadMarker/css/%.css: build/css/%.css
|
||||
mkdir -p build/.uploadMarker/css
|
||||
# curl \
|
||||
# --upload-file $^ \
|
||||
# --user cwsvjudo:Dee4oquu \
|
||||
# ftp://cwsvjudo.square7.net/ressourcen/$(patsubst build/%,%,$^) \
|
||||
# --ftp-create-dirs
|
||||
curl \
|
||||
--upload-file $^ \
|
||||
--user cwsvjudo:***REMOVED*** \
|
||||
@@ -142,11 +122,6 @@ build/.uploadMarker/css/%.css: build/css/%.css
|
||||
|
||||
build/.uploadMarker/config/%: config/%
|
||||
mkdir -p build/.uploadMarker/config
|
||||
curl \
|
||||
--upload-file $^ \
|
||||
--user cwsvjudo:Dee4oquu \
|
||||
ftp://cwsvjudo.square7.net/$(patsubst build/%,%,$^) \
|
||||
--ftp-create-dirs
|
||||
curl \
|
||||
--upload-file $^ \
|
||||
--user cwsvjudo:***REMOVED*** \
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
$basePath = "/users/cwsvjudo/www";
|
||||
|
||||
require_once($basePath."/ressourcen/phpLib/parsedown/Parsedown.php");
|
||||
require_once($basePath."/ressourcen/phpLib/parsedown-extra/ParsedownExtra.php");
|
||||
|
||||
$fileList = glob($basePath."/admin/mdDisplayer/*.md");
|
||||
rsort($fileList);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<title>mdDisplayer</title>
|
||||
<meta name="description" content="mdDisplayer">
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
echo("<ul>");
|
||||
foreach($fileList as $file){
|
||||
echo("<li><a href=\"#".$file."\">".mb_convert_encoding( basename($file), "UTF-8", "ISO-8859-1" )."</a></li>");
|
||||
}
|
||||
echo("</ul>");
|
||||
|
||||
foreach($fileList as $file){
|
||||
echo("<hr /><a name=\"".$file."\"></a>");
|
||||
echo("<div class=\"infoZettel\">" . ParsedownExtra::instance()->text( file_get_contents($file) ) . "</div><hr />");
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -7,5 +7,5 @@ $db_name='cwsvjudo';
|
||||
$phpcountConfig["db"]["host"] = "localhost";
|
||||
$phpcountConfig["db"]["name"] = "cwsvjudo";
|
||||
$phpcountConfig["db"]["user"] = "cwsvjudo";
|
||||
$phpcountConfig["db"]["password"] = "Dee4oquu";
|
||||
$phpcountConfig["db"]["password"] = "***REMOVED***";
|
||||
?>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
$phpcountConfig["db"]["host"] = "localhost";
|
||||
$phpcountConfig["db"]["name"] = "cwsvjudo";
|
||||
$phpcountConfig["db"]["user"] = "cwsvjudo";
|
||||
$phpcountConfig["db"]["password"] = "Dee4oquu";
|
||||
$phpcountConfig["db"]["password"] = "***REMOVED***";
|
||||
|
||||
$phpcountConfig["db"]["hitsTable"] = "phpcount_hits";
|
||||
$phpcountConfig["db"]["nodupesTable"] = "phpcount_nodupes";
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
/// Einbinden der Konfiguration, insbesondere Basisvariablen,
|
||||
/// Einbinden der Konfiguration, insbesondere Basisvariablen,
|
||||
/// relative Pfadangabe
|
||||
/// - jedes Verzeichnis sollte seine eigene haben
|
||||
/// - theoretisch sollte es bereits von der aufrufenden Datei
|
||||
/// - theoretisch sollte es bereits von der aufrufenden Datei
|
||||
/// eingebunden sein
|
||||
require_once("./config.inc.php");
|
||||
// include_once("./config.inc.php");
|
||||
require_once($$basePath."/config/phpcount.config.php");
|
||||
require_once($$basePath."/config/cwsvJudo.config.php");
|
||||
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/miscAssis.php");
|
||||
@@ -15,9 +14,9 @@
|
||||
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/newsTableHtml.php");
|
||||
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/galleryRedirector.php");
|
||||
require_once($$basePath."/ressourcen/phpLib/phpcount/phpcount.php");
|
||||
|
||||
|
||||
galleryRedirector();
|
||||
|
||||
|
||||
$if(phpTitleString)$
|
||||
PHPCount::AddHit($phpTitleString$." (Amp)");?>
|
||||
$else$
|
||||
@@ -39,14 +38,14 @@ $if(keywords)$
|
||||
$endif$
|
||||
$if(phpTitleString)$
|
||||
<title><?php echo( $phpTitleString$ );?></title>
|
||||
$else$
|
||||
$else$$if(title)$
|
||||
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
|
||||
$endif$
|
||||
$endif$$endif$
|
||||
$if(phpDescriptionString)$
|
||||
<meta name="description" content="<?php echo( $phpDescriptionString$ );?>" />
|
||||
$else$
|
||||
$else$$if(description)$
|
||||
<meta name="description" content="$description$" />
|
||||
$endif$
|
||||
$endif$$endif$
|
||||
$if(canonicalLink)$
|
||||
<link rel="canonical" href="$canonicalLink$" />
|
||||
$endif$
|
||||
@@ -87,7 +86,7 @@ $endfor$
|
||||
.hamburger {
|
||||
padding-left: .5em;
|
||||
padding-right: .5em;
|
||||
}
|
||||
}
|
||||
#mainNav > a > span{
|
||||
width: 2em;
|
||||
}
|
||||
@@ -112,7 +111,8 @@ $for(header-includes)$
|
||||
$endfor$
|
||||
<script async src="https://cdn.ampproject.org/v0.js"></script>
|
||||
<script async custom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"></script>
|
||||
<script type='application/ld+json'>
|
||||
<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>
|
||||
<script type='application/ld+json'>
|
||||
{
|
||||
"@context": "http://www.schema.org",
|
||||
"@type": "WebSite",
|
||||
@@ -147,37 +147,36 @@ $endif$
|
||||
<!-- Kopfzeile mit Titel, Promobildern und Breadcrumbs -->
|
||||
<header class="cwsvHeader">
|
||||
<div role="button" on="tap:sidebar1.toggle" tabindex="0" class="hamburger">☰</div>
|
||||
<amp-img layout="responsive"
|
||||
width="200" height="140"
|
||||
title="Judo im Chemnitzer WSV"
|
||||
alt="Judo im Chemnitzer WSV - Promo"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/banner/bannerlogo.1.jpg"
|
||||
<amp-img layout="responsive"
|
||||
width="200" height="140"
|
||||
title="Judo im Chemnitzer WSV"
|
||||
alt="Judo im Chemnitzer WSV - Promo"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/banner/bannerlogo.1.jpg"
|
||||
></amp-img>
|
||||
<span>
|
||||
<span>Judo</span>
|
||||
<span><?php $$zitat = getRandomCite( getCwsvJudoDbConn() ); echo($$zitat['zitat']);?></span>
|
||||
</span>
|
||||
<amp-img layout="responsive"
|
||||
width="64" height="52"
|
||||
<amp-img layout="responsive"
|
||||
width="128" height="104"
|
||||
title="Judo im Chemnitzer WSV"
|
||||
alt="Judo im Chemnitzer WSV - Logo"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.64w.png"
|
||||
srcset="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.128w.png 2x, http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.x256.png 4x"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.128w.png"
|
||||
></amp-img>
|
||||
</header>
|
||||
|
||||
$if(mainNav)$
|
||||
<nav id="mainNav">
|
||||
$for(mainNav)$
|
||||
<a href="$mainNav.url$"
|
||||
<a href="$mainNav.url$"
|
||||
$if(mainNav.caption)$title="$mainNav.caption$" $endif$
|
||||
$if(mainNav.active)$class="activeNav" $endif$
|
||||
>
|
||||
$if(mainNav.icon)$
|
||||
<span><amp-img layout="responsive"
|
||||
<span><amp-img layout="responsive"
|
||||
src="$if(mainNav.icon.src)$$mainNav.icon.src$$else$$mainNav.icon$$endif$"
|
||||
$if(mainNav.caption)$
|
||||
alt="$mainNav.caption$"
|
||||
alt="$mainNav.caption$"
|
||||
$else$
|
||||
$if(mainNav.icon.alt)$
|
||||
alt="$mainNav.icon.alt$"
|
||||
@@ -232,35 +231,13 @@ $endif$
|
||||
$body$
|
||||
</main>
|
||||
|
||||
<aside class="sideNotes">
|
||||
Die Judoka des CWSV bedanken sich bei ihren Förderern:
|
||||
<ul class="sponsorList">
|
||||
<li>
|
||||
Familie Mögel für den unermüdlichen Einsatz als Fans, Fahrer, Fotograf und Vertretung
|
||||
</li>
|
||||
<li>
|
||||
Druck + Werbestudio Eckart & Partner
|
||||
<div><a title="Druck + Werbestudio Eckart & Partner" href="http://www.dws-eckart.de">
|
||||
<amp-img layout="responsive" width="300" height="107" src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/sponsoren/EckartUndPartner.png" title="Druck + Werbestudio Eckart & Partner GmbH" alt="Druck + Werbestudio Eckart & Partner Logo"></amp-img>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
Der CWSV ist anerkannter Stützpunktverein des Bundesprogrammes „Integration durch Sport”
|
||||
<div>
|
||||
<a href="https://integration.dosb.de/" title="Integration durch Sport">
|
||||
<amp-img layout="responsive" src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/IntegrationDurchSport2018.250x.png" title="Integration durch Sport - Anerkannter Stützpunktverein" alt="Integration durch Sport - Anerkannter Stützpunktverein" width="250" height="416"></amp-img>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
<aside class="sideNotes"><?php include_once( $$basePath."/pages/shared/sponsorlist.inc.amp" );?></aside>
|
||||
|
||||
<footer class="footerBar">
|
||||
<a class="touchLink" title="Möglichkeiten mit dem Chemnitzer Freizeit- und Wohngebietssportverein in Kontakt zu treten" href="/kontakt" >Kontakt</a>
|
||||
<a class="touchLink" title="Impressum" href="/impressum" >Impressum</a>
|
||||
<a class="touchLink" title="Datenschutz" href="/datenschutz" >Datenschutz</a>
|
||||
<a class="touchLink"
|
||||
<a class="touchLink"
|
||||
title="News-Feed Abonnieren"
|
||||
href="http://cwsvjudo.bplaced.net/rss"
|
||||
>Newsfeed
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
/// Einbinden der Konfiguration, insbesondere Basisvariablen,
|
||||
/// Einbinden der Konfiguration, insbesondere Basisvariablen,
|
||||
/// relative Pfadangabe
|
||||
/// - jedes Verzeichnis sollte seine eigene haben
|
||||
/// - theoretisch sollte es bereits von der aufrufenden Datei
|
||||
/// - theoretisch sollte es bereits von der aufrufenden Datei
|
||||
/// eingebunden sein
|
||||
require_once("./config.inc.php");
|
||||
require_once($$basePath."/config/phpcount.config.php");
|
||||
@@ -12,16 +12,18 @@
|
||||
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/wkKalender.php");
|
||||
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/galTable.php");
|
||||
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/newsTableHtml.php");
|
||||
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/newsLib.php");
|
||||
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/galleryRedirector.php");
|
||||
require_once($$basePath."/ressourcen/phpLib/phpcount/phpcount.php");
|
||||
|
||||
|
||||
galleryRedirector();
|
||||
|
||||
|
||||
$if(phpTitleString)$
|
||||
PHPCount::AddHit($phpTitleString$);?>
|
||||
$else$
|
||||
PHPCount::AddHit("$title$");?>
|
||||
$endif$
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html$if(lang)$ lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
|
||||
<head>
|
||||
@@ -36,9 +38,6 @@ $endif$
|
||||
$if(keywords)$
|
||||
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
|
||||
$endif$
|
||||
$if(description)$
|
||||
<meta name="description" content="$description$" />
|
||||
$endif$
|
||||
$if(canonicalLink)$
|
||||
<link rel="canonical" href="$canonicalLink$" />
|
||||
$endif$
|
||||
@@ -47,14 +46,14 @@ $if(ampVersionLink)$
|
||||
$endif$
|
||||
$if(phpTitleString)$
|
||||
<title><?php echo( $phpTitleString$ );?></title>
|
||||
$else$
|
||||
$else$$if(title)$
|
||||
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
|
||||
$endif$
|
||||
$endif$$endif$
|
||||
$if(phpDescriptionString)$
|
||||
<meta name="description" content="<?php echo( $phpDescriptionString$ );?>" />
|
||||
$else$
|
||||
$else$$if(description)$
|
||||
<meta name="description" content="$description$" />
|
||||
$endif$
|
||||
$endif$$endif$
|
||||
$if(css)$
|
||||
<style>
|
||||
$for(css)$
|
||||
@@ -79,7 +78,7 @@ $endfor$
|
||||
$if(math)$
|
||||
$math$
|
||||
$endif$
|
||||
<script type='application/ld+json'>
|
||||
<script type='application/ld+json'>
|
||||
{
|
||||
"@context": "http://www.schema.org",
|
||||
"@type": "WebSite",
|
||||
@@ -118,36 +117,36 @@ $endfor$
|
||||
<body>
|
||||
<!-- Kopfzeile mit Titel, Promobildern und Breadcrumbs -->
|
||||
<header class="cwsvHeader">
|
||||
<img
|
||||
width="200" height="140"
|
||||
title="Judo im Chemnitzer WSV" alt="Judo im Chemnitzer WSV - Promo"
|
||||
<img
|
||||
width="200" height="140"
|
||||
title="Judo im Chemnitzer WSV" alt="Judo im Chemnitzer WSV - Promo"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/banner/bannerlogo.1.jpg"
|
||||
/>
|
||||
<span>
|
||||
<span>Judo</span>
|
||||
<span><?php $$zitat = getRandomCite( getCwsvJudoDbConn() ); echo($$zitat['zitat']);?></span>
|
||||
</span>
|
||||
<img
|
||||
width="64" height="52"
|
||||
<img
|
||||
width="128" height="104"
|
||||
title="Judo im Chemnitzer WSV"
|
||||
alt="Judo im Chemnitzer WSV - Logo"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.64w.png"
|
||||
srcset="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.128w.png 2x, http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.x256.png 4x"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.128w.png"
|
||||
srcset="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.x256.png 2x"
|
||||
/>
|
||||
</header>
|
||||
|
||||
$if(mainNav)$
|
||||
<nav id="mainNav">
|
||||
$for(mainNav)$
|
||||
<a href="$mainNav.url$"
|
||||
<a href="$mainNav.url$"
|
||||
$if(mainNav.caption)$title="$mainNav.caption$" $endif$
|
||||
$if(mainNav.active)$class="activeNav" $endif$
|
||||
>
|
||||
$if(mainNav.icon)$
|
||||
<span><img
|
||||
<span><img
|
||||
src="$if(mainNav.icon.src)$$mainNav.icon.src$$else$$mainNav.icon$$endif$"
|
||||
$if(mainNav.caption)$
|
||||
alt="$mainNav.caption$"
|
||||
alt="$mainNav.caption$"
|
||||
$else$
|
||||
$if(mainNav.icon.alt)$
|
||||
alt="$mainNav.icon.alt$"
|
||||
@@ -177,15 +176,15 @@ $endif$
|
||||
$if(subNav)$
|
||||
<nav class="subNav">
|
||||
$for(subNav)$
|
||||
<a href="$subNav.url$"
|
||||
<a href="$subNav.url$"
|
||||
$if(subNav.caption)$title="$subNav.caption$" $endif$
|
||||
$if(subNav.active)$class="activeNav" $endif$
|
||||
>
|
||||
$if(subNav.icon)$
|
||||
<img
|
||||
<img
|
||||
src="$if(subNav.icon.src)$$subNav.icon.src$$else$$subNav.icon$$endif$"
|
||||
$if(subNav.caption)$
|
||||
alt="$subNav.caption$"
|
||||
alt="$subNav.caption$"
|
||||
$else$
|
||||
$if(subNav.icon.alt)$
|
||||
alt="$subNav.icon.alt$"
|
||||
@@ -208,7 +207,7 @@ $if(subNav)$
|
||||
$if(subNav.caption)$<span>$subNav.caption$</span>$endif$
|
||||
</a>
|
||||
$endfor$
|
||||
<a href="#mainNav"
|
||||
<a href="#mainNav"
|
||||
title="Hauptnavigation"
|
||||
>
|
||||
<img src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/icons/arrowRightDown.svg" alt="Menü" />
|
||||
@@ -230,36 +229,14 @@ $endif$
|
||||
$body$
|
||||
</main>
|
||||
|
||||
<aside class="sideNotes">
|
||||
Die Judoka des CWSV bedanken sich bei ihren Förderern:
|
||||
<ul class="sponsorList">
|
||||
<li>
|
||||
Familie Mögel für den unermüdlichen Einsatz als Fans, Fahrer, Fotograf und Vertretung
|
||||
</li>
|
||||
<li>
|
||||
Druck + Werbestudio Eckart & Partner
|
||||
<div><a title="Druck + Werbestudio Eckart & Partner" href="http://www.dws-eckart.de">
|
||||
<img width="300" height="107" src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/sponsoren/EckartUndPartner.png" title="Druck + Werbestudio Eckart & Partner GmbH" alt="Druck + Werbestudio Eckart & Partner Logo">
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
Der CWSV ist anerkannter Stützpunktverein des Bundesprogrammes „Integration durch Sport”
|
||||
<div>
|
||||
<a href="https://integration.dosb.de/" title="Integration durch Sport">
|
||||
<img src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/IntegrationDurchSport2018.250x.png" title="Integration durch Sport - Anerkannter Stützpunktverein" alt="Integration durch Sport - Anerkannter Stützpunktverein" width="250" height="416">
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
<aside class="sideNotes"><?php include_once( $$basePath."/pages/shared/sponsorlist.inc.html" );?></aside>
|
||||
|
||||
<footer class="footerBar">
|
||||
<a class="touchLink"
|
||||
<a class="touchLink"
|
||||
title="Seite auf HTML 5 Konformität prüfen"
|
||||
href="http://validator.w3.org/check?uri=<?php echo(urlencode(getCurPagesUrl()));?>"
|
||||
rel="nofollow"
|
||||
>Valid <img
|
||||
>Valid <img
|
||||
src="/ressourcen/graphiken/icons/HTML5_1Color_Black.svg"
|
||||
alt="HTML 5"
|
||||
title="HTML 5 Logo"
|
||||
@@ -268,10 +245,10 @@ $body$
|
||||
<a class="touchLink" title="Möglichkeiten mit dem Chemnitzer Freizeit- und Wohngebietssportverein in Kontakt zu treten" href="/kontakt" >Kontakt</a>
|
||||
<a class="touchLink" title="Impressum" href="<?php echo($$baseUrl);?>/impressum" >Impressum</a>
|
||||
<a class="touchLink" title="Datenschutz" href="<?php echo($$baseUrl);?>/datenschutz" >Datenschutz</a>
|
||||
<a class="touchLink"
|
||||
<a class="touchLink"
|
||||
title="News-Feed Abonnieren"
|
||||
href="http://cwsvjudo.bplaced.net/rss"
|
||||
><img
|
||||
><img
|
||||
src="/ressourcen/graphiken/icons/newsFeedIcon.svg"
|
||||
alt="Newsfeed"
|
||||
title="News Feed Icon"
|
||||
|
||||
@@ -7,8 +7,6 @@ global $cwsvJudoConfig;
|
||||
|
||||
$messages=array();
|
||||
|
||||
//include_once($_SERVER['DOCUMENT_ROOT']."/config/db.inc");
|
||||
|
||||
// Datenbankverbindung herstellen
|
||||
// $mysqlConn = @new mysqli($db_server, $db_user, $db_password, $db_name);
|
||||
$mysqlConn = @new mysqli(
|
||||
@@ -23,7 +21,7 @@ $messages=array();
|
||||
else{
|
||||
// mögliche Werte für das Jahr herausfinden
|
||||
$galJahresListe = array();
|
||||
|
||||
|
||||
$queryJahresListe = "
|
||||
SELECT DISTINCT DATE_FORMAT( datum, '%Y')
|
||||
AS jahr
|
||||
@@ -31,7 +29,7 @@ $messages=array();
|
||||
WHERE 1
|
||||
ORDER BY DATE_FORMAT( datum, '%Y' ) DESC;
|
||||
";
|
||||
|
||||
|
||||
$mysqlResults = $mysqlConn->query($queryJahresListe);
|
||||
if( !$mysqlResults ){
|
||||
$messages['error'][] = "Fehler bei Datenbankabfrage '".$queryJahresListe."'<br />";
|
||||
@@ -41,10 +39,10 @@ $messages=array();
|
||||
array_push( $galJahresListe, $mysqlResult['jahr']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// standardmäßig frage die letzten 12 Galerien ab
|
||||
$queryGals = "
|
||||
SELECT id,datum,name,url,typ,teaserBildUrl
|
||||
SELECT id,datum,name,url,typ,teaserBildUrl,promoImgWidth,promoImgHeight
|
||||
FROM cwsvjudo.wkGalerien
|
||||
WHERE 1
|
||||
ORDER BY datum DESC LIMIT 12
|
||||
@@ -55,29 +53,29 @@ $messages=array();
|
||||
$minDate = $galJahr."-01-01";
|
||||
$maxDate = $galJahr."-12-31";
|
||||
$queryGals = sprintf("
|
||||
SELECT id,datum,name,url,typ,teaserBildUrl
|
||||
SELECT id,datum,name,url,typ,teaserBildUrl,promoImgWidth,promoImgHeight
|
||||
FROM cwsvjudo.wkGalerien
|
||||
WHERE datum >= '%s' AND datum <= '%s' ORDER BY datum ASC;",
|
||||
$mysqlConn->real_escape_string($minDate),
|
||||
$mysqlConn->real_escape_string($maxDate)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
if($_GET['veranstaltungsArt']=="Feier"){
|
||||
$queryGals =
|
||||
"SELECT id,datum,name,url,typ,teaserBildUrl ".
|
||||
$queryGals =
|
||||
"SELECT id,datum,name,url,typ,teaserBildUrl,promoImgWidth,promoImgHeight ".
|
||||
"FROM cwsvjudo.wkGalerien ".
|
||||
"WHERE veranstaltungsArt = 'Feier' ORDER BY datum DESC;";
|
||||
}
|
||||
|
||||
|
||||
if($_GET['veranstaltungsArt']=="Zelten"){
|
||||
$queryGals =
|
||||
"SELECT id,datum,name,url,typ,teaserBildUrl ".
|
||||
$queryGals =
|
||||
"SELECT id,datum,name,url,typ,teaserBildUrl,promoImgWidth,promoImgHeight ".
|
||||
"FROM cwsvjudo.wkGalerien ".
|
||||
"WHERE veranstaltungsArt = 'Zelten' ORDER BY datum DESC;";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$galListe = array();
|
||||
$mysqlResults = $mysqlConn->query($queryGals);
|
||||
if( !$mysqlResults ){
|
||||
@@ -89,7 +87,7 @@ $messages=array();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Für den Fall einer ampSeite darf ich kein form ohne https verwenden
|
||||
if( strpos( $_SERVER['ORIG_PATH_TRANSLATED'], "pages/amp" ) !== false ){
|
||||
if( !is_array($galJahresListe) )
|
||||
@@ -112,7 +110,7 @@ $messages=array();
|
||||
"<optgroup label=\"Jahresauswahl\">".
|
||||
"<option value=\"\"".($galJahr!="" ? "" : " selected")." >Neueste</option>"
|
||||
);
|
||||
|
||||
|
||||
if( !is_array($galJahresListe) )
|
||||
$messages['error'][] = "<div>Fehler bei der Jahreszahlenabfrage!</div>";
|
||||
else{
|
||||
@@ -130,15 +128,15 @@ $messages=array();
|
||||
"</noscript>".
|
||||
"</form>"
|
||||
);
|
||||
|
||||
|
||||
}// Ende responsiver Jahresselector
|
||||
|
||||
|
||||
echo(
|
||||
"<table class=\"galTable\">".
|
||||
"<thead><tr><th>Datum</th><th>Link zur Galerie</th></tr></thead>".
|
||||
"<tbody>"
|
||||
);
|
||||
|
||||
|
||||
if( !is_array($galListe) )
|
||||
$messages['error'][] = "<div>Fehler bei der Galerienabfrage!</div>";
|
||||
else{
|
||||
@@ -146,25 +144,26 @@ $messages=array();
|
||||
$galDate = mb_convert_encoding($gal['datum'], 'UTF-8', 'ISO-8859-1');
|
||||
echo(
|
||||
"<tr ".((strpos( $_SERVER['ORIG_PATH_TRANSLATED'], "pages/amp" ) !== false)?(""):("onclick=\"window.document.location='".mb_convert_encoding($gal['url'], 'UTF-8', 'ISO-8859-1')."';\"")).">".
|
||||
// "<tr onclick=\"window.document.location='".mb_convert_encoding($gal['url'], 'UTF-8', 'ISO-8859-1')."';\">".
|
||||
// "<td class=\"noWrap\">".
|
||||
"<td >".
|
||||
"<time datetime=\"".mb_convert_encoding($gal['datum'], 'UTF-8', 'ISO-8859-1')."\">".mb_convert_encoding($gal['datum'], 'UTF-8', 'ISO-8859-1')."</time>".
|
||||
// "<time class=\"date-as-calendar position-pixels\" datetime=".$gal['datum'].">".
|
||||
// "<span class=\"weekday\">".strftime("%A", strtotime($galDate))."</span>".
|
||||
// "<span class=\"day\">".strftime("%d", strtotime($galDate))."</span>".
|
||||
// "<span class=\"month\">".utf8_encode(strftime("%B", strtotime($galDate)))."</span>".
|
||||
// "<span class=\"year\">".strftime("%Y", strtotime($galDate))."</span>".
|
||||
// "</time>".
|
||||
"</td>".
|
||||
// "<td class=\"floatClearBoth\">".
|
||||
"<td >".
|
||||
"<a href=\"".mb_convert_encoding($gal['url'], 'UTF-8', 'ISO-8859-1')."?galId=".$gal['id']."\">"
|
||||
);
|
||||
$tempString = ($gal['teaserBildUrl'] != "" ? "<div><img title=\"".mb_convert_encoding($gal['name'], 'UTF-8', 'ISO-8859-1')." - Bilder der Judoka des Chemnitzer WSV\" alt=\"Teaserbild ".mb_convert_encoding($gal['name'], 'UTF-8', 'ISO-8859-1')."\" src=\"".mb_convert_encoding($gal['teaserBildUrl'], 'UTF-8', 'ISO-8859-1')."\"/></div>" : "");
|
||||
|
||||
// width and height of the promoImg
|
||||
$width_height_string = "width=\"200\" height=\"133\"";
|
||||
if(
|
||||
is_positive_integer($gal['promoImgWidth'])
|
||||
&& is_positive_integer($gal['promoImgHeight'])
|
||||
){
|
||||
$width_height_string = "width=\"".strval($gal['promoImgWidth'])."\" height=\"".strval($gal['promoImgHeight'])."\"";
|
||||
}
|
||||
|
||||
$tempString = ($gal['teaserBildUrl'] != "" ? "<div><img title=\"".mb_convert_encoding($gal['name'], 'UTF-8', 'ISO-8859-1')." - Bilder der Judoka des Chemnitzer WSV\" alt=\"Teaserbild ".mb_convert_encoding($gal['name'], 'UTF-8', 'ISO-8859-1')."\" src=\"".mb_convert_encoding($gal['teaserBildUrl'], 'UTF-8', 'ISO-8859-1')."\" ".$width_height_string."/></div>" : "");
|
||||
//echo($_SERVER['ORIG_PATH_TRANSLATED']);
|
||||
if( strpos( $_SERVER['ORIG_PATH_TRANSLATED'], "pages/amp" ) !== false ){
|
||||
$tempString = str_replace("<img", "<amp-img layout=\"responsive\" width=\"200\" height=\"133\"", $tempString);
|
||||
$tempString = str_replace("<img", "<amp-img layout=\"responsive\" ", $tempString);
|
||||
$tempString = str_replace("/>", "></amp-img>", $tempString);
|
||||
}
|
||||
echo( $tempString );
|
||||
@@ -191,13 +190,12 @@ if( is_positive_integer($aGalleryId) ){
|
||||
$query="SELECT url FROM wkGalerien WHERE id = \"".$_aGalleryId."\" ORDER BY Datum ASC LIMIT 1;";
|
||||
$ergebnis = $db_connection->query( $query );
|
||||
$galleryLink = $ergebnis->fetchAll();
|
||||
|
||||
|
||||
return $galleryLink[0]['url'];
|
||||
$db_connection = NULL;
|
||||
}
|
||||
catch(PDOException $db_error){
|
||||
print "Error!: " . $db_error->getMessage() . "<br/>";
|
||||
// echoGalTable();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
<?php
|
||||
|
||||
function get_inner_html( $node ) {
|
||||
$innerHTML= '';
|
||||
$children = $node->childNodes;
|
||||
foreach ($children as $child) {
|
||||
$innerHTML .= $child->ownerDocument->saveXML( $child );
|
||||
}
|
||||
function get_inner_html( $node ) {
|
||||
$innerHTML= '';
|
||||
$children = $node->childNodes;
|
||||
foreach ($children as $child) {
|
||||
$innerHTML .= $child->ownerDocument->saveXML( $child );
|
||||
}
|
||||
|
||||
return $innerHTML;
|
||||
return $innerHTML;
|
||||
}
|
||||
|
||||
/// Eine Liste mit News abfragen
|
||||
///
|
||||
/// Der Rückgabewert sollte vor Verwendung (und zur Fehlerbeheandlung)
|
||||
/// Der Rückgabewert sollte vor Verwendung (und zur Fehlerbeheandlung)
|
||||
/// auf NULL und/oder leeres Array getestet werden.
|
||||
/// Der Zeichensatz wird von "ISO-8859-1" auf "UTF-8" gesetzt
|
||||
///
|
||||
///
|
||||
/// @return Array mit News (die wiederum assoziative arrays sind
|
||||
function getNews($aMysqlConn, $optionsArray = array("dbCharset" => "ISO-8859-1", "outCharset" => "UTF-8", "limit" => "1")){
|
||||
if(!$aMysqlConn) return NULL;
|
||||
@@ -36,24 +36,24 @@ $ret = array();
|
||||
// Ansonsten die aktuellsten
|
||||
else{
|
||||
$query = "SELECT * FROM nachrichten";
|
||||
|
||||
|
||||
if( is_positive_integer($optionsArray['jahr']) )
|
||||
$query .= " WHERE DATE_FORMAT( datum, '%Y') = :jahr";
|
||||
|
||||
|
||||
$query .= " ORDER BY datum DESC, nr DESC LIMIT :limit;";
|
||||
|
||||
|
||||
//echo( $query );
|
||||
|
||||
|
||||
$pdoStatementForQuerryingNews = $aMysqlConn->prepare(
|
||||
$query
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
$pdoStatementForQuerryingNews->bindParam(':limit', intval($optionsArray['limit']), PDO::PARAM_INT);
|
||||
// $pdoStatementForQuerryingNews->bindParam(':jahr', intval($optionsArray['jahr']), PDO::PARAM_INT);
|
||||
$pdoStatementForQuerryingNews->execute();
|
||||
$ret = $pdoStatementForQuerryingNews->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
|
||||
// Zeichensatzkonvertierung
|
||||
foreach($ret as &$entry){
|
||||
array_walk(
|
||||
@@ -73,13 +73,13 @@ function getHtmlNews($aNews, $someOptions=""){
|
||||
$options = getKeyValueArray($someOptions);
|
||||
|
||||
// schlechter Hack solange die Browser nicht von selbst ordentlich trennen
|
||||
$aNews['betreff'] =
|
||||
$aNews['betreff'] =
|
||||
str_replace("meisterschaft", "­meisterschaft", $aNews['betreff']);
|
||||
$aNews['betreff'] =
|
||||
$aNews['betreff'] =
|
||||
str_replace("turnier", "­turnier", $aNews['betreff']);
|
||||
$aNews['betreff'] =
|
||||
$aNews['betreff'] =
|
||||
str_replace("randori", "­randori", $aNews['betreff']);
|
||||
$aNews['betreff'] =
|
||||
$aNews['betreff'] =
|
||||
str_replace("spiele", "­spiele", $aNews['betreff']);
|
||||
|
||||
$retHtml = "";
|
||||
@@ -94,7 +94,7 @@ $options = getKeyValueArray($someOptions);
|
||||
// phpMyAdmin fügte manchmal die falschen Zeilenenden ein
|
||||
$aNews['nachricht'] = str_replace("\r\n", "\n", $aNews['nachricht']);
|
||||
|
||||
// falls KEIN explizites PromoImage gesetzt ist, versuche es aus dem
|
||||
// falls KEIN explizites PromoImage gesetzt ist, versuche es aus dem
|
||||
// Nachrichtentext heraus zu lesen
|
||||
// @toDo: woher bekomme ich width and height bei explizitem promoImg?
|
||||
if(!$aNews['promoImg'])
|
||||
@@ -104,7 +104,6 @@ $options = getKeyValueArray($someOptions);
|
||||
$aNews['promoImg'] = json_decode($aNews['promoImg'], true);
|
||||
}
|
||||
}
|
||||
// var_dump($aNews);
|
||||
if( !filter_var($aNews['promoImg'], FILTER_VALIDATE_URL) && !filter_var($aNews['promoImg']['src'], FILTER_VALIDATE_URL) ){
|
||||
$domDoc = new DOMDocument();
|
||||
$domDoc->loadHTML( mb_convert_encoding($aNews['nachricht'], 'HTML-ENTITIES', "UTF-8") );
|
||||
@@ -125,12 +124,10 @@ $options = getKeyValueArray($someOptions);
|
||||
}
|
||||
|
||||
$domDoc->formatOutput = true;
|
||||
$aNews['nachricht'] = get_inner_html( $domDoc->getElementsByTagName('body')[0] );
|
||||
// $aNews['nachricht'] = str_replace(" ", "", $aNews['nachricht']);
|
||||
// var_dump($aNews);
|
||||
$aNews['nachricht'] = get_inner_html( $domDoc->getElementsByTagName('body')[0] );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( !empty($aNews['promoImg']) ){
|
||||
if( !empty($aNews['promoImg']['src']) ){
|
||||
$retHtml .= "<img class=\"newsPromoImage\" "
|
||||
@@ -141,14 +138,15 @@ $options = getKeyValueArray($someOptions);
|
||||
if( filter_var($aNews['promoImg'], FILTER_VALIDATE_URL) ){
|
||||
$retHtml .= "<img class=\"newsPromoImage\" src=\"".$aNews['promoImg']."\" />";
|
||||
}
|
||||
|
||||
|
||||
// Für den Fall einer ampSeite müssen die imgTags angepasst werden
|
||||
if( strpos( $_SERVER['ORIG_PATH_TRANSLATED'], "pages/amp" ) !== false ){
|
||||
$retHtml = str_replace("<img", "<amp-img layout=\"responsive\" width=\"".($aNews['promoImg']['width']?$aNews['promoImg']['width']:"200")."\" height=\"".($aNews['promoImg']['height']?$aNews['promoImg']['height']:"133")."\"", $retHtml);
|
||||
$retHtml = str_replace("/>", "></amp-img>", $retHtml);
|
||||
}
|
||||
}
|
||||
$retHtml .= "<div class=\"newsText\">" . $aNews['nachricht'] . "</div>";
|
||||
|
||||
$retHtml .= "<div class=\"newsText\">".ampTagReplace( $aNews['nachricht'] )."</div>";
|
||||
$retHtml .= "</div>";
|
||||
$retHtml .= "<div class=\"newsFooter\">";
|
||||
$retHtml .= "<div class=\"newsAutor\">".$aNews['autor']."</div>";
|
||||
@@ -188,4 +186,48 @@ return json_encode(
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
function getHtmlNewsTitle(){
|
||||
$htmlTitle = "Neuigkeiten der Judoka des Chemnitzer Freizeit- und Wohngebiets­sportvereines e. V.";
|
||||
if($_GET['newsId']){
|
||||
$dbConn = getCwsvJudoDbConn();
|
||||
$options['newsId']=$_GET['newsId'];
|
||||
$mainNews=getNews(getCwsvJudoDbConn(), $options);
|
||||
if($mainNews)
|
||||
$htmlTitle = $mainNews[0]['betreff']." - ".$htmlTitle;
|
||||
}
|
||||
return $htmlTitle;
|
||||
}
|
||||
|
||||
function img2ampimg($inText){
|
||||
$outText = $inText;
|
||||
// Zuweilen sind im Nachtrichtentext selbst auch schon Bilder, auch diese müssen bei ampSeiten angepasst werden
|
||||
if( strpos( $_SERVER['ORIG_PATH_TRANSLATED'], "pages/amp" ) !== false ){
|
||||
// bei bereits im Newstext vorhandenen Bildern, gehen wir davon aus, dass widt+heigth bereits gesetzt sind
|
||||
$outText = str_replace("<img ", "<amp-img layout=\"responsive\" ", $outText);
|
||||
$outText = str_replace("/>", "></amp-img>", $outText);
|
||||
}
|
||||
|
||||
return $outText;
|
||||
}
|
||||
|
||||
function video2ampvideo($inText){
|
||||
$outText = $inText;
|
||||
// Zuweilen sind im Nachtrichtentext selbst auch schon Bilder, auch diese müssen bei ampSeiten angepasst werden
|
||||
if( strpos( $_SERVER['ORIG_PATH_TRANSLATED'], "pages/amp" ) !== false ){
|
||||
// bei bereits im Newstext vorhandenen Bildern, gehen wir davon aus, dass widt+heigth bereits gesetzt sind
|
||||
$outText = str_replace("<video ", "<amp-video ", $outText);
|
||||
$outText = str_replace("<source ", "<source type=\"video/webm\" ", $outText);
|
||||
$outText = str_replace("</video>", "</amp-video>", $outText);
|
||||
}
|
||||
|
||||
return $outText;
|
||||
}
|
||||
|
||||
function ampTagReplace($inText){
|
||||
// replace the amp tags
|
||||
return video2ampvideo(
|
||||
img2ampimg( $inText )
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -10,6 +10,8 @@ $message = array();
|
||||
|
||||
$limit = is_positive_integer($someOptions['limit'])?$someOptions['limit']:1;
|
||||
|
||||
$headerRootLevel = is_positive_integer($someOptions['$headerRootLevel'])?$someOptions['$headerRootLevel']:1;
|
||||
|
||||
/// Eine Datenbankverbindung (über pdo) erstellen
|
||||
try{
|
||||
$db_connection = new PDO(
|
||||
@@ -22,24 +24,24 @@ $limit = is_positive_integer($someOptions['limit'])?$someOptions['limit']:1;
|
||||
catch(PDOException $db_error){
|
||||
$messages['errors'][] = "Error: " . $db_error->getMessage();
|
||||
}
|
||||
|
||||
|
||||
// News abfragen
|
||||
// @todo: woher das limit nehmen?
|
||||
// $newsList = getNews($db_connection, array('limit'=>$limit));
|
||||
$newsList = getNews($db_connection, $someOptions);
|
||||
|
||||
|
||||
$newsHeading = "Aktuelle Meldungen";
|
||||
//var_dump($options);
|
||||
if($someOptions['newsId']) $newsHeading=$newsList[0]['betreff'];
|
||||
if($someOptions['jahr']) $newsHeading="Nachrichten des Jahres ".$someOptions['jahr'];
|
||||
|
||||
echo("<h1>".$newsHeading."</h1>");
|
||||
|
||||
echo("<h".strval($headerRootLevel).">".$newsHeading."</h".$headerRootLevel.">");
|
||||
if( is_array( $newsList ) || is_object( $newsList ) )
|
||||
foreach($newsList as $news)
|
||||
echo( getHtmlNews($news, "headingLevel=2")."<hr />" );
|
||||
echo( getHtmlNews($news, "headingLevel=".strval($headerRootLevel+1))."<hr />" );
|
||||
else
|
||||
$messages['errors'][] = "Fehler: Keine Neuigkeiten gefunden!";
|
||||
|
||||
|
||||
// @todo: besser machen!
|
||||
if(!empty($messages))
|
||||
var_dump($messages);
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
include Makefile.cfg
|
||||
|
||||
galDirName=$(VID_GAL_DIR)
|
||||
|
||||
|
||||
mkGalGenPath="/home/marko/keeper/judo/homepage/redesign2018/markdownExperiment/src/tools/mkGalGen"
|
||||
imgDirBase="./photos"
|
||||
galDirBase="/home/marko/keeper/judo/cwsvJudo/photoalben/photoalben.2018"
|
||||
|
||||
logoFileName="/home/marko/keeper/judo/graphiken/logos/cwsvJudoLogoWappen.100x.png"
|
||||
|
||||
|
||||
.PHONY: all
|
||||
all: jsonAlbum
|
||||
|
||||
photos/jpegAlbum.json:
|
||||
mkdir -p $(galDirBase)
|
||||
# Des Erzeugen der json
|
||||
python3 $(mkGalGenPath)/jpgSelector.py $(imgDirBase)
|
||||
|
||||
.PHONY: jsonAlbum
|
||||
jsonAlbum: photos/jpegAlbum.json
|
||||
# das Erzeugen des Makefiles
|
||||
#python3 $(mkGalGenPath)/jsonJpgList2Makefile.py $(imgDirBase)/jpegAlbum.json --imgDirBase=$(imgDirBase) --galName="$(galName)" --galDirBase="$(galDirBase)" --galDirName="$(galDirName)" --logoFileName="$(logoFileName)" > ../Makefile.$(galDirName)
|
||||
python3 $(mkGalGenPath)/jsonJpgList2Makefile.py $(imgDirBase)/jpegAlbum.json --imgDirBase=$(imgDirBase) --galName="$(galName)" --galDirBase="$(galDirBase)" --galDirName="$(galDirName)" --logoFileName="$(logoFileName)" --compressHard="true" > ../Makefile.$(galDirName)
|
||||
|
||||
#das aufrufen des makefiles
|
||||
make --file=../Makefile.$(galDirName)
|
||||
|
||||
# upload des ganzen
|
||||
lftp -e "set ftp:ssl-allow no; mirror -R $(galDirBase)/$(galDirName) www/photoalben/photoalben.2018/$(galDirName); exit;" -u cwsvjudo,***REMOVED*** ftp://cwsvjudo.bplaced.net
|
||||
@@ -78,12 +78,6 @@ videos/webm/%.webm: videos/aufnahmen/helko/%.mp4
|
||||
-an \
|
||||
-f webm \
|
||||
$@
|
||||
# Wir extperimentieren ja nur, deshalb kein Upload
|
||||
# curl \
|
||||
# --upload-file $@ \
|
||||
# --user cwsvjudo:Dee4oquu \
|
||||
# ftp://cwsvjudo.square7.net/videoalben/videoalben.2018/$(VID_GAL_DIR)/$(patsubst videos/%,%,$@) \
|
||||
# --ftp-create-dirs
|
||||
# curl \
|
||||
# --upload-file $@ \
|
||||
# --user cwsvjudo:***REMOVED*** \
|
||||
@@ -116,11 +110,6 @@ videos/webm/%.webm: videos/aufnahmen/mögel/%.MP4
|
||||
-an \
|
||||
-f webm \
|
||||
$@
|
||||
curl \
|
||||
--upload-file $@ \
|
||||
--user cwsvjudo:Dee4oquu \
|
||||
ftp://cwsvjudo.square7.net/videoalben/videoalben.2018/$(VID_GAL_DIR)/$(patsubst videos/%,%,$@) \
|
||||
--ftp-create-dirs
|
||||
curl \
|
||||
--upload-file $@ \
|
||||
--user cwsvjudo:***REMOVED*** \
|
||||
@@ -151,11 +140,6 @@ videos/webm/%.webm: videos/aufnahmen/moegel/%.MP4
|
||||
-an \
|
||||
-f webm \
|
||||
$@
|
||||
curl \
|
||||
--upload-file $@ \
|
||||
--user cwsvjudo:Dee4oquu \
|
||||
ftp://cwsvjudo.square7.net/videoalben/videoalben.2018/$(VID_GAL_DIR)/$(patsubst videos/%,%,$@) \
|
||||
--ftp-create-dirs
|
||||
curl \
|
||||
--upload-file $@ \
|
||||
--user cwsvjudo:***REMOVED*** \
|
||||
@@ -187,11 +171,6 @@ videos/webm/%.webm: videos/aufnahmen/papaRomy/%.mp4
|
||||
-an \
|
||||
-f webm \
|
||||
$@
|
||||
curl \
|
||||
--upload-file $@ \
|
||||
--user cwsvjudo:Dee4oquu \
|
||||
"ftp://cwsvjudo.square7.net/videoalben/videoalben.2018/$(VID_GAL_DIR)/$(patsubst videos/%,%,$@)" \
|
||||
--ftp-create-dirs
|
||||
curl \
|
||||
--upload-file $@ \
|
||||
--user cwsvjudo:***REMOVED*** \
|
||||
@@ -222,11 +201,6 @@ videos/webm/%.webm: videos/aufnahmen/papaRomy/%.webm
|
||||
-an \
|
||||
-f webm \
|
||||
$@
|
||||
curl \
|
||||
--upload-file $@ \
|
||||
--user cwsvjudo:Dee4oquu \
|
||||
"ftp://cwsvjudo.square7.net/videoalben/videoalben.2018/$(VID_GAL_DIR)/$(patsubst videos/%,%,$@)" \
|
||||
--ftp-create-dirs
|
||||
curl \
|
||||
--upload-file $@ \
|
||||
--user cwsvjudo:***REMOVED*** \
|
||||
@@ -259,11 +233,6 @@ videos/webm/%.webm: videos/aufnahmen/elly/%.mp4
|
||||
"$@"
|
||||
# curl \
|
||||
# --upload-file "$@" \
|
||||
# --user cwsvjudo:Dee4oquu \
|
||||
# "ftp://cwsvjudo.square7.net/videoalben/videoalben.2018/$(VID_GAL_DIR)/$(patsubst videos/%,%,$@)" \
|
||||
# --ftp-create-dirs
|
||||
# curl \
|
||||
# --upload-file "$@" \
|
||||
# --user cwsvjudo:***REMOVED*** \
|
||||
# "ftp://cwsvjudo.bplaced.net/www/videoalben/videoalben.2018/$(VID_GAL_DIR)/$(patsubst videos/%,%,$@)" \
|
||||
# --ftp-create-dirs
|
||||
@@ -273,11 +242,6 @@ videos/thumbnails/%.jpg: videos/webm/%.webm
|
||||
-ffmpeg -i "$^" -vf "select=gt(scene\,0.4)" -frames:v 5 -vsync vfr -vf fps=fps=1/600 "$@"
|
||||
# curl \
|
||||
# --upload-file "$@" \
|
||||
# --user cwsvjudo:Dee4oquu \
|
||||
# "ftp://cwsvjudo.square7.net/videoalben/videoalben.2018/$(VID_GAL_DIR)/$(patsubst videos/%,%,$@)" \
|
||||
# --ftp-create-dirs
|
||||
# curl \
|
||||
# --upload-file "$@" \
|
||||
# --user cwsvjudo:***REMOVED*** \
|
||||
# "ftp://cwsvjudo.bplaced.net/www/videoalben/videoalben.2018/$(VID_GAL_DIR)/$(patsubst videos/%,%,$@)" \
|
||||
# --ftp-create-dirs
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FFMPEG = /c/proggis/media/editoren/ffmpeg-4.0.2-win64-static/bin/ffmpeg.exe
|
||||
#FFMPEG = ffmpeg
|
||||
GUETZLI = /d/projekte/tests/guetzli.git/bin/Release/guetzli.exe
|
||||
#GUETZLI = /home/marko/proggis/guetzli/bin/Release/guetzli
|
||||
#FFMPEG = /c/proggis/media/editoren/ffmpeg-4.0.2-win64-static/bin/ffmpeg.exe
|
||||
#FFMPEG = ~/proggis/ffmpeg/ffmpeg-4.1.1-amd64-static/ffmpeg
|
||||
#GUETZLI = /d/projekte/tests/guetzli.git/bin/Release/guetzli.exe
|
||||
GUETZLI = /home/marko/proggis/guetzli/bin/Release/guetzli
|
||||
|
||||
DEFAULT_FFMPEG = ffmpeg
|
||||
#DEFAULT_FFMPEG = /c/proggis/media/editoren/ffmpeg-4.0.2-win64-static/bin/ffmpeg.exe
|
||||
@@ -147,8 +147,7 @@ videos/webm/%.webm: videos/.forCompressing/%.video videos/.forCompressing/%.trf
|
||||
-f webm \
|
||||
$@
|
||||
|
||||
#videos/thumbnails/%.png: videos/.forCompressing/%.video
|
||||
videos/thumbnails/%.png: videos/webm/%.webm
|
||||
videos/thumbnails/%.png: videos/.forCompressing/%.video
|
||||
mkdir -p videos/thumbnails
|
||||
# $(FFMPEG) -i "$<" -vf "select=gt(scene\,0.4)" -frames:v 5 -vsync vfr -vf $(ffmpegVideoScaleFilter)fps=fps=1/600 "$@"
|
||||
# $(FFMPEG) -i "$<" -vf $(ffmpegVideoScaleFilter)thumbnail -frames:v 1 "$@"
|
||||
@@ -157,4 +156,3 @@ videos/thumbnails/%.png: videos/webm/%.webm
|
||||
|
||||
videos/thumbnails/%.jpg: videos/thumbnails/%.png
|
||||
$(GUETZLI) --quality 90 "$<" "$@"
|
||||
# convert "$<" "$@"
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
/* float: right;*/
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
width: 100%;
|
||||
height:auto;
|
||||
}
|
||||
|
||||
.galTable time{
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.newsBody > img{
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
.newsBody{
|
||||
flex-direction: row;
|
||||
@@ -43,12 +47,13 @@
|
||||
}
|
||||
|
||||
.newsText{
|
||||
flex: 3;
|
||||
margin: 1vw;
|
||||
}
|
||||
.newsText a {
|
||||
float: none;
|
||||
}
|
||||
.newsText amp-img,
|
||||
.newsText amp-img,
|
||||
.newsText img{
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
@@ -56,6 +61,7 @@
|
||||
margin: auto;
|
||||
box-shadow: 0 1px 2px 0 rgba(0,0,0,.5);
|
||||
}
|
||||
|
||||
.newsText video,
|
||||
.newsText amp-video{
|
||||
max-width: 100%;
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
.wkInfoBox nav>ul{
|
||||
padding:0%;
|
||||
}
|
||||
.wkInfoBox nav{
|
||||
padding:1%;
|
||||
}
|
||||
.wkInfoBox nav>ul>li{
|
||||
padding:.25em;
|
||||
margin:.25em;
|
||||
box-shadow:.1em .1em .05em grey;
|
||||
background-color:#ff8100;
|
||||
border-radius:.5em;
|
||||
list-style-type:none;
|
||||
}
|
||||
.wkInfoBox{
|
||||
box-shadow:0 1px 3px #0000001f,0 1px 2px;
|
||||
}
|
||||
.wkInfoBox h1{
|
||||
background:#ff8100;
|
||||
font-size:1.2em;margin:0;
|
||||
}
|
||||
.wkInfoBox h2{
|
||||
background:#ff8100;
|
||||
font-size:1.1em;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$wkName = "37. Nikolausturnier des JSV Werdau";
|
||||
$wkDatum = "2018-12-01";
|
||||
?>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
$wkName = "37. Nikolausturnier des JSV Werdau";
|
||||
$imgList = array( "images/37. Nikolausturnier des JSV Werdau-001.jpg", "images/37. Nikolausturnier des JSV Werdau-005.jpg", "images/37. Nikolausturnier des JSV Werdau-007.jpg", "images/37. Nikolausturnier des JSV Werdau-009.jpg", "images/37. Nikolausturnier des JSV Werdau-010.jpg", "images/37. Nikolausturnier des JSV Werdau-011.jpg", "images/37. Nikolausturnier des JSV Werdau-014.jpg", "images/37. Nikolausturnier des JSV Werdau-016.jpg", "images/37. Nikolausturnier des JSV Werdau-017.jpg", "images/37. Nikolausturnier des JSV Werdau-020.jpg", "images/37. Nikolausturnier des JSV Werdau-022.jpg", "images/37. Nikolausturnier des JSV Werdau-026.jpg", "images/37. Nikolausturnier des JSV Werdau-028.jpg", "images/37. Nikolausturnier des JSV Werdau-030.jpg", "images/37. Nikolausturnier des JSV Werdau-037.jpg", "images/37. Nikolausturnier des JSV Werdau-039.jpg", "images/37. Nikolausturnier des JSV Werdau-047.jpg", "images/37. Nikolausturnier des JSV Werdau-053.jpg", "images/37. Nikolausturnier des JSV Werdau-064.jpg", "images/37. Nikolausturnier des JSV Werdau-065.jpg", "images/37. Nikolausturnier des JSV Werdau-069.jpg", "images/37. Nikolausturnier des JSV Werdau-071.jpg", "images/37. Nikolausturnier des JSV Werdau-075.jpg", "images/37. Nikolausturnier des JSV Werdau-077.jpg", "images/37. Nikolausturnier des JSV Werdau-078.jpg", "images/37. Nikolausturnier des JSV Werdau-079.jpg", "images/37. Nikolausturnier des JSV Werdau-081.jpg", );
|
||||
include( $_SERVER['DOCUMENT_ROOT']."/ressourcen/phpLib/imgGallery/index.php.tmpl" );
|
||||
?>
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
lang: de
|
||||
title: Videos und Bilder der Judoka des Chemnitzer Freizeit- und Wohngebiets­sportvereines e. V.
|
||||
description: "Alben mit Bildern und Videos von Wettkämpfen, Feiern oder anderen Veranstaltungen der Judoka des Chemnitzer Freizeit- und Wohngebiets­sportvereines e. V."
|
||||
author: marko
|
||||
keywords:
|
||||
- Judo
|
||||
- Bilder
|
||||
- Videos
|
||||
...
|
||||
<?php $basePath = "/users/cwsvjudo/www"; require_once($basePath."/ressourcen/phpLib/cwsvJudo/gallery.lib.php"); var_dump(getGalleryById($_GET['galId']));?>
|
||||
<?php $basePath = "/users/cwsvjudo/www"; require_once( $basePath."/ressourcen/phpLib/cwsvJudo/gallery.lib.php"); var_dump(getGalleryById($_GET['galId']));?>
|
||||
|
||||
@@ -12,16 +12,16 @@ jsonSdFiles:
|
||||
- cwsvJudo.json
|
||||
...
|
||||
|
||||
# Willkommen
|
||||
# Herzlich willkommen
|
||||
|
||||
auf der Website des Judo-Teams des [Chem­nitzer Frei­zeit- und Wohng­ebiets­sport­vereines e. V.][cwsvHomepage]
|
||||
Hier findet ihr Informationen zu unseren [Trainingszeiten][cwsvJudoTraining]
|
||||
Hier findet ihr Informationen zu unseren [Trainingszeiten][cwsvJudoTraining]
|
||||
und [Wettkampfterminen][cwsvJudoWettkampfKalender].
|
||||
|
||||
Ein kleines Wiki bietet [Wissenswertes über Judo][cwsvJudoWiki], wie
|
||||
Ein kleines Wiki bietet [Wissenswertes über Judo][cwsvJudoWiki], wie
|
||||
zum Beispiel das [Programm für die Gürtelprüfungen][cwsvJudoWikiKyu].
|
||||
|
||||
<?php $options['limit']=6; echoNewsTableHtml( $options );?>
|
||||
<?php $options=array(); $options['limit']=6; $options['headerRootLevel']=1; echoNewsTableHtml( $options ); ?>
|
||||
|
||||
[cwsvHomepage]: http://www.cwsv-sport.de "Homepage des Chemnitzer Freizeit- und Wohngebietssportvereines"
|
||||
[cwsvJudoTraining]: http://cwsvjudo.bplaced.net/trainingszeiten "Trainingszeiten der Judoka des Chemnitzer Freizeit- und Wohngebietssportvereines"
|
||||
|
||||
@@ -1,31 +1,32 @@
|
||||
---
|
||||
lang: de
|
||||
title: Kontaktformationen des Chemnitzer Freizeit- und Wohngebiets­sportvereines e. V.
|
||||
title: Kontaktformationen des Chemnitzer WSV e. V.
|
||||
author: marko
|
||||
keywords:
|
||||
- Judo
|
||||
- Chemnitz
|
||||
- Kontakt
|
||||
- Chemnitzer Freizeit- und Wohngebietssportverein
|
||||
- Chemnitz
|
||||
- Judo
|
||||
description: "Verschiedene Möglichkeiten Kontakt mit dem Chemnitzer Freizeit- und Wohngebietssportverein e. V. aufzunehmen"
|
||||
canonicalLink: "http://cwsvjudo.bplaced.net/kontakt"
|
||||
ampVersionLink: "http://amp.cwsvjudo.bplaced.net/kontakt"
|
||||
...
|
||||
# Kontakt
|
||||
# ✉ Kontaktformationen
|
||||
|
||||
Hier findet Ihr [eMail-Adressen](#email), [Telephonnummern](#telephon)
|
||||
Hier findet Ihr [eMail-Adressen](#email), [Telephonnummern](#telephon)
|
||||
und [Adressen](#adressen), um mit uns in Kontakt zu treten.
|
||||
|
||||
## E-Mail
|
||||
|
||||
- [eMail an den Chemnitzer Freizeit- und Wohngebietssportverein e. V.(cwsv.sb@web.de)](mailto:cwsv.sb@web.de)
|
||||
- Link zum [Kontaktformular][cwsvKontaktFormular] auf der Homepage
|
||||
- Link zum [Kontaktformular][cwsvKontaktFormular] auf der Homepage
|
||||
des Chemnitzer Freizeit- und Wohngebietssportvereines
|
||||
- {.pngAddress width="420" height="60"}
|
||||
|
||||
## Adressen
|
||||
|
||||
- CWSV - Verwaltung ([Karte][cwsvVerwaltungKarte])
|
||||
- Strasse Usti nad Labem 42
|
||||
- Straße Usti nad Labem 42
|
||||
- 09119 Chemnitz
|
||||
- Mo 8:00-16:30, Di 10:00-17:00, Mi 8:00-17:00, Do 10:00-17:00
|
||||
|
||||
@@ -38,4 +39,3 @@ des Chemnitzer Freizeit- und Wohngebietssportvereines
|
||||
|
||||
[cwsvKontaktFormular]: http://www.cwsv-sport.de/Kontakt.htm "Karte der Verwaltung des Chemnitzer WSV"
|
||||
[cwsvVerwaltungKarte]: http://www.openstreetmap.org/?mlat=50.807643&mlon=12.882060#map=17/50.807643/12.882060
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
lang: de
|
||||
title: Neuigkeiten der Judoka des Chemnitzer Freizeit- und Wohngebiets­sportvereines e. V.
|
||||
phpTitleString: getHtmlNewsTitle()
|
||||
author: marko
|
||||
keywords:
|
||||
- Judo
|
||||
@@ -8,5 +9,5 @@ keywords:
|
||||
- News
|
||||
description: "Bekanntmachungen und Meldungen der Judoka des Chemnitzer WSV"
|
||||
...
|
||||
<?php if($_GET['newsId']){$options['newsId']=$_GET['newsId']; echoNewsTableHtml( $options );}?>
|
||||
<?php $options=array(); if($_GET['jahr']) $options['jahr']=$_GET['jahr']; else $options['limit']=6; echoNewsTableHtml( $options );?>
|
||||
<?php if( $_GET['newsId'] ){ $options['newsId'] = $_GET['newsId']; echoNewsTableHtml( $options );}?>
|
||||
<?php $options=array(); if( $_GET['jahr'] ) $options['jahr'] = $_GET['jahr']; else $options['limit'] = 6; echoNewsTableHtml( $options );?>
|
||||
|
||||
@@ -16,29 +16,46 @@ jsonSdFiles:
|
||||
|
||||
# Judotraining im CWSV
|
||||
|
||||
Wenn Du ab (ca.) 6 Jahre alt bist und Lust hast, Dir unser Training
|
||||
anzuschauen oder sogar gleich mitzumachen, dann schaue einfach mal zu
|
||||
Wenn Du ab (ca.) 6 Jahre alt bist und Lust hast, Dir unser Training
|
||||
anzuschauen oder sogar gleich mitzumachen, dann schaue einfach mal zu
|
||||
einem „Schnuppertraining“ vorbei.
|
||||
|
||||
Als Sportkleidung seien reißfeste, lange Sachen möglichst ohne
|
||||
Als Sportkleidung seien reißfeste, lange Sachen möglichst ohne
|
||||
Reißverschluss empfohlen.
|
||||
|
||||
Auch wer bereits Mitglied in einem Judoverein ist, aber zum Beispiel
|
||||
während des Studiums in Chemnitz wohnt, darf gerne mit uns trainieren.
|
||||
Auch wer bereits Mitglied in einem Judoverein ist, aber zum Beispiel
|
||||
während des Studiums in Chemnitz wohnt, darf gerne mit uns trainieren.
|
||||
Eine Ummeldung ist dafür nicht nötig.
|
||||
|
||||
## Trainingszeiten (aktuelle, während der Pandemie)
|
||||
|
||||
## Trainingszeiten
|
||||
Durch die Pandemie sind die Trainingszeiten derzeit angepasst:
|
||||
|
||||
- Mittwoch (Kinder+Jugend)
|
||||
- 16:00-17:45
|
||||
- Mittwoch (Kinder/Jugend)
|
||||
- 16:00--17:45 Uhr
|
||||
- [Dojo Sportplatz Str. Usti nad Labem 42, 09120 Chemnitz][cwsvJudoDojoMap]
|
||||
- Freitag (Kinder)
|
||||
- 16:00-17:45
|
||||
- Freitag (Alle)
|
||||
- 17:00--18:45 Uhr
|
||||
- [Dojo Sportplatz Str. Usti nad Labem 42, 09120 Chemnitz][cwsvJudoDojoMap]
|
||||
- Freitag (Jugend/EW)
|
||||
- 17:15-19:15
|
||||
|
||||
|
||||
## Trainingszeiten (wie sie vor der Pandemie waren und wie sie wieder mal werden sollen)
|
||||
|
||||
- Mittwoch (Kinder/Jugend)
|
||||
- 16:00--17:45 Uhr
|
||||
- [Dojo Sportplatz Str. Usti nad Labem 42, 09120 Chemnitz][cwsvJudoDojoMap]
|
||||
- Freitag (Kinder/Anfänger)
|
||||
- 16:00--17:15 Uhr
|
||||
- [Dojo Sportplatz Str. Usti nad Labem 42, 09120 Chemnitz][cwsvJudoDojoMap]
|
||||
- Zielgruppe: Anfänger und Kinder unter 9 Jahren
|
||||
- Freitag (Jugend/Fortgeschrittene)
|
||||
- 17:00--18:30 Uhr
|
||||
- [Dojo Sportplatz Str. Usti nad Labem 42, 09120 Chemnitz][cwsvJudoDojoMap]
|
||||
- Zielgruppe: wer die Grundlagen des Judo beherrscht
|
||||
- Freitag (Jugend/Erwachsene)
|
||||
- 18:15--19:45 Uhr
|
||||
- [Dojo Sportplatz Str. Usti nad Labem 42, 09120 Chemnitz][cwsvJudoDojoMap]
|
||||
- Zielgruppe: Erwachsene und erfahrene Jugend
|
||||
|
||||
|
||||
## Karten der Trainingsstätten
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
---
|
||||
lang: de
|
||||
phpTitleString: ( (is_positive_integer( \$_GET['wkId']) )?(getWkName(\$_GET['wkId']).' im '):'').'Wettkampfkalender der Judoka des Chemnitzer Freizeit- und Wohngebiets­sportvereines e. V.'
|
||||
title: "Wettkampfkalender der Judoka des Chemnitzer Freizeit- und Wohngebiets­sportvereines e. V."
|
||||
phpTitleString: ( (is_positive_integer( \$_GET[\'wkId\']) )?(getWkName(\$_GET[\'wkId\']).\' im \'):\'\').\'Wettkampfkalender der Judoka des Chemnitzer Freizeit- und Wohngebiets­sportvereines e. V.\'
|
||||
author: marko
|
||||
keywords:
|
||||
- Judo
|
||||
- Wettkampf
|
||||
- Termine
|
||||
phpDescriptionString: ( (is_positive_integer( \$_GET['wkId']) )?(getWkDescription(\$_GET['wkId'])):'Ein Kalender mit Judo-Wettkampfterminen zur Übersicht')
|
||||
phpDescriptionString: ( (is_positive_integer( \$_GET[\'wkId\']) )?(getWkHtmlMetaDescription(\$_GET[\'wkId\'])):\'Ein Kalender mit Judo-Wettkampfterminen zur Übersicht\')
|
||||
description: "Ein Kalender mit Judo-Wettkampfterminen zur Übersicht"
|
||||
canonicalLink: "http://cwsvjudo.bplaced.net/wkKalender<?php echo(is_positive_integer($_GET['wkId'])?('/'.$_GET['wkId'].'/'.toAscii(html_entity_decode(getWkName($_GET['wkId'])))):'');?>"
|
||||
ampVersionLink: "http://amp.cwsvjudo.bplaced.net/wkKalender<?php echo(is_positive_integer($_GET['wkId'])?('/'.$_GET['wkId'].'/'.toAscii(html_entity_decode(getWkName($_GET['wkId'])))):'');?>"
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<aside class="sponsorList">
|
||||
<ul>
|
||||
<li>
|
||||
Der CWSV ist anerkannter Stützpunktverein des Bbundesprogrammes „Integration durch Sport”
|
||||
<div style="max-heigth=10em;" >
|
||||
<a
|
||||
href="http://www.integration-durch-sport.de"
|
||||
title="Integration durch Sport">
|
||||
<img
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/IntegrationDurchSport2018.250x.png"
|
||||
title="Integration durch Sport - Anerkannter Stützpunktverein"
|
||||
alt="Integration durch Sport - Anerkannter Stützpunktverein"
|
||||
width="250" height="416" hspace="25"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php if( !isset($baseUrl) ) $baseUrl = "http://cwsvjudo.bplaced.net";?>
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/favicon-16x16.png">
|
||||
<link rel="manifest" href="<?php echo( strpos( $_SERVER['ORIG_PATH_TRANSLATED'], "pages/amp" ) ? "" : $baseUrl );?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/manifest.json">
|
||||
<link rel="mask-icon" href="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/safari-pinned-tab.svg" color="#ff8100">
|
||||
<link rel="shortcut icon" href="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/favicon.ico">
|
||||
<meta name="msapplication-config" content="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/browserconfig.xml">
|
||||
<meta name="theme-color" content="#ff8100">
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php if( !isset($baseUrl) ) $baseUrl = "http://cwsvjudo.bplaced.net";?>
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/favicon-16x16.png">
|
||||
<link rel="mask-icon" href="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/safari-pinned-tab.svg" color="#ff8100">
|
||||
<link rel="shortcut icon" href="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/favicon.ico">
|
||||
<meta name="msapplication-config" content="<?php echo($baseUrl);?>/ressourcen/graphiken/logos/favicon/realfavicongenerator/browserconfig.xml">
|
||||
<meta name="theme-color" content="#ff8100">
|
||||
@@ -0,0 +1,23 @@
|
||||
Die Judoka des CWSV bedanken sich bei ihren Förderern:
|
||||
<ul class="sponsorList">
|
||||
<li>Der CWSV e.V. ist Werbebotschafter der Aktion „So geht sächsisch“
|
||||
<a href="https://www.so-geht-saechsisch.de" title="So geht sächsisch">
|
||||
<amp-img layout="responsive" style="width:100%;"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/banner/soGehtSaechsischWeiss.png"
|
||||
alt="So geht sächsisch"
|
||||
width="2182" height="897"></amp-img>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
Der CWSV ist anerkannter Stützpunktverein des Bundesprogrammes „Integration durch Sport”
|
||||
<div>
|
||||
<a href="https://integration.dosb.de" title="Integration durch Sport">
|
||||
<amp-img layout="responsive"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/IntegrationDurchSport2018.250x.png"
|
||||
title="Integration durch Sport - Anerkannter Stützpunktverein"
|
||||
alt="Integration durch Sport - Anerkannter Stützpunktverein"
|
||||
width="250" height="416"></amp-img>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -0,0 +1,23 @@
|
||||
Die Judoka des CWSV bedanken sich bei ihren Förderern:
|
||||
<ul class="sponsorList">
|
||||
<li>Der CWSV e.V. ist Werbebotschafter der Aktion "So geht sächsisch"
|
||||
<a href="https://www.so-geht-saechsisch.de" title="So geht sächsisch">
|
||||
<img
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/banner/soGehtSaechsischWeiss.png"
|
||||
alt="So geht sächsisch"
|
||||
width="2182" height="897">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
Der CWSV ist anerkannter Stützpunktverein des Bundesprogrammes „Integration durch Sport”
|
||||
<div>
|
||||
<a href="https://integration.dosb.de" title="Integration durch Sport">
|
||||
<img
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/IntegrationDurchSport2018.250x.png"
|
||||
title="Integration durch Sport - Anerkannter Stützpunktverein"
|
||||
alt="Integration durch Sport - Anerkannter Stützpunktverein"
|
||||
width="250" height="416">
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$wkName = "Weihnachtsturnier des Döbelner SC";
|
||||
$wkDatum = "2018-12-15";
|
||||
?>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
include_once("config.inc.php");
|
||||
|
||||
$wkName = empty($wkName) ? "<fehlender Wettkampfname>" : $wkName;
|
||||
|
||||
include_once( $_SERVER['DOCUMENT_ROOT']."/ressourcen/phpLib/videoGallery/videoGallery.tmpl.php" );
|
||||
?>
|
||||
@@ -0,0 +1,277 @@
|
||||
<?php
|
||||
$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");
|
||||
|
||||
$vidGalData = load_vidGal();
|
||||
|
||||
/// Laden der Daten der Videogalerie aus einer json
|
||||
function load_vidGal($filename = "vidGalData.json", $legacyPhpConfigFileName = "config.inc.php"){
|
||||
// Initialisieren des Rückgabewertes
|
||||
$vidGalData = [
|
||||
'name' => "fehlender Name",
|
||||
'date' => "0000-00-00",
|
||||
'vidList' => []
|
||||
];
|
||||
// Laden aus einer config, legacy
|
||||
if( file_exists( $legacyPhpConfigFileName ) ){
|
||||
include( $legacyPhpConfigFileName );
|
||||
if($wkName)
|
||||
$vidGalData["name"] = $wkName;
|
||||
if($wkDatum)
|
||||
$vidGalData["date"] = $wkDatum;
|
||||
}
|
||||
// laden aus einer json
|
||||
if( file_exists( $filename ) ){
|
||||
$jsonString = file_get_contents( $filename);
|
||||
$jsonData = json_decode($jsonString, true);
|
||||
if($jsonData)
|
||||
$vidGalData = $jsonData;
|
||||
}
|
||||
// falls die vidList jetzt immer noch leer ist, wird nach Videodatein gescannt
|
||||
if(empty($vidGalData['vidList'])){
|
||||
$vidGalData['vidList'] = vidScan();
|
||||
file_put_contents($filename, json_encode($vidGalData, JSON_PRETTY_PRINT));
|
||||
}
|
||||
return $vidGalData;
|
||||
}
|
||||
|
||||
/// Scanning for Videos
|
||||
function vidScan( $fmtList = array("webm", "mp4") ){
|
||||
$vidList = [];
|
||||
foreach( $fmtList as $fmt ){
|
||||
foreach( glob("./".$fmt."/*.".$fmt) as $vid){
|
||||
$posterSrc = str_replace( ".".$fmt, ".jpg", # Endung ersetzten, ...
|
||||
str_replace($fmt."/", "thumbnails/", $vid ) ); # nachdem wir das Verzeichnis anpassten
|
||||
$posterSize = getimagesize( $posterSrc );
|
||||
$vidList[] = array(
|
||||
'vidSrc' => $vid,
|
||||
'vidFmt' => $fmt,
|
||||
'posterSrc' => $posterSrc,
|
||||
'width' => $posterSize[0],
|
||||
'height' => $posterSize[1]
|
||||
);
|
||||
}
|
||||
}
|
||||
return $vidList;
|
||||
}
|
||||
|
||||
/// Hilfsfunktion zum Anpassen der htmlDescription
|
||||
function descrName($aName){
|
||||
$retVal = "Videos der Judoka des Chemnitzer WSV beim Wettkampf ".$aName;
|
||||
if( strpos($aName, "Sommerabschlussgrillen") >= 0 ) $retVal = "Videos der Judoka des Chemnitzer WSV beim ".$aName;
|
||||
if( strpos($aName, "Jahrendefeier") >= 0 ) $retVal = "Videos der Judoka des Chemnitzer WSV bei der ".$aName;
|
||||
return $retVal;
|
||||
}/// Ende descrName
|
||||
|
||||
$messages = array();
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title><?php echo( $vidGalData['name'] );?> - Videoalbum</title>
|
||||
<?php PHPCount::AddHit($vidGalData['name'] ." - Videoalbum");?>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="description" content="<?php echo descrName($vidGalData['name'] );?>">
|
||||
<meta name="keywords" content="Album, Videos">
|
||||
<!-- BluimpGallery Zeug -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/ressourcen/blueimpGallery/css/blueimp-gallery.css">
|
||||
<link rel="stylesheet" href="/ressourcen/blueimpGallery/css/blueimp-gallery-indicator.css">
|
||||
<link rel="stylesheet" href="/ressourcen/blueimpGallery/css/blueimp-gallery-video.css">
|
||||
|
||||
<!-- favIcon und Co nach der empfehlung von https://github.com/audreyr/favicon-cheat-sheet -->
|
||||
<?php require_once($basePath."/pages/shared/favicon.html.inc");?>
|
||||
<link rel="shortcut icon" type="image/x-icon" sizes="16x16 32x32 48x48 64x64" href="/ressourcen/graphiken/logos/favicon/favicon.ico">
|
||||
<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/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>
|
||||
<noscript><style>
|
||||
img.lazyload {
|
||||
display: none;
|
||||
}
|
||||
</style></noscript>
|
||||
|
||||
<style>
|
||||
body{box-sizing: border-box; margin: 0;}
|
||||
.smallFont{font-size: small;}
|
||||
.centerText{text-align: center;}
|
||||
.navButton{
|
||||
box-sizing: border-box;
|
||||
border-color: white;
|
||||
border-style: outset;
|
||||
border-radius: 1em;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
padding-left: .5em;
|
||||
padding-right: .5em;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="color: #000000; background-color: #FFAE00" >
|
||||
<a title="Galerien der Judoka des Chemnitzer WSV" href="/galerien">Zur Galerieübersicht</a>
|
||||
<?php
|
||||
/// Eine kleine Messagebox
|
||||
if( !empty($messages) ){
|
||||
?>
|
||||
<div style="border: 1px solid black">
|
||||
<?php
|
||||
if( !empty( $messages['info'] ) ) echo( $messages['info'] );
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<h1 class="centerText" >
|
||||
<?php echo($vidGalData['name'] );?> - Videoalbum
|
||||
</h1>
|
||||
|
||||
<p class="centerText smallFont">
|
||||
[<?php echo count($vidGalData['vidList'])?> Videos]
|
||||
</p>
|
||||
|
||||
<p class="centerText smallFont">
|
||||
Auf die jeweiligen Bilder klicken um das Video anzuwählen.
|
||||
</p>
|
||||
|
||||
<hr/>
|
||||
|
||||
<style type="text/css">
|
||||
body{
|
||||
margin: 0;
|
||||
}
|
||||
.galImgList{
|
||||
font-size: 0;
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.galImgList div{
|
||||
flex: auto;
|
||||
width: 100%;
|
||||
padding: 1vw 0;
|
||||
flex-grow: unset;
|
||||
}
|
||||
.galImgList div img{
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.galImgList div video{
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
@media screen and (min-width: 768px) {
|
||||
.galImgList div{
|
||||
width: calc(100% * (1/3) - 2 * .5vw);
|
||||
margin: .5vw;
|
||||
}
|
||||
.galImgList{
|
||||
padding: .5vw;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1024px) {
|
||||
.galImgList div{
|
||||
width: calc(100% * (1/4) - 2 * 1vw);
|
||||
margin: 1vw;
|
||||
}
|
||||
.galImgList{
|
||||
padding: 1vw;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="links" class="galImgList">
|
||||
<?php
|
||||
foreach( $vidGalData['vidList'] as $vidKey => $vidEntry ){
|
||||
echo( "<div>" );
|
||||
echo "<img class=\"lazyload\" ".
|
||||
// Wir haben unsere eigen noscript-Alternative (die kein img mehr
|
||||
// ist!), deshalb brauchen wir diesen empfohlenen Fallback nicht!
|
||||
// "src=\"".$vidEntry['posterSrc']."\"".
|
||||
// "srcset=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"".
|
||||
"id=\"Video".( $vidKey )."\" ".
|
||||
"data-src=\"".( $vidEntry['posterSrc'] )."\" ".
|
||||
"width=\"".$vidEntry['width']."\" ".
|
||||
"height=\"".$vidEntry['height']."\" ".
|
||||
"alt=\"[".( $vidKey + 1 )."/".( count($vidGalData['vidList']) )."]\" ".
|
||||
"title=\"".( $vidGalData['name'] )." Video ".( $vidKey + 1 )." von ".( count($vidGalData['vidList']) )."\" ".
|
||||
"onclick=\"startGalleryShow(" . $vidKey . ");\"".
|
||||
" />";
|
||||
echo(
|
||||
"<noscript>".
|
||||
"<video controls preload=\"none\" poster=\"".$vidEntry['posterSrc']."\" width=\"".$vidEntry['width']."\" height=\"".$vidEntry['height']."\">".
|
||||
# "<source src=\"".$vidEntry['vidSrc']."\" type=\"video/webm\">".
|
||||
# "<source src=\"".$vidEntry['vidSrc']."\" type=\"video/mp4\">".
|
||||
"<source src=\"".$vidEntry['vidSrc']."\" type=\"video\">".
|
||||
"Dieser Browser scheint das Video nicht abspielen zu können.".
|
||||
"</video>".
|
||||
"</noscript>"
|
||||
);
|
||||
echo("</div>");
|
||||
}
|
||||
?>
|
||||
</div><!-- Ende galImgList -->
|
||||
|
||||
<!-- BluimpGalerry Lightbox Version -->
|
||||
<!-- The Gallery as lightbox dialog, should be a child element of the document body -->
|
||||
<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls">
|
||||
<div class="slides"></div>
|
||||
<h2 class="title"><?php echo $vidGalData['name'] ?></h2>
|
||||
<a class="prev">‹</a>
|
||||
<a class="next">›</a>
|
||||
<a class="close">×</a>
|
||||
<a class="play-pause"></a>
|
||||
<ol class="indicator"></ol>
|
||||
</div>
|
||||
<script>
|
||||
function startGalleryShow(startIndex = 0){
|
||||
var videoList = [
|
||||
<?php
|
||||
foreach( $vidGalData['vidList'] as $vidEntry){
|
||||
echo "{href: '".$vidEntry['vidSrc']."', poster: '".$vidEntry['posterSrc']."', type: 'video/".$vidEntry['vidFmt']."'},";
|
||||
}
|
||||
?>
|
||||
];
|
||||
var gallery = blueimp.Gallery(
|
||||
videoList,
|
||||
{
|
||||
onslide: function (index, slide) {
|
||||
var pageUrl = encodeURIComponent( window.location.href ) + "?index=" + index.toString();
|
||||
var pageTitle = document.title + " [" + index.toString() + "]";
|
||||
|
||||
var xmlHttp = new XMLHttpRequest();
|
||||
xmlHttp.open("GET", callUrl, true); // true for asynchronous
|
||||
xmlHttp.send(null);
|
||||
},
|
||||
startSlideshow: true,
|
||||
stretchImages: true,
|
||||
index: startIndex,
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
window.onload = function () {
|
||||
startGalleryShow();
|
||||
};
|
||||
// startGalleryShow();
|
||||
</script>
|
||||
<hr/>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user