window.navigator.doNotTrack
setting: "Send a ‘Do Not Track’ request with your browsing traffic"
return: [ "1" or null ]
<block type="cms/block" name="block_name"> | |
<action method="setBlockId"><id>block_code</id></action> | |
</block> | |
{{block type="cms/block" block_id="block_code"}} | |
{{block type="catalog/product_list" category_id="79" template="catalog/product/list_random.phtml"}} |
<?php | |
/* | |
* A small MODX snippet to extract POST, GET, SESSION & COOKIE values - (c) 2012-2016 ackwa.fr | |
* | |
* @version : 1.0.4 | |
* @see : https://gist.github.com/gists/2853625 | |
* @name : argv.php | |
* @author : [email protected] | |
* @usage : [[!argv?key=`myparam`&default=`1`]] -> return the value | |
* [[!argv?key=`myparam`&default=`1`&toph=`1`]] -> set [[+argv.myparam]] |
// -------------------------------------------------- | |
// Flexbox LESS mixins | |
// The spec: http://www.w3.org/TR/css3-flexbox | |
// -------------------------------------------------- | |
// Flexbox display | |
// flex or inline-flex | |
.flex-display(@display: flex) { | |
display: ~"-webkit-@{display}"; | |
display: ~"-ms-@{display}box"; // IE10 uses -ms-flexbox |
<?php | |
$iccProfile = '../path_to_icc/Profile.icc'; | |
$image = new Imagick(); | |
$image->clear(); | |
$image->readImage($imagePath); | |
if ($image->getImageColorspace() == Imagick::COLORSPACE_CMYK) { | |
return; | |
} | |
$iccCmyk = file_get_contents($iccProfile); |