Skip to content

Instantly share code, notes, and snippets.

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 3.5+, IE10 */
filter: gray; /* IE6-9 */
-webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */
-webkit-transition:all .6s ease;
-webkit-backface-visibility: hidden; /* Fix for transition flickering */
}
img.grayscale:hover {
filter: none;
-webkit-filter: grayscale(0%);
@sentisoft
sentisoft / gist:6766021
Created September 30, 2013 16:02
Custom search form
<aside id="pretraga-nekretnina" class="search-box-<?php bloginfo('language'); ?>">
<?php
// check if there are sales AND rentals
$property = get_posts(array('post_type' => 'property', 'post_status' => 'publish'));
?>
<?php
// get all gets
foreach($_GET as $name=>$value) {
@sentisoft
sentisoft / gist:6766004
Created September 30, 2013 16:00
Problem with custom search form for WP
<?php get_header(); ?>
<div id="content" class="site-content" role="main">
<?php
// get all gets
foreach($_GET as $name=>$value) {
$search_get[$name] = $value;
}