Commit c9ca4f35 authored by Philipp's avatar Philipp

Made extracams optional

parent 47280b59
......@@ -41,4 +41,16 @@
#if $varExists('almanac')
<div class="whitebg"><h3>Sonne</h3><div class="container-fluid dsdigi" id="we_sun"><div class="row"><div class="col-xs-6"><img alt="Sun" class="img-responsive" src="assets/img/sun.svg"></div><div class="col-xs-6"><p><span class="glyphicon glyphicon-chevron-up"></span> $almanac.sunrise</p><p><span class="glyphicon glyphicon-chevron-down"></span> $almanac.sunset</p></div></div></div></div><div class="whitebg"><h3>Mond</h3><div class="container-fluid dsdigi" id="we_moon"><div class="row"><div class="col-xs-6"><img alt="Moon" class="img-responsive" src="assets/img/moon.svg"></div><div class="col-xs-6"><p><span class="glyphicon glyphicon-chevron-up"></span> $almanac.moon.rise</p><p><span class="glyphicon glyphicon-chevron-down"></span> $almanac.moon.set</p></div></div><div class="row"><div class="col-md-3 center percent">$almanac.moon_fullness%</div><div class="center col-md-9 phase">$almanac.moon_phase</div></div></div></div>
#end if
</div></div><div class="container"><div class="col-md-4"><div class="whitebg"><a href="$Extras.extracam1_link" target="_blank"><img alt="$Extras.extracam1_title" class="img-responsive" src="$Extras.extracam1_img"></a></div></div><div class="col-md-4"><div class="whitebg"><a href="$Extras.extracam2_link" target="_blank"><img alt="$Extras.extracam2_title" class="img-responsive" src="$Extras.extracam2_img"></a></div></div><div class="col-md-4"><div class="whitebg"><a href="$Extras.extracam3_link" target="_blank"><img alt="$Extras.extracam3_title" class="img-responsive" src="$Extras.extracam3_img"></a></div></div></div><footer class="footer"><div class="container">&copy; 2008-$current.dateTime.format("%Y") <a href="https://www.ambnet.biz" target="_blank">ambNET</a> (<a href="contact.html">Impressum</a>)<br>Powered by <a href="http://weewx.com/" target="_blank">weeWX</a> using <a href="https://rabenwetter.de" target="_blank">Rabenwetter Template</a></div></footer><script type="text/javascript">var cam1url="$Extras.webcam1_img",cam2url="$Extras.webcam2_img",cam1interval=$Extras.webcam1_interval,cam2interval=$Extras.webcam2_interval,lapsesurl="$Extras.lapses_url"</script><script src="assets/js/complete.min.js"></script></body></html>
\ No newline at end of file
</div></div><div class="container"><div class="col-md-4">
#if $varExists('Extras.extracam1_img')
<div class="whitebg"><a href="$Extras.extracam1_link" target="_blank"><img alt="$Extras.extracam1_title" class="img-responsive" src="$Extras.extracam1_img"></a></div>
#end if
</div><div class="col-md-4">
#if $varExists('Extras.extracam2_img')
<div class="whitebg"><a href="$Extras.extracam2_link" target="_blank"><img alt="$Extras.extracam2_title" class="img-responsive" src="$Extras.extracam2_img"></a></div>
#end if
</div><div class="col-md-4">
#if $varExists('Extras.extracam3_img')
<div class="whitebg"><a href="$Extras.extracam3_link" target="_blank"><img alt="$Extras.extracam3_title" class="img-responsive" src="$Extras.extracam3_img"></a></div>
#end if
</div></div><footer class="footer"><div class="container">&copy; 2008-$current.dateTime.format("%Y") <a href="https://www.ambnet.biz" target="_blank">ambNET</a> (<a href="contact.html">Impressum</a>)<br>Powered by <a href="http://weewx.com/" target="_blank">weeWX</a> using <a href="https://rabenwetter.de" target="_blank">Rabenwetter Template</a></div></footer><script type="text/javascript">var cam1url="$Extras.webcam1_img",cam2url="$Extras.webcam2_img",cam1interval=$Extras.webcam1_interval,cam2interval=$Extras.webcam2_interval,lapsesurl="$Extras.lapses_url"</script><script src="assets/js/complete.min.js"></script></body></html>
\ No newline at end of file
......@@ -63,14 +63,15 @@
webcam2_interval = 300
# Images and links for the three extra images at the bottom of the homepage
extracam1_title = 'Niddastausee'
extracam1_img = 'external/wfc.jpg'
extracam1_link = 'https://www.wfc-schotten.de/wetter'
extracam2_title = 'Ortenberg Messeplatz'
extracam2_img = 'external/ortenberg1.jpg'
extracam2_link = 'http://www.wetter.ortenberg.net/'
# Comment to disable.
extracam1_title = 'Rabenwetter'
extracam1_img = 'https://www.rabenwetter.de/photocam/rabenberg-hires.jpg'
extracam1_link = 'https://www.rabenwetter.de'
extracam2_title = 'Niddastausee'
extracam2_img = 'https://www.rabenwetter.de/external/wfc.jpg'
extracam2_link = 'https://www.wfc-schotten.de/wetter'
extracam3_title = 'Ortenberg Marktplatz'
extracam3_img = 'external/ortenberg2.jpg'
extracam3_img = 'https://www.rabenwetter.de/external/ortenberg2.jpg'
extracam3_link = 'http://www.wetter.ortenberg.net/'
# News to display on home page, below cam images
......
......@@ -41,4 +41,16 @@
#if $varExists('almanac')
<div class="whitebg"><h3>Sun</h3><div class="container-fluid dsdigi" id="we_sun"><div class="row"><div class="col-xs-6"><img alt="Sun" class="img-responsive" src="assets/img/sun.svg"></div><div class="col-xs-6"><p><span class="glyphicon glyphicon-chevron-up"></span> $almanac.sunrise</p><p><span class="glyphicon glyphicon-chevron-down"></span> $almanac.sunset</p></div></div></div></div><div class="whitebg"><h3>Moon</h3><div class="container-fluid dsdigi" id="we_moon"><div class="row"><div class="col-xs-6"><img alt="Moon" class="img-responsive" src="assets/img/moon.svg"></div><div class="col-xs-6"><p><span class="glyphicon glyphicon-chevron-up"></span> $almanac.moon.rise</p><p><span class="glyphicon glyphicon-chevron-down"></span> $almanac.moon.set</p></div></div><div class="row"><div class="col-md-3 center percent">$almanac.moon_fullness%</div><div class="center col-md-9 phase">$almanac.moon_phase</div></div></div></div>
#end if
</div></div><div class="container"><div class="col-md-4"><div class="whitebg"><a href="$Extras.extracam1_link" target="_blank"><img alt="$Extras.extracam1_title" class="img-responsive" src="$Extras.extracam1_img"></a></div></div><div class="col-md-4"><div class="whitebg"><a href="$Extras.extracam2_link" target="_blank"><img alt="$Extras.extracam2_title" class="img-responsive" src="$Extras.extracam2_img"></a></div></div><div class="col-md-4"><div class="whitebg"><a href="$Extras.extracam3_link" target="_blank"><img alt="$Extras.extracam3_title" class="img-responsive" src="$Extras.extracam3_img"></a></div></div></div><footer class="footer"><div class="container">&copy; 2008-$current.dateTime.format("%Y") <a href="https://www.ambnet.biz" target="_blank">ambNET</a> (<a href="contact.html">Impressum</a>)<br>Powered by <a href="http://weewx.com/" target="_blank">weeWX</a> using <a href="https://rabenwetter.de" target="_blank">Rabenwetter Template</a></div></footer><script type="text/javascript">var cam1url="$Extras.webcam1_img",cam2url="$Extras.webcam2_img",cam1interval=$Extras.webcam1_interval,cam2interval=$Extras.webcam2_interval,lapsesurl="$Extras.lapses_url"</script><script src="assets/js/complete.min.js"></script></body></html>
\ No newline at end of file
</div></div><div class="container"><div class="col-md-4">
#if $varExists('Extras.extracam1_img')
<div class="whitebg"><a href="$Extras.extracam1_link" target="_blank"><img alt="$Extras.extracam1_title" class="img-responsive" src="$Extras.extracam1_img"></a></div>
#end if
</div><div class="col-md-4">
#if $varExists('Extras.extracam2_img')
<div class="whitebg"><a href="$Extras.extracam2_link" target="_blank"><img alt="$Extras.extracam2_title" class="img-responsive" src="$Extras.extracam2_img"></a></div>
#end if
</div><div class="col-md-4">
#if $varExists('Extras.extracam3_img')
<div class="whitebg"><a href="$Extras.extracam3_link" target="_blank"><img alt="$Extras.extracam3_title" class="img-responsive" src="$Extras.extracam3_img"></a></div>
#end if
</div></div><footer class="footer"><div class="container">&copy; 2008-$current.dateTime.format("%Y") <a href="https://www.ambnet.biz" target="_blank">ambNET</a> (<a href="contact.html">Impressum</a>)<br>Powered by <a href="http://weewx.com/" target="_blank">weeWX</a> using <a href="https://rabenwetter.de" target="_blank">Rabenwetter Template</a></div></footer><script type="text/javascript">var cam1url="$Extras.webcam1_img",cam2url="$Extras.webcam2_img",cam1interval=$Extras.webcam1_interval,cam2interval=$Extras.webcam2_interval,lapsesurl="$Extras.lapses_url"</script><script src="assets/js/complete.min.js"></script></body></html>
\ No newline at end of file
......@@ -63,14 +63,15 @@
webcam2_interval = 300
# Images and links for the three extra images at the bottom of the homepage
extracam1_title = 'Niddastausee'
extracam1_img = 'external/wfc.jpg'
extracam1_link = 'https://www.wfc-schotten.de/wetter'
extracam2_title = 'Ortenberg Messeplatz'
extracam2_img = 'external/ortenberg1.jpg'
extracam2_link = 'http://www.wetter.ortenberg.net/'
# Comment to disable.
extracam1_title = 'Rabenwetter'
extracam1_img = 'https://www.rabenwetter.de/photocam/rabenberg-hires.jpg'
extracam1_link = 'https://www.rabenwetter.de'
extracam2_title = 'Niddastausee'
extracam2_img = 'https://www.rabenwetter.de/external/wfc.jpg'
extracam2_link = 'https://www.wfc-schotten.de/wetter'
extracam3_title = 'Ortenberg Marktplatz'
extracam3_img = 'external/ortenberg2.jpg'
extracam3_img = 'https://www.rabenwetter.de/external/ortenberg2.jpg'
extracam3_link = 'http://www.wetter.ortenberg.net/'
# News to display on home page, below cam images
......
......@@ -15,6 +15,7 @@ browser.autorefresh.Chrome.INTEGRATED=true
browser.highlightselection.Chrome.INTEGRATED=true
browser.run=true
file.reference.template_rabenwetter-dist=dist
file.reference.template_rabenwetter-dist.de=dist.de
file.reference.template_rabenwetter-src=src
file.reference.template_rabenwetter-test=test
file.reference.website_rabenwetter-dist=dist
......@@ -23,7 +24,7 @@ file.reference.website_rabenwetter-src=src
file.reference.website_rabenwetter-test=test
files.encoding=UTF-8
project.license=default
site.root.folder=${file.reference.template_rabenwetter-dist}
site.root.folder=${file.reference.template_rabenwetter-dist.de}
source.folder=${file.reference.template_rabenwetter-src}
start.file=index.html
test.folder=${file.reference.template_rabenwetter-test}
......
......@@ -402,19 +402,37 @@
</div>
<div class="container">
<div class="col-md-4">
<!-- htmlmin:ignore -->
#if $varExists('Extras.extracam1_img')
<!-- htmlmin:ignore -->
<div class="whitebg">
<a href="$Extras.extracam1_link" target="_blank"><img src="$Extras.extracam1_img" alt="$Extras.extracam1_title" class="img-responsive" /></a>
</div>
<!-- htmlmin:ignore -->
#end if
<!-- htmlmin:ignore -->
</div>
<div class="col-md-4">
<!-- htmlmin:ignore -->
#if $varExists('Extras.extracam2_img')
<!-- htmlmin:ignore -->
<div class="whitebg">
<a href="$Extras.extracam2_link" target="_blank"><img src="$Extras.extracam2_img" alt="$Extras.extracam2_title" class="img-responsive" /></a>
</div>
<!-- htmlmin:ignore -->
#end if
<!-- htmlmin:ignore -->
</div>
<div class="col-md-4">
<!-- htmlmin:ignore -->
#if $varExists('Extras.extracam3_img')
<!-- htmlmin:ignore -->
<div class="whitebg">
<a href="$Extras.extracam3_link" target="_blank"><img src="$Extras.extracam3_img" alt="$Extras.extracam3_title" class="img-responsive" /></a>
</div>
<!-- htmlmin:ignore -->
#end if
<!-- htmlmin:ignore -->
</div>
</div>
<footer class="footer">
......
......@@ -63,14 +63,15 @@
webcam2_interval = 300
# Images and links for the three extra images at the bottom of the homepage
extracam1_title = 'Niddastausee'
extracam1_img = 'external/wfc.jpg'
extracam1_link = 'https://www.wfc-schotten.de/wetter'
extracam2_title = 'Ortenberg Messeplatz'
extracam2_img = 'external/ortenberg1.jpg'
extracam2_link = 'http://www.wetter.ortenberg.net/'
# Comment to disable.
extracam1_title = 'Rabenwetter'
extracam1_img = 'https://www.rabenwetter.de/photocam/rabenberg-hires.jpg'
extracam1_link = 'https://www.rabenwetter.de'
extracam2_title = 'Niddastausee'
extracam2_img = 'https://www.rabenwetter.de/external/wfc.jpg'
extracam2_link = 'https://www.wfc-schotten.de/wetter'
extracam3_title = 'Ortenberg Marktplatz'
extracam3_img = 'external/ortenberg2.jpg'
extracam3_img = 'https://www.rabenwetter.de/external/ortenberg2.jpg'
extracam3_link = 'http://www.wetter.ortenberg.net/'
# News to display on home page, below cam images
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment