added eventpage (not in linkstructure yet)
This commit is contained in:
47
homepage/participo/event.php
Normal file
47
homepage/participo/event.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . './lib/');
|
||||
|
||||
require_once 'participoLib/event.php';
|
||||
|
||||
// Configs
|
||||
require_once 'config/participo.php';
|
||||
require_once $config['basePath'] . '/config/cwsvJudo.config.php';
|
||||
|
||||
participo::init($cwsvJudoConfig);
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<!-- shared imports (common css, MaterializeCss) -->
|
||||
<?php readfile('shared/imports.php'); ?>
|
||||
|
||||
<!-- inits for the materializeCss -->
|
||||
<script src="events.js"></script>
|
||||
|
||||
<title><?php echo($meta['title']); ?></title>
|
||||
<meta name="description"
|
||||
content="<?php echo($meta['description']); ?>" />
|
||||
|
||||
<link rel="icon" href="<?echo($config['ressourceUrl']);?>/graphiken/icons/cwsv.ico" />
|
||||
<link rel="apple-touch-icon" href="<?echo($config['baseUrl']);?>/apple-touch-icon.png">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<!-- The sidenav -->
|
||||
<?php require './events.sidenav.inc.php'; ?>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<?php participo::eventPage()->html(); ?>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -87,6 +87,9 @@ class Event
|
||||
if ((!isset($this->shiai) || $forceLoading) && isset($this->shiaiId)) {
|
||||
$this->shiai = Shiai::loadFromDb($this->shiaiId);
|
||||
}
|
||||
if ($this->shiai == null){
|
||||
$this->shiai = Shiai::fromDbArray(json_decode($this->remarks, true));
|
||||
}
|
||||
return $this->shiai;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ $db = dbConnector::connect(
|
||||
$cwsvJudoConfig['db']['user'],
|
||||
$cwsvJudoConfig['db']['password']
|
||||
);
|
||||
echo($db);
|
||||
// echo($db);
|
||||
|
||||
$wkSqlQuery = 'SELECT * FROM `wettkampfkalender` WHERE `Datum` >= CURDATE();';
|
||||
$wkSqlResponse = dbConnector::query($wkSqlQuery);
|
||||
|
||||
@@ -2,6 +2,7 @@ include Makefile.private
|
||||
|
||||
infoZettel=$(patsubst %.md,%.pdf,$(wildcard *.md))
|
||||
infoZettel-2x2=$(patsubst %.md,%-2x2.pdf,$(wildcard *.md))
|
||||
infoZettel-booklet=$(patsubst %.md,%-booklet.pdf,$(wildcard *.md))
|
||||
wkZettel=$(patsubst %.md,%.pdf,$(wildcard wkZettel/*.md))
|
||||
wkZettel-2x2=$(patsubst %.md,%-2x2.pdf,$(wildcard wkZettel/*.md))
|
||||
kyuZettel=$(patsubst %.md,%.pdf,$(wildcard kyuZettel/*.md))
|
||||
@@ -37,7 +38,7 @@ aushaenge: $(aushaenge)
|
||||
--variable classoption="twoside=true" \
|
||||
--variable classoption="DIV=28" \
|
||||
--variable classoption="BCOR=0mm" \
|
||||
--variable classoption="paper=A6" \
|
||||
--variable classoption="paper=A5" \
|
||||
--variable classoption="fontsize=10pt" \
|
||||
--variable classoption="parskip=never" \
|
||||
--variable classoption="headsepline=true" \
|
||||
@@ -48,7 +49,10 @@ aushaenge: $(aushaenge)
|
||||
$^
|
||||
|
||||
%-2x2.pdf: %.pdf
|
||||
pdfjam --no-landscape --nup 2x2 --suffix '2x2' $^ '1,1,1,1,2,2,2,2' --outfile $@
|
||||
pdfjam --no-landscape --nup 2x1 --suffix '2x2' $^ '2,3,1,4,2,2,2,2' --outfile $@
|
||||
|
||||
%-booklet.pdf: %.pdf
|
||||
pdfjam --landscape --nup 2x1 --suffix 'booklet' $^ '2,3,1,4' --outfile $@
|
||||
|
||||
aushang/%.pdf: aushang/%.md
|
||||
pandoc \
|
||||
|
||||
@@ -4,7 +4,7 @@ include passwords
|
||||
.PHONY: updateSubmodules
|
||||
updateSubmodules: checkoutSubmodulesDefaultBranches
|
||||
git submodule foreach git pull
|
||||
|
||||
|
||||
.PHONY:
|
||||
checkoutSubmodulesDefaultBranches:
|
||||
git -C lite-youtube-embed checkout master
|
||||
@@ -13,12 +13,11 @@ checkoutSubmodulesDefaultBranches:
|
||||
git -C spyc checkout master
|
||||
git -C zopfli checkout master
|
||||
|
||||
|
||||
.PHONY: buildMaterialize
|
||||
buildMaterialize: updateSubmodules
|
||||
./buildMaterialize.sh
|
||||
|
||||
.PHONY: deployMaterialize
|
||||
# deployMaterialize: buildMaterialize
|
||||
deployMaterialize: $(materialiceCssDist)
|
||||
cd materialize/dist/ && find . -type f -exec curl --verbose -u cwsvjudo:$(ftpPassword) --ftp-create-dirs -T {} ftp://cwsvjudo.bplaced.net/www/ressourcen/materializeCss/{} \;
|
||||
deployMaterialize: buildMaterialize
|
||||
# @todo correctly check the cert
|
||||
lftp -e "set ftp:ssl-allow no; mirror -R 'materialize/dist' 'www/ressourcen/materializeCss'; bye;" -u cwsvjudo,$(ftpPassword) cwsvjudo.bplaced.net
|
||||
|
||||
Submodule submodules/lite-youtube-embed updated: be6f03ef53...f9fc3a2475
Submodule submodules/materialize updated: bf29da7b2a...68e5224811
Submodule submodules/parsedown updated: 6598f3860c...77947eda2f
Binary file not shown.
Reference in New Issue
Block a user