Merge branch 'redesign2018' of /media/sdb1/judoRepo into redesign2018
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
*~
|
*~
|
||||||
|
|
||||||
temp/*
|
temp/*
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ uploadMarker = \
|
|||||||
# $(patsubst phpLib/cwsvJudo/%.php, build/.uploadMarker/phpLib/cwsvJudo/%.php, $(phpLibFiles)) \
|
# $(patsubst phpLib/cwsvJudo/%.php, build/.uploadMarker/phpLib/cwsvJudo/%.php, $(phpLibFiles)) \
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(phpFiles) build/css/cwsvJudo.css
|
all: $(ampFiles) $(phpFiles) build/css/cwsvJudo.css
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
@@ -47,7 +47,8 @@ build/css/cwsvJudo.css: $(cssFiles)
|
|||||||
mkdir -p $(dir $@)
|
mkdir -p $(dir $@)
|
||||||
# cat $(cssFiles) > $@
|
# cat $(cssFiles) > $@
|
||||||
# cat $(cssFiles) | cleancss -o $@
|
# cat $(cssFiles) | cleancss -o $@
|
||||||
cat $^ | ./node_modules/.bin/csso -o $@
|
# cat $^ | ./node_modules/.bin/csso -o $@
|
||||||
|
cat $^ | csso -o $@
|
||||||
|
|
||||||
build/%.php: md/%.md build/yaml/%.yaml pandocTemplate/cwsvJudo.html5.pandocTemplate
|
build/%.php: md/%.md build/yaml/%.yaml pandocTemplate/cwsvJudo.html5.pandocTemplate
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
@@ -90,11 +91,10 @@ build/.uploadMarker/%.php: build/%.php
|
|||||||
ftp://cwsvjudo.bplaced.net/www/pages/responsive/$(patsubst build/%.php,%.php,$^) \
|
ftp://cwsvjudo.bplaced.net/www/pages/responsive/$(patsubst build/%.php,%.php,$^) \
|
||||||
--ftp-create-dirs
|
--ftp-create-dirs
|
||||||
touch $@
|
touch $@
|
||||||
|
sleep 1s
|
||||||
|
|
||||||
build/.uploadMarker/amp/%.php: build/amp/%.php
|
build/.uploadMarker/amp/%.php: build/amp/%.php
|
||||||
mkdir -p build/.uploadMarker/amp
|
mkdir -p build/.uploadMarker/amp
|
||||||
# @toDo: das wenn die Entwicklung des ampParts fertig ist auf das
|
|
||||||
# Zielverzeichnis pages/amp umstellen
|
|
||||||
curl \
|
curl \
|
||||||
--upload-file $^ \
|
--upload-file $^ \
|
||||||
--user cwsvjudo:Dee4oquu \
|
--user cwsvjudo:Dee4oquu \
|
||||||
@@ -106,6 +106,7 @@ build/.uploadMarker/amp/%.php: build/amp/%.php
|
|||||||
ftp://cwsvjudo.bplaced.net/www/pages/$(patsubst build/amp/%.php,amp/%.php,$^) \
|
ftp://cwsvjudo.bplaced.net/www/pages/$(patsubst build/amp/%.php,amp/%.php,$^) \
|
||||||
--ftp-create-dirs
|
--ftp-create-dirs
|
||||||
touch $@
|
touch $@
|
||||||
|
sleep 1s
|
||||||
|
|
||||||
build/.uploadMarker/phpLib/%.php: phpLib/%.php
|
build/.uploadMarker/phpLib/%.php: phpLib/%.php
|
||||||
mkdir -p build/.uploadMarker/phpLib/cwsvJudo
|
mkdir -p build/.uploadMarker/phpLib/cwsvJudo
|
||||||
@@ -127,12 +128,7 @@ build/.uploadMarker/css/%.css: build/css/%.css
|
|||||||
curl \
|
curl \
|
||||||
--upload-file $^ \
|
--upload-file $^ \
|
||||||
--user cwsvjudo:Dee4oquu \
|
--user cwsvjudo:Dee4oquu \
|
||||||
ftp://cwsvjudo.square7.net/pages/responsive/$(patsubst build/%,%,$^) \
|
ftp://cwsvjudo.square7.net/ressourcen/$(patsubst build/%,%,$^) \
|
||||||
--ftp-create-dirs
|
|
||||||
curl \
|
|
||||||
--upload-file $^ \
|
|
||||||
--user cwsvjudo:***REMOVED*** \
|
|
||||||
ftp://cwsvjudo.bplaced.net/www/pages/responsive/$(patsubst build/%,%,$^) \
|
|
||||||
--ftp-create-dirs
|
--ftp-create-dirs
|
||||||
curl \
|
curl \
|
||||||
--upload-file $^ \
|
--upload-file $^ \
|
||||||
@@ -140,6 +136,7 @@ build/.uploadMarker/css/%.css: build/css/%.css
|
|||||||
ftp://cwsvjudo.bplaced.net/www/ressourcen/$(patsubst build/%,%,$^) \
|
ftp://cwsvjudo.bplaced.net/www/ressourcen/$(patsubst build/%,%,$^) \
|
||||||
--ftp-create-dirs
|
--ftp-create-dirs
|
||||||
touch $@
|
touch $@
|
||||||
|
sleep 1s
|
||||||
|
|
||||||
build/.uploadMarker/config/%: config/%
|
build/.uploadMarker/config/%: config/%
|
||||||
mkdir -p build/.uploadMarker/config
|
mkdir -p build/.uploadMarker/config
|
||||||
@@ -154,6 +151,7 @@ build/.uploadMarker/config/%: config/%
|
|||||||
ftp://cwsvjudo.bplaced.net/www/$(patsubst build/%,%,$^) \
|
ftp://cwsvjudo.bplaced.net/www/$(patsubst build/%,%,$^) \
|
||||||
--ftp-create-dirs
|
--ftp-create-dirs
|
||||||
touch $@
|
touch $@
|
||||||
|
sleep 1s
|
||||||
|
|
||||||
|
|
||||||
.PHONY: graphiken
|
.PHONY: graphiken
|
||||||
@@ -165,20 +163,21 @@ cwsvLogoWappen: $(addprefix build/graphiken/cwsvLogoWappen/cwsvLogoWappen.,
|
|||||||
build/graphiken/cwsvJudoLogoWappen/cwsvJudoLogoWappen.png: graphiken/cwsvJudoLogoWappen.xcf
|
build/graphiken/cwsvJudoLogoWappen/cwsvJudoLogoWappen.png: graphiken/cwsvJudoLogoWappen.xcf
|
||||||
mkdir -p $(dir $@)
|
mkdir -p $(dir $@)
|
||||||
convert -layers merge -background transparent $< $@
|
convert -layers merge -background transparent $< $@
|
||||||
build/graphiken/cwsvLogoWappen/cwsvLogoWappen.png: graphiken/cwsvLogoWappen.xcf
|
build/graphiken/cwsvLogoWappen/cwsvLogoWappen.png: graphiken/cwsvLogoWappen.xcf
|
||||||
mkdir -p $(dir $@)
|
mkdir -p $(dir $@)
|
||||||
convert -layers flatten -background transparent $< $@
|
convert -layers flatten -background transparent $< $@
|
||||||
|
|
||||||
build/graphiken/cwsvJudoLogoWappen/cwsvJudoLogoWappen.%w.png: build/graphiken/cwsvJudoLogoWappen/cwsvJudoLogoWappen.png
|
build/graphiken/cwsvJudoLogoWappen/cwsvJudoLogoWappen.%w.png: build/graphiken/cwsvJudoLogoWappen/cwsvJudoLogoWappen.png
|
||||||
mkdir -p $(dir $@)
|
mkdir -p $(dir $@)
|
||||||
convert -layers merge -background transparent -resize $*x $< $@
|
convert -layers merge -background transparent -resize $*x $< $@
|
||||||
# zopfli/zopflipng --iterations=500 --filters=01234mepb --lossy_8bit --lossy_transparent $@ $@
|
zopflipng --iterations=500 --filters=01234mepb --lossy_8bit --lossy_transparent $@ $@
|
||||||
zopflipng -my $@ $@
|
# zopflipng -my $@ $@
|
||||||
build/graphiken/cwsvLogoWappen/cwsvLogoWappen.%w.png: build/graphiken/cwsvLogoWappen/cwsvLogoWappen.png
|
|
||||||
|
build/graphiken/cwsvLogoWappen/cwsvLogoWappen.%w.png: build/graphiken/cwsvLogoWappen/cwsvLogoWappen.png
|
||||||
mkdir -p $(dir $@)
|
mkdir -p $(dir $@)
|
||||||
convert -layers flatten -background transparent -resize $*x $< $@
|
convert -layers flatten -background transparent -resize $*x $< $@
|
||||||
# zopfli/zopflipng --iterations=500 --filters=01234mepb --lossy_8bit --lossy_transparent $@ $@
|
zopflipng --iterations=500 --filters=01234mepb --lossy_8bit --lossy_transparent $@ $@
|
||||||
zopflipng -my $@ $@
|
# zopflipng -my $@ $@
|
||||||
|
|
||||||
|
|
||||||
.PHONY: favIcons
|
.PHONY: favIcons
|
||||||
|
|||||||
@@ -1,55 +0,0 @@
|
|||||||
cssFiles = $(wildcard css/*.css)
|
|
||||||
mdFiles = $(wildcard md/*.md)
|
|
||||||
phpFiles = $(patsubst md/%.md, build/%.php, $(mdFiles))
|
|
||||||
|
|
||||||
uploadMarker = $(patsubst build/%.php, build/.uploadMarker/%.php, $(phpFiles)) build/.uploadMarker/css/cwsvJudo.css
|
|
||||||
|
|
||||||
all: $(phpFiles) build/css/cwsvJudo.css
|
|
||||||
|
|
||||||
.PHONY: echo
|
|
||||||
echo:
|
|
||||||
@echo $(phpFiles)
|
|
||||||
|
|
||||||
build/css/cwsvJudo.css: $(cssFiles)
|
|
||||||
mkdir -p build/css
|
|
||||||
cat $(cssFiles) > $@
|
|
||||||
|
|
||||||
build/%.php: md/%.md pandocTemplate/cwsvJudo.html5.pandocTemplate
|
|
||||||
mkdir -p build
|
|
||||||
pandoc \
|
|
||||||
--standalone \
|
|
||||||
--css=css/cwsvJudo.css \
|
|
||||||
--template=pandocTemplate/cwsvJudo.html5.pandocTemplate \
|
|
||||||
--output=$@ \
|
|
||||||
$<
|
|
||||||
|
|
||||||
.PHONY: upload
|
|
||||||
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*** \
|
|
||||||
ftp://cwsvjudo.bplaced.net/pages/responsive/$(patsubst build/%.php,%.php,$^) \
|
|
||||||
--ftp-create-dirs
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
build/.uploadMarker/css/%.css: build/css/%.css
|
|
||||||
mkdir -p build/.uploadMarker/css
|
|
||||||
curl \
|
|
||||||
--upload-file $^ \
|
|
||||||
--user cwsvjudo:Dee4oquu \
|
|
||||||
ftp://cwsvjudo.square7.net/pages/responsive/$(patsubst build/%,%,$^) \
|
|
||||||
--ftp-create-dirs
|
|
||||||
curl \
|
|
||||||
--upload-file $^ \
|
|
||||||
--user cwsvjudo:***REMOVED*** \
|
|
||||||
ftp://cwsvjudo.bplaced.net/pages/responsive/$(patsubst build/%,%,$^) \
|
|
||||||
--ftp-create-dirs
|
|
||||||
touch $@
|
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
amp-sidebar {
|
||||||
|
background-color: #FF8100;
|
||||||
|
}
|
||||||
|
.sidebar {
|
||||||
|
padding: 10px;
|
||||||
|
margin: 0;
|
||||||
|
background-color: #FF8100;
|
||||||
|
font-size: 1.5em;
|
||||||
|
font-family: 'Orbitron-Medium',sans-serif;
|
||||||
|
}
|
||||||
|
.sidebar > li {
|
||||||
|
list-style: none;
|
||||||
|
margin-bottom:10px;
|
||||||
|
}
|
||||||
|
.sidebar a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
.close-sidebar {
|
||||||
|
font-size: 1.5em;
|
||||||
|
padding-left: 5px;
|
||||||
|
}
|
||||||
@@ -75,22 +75,8 @@ $endfor$
|
|||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
.hamburger {
|
.hamburger {
|
||||||
padding-left: 10px;
|
padding-left: .5em;
|
||||||
}
|
padding-right: .5em;
|
||||||
.sidebar {
|
|
||||||
padding: 10px;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.sidebar > li {
|
|
||||||
list-style: none;
|
|
||||||
margin-bottom:10px;
|
|
||||||
}
|
|
||||||
.sidebar a {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
.close-sidebar {
|
|
||||||
font-size: 1.5em;
|
|
||||||
padding-left: 5px;
|
|
||||||
}
|
}
|
||||||
#mainNav > a > span{
|
#mainNav > a > span{
|
||||||
width: 2em;
|
width: 2em;
|
||||||
@@ -132,8 +118,10 @@ $endfor$
|
|||||||
alt="Judo im Chemnitzer WSV - Promo"
|
alt="Judo im Chemnitzer WSV - Promo"
|
||||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/banner/bannerlogo.1.jpg"
|
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/banner/bannerlogo.1.jpg"
|
||||||
></amp-img>
|
></amp-img>
|
||||||
<span>Judo</span>
|
<span>
|
||||||
<span class="breadcrumbs"></span>
|
<span>Judo</span>
|
||||||
|
<span><?php $$zitat = getRandomCite( getCwsvJudoDbConn() ); echo($$zitat['zitat']);?></span>
|
||||||
|
</span>
|
||||||
<amp-img layout="responsive"
|
<amp-img layout="responsive"
|
||||||
width="64" height="52"
|
width="64" height="52"
|
||||||
title="Judo im Chemnitzer WSV"
|
title="Judo im Chemnitzer WSV"
|
||||||
|
|||||||
@@ -50,6 +50,13 @@ $if(phpTitleFunction)$
|
|||||||
<title><?php $phpTitleFunction$();?></title>
|
<title><?php $phpTitleFunction$();?></title>
|
||||||
$else$
|
$else$
|
||||||
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
|
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
|
||||||
|
$endif$
|
||||||
|
$if(css)$
|
||||||
|
<style>
|
||||||
|
$for(css)$
|
||||||
|
<?php include_once( $$basePath."/$css$" );?>
|
||||||
|
$endfor$
|
||||||
|
</style>
|
||||||
$endif$
|
$endif$
|
||||||
<style>code{white-space: pre;}</style>
|
<style>code{white-space: pre;}</style>
|
||||||
$if(quotes)$
|
$if(quotes)$
|
||||||
@@ -62,9 +69,6 @@ $if(highlighting-css)$
|
|||||||
$highlighting-css$
|
$highlighting-css$
|
||||||
</style>
|
</style>
|
||||||
$endif$
|
$endif$
|
||||||
$for(css)$
|
|
||||||
<link rel="stylesheet" href="/$css$">
|
|
||||||
$endfor$
|
|
||||||
$for(extraCss)$
|
$for(extraCss)$
|
||||||
<link rel="stylesheet" href="$extraCss$">
|
<link rel="stylesheet" href="$extraCss$">
|
||||||
$endfor$
|
$endfor$
|
||||||
@@ -1,13 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
// Umleiten auf eine per query galId im $_GET gegebene Galerie
|
// Umleiten auf eine per query galId im $_GET gegebene Galerie
|
||||||
function galleryRedirector(){
|
function galleryRedirector(){
|
||||||
require_once($_SERVER['DOCUMENT_ROOT']."/bonus/db.inc");
|
global $cwsvJudoConfig;
|
||||||
|
// require_once($_SERVER['DOCUMENT_ROOT']."/bonus/db.inc");
|
||||||
|
|
||||||
if(isset($_GET['galId'])){
|
if(isset($_GET['galId'])){
|
||||||
$redirectLink = $baseDomain."/pages/desktop/verein.galerien.php";
|
$redirectLink = $baseDomain."/pages/desktop/verein.galerien.php";
|
||||||
|
|
||||||
|
// Datenbankverbindung bereit stellen
|
||||||
try{
|
try{
|
||||||
$db_connection = new PDO('mysql:host='.$db_server.';dbname='.$db_name, $db_user, $db_password);
|
$db_connection = new PDO(
|
||||||
|
'mysql:host='.$cwsvJudoConfig["db"]["host"].';dbname='.$cwsvJudoConfig["db"]["name"],
|
||||||
|
$cwsvJudoConfig["db"]["user"],
|
||||||
|
$cwsvJudoConfig["db"]["password"]
|
||||||
|
);
|
||||||
|
|
||||||
if(is_positive_integer($_GET['galId'])){
|
if(is_positive_integer($_GET['galId'])){
|
||||||
// mögliche Werte für das jahr herausfinden
|
// mögliche Werte für das jahr herausfinden
|
||||||
|
|||||||
@@ -109,14 +109,14 @@ return arrayKeyFilter(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function echoThisOrThat($this, $that){
|
function echoThisOrThat($This, $that){
|
||||||
echo( !empty($this) ? $this : $that );
|
echo( !empty($This) ? $This : $that );
|
||||||
}
|
}
|
||||||
function echoThisWhenThat($this, $that){
|
function echoThisWhenThat($This, $that){
|
||||||
if( !empty($that) ) echo( $this );
|
if( !empty($that) ) echo( $This );
|
||||||
}
|
}
|
||||||
function thisWhenThat($this, $that){
|
function thisWhenThat($This, $that){
|
||||||
if( empty($that) ) return "";
|
if( empty($that) ) return "";
|
||||||
return $this;
|
return $This;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ $htmlWkTableString = "";
|
|||||||
"</time>".
|
"</time>".
|
||||||
"</td>".
|
"</td>".
|
||||||
"<td data-title=\"Ausschreibung\" class=\"hyphenate\">".
|
"<td data-title=\"Ausschreibung\" class=\"hyphenate\">".
|
||||||
"<a title=\"Ausschreibung ".$wk['Veranstaltung']."\" href=\"".$wk['Ausschreibung']."\"><span property=\"name\">".$wk['Veranstaltung']."</span></a>".
|
"<a title=\"Ausschreibung ".$wk['Veranstaltung']."\" href=\"http://cwsvjudo.bplaced.net".$wk['Ausschreibung']."\"><span property=\"name\">".$wk['Veranstaltung']."</span></a>".
|
||||||
"</td>".
|
"</td>".
|
||||||
"<td data-title=\"Wegbeschreibung\">".
|
"<td data-title=\"Wegbeschreibung\">".
|
||||||
"<a title=\"Wegbeschreibung ".$wk['Veranstaltung']."\" href=\"".$wk['Routenplaner']."\"><span>".$wk['Ort']."</span></a>".
|
"<a title=\"Wegbeschreibung ".$wk['Veranstaltung']."\" href=\"".$wk['Routenplaner']."\"><span>".$wk['Ort']."</span></a>".
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ home: &home
|
|||||||
icon: *cwsvJudoLogoWappen
|
icon: *cwsvJudoLogoWappen
|
||||||
judoWiki: &judoWiki
|
judoWiki: &judoWiki
|
||||||
caption: "JudoWiki"
|
caption: "JudoWiki"
|
||||||
url: "/JudoWiki"
|
url: "http://cwsvjudo.bplaced.net/JudoWiki"
|
||||||
title: "Lexikon über Judo in Form eines Wiki"
|
title: "Lexikon über Judo in Form eines Wiki"
|
||||||
icon: *iconWikipediaW
|
icon: *iconWikipediaW
|
||||||
training: &training
|
training: &training
|
||||||
@@ -25,7 +25,7 @@ wkKalender: &wkKalender
|
|||||||
wkParticipo: &wkParticipo
|
wkParticipo: &wkParticipo
|
||||||
caption: "Wettkampf­planer"
|
caption: "Wettkampf­planer"
|
||||||
icon: *iconPlanner
|
icon: *iconPlanner
|
||||||
url: "/pages/desktop/wkParticipo"
|
url: "http://cwsvjudo.bplaced.net/pages/desktop/wkParticipo"
|
||||||
galerien: &galerien
|
galerien: &galerien
|
||||||
caption: "Galerien"
|
caption: "Galerien"
|
||||||
url: "/galerien"
|
url: "/galerien"
|
||||||
|
|||||||
Reference in New Issue
Block a user