This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Global site tag (gtag.js) - Google Analytics --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=XX-XXXX-XX"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments);} | |
gtag('js', new Date()); | |
gtag('config', 'XX-XXXXXX-XX', { 'anonymize_ip': true }); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Google Analytics --> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-XXXXX-X', 'auto'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; | |
ga('create', 'UA-XXXXXXX', 'auto'); | |
ga('set', 'forceSSL', true); | |
ga('set', 'anonymizeIp', true); | |
ga('send', 'pageview'); | |
</script> | |
<script async="" src="https://www.google-analytics.com/analytics.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source: https://stackoverflow.com/questions/20541306/how-to-write-a-css-hack-for-ie-11 | |
IE 6 | |
============ | |
* html .ie6 {property:value;} | |
or | |
.ie6 { _property:value;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
custom: | |
type: hidden | |
options: | |
label: 'Custom' | |
required: false | |
attr: | |
class: hidden | |
constraints: [ Blank ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setCookie('ppkcookie','testcookie',7); | |
var x = getCookie('ppkcookie'); | |
if (x) { | |
[do something with x] | |
} | |
// source https://stackoverflow.com/questions/14573223/set-cookie-and-get-cookie-with-javascript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
website: | |
type: text | |
label: Website sponsor | |
postfix: 'formaat: http://www.sponsor.nl' | |
pattern: "^http(s?):\/\/.*" # see: http://html5pattern.com/ | |
error: "Vul een url in inclusief 'http://' of 'https://'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if item is not defined %} | |
{% set item = record %} | |
{% endif %} | |
{% if item.startdate|localdate("%G%b%e") == item.enddate|localdate("%G%b%e") %} {# one day event #} | |
{% if item.startdate|localdate("%k%M") == item.enddate|localdate("%k%M") %} | |
{# one day, same time #} | |
{{ item.startdate|localdate("%e %b %G") }} | |
{% else %} | |
{# one day, start and end time #} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# Checks start- and enddates and returns a pretty formatting. | |
# available formats: | |
# 14 jan 2019 (one day) | |
# 14 jan 2019 14:00 - 16:00 (one day but different end time) | |
# 14 jan 2019 - 18 jan 2019 (multiple day event) | |
#} | |
{% if item is not defined %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# | |
Create a user friendly 404 page that guesses the broken link by looking at the language attribute, and serving the appropriate language | |
#} | |
{# Special 404 case, no locales present: check for language #} | |
{% set language = getlanguage()|default(app.request.pathInfo|split("/")[1])|default('nl') %} | |
{% if language == 'en' %} | |
{% set record = record.endata|json_decode %} |