Give a visual feedback on all moregallery custom fields starting with "color".
Start the variable name with "color". "colorBg" or "colorText" are valid field names
<?php | |
/* | |
pdf2jpg v.0.0.1 | |
--------------------------------------- | |
MODX snippet to create a jpg thumbnail from a pdf file | |
AUTHOR: | |
--------------------------------------- | |
info@pepebe.de | |
ul.reset, | |
ul.reset li, | |
ul.reset ul li { | |
margin:0; | |
padding: 0; | |
text-indent: 0; | |
list-style-type: 0; | |
} |
<?php | |
/** | |
* Alle kaputten Umlaute reparieren bei Umstellung von ISO->UTF8 | |
* Source: http://xhtmlforum.de/66480-kleines-skript-alle-umlaute-der-datenbank.html | |
* | |
* @project - | |
* @author Boris Bojic <bojic@devshack.biz> | |
* @copyright Copyright (c) 2011, Boris Bojic (DevShack) | |
* @version Fri, 23 Dec 2011 13:47:11 +0100 | |
* @updated - |
/* | |
Author: Karl Horky | |
http://www.karlhorky.com/2012/06/cross-browser-image-grayscale-with-css.html | |
Demo: http://jsfiddle.net/KDtAX/487/ | |
*/ | |
img.grayscale { | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ | |
filter: gray; /* IE6-9 */ | |
-webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */ |
<?php | |
// Collections Snippet Renderer | |
// Version: 0.1 | |
// 2do: autoimatically retrieve assets path from media source | |
$row = $modx->getOption('row', $scriptProperties, ''); | |
$value = $modx->getOption('value', $scriptProperties, ''); | |
$column = $modx->getOption('column', $scriptProperties, ''); | |
$imgName = $value; |
<?php | |
/* | |
Reposition Blocks of Code: | |
-------------------------- | |
[[!regClient? | |
&value=`code block or file url` | |
&option=`regClientCSS` | |
]] | |
&option - Pick one of the regClient functions |
Cycle2 doesn't support progressive loading for sliders utilizing the pager option: | |
As a quickfix I lazyload all images with jail.js and after jail is finished I initialize cycle(). | |
HOWTO: | |
1. Download jail.js: https://github.com/sebarmeli/JAIL/blob/master/src/jail.js | |
hint: get familiar with all the options jail offers. It's really a nice tool. | |
2. Add jail.js to the head of your html |