diff options
| -rw-r--r-- | gospeladlershof.de/Makefile | 8 | ||||
| -rw-r--r-- | gospeladlershof.de/layouts/index.html | 2 | ||||
| -rw-r--r-- | gospeladlershof.de/layouts/partials/footer.tmpl | 1 | ||||
| -rw-r--r-- | gospeladlershof.de/layouts/partials/header.tmpl | 6 | ||||
| -rw-r--r-- | intern.gospeladlershof.de/chor.php | 1 | ||||
| -rw-r--r-- | intern.gospeladlershof.de/code/login.php | 2 | ||||
| -rw-r--r-- | intern.gospeladlershof.de/header.php | 1 | ||||
| -rw-r--r-- | intern.gospeladlershof.de/index.php | 5 | ||||
| -rw-r--r-- | intern.gospeladlershof.de/konzert.php | 1 | ||||
| -rw-r--r-- | intern.gospeladlershof.de/login.php | 2 | ||||
| -rw-r--r-- | intern.gospeladlershof.de/proben.php | 1 | ||||
| -rw-r--r-- | intern.gospeladlershof.de/video.php | 48 |
12 files changed, 70 insertions, 8 deletions
diff --git a/gospeladlershof.de/Makefile b/gospeladlershof.de/Makefile index 8c80b2a..458694d 100644 --- a/gospeladlershof.de/Makefile +++ b/gospeladlershof.de/Makefile @@ -1,7 +1,11 @@ export PATH := /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/horus/app/gospeladlershof.de/gospeladlershof.de/node_modules/gulp/bin +GOSPELCLIENT:=/usr/local/bin/gospelclient all: build +test: + if [ ! -x $(GOSPELCLIENT) ]; then echo "Please compile the client first and move it to $(GOSPELCLIENT). cd resources/mq/client && go build"; exit 1; fi + build: clean @HUGO_TEST=1 hugo --ignoreCache --log=true --logFile=../log/hugo.log --verbose=false 1>/dev/null \ || ( echo "Failure building the site." && exit 1) @@ -22,10 +26,10 @@ serve: server server: HUGO_TEST=0 hugo server -deploy: build +deploy: test build @if [ -d "/var/www/gospeladlershof.de/gospeladlershof.de/" ]; then \ rsync --delete -avz public/ /var/www/gospeladlershof.de/gospeladlershof.de/ && \ - /usr/local/bin/gospelclient; \ + $(GOSPELCLIENT); \ else \ rsync --delete -avze ssh public/ online:/var/www/gospeladlershof.de/gospeladlershof.de/; \ fi diff --git a/gospeladlershof.de/layouts/index.html b/gospeladlershof.de/layouts/index.html index ec89157..b47a776 100644 --- a/gospeladlershof.de/layouts/index.html +++ b/gospeladlershof.de/layouts/index.html @@ -99,7 +99,7 @@ <div class="col-lg-8 col-lg-offset-2 text-center"> <h2 class="section-heading">Probenplan</h2> <hr class="primary"> - <p>Wir proben jeden zweiten Montag im Gemeinderaum, bei Feiertagen verschiebt sich der Rhythmus um eine Woche. Unsere nächsten Proben sind:</p> + <p>Wir proben jeden Montag im Gemeinderaum, außer an Feiertagen. Unsere nächsten Proben sind:</p> {{ $k := index $termine "proben"}} <p>{{ range $index, $t := first 3 $k}} {{if $index }}<br>{{end}} {{$t.termin}} ( {{$t.uhrzeit}} ){{end}}</p> <!--p>{{ range $index, $t := first 3 $.Site.Data.termine.proben.termine}} {{if $index }}<br>{{end}} {{$t.termin}} ( {{$t.uhrzeit}} ){{end}}</p--> diff --git a/gospeladlershof.de/layouts/partials/footer.tmpl b/gospeladlershof.de/layouts/partials/footer.tmpl index c841b67..0ef59d7 100644 --- a/gospeladlershof.de/layouts/partials/footer.tmpl +++ b/gospeladlershof.de/layouts/partials/footer.tmpl @@ -12,4 +12,3 @@ </div> </footer> <span class="hidden" id="build">{{$.Scratch.Get "build"}}</span> - diff --git a/gospeladlershof.de/layouts/partials/header.tmpl b/gospeladlershof.de/layouts/partials/header.tmpl index b26ff73..8331d3b 100644 --- a/gospeladlershof.de/layouts/partials/header.tmpl +++ b/gospeladlershof.de/layouts/partials/header.tmpl @@ -62,13 +62,12 @@ _paq.push(['enableLinkTracking']); (function() { var u="//a.iamfabulous.de/"; - _paq.push(['setTrackerUrl', u+'piwik.php']); + _paq.push(['setTrackerUrl', u+'js/index.php']); _paq.push(['setSiteId', 19]); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; - g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); + g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'js/index.php'; s.parentNode.insertBefore(g,s); })(); </script> -<noscript><p><img src="//a.iamfabulous.de/piwik.php?idsite=19&rec=1" style="border:0;" alt="" /></p></noscript> <!-- End Piwik Code --> {{ end }} @@ -84,3 +83,4 @@ </head> <body id="page-top"> +<noscript><p><img src="//a.iamfabulous.de/js/index.php?idsite=19&rec=1" style="border:0;" alt="" /></p></noscript> diff --git a/intern.gospeladlershof.de/chor.php b/intern.gospeladlershof.de/chor.php index 57902f9..32fed51 100644 --- a/intern.gospeladlershof.de/chor.php +++ b/intern.gospeladlershof.de/chor.php @@ -4,6 +4,7 @@ $class_konzert = ''; $class_index= ''; $class_proben= ''; $class_chor= 'class="active"'; +$class_video= ''; require_once __DIR__ . '/header.php'; require_once __DIR__ . '/code/db.php'; diff --git a/intern.gospeladlershof.de/code/login.php b/intern.gospeladlershof.de/code/login.php index ea758a4..ba41b1c 100644 --- a/intern.gospeladlershof.de/code/login.php +++ b/intern.gospeladlershof.de/code/login.php @@ -14,6 +14,7 @@ if ( "2397be3187f0ab864802fbe2b6c3207a01328988d524973d4eeaa48928410a2588263882e3 "373a3dd664c54f99059c4801f3807bdc16c4c22f208a05a5a3d8e990c3e76d4a96c27ebe6aa2b8db1ca02eee3d5e5a458dc5819e3852952f5b7d5f3e631b6fcf" === $passwd ) { +/* if ( $mail === "Chor" || "chor" === $mail ) { $_SESSION["login"] = true; $_SESSION["success"] = "Erfolgreich eingeloggt. Der Nutzername 'chor' wird bald deaktiviert. Bitte benutze deine E-Mail-Adresse als Login-Name."; @@ -26,6 +27,7 @@ if ( $mail === "Chor" || "chor" === $mail ) { exit; } + */ foreach($addresses as $a) { if ( strtolower($mail) === strtolower($a) ) { $_SESSION["login"] = true; diff --git a/intern.gospeladlershof.de/header.php b/intern.gospeladlershof.de/header.php index 1bbe634..65bc75f 100644 --- a/intern.gospeladlershof.de/header.php +++ b/intern.gospeladlershof.de/header.php @@ -92,6 +92,7 @@ if ( ! defined("LOGIN_SITE") || ! LOGIN_SITE ) { <li <?php echo $class_index; ?>><a href="/"><span class="glyphicon glyphicon-home"></span> Start</a></li> <li <?php echo $class_proben; ?>><a href="/proben.php"><span class="glyphicon glyphicon-th-list"></span> Termine</a></li> <li <?php echo $class_konzert; ?>><a href="/konzert.php"><span class="glyphicon glyphicon-music"></span> Konzert</a></li> + <li <?php echo $class_video; ?>><a href="/video.php"><span class="glyphicon glyphicon-facetime-video"></span> Videos</a></li> <li <?php echo $class_chor; ?>><a href="/chor.php"><span class="glyphicon glyphicon-user"></span> Chor</a></li> <li><a href="/mailman/listinfo/chor/"><span class="glyphicon glyphicon-envelope"></span> E-Mail Verteiler</a></li> <li><a href="/mailman/private/chor/"><span class="glyphicon glyphicon-send"></span> E-Mail Archiv</a></li> diff --git a/intern.gospeladlershof.de/index.php b/intern.gospeladlershof.de/index.php index 2ec7ccb..f23d39a 100644 --- a/intern.gospeladlershof.de/index.php +++ b/intern.gospeladlershof.de/index.php @@ -4,6 +4,8 @@ $class_index = 'class="active"'; $class_konzert= ''; $class_proben= ''; $class_chor= ''; +$class_video= ''; + require_once __DIR__ . '/header.php'; ?> @@ -70,6 +72,9 @@ if ( isset($_SESSION["error"]) && ! is_null($_SESSION["error"]) ) { } } ?> +<div class="alert alert-info" role="alert"> +<p><span class="glyphicon glyphicon-facetime-video"></span> Zu den Videos geht es hier lang: <a href="/video.php"><u><?php echo htmlentities(">>Klick<<");?></u></a>.</p> +</div> <h3>Das nächste Konzert</h3> <div class="table-responsive"> <table class="table table-striped table-condensed"> diff --git a/intern.gospeladlershof.de/konzert.php b/intern.gospeladlershof.de/konzert.php index 0cdec2e..caf4c02 100644 --- a/intern.gospeladlershof.de/konzert.php +++ b/intern.gospeladlershof.de/konzert.php @@ -4,6 +4,7 @@ $class_konzert = 'class="active"'; $class_index= ''; $class_proben= ''; $class_chor= ''; +$class_video= ''; require_once __DIR__ . '/header.php'; ?> diff --git a/intern.gospeladlershof.de/login.php b/intern.gospeladlershof.de/login.php index aba1467..c9462f1 100644 --- a/intern.gospeladlershof.de/login.php +++ b/intern.gospeladlershof.de/login.php @@ -31,7 +31,7 @@ if ( ! empty($_SESSION) ) { ?> <h2 class="form-signin-heading">Bitte melde dich an</h2> <label for="inputEmail" class="sr-only">E-Mail Adresse</label> - <input name="email" type="text" id="inputEmail" class="form-control" placeholder="E-Mail-Adresse" required autofocus> + <input name="email" type="email" id="inputEmail" class="form-control" placeholder="E-Mail-Adresse" required autofocus> <label for="inputPassword" class="sr-only">Passwort</label> <input name="password" type="password" id="inputPassword" class="form-control" placeholder="Passwort" required> <!--div class="checkbox"> diff --git a/intern.gospeladlershof.de/proben.php b/intern.gospeladlershof.de/proben.php index 671d448..108acea 100644 --- a/intern.gospeladlershof.de/proben.php +++ b/intern.gospeladlershof.de/proben.php @@ -4,6 +4,7 @@ $class_proben= 'class="active"'; $class_index= ''; $class_konzert= ''; $class_chor= ''; +$class_video= ''; require_once __DIR__ . '/header.php'; ?> diff --git a/intern.gospeladlershof.de/video.php b/intern.gospeladlershof.de/video.php new file mode 100644 index 0000000..e2dad4a --- /dev/null +++ b/intern.gospeladlershof.de/video.php @@ -0,0 +1,48 @@ +<?php +$title = "Neues Konzert"; +$class_konzert = ''; +$class_index= ''; +$class_proben= ''; +$class_chor= ''; +$class_video= 'class="active"'; + +require_once __DIR__ . '/header.php'; +?> +<div class="container"> + <!--div class="row"> +<h1>The River is flowing</h1> +<div align="center" class="embed-responsive embed-responsive-16by9"> + <video controls class="embed-responsive-item" preload="metadata"> + <source src=https://static.gospeladlershof.de/videos/theriverisflowing.mp4 type=video/mp4> + </video> +</div> + </div--> <!-- /.row --> + <div class="row"> +<h1>King of Kings</h1> +<div align="center" class="embed-responsive embed-responsive-16by9"> + <video controls class="embed-responsive-item" preload="metadata"> + <source src=https://static.gospeladlershof.de/videos/kingofkings.mp4 type=video/mp4> + </video> +</div> + </div> <!-- /.row --> + <div class="row"> +<h1>Jesus is my Salvation</h1> +<div align="center" class="embed-responsive embed-responsive-16by9"> + <video controls class="embed-responsive-item" preload="metadata"> + <source src=https://static.gospeladlershof.de/videos/jesusismysalvation.mp4 type=video/mp4> + </video> +</div> + </div> <!-- /.row --> + <div class="row"> +<h1>Jesus on the Mainline</h1> +<div align="center" class="embed-responsive embed-responsive-16by9"> + <video controls class="embed-responsive-item" preload="metadata"> + <source src=https://static.gospeladlershof.de/videos/jesusonthemainline.mp4 type=video/mp4> + </video> +</div> + </div> <!-- /.row --> +</div> <!-- /container --> + +<?php +require_once __DIR__ . '/footer.php'; +?> |
