Browse Source

sept-okt dates, larger lightbox

master
Clemens Richter 7 years ago
parent
commit
e4b9b50963
  1. 12
      .gitignore
  2. 7
      user/config/system.yaml
  3. 48
      user/pages/03.termine/sidebarpage.de.md
  4. 2
      user/pages/03.termine/templates.py
  5. BIN
      user/pages/03.termine/templates.pyc
  6. 11
      user/pages/03.termine/termine-web.py
  7. 4
      user/pages/08.predigtaufnahmen/default.de.md
  8. 2
      user/themes/church/css/css-only-lightbox.css
  9. 2
      user/themes/church/css/css-only-lightbox.min.css
  10. 78
      user/themes/church/js/polyfill_Array.from.js
  11. 1
      user/themes/church/js/polyfill_Array.from.min.js
  12. 3
      user/themes/church/templates/partials/base.html.twig

12
.gitignore vendored

@ -4,10 +4,14 @@
!.gitignore !.gitignore
!.htaccess !.htaccess
!/user/pages !user/pages
!/user/plugins/losung !user/pages/**
!/user/plugins/python-script !user/plugins/losung
!/user/themes/church !user/plugins/losung/**
!user/plugins/python-script
!user/plugins/python-script/**
!user/themes/church
!user/themes/church/**
# old entries for reference: # old entries for reference:

7
user/config/system.yaml

@ -111,7 +111,7 @@ assets:
collections: collections:
jquery: 'system://assets/jquery/jquery-2.x.min.js' jquery: 'system://assets/jquery/jquery-2.x.min.js'
errors: errors:
display: '0' display: 0
log: true log: true
debugger: debugger:
enabled: false enabled: false
@ -130,7 +130,7 @@ media:
upload_limit: 67108864 upload_limit: 67108864
session: session:
enabled: true enabled: true
initialize: true initialize: false
timeout: 1800 timeout: 1800
name: baptisten-hohenacker name: baptisten-hohenacker
secure: true secure: true
@ -141,3 +141,6 @@ gpm:
method: auto method: auto
verify_peer: true verify_peer: true
official_gpm_only: true official_gpm_only: true
strict_mode:
yaml_compat: true
twig_compat: true

48
user/pages/03.termine/sidebarpage.de.md

@ -175,6 +175,54 @@ date (iso);time-string;category;param
2018-06-24;10.00 Uhr;godi;Willy Kuhn (Open Doors) 2018-06-24;10.00 Uhr;godi;Willy Kuhn (Open Doors)
2018-06-26;15.00 Uhr;bibge; 2018-06-26;15.00 Uhr;bibge;
2018-06-27;20.00 Uhr;hauskr;bei Christine 2018-06-27;20.00 Uhr;hauskr;bei Christine
2018-07-01;10.00 Uhr;text_fett;Brunchgottesdienst mit Viktor Petkau
2018-07-02;20.00 Uhr;text;Treffen der Kigo-Mitarbeiter bei Fam. Homering
2018-07-03;15.00 Uhr;bibge;
2018-07-08;10.00 Uhr;text_fett;Hohenacker-Sommer Gottesdienst mit Viktor Petkau in der Ortsmitte
2018-07-10;15.00 Uhr;bibge;
2018-07-11;20.00 Uhr;hauskr;bei Christine
2018-07-15;10.00 Uhr;godi;Uwe Köhler
2018-07-17;15.00 Uhr;bibge;
2018-07-21; 9.00 Uhr;mägfit;
2018-07-22;10.00 Uhr;godi;Jürgen Vollmer
2018-07-24;15.00 Uhr;bibge;
2018-07-25;20.00 Uhr;hauskr;bei Christine
2018-07-29;10.00 Uhr;godi;Andreas Mende
2018-07-31;15.00 Uhr;bibge;
2018-08-05;10.00 Uhr;godi;Thomas Rissmann
2018-08-05;;text;in den Räumen der Gemeinde Waiblingen in der Heerstraße
2018-08-07;15.00 Uhr;bibge;
2018-08-12;10.00 Uhr;godi;Viktor Petkau
2018-08-19;10.00 Uhr;godi;Josias Richter
2018-08-26;10.00 Uhr;godi;
2018-09-02;10.00 Uhr;godi;Manfred Draheim
2018-09-06;15.00 Uhr;bibge; in der Friedenskirche in Backnang (Eugen-Bolz-Str. 24)
2018-09-09;10.00 Uhr;godi;Viktor Petkau
2018-09-14;17.00 Uhr;text;„Jesus auf der Spur“
2018-09-16;10.00 Uhr;godi;Martin Heißwolf
2018-09-19;20.00 Uhr;hauskr;bei Christine
2018-09-21;17.00 Uhr;text;„Jesus auf der Spur“
2018-09-23;10.00 Uhr;godi;
2018-09-28;17.00 Uhr;text;„Jesus auf der Spur“
2018-09-29; 9.00 Uhr;mägfit;
2018-09-30;10.00 Uhr;godi;
2018-10-02;15.00 Uhr;bibge;
2018-10-02;19.45 Uhr;text;Gemeindeleitungssitzung
2018-10-05;17.00 Uhr;text;„Jesus auf der Spur“
2018-10-07;10.00 Uhr;text_fett;Erntedank-Gottesdienst mit Martin Heißwolf
2018-10-07;;text;in den Räumen der Gemeinde Waiblingen in der Heerstraße 109
2018-10-09;15.00 Uhr;bibge;
2018-10-13; 9.30 Uhr;text;Gemeindefrühstück
2018-10-14;10.00 Uhr;godi;Viktor Petkau
2018-10-16;15.00 Uhr;bibge;
2018-10-17;16.00 Uhr;gu;
2018-10-17;20.00 Uhr;hauskr;bei Christine
2018-10-19;17.00 Uhr;text;„Jesus auf der Spur“
2018-10-21;10.00 Uhr;godi;Martin Heißwolf
2018-10-23;15.00 Uhr;bibge;
2018-10-26;17.00 Uhr;text;„Jesus auf der Spur“
2018-10-28;10.00 Uhr;godi;Thomas Oberdorf
2018-10-30;15.00 Uhr;bibge;
{%endset%} {%endset%}
{% filter pythonscript('termine-web.py') %} {% filter pythonscript('termine-web.py') %}

2
user/pages/03.termine/templates.py

@ -7,7 +7,7 @@ weekday_names_short=["Mo","Di","Mi","Do","Fr","Sa","So"]
monthnames=['','Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'] monthnames=['','Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember']
#text,other,sonder,... #text,other,sonder,...
web_templates={"godi":"Gottesdienst mit {param}" web_templates={"godi":"Gottesdienst mit {param}"
,"bibge":"Bibelgespräch" ,"bibge":"Bibelgespräch{param}"
,"gu":"Gemeindeunterricht" ,"gu":"Gemeindeunterricht"
,"hauskr":"Hauskreis {param}" ,"hauskr":"Hauskreis {param}"
,"text":"{param}" ,"text":"{param}"

BIN
user/pages/03.termine/templates.pyc

Binary file not shown.

11
user/pages/03.termine/termine-web.py

@ -25,6 +25,8 @@ html_escape_table = {
u"Ö": "&Ouml", u"Ö": "&Ouml",
u"Ü": "&Uuml", u"Ü": "&Uuml",
u"ß": "ß", u"ß": "ß",
u"":"“",
u"":"”",
} }
def html_escape(text): def html_escape(text):
"""Produce entities within text.""" """Produce entities within text."""
@ -53,7 +55,7 @@ reader.next()#skip header
#lines=[] #lines=[]
table_content="" table_content=""
lastdate=datetime.date(2000,1,1)#date in past -> add heading to first month lastdate=datetime.date(2000,1,1)#date in past -> add heading to first month
logmessage+="lastdate is {}".format(lastdate) logmessage+="lastdate is {}\n".format(lastdate)
for row in reader: for row in reader:
try: try:
if not row:#ignore empty lines if not row:#ignore empty lines
@ -115,12 +117,13 @@ for row in reader:
table_content+=line+"\n" table_content+=line+"\n"
lastdate=date lastdate=date
except: except:
print "error at row:" logmessage+="error at row:"
print row logmessage+=str(row)+"\n"
# logmessage+=str(e.message)+"\n"
pass pass
logmessage+="generated sucessfully on %s"%str(datetime.datetime.now()) logmessage+="generated sucessfully on %s"%str(datetime.datetime.now())
table_html=html_template.format(table_content=table_content) table_html=html_template.format(table_content=table_content)
table_html+="""<script>console.log("{}")</script>""".format(logmessage) table_html+="""<script>console.log(`{}`)</script>""".format(logmessage)
#f = open("table.html",'w') #f = open("table.html",'w')
#f.writelines(table_html) #f.writelines(table_html)
#f.close() #f.close()

4
user/pages/08.predigtaufnahmen/default.de.md

@ -67,4 +67,6 @@ function searchFunction() {
{# ## file: {# ## file:
{{ 'table.html'|filecontent }} {{ 'table.html'|filecontent }}
{{ pythonscript('/aufnahmen/gen_md.py','~/razor/grav/user/pages/08.predigtaufnahmen/') }} #} {{ pythonscript('/aufnahmen/gen_md.py','~/razor/grav/user/pages/08.predigtaufnahmen/') }} #}
{{url('jquery')}}
{#url('jquery')#}

2
user/themes/church/css/css-only-lightbox.css

@ -25,7 +25,7 @@
.lightbox img { .lightbox img {
/** Pad the lightbox image */ /** Pad the lightbox image */
max-width: 90%; max-width: 90%;
max-height: 80%; max-height: 90%;
margin-top: 2%; margin-top: 2%;
} }

2
user/themes/church/css/css-only-lightbox.min.css vendored

@ -1 +1 @@
.italic{font-style:italic}.small{font-size:.8em}.lightbox{display:none;position:fixed;z-index:999;width:100%;height:100%;text-align:center;top:0;left:0;background:rgba(0,0,0,0.8)}.lightbox img{max-width:90%;max-height:80%;margin-top:2%}.lightbox:target{outline:0;display:block} .italic{font-style:italic}.small{font-size:.8em}.lightbox{display:none;position:fixed;z-index:999;width:100%;height:100%;text-align:center;top:0;left:0;background:rgba(0,0,0,0.8)}.lightbox img{max-width:90%;max-height:90%;margin-top:2%}.lightbox:target{outline:0;display:block}

78
user/themes/church/js/polyfill_Array.from.js

@ -0,0 +1,78 @@
// Production steps of ECMA-262, Edition 6, 22.1.2.1
if (!Array.from) {
Array.from = (function () {
var toStr = Object.prototype.toString;
var isCallable = function (fn) {
return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
};
var toInteger = function (value) {
var number = Number(value);
if (isNaN(number)) { return 0; }
if (number === 0 || !isFinite(number)) { return number; }
return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
};
var maxSafeInteger = Math.pow(2, 53) - 1;
var toLength = function (value) {
var len = toInteger(value);
return Math.min(Math.max(len, 0), maxSafeInteger);
};
// The length property of the from method is 1.
return function from(arrayLike/*, mapFn, thisArg */) {
// 1. Let C be the this value.
var C = this;
// 2. Let items be ToObject(arrayLike).
var items = Object(arrayLike);
// 3. ReturnIfAbrupt(items).
if (arrayLike == null) {
throw new TypeError('Array.from requires an array-like object - not null or undefined');
}
// 4. If mapfn is undefined, then let mapping be false.
var mapFn = arguments.length > 1 ? arguments[1] : void undefined;
var T;
if (typeof mapFn !== 'undefined') {
// 5. else
// 5. a If IsCallable(mapfn) is false, throw a TypeError exception.
if (!isCallable(mapFn)) {
throw new TypeError('Array.from: when provided, the second argument must be a function');
}
// 5. b. If thisArg was supplied, let T be thisArg; else let T be undefined.
if (arguments.length > 2) {
T = arguments[2];
}
}
// 10. Let lenValue be Get(items, "length").
// 11. Let len be ToLength(lenValue).
var len = toLength(items.length);
// 13. If IsConstructor(C) is true, then
// 13. a. Let A be the result of calling the [[Construct]] internal method
// of C with an argument list containing the single item len.
// 14. a. Else, Let A be ArrayCreate(len).
var A = isCallable(C) ? Object(new C(len)) : new Array(len);
// 16. Let k be 0.
var k = 0;
// 17. Repeat, while k < len… (also steps a - h)
var kValue;
while (k < len) {
kValue = items[k];
if (mapFn) {
A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
} else {
A[k] = kValue;
}
k += 1;
}
// 18. Let putStatus be Put(A, "length", len, true).
A.length = len;
// 20. Return A.
return A;
};
}());
}

1
user/themes/church/js/polyfill_Array.from.min.js vendored

@ -0,0 +1 @@
Array.from||(Array.from=function(){var r=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},n=Math.pow(2,53)-1,e=function(r){var t,e=(t=Number(r),isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t);return Math.min(Math.max(e,0),n)};return function(r){var n=Object(r);if(null==r)throw new TypeError("Array.from requires an array-like object - not null or undefined");var o,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!t(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(o=arguments[2])}for(var i,u=e(n.length),f=t(this)?Object(new this(u)):new Array(u),c=0;c<u;)i=n[c],f[c]=a?void 0===o?a(i,c):a.call(o,i,c):i,c+=1;return f.length=u,f}}());

3
user/themes/church/templates/partials/base.html.twig

@ -61,6 +61,9 @@
{% do assets.add('https://oss.maxcdn.com/respond/1.4.2/respond.min.js') %} {% do assets.add('https://oss.maxcdn.com/respond/1.4.2/respond.min.js') %}
{% do assets.add('theme://js/html5shiv-printshiv.min.js') %} {% do assets.add('theme://js/html5shiv-printshiv.min.js') %}
{% endif %} {% endif %}
{% if browser.getBrowser == 'msie'%}
{% do assets.add('theme://js/polyfill_Array.from.min.js') %}
{% endif %}
{% endblock %} {% endblock %}
{{ assets.js() }} {{ assets.js() }}

Loading…
Cancel
Save