This file contains 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
.embed { | |
position: relative; | |
overflow: hidden; | |
height: 0; | |
padding-bottom: 56.25%; /* 16/9 ratio */ | |
padding-top: 30px; /* IE6 workaround*/ | |
iframe { | |
position: absolute; | |
top: 0; |
This file contains 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
Locale locale de_DE.UTF-8 |
This file contains 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
// CSS | |
#wrapper-app { | |
overflow: auto; | |
width: 100%; | |
height: 100%; | |
-webkit-overflow-scrolling: touch; | |
} | |
// HTML | |
... |
This file contains 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
<?php | |
$o = $input; | |
// replace inline css | |
$o = preg_replace('/(<[^>]+) style=".*"/iU', '$1', $o); | |
// remove paragraph around img and iframe | |
$o = preg_replace('/<p>\s*(<img.*>)\s*<\/p>/iU', '$1', $o); | |
$o = preg_replace('/<p>\s*(<iframe.*>\s*<\/iframe>)\s*<\/p>/iU', '$1', $o); |
This file contains 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
header("X-Content-Type-Options: nosniff"); | |
header("X-XSS-Protection: 1; mode=block"); | |
header("X-Frame-Options: SAMEORIGIN"); | |
header("Connection: keep-alive"); | |
header("ETag: "); | |
header("Content-Security-Policy: base-uri https://nixlos.de; default-src https:; script-src https: 'unsafe-inline' 'unsafe-eval'; style-src https: 'unsafe-inline'; child-src https://nixlos.de"); |
This file contains 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
find -type d -exec /bin/chmod 755 {} \; | |
find -type f -exec /bin/chmod 644 {} \; | |
find -type f -name "*.php*" -exec /bin/chmod 600 {} \; |
This file contains 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
collections.renderer.imageplus = function(value, metaData, record, rowIndex, colIndex, store) { | |
if (value != '' && value != null) { | |
var data = Ext.decode(value); | |
var url = MODx.config.connectors_url + 'system/phpthumb.php?imageplus=1'; | |
var params = {}; | |
params.src = 'upload/'+MODx.config['collections.renderer_image_path'] + data.sourceImg.src; | |
params.w = 100; | |
if (data.sourceImg.src.indexOf('.png') !== -1) { | |
params.f = 'png'; |
This file contains 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
collections.combo.TVNAME = function(config) { | |
config = config || {}; | |
Ext.applyIf(config,{ | |
store: new Ext.data.SimpleStore({ | |
fields: ['v'] | |
,data: [ | |
['val1'], | |
['val2'], | |
['val3'] | |
] |
This file contains 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
# add snippet into <head> | |
[[BabelLinks? | |
&tpl=`babelCanonicalTag` | |
&showCurrent=`1` ]] | |
# create chunk with name babelCanonicalTag | |
<link rel="alternate" hreflang="[[+cultureKey]]" href="[[+url]]"> |
This file contains 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
<!-- | |
$basePxFor1rem = 16; | |
$baseDesignWidthFromAdobeXD = 1920; | |
$baseFontSize = 100 * $basePxFor1rem / $baseDesignWidthFromAdobeXD; | |
Result: .833333333333333vw; | |
--> | |
<style> | |
html { | |
font-size: .833333333333333vw; |
OlderNewer