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
@mixin respond-to-ie($size){ | |
@if $old-ie { | |
@content; | |
} @else { | |
@media all and (min-width: $size) { | |
@content; | |
} | |
} | |
} |
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
@mixin animation($value) { | |
-webkit-animation: unquote($value); | |
-moz-animation: unquote($value); | |
-o-animation: unquote($value); | |
animation: unquote($value); | |
} | |
@mixin animation-property($property, $value) { | |
-webkit-animation-#{$property}: unquote($value); | |
-moz-animation-#{$property}: unquote($value); |
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
@mixin pixel-ratio($ratio){ | |
@media (-webkit-min-device-pixel-ratio: $ratio), /* Webkit browsers */ | |
(min--moz-device-pixel-ratio: $ratio), /* old Firefox (prior to FF 16) */ | |
(min-resolution: #{$ratio}dppx), /* the standard using dppx */ | |
(min-resolution: #{$ratio * 96}dpi){ /* fallback using dpi */ | |
@content; | |
} | |
} |
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
@mixin background-image-hidpi($normalImage, $hdpiImage, $ratio){ | |
// normal image | |
background-image: url('#{$normalImage}'); | |
// high dpi image | |
@include pixel-ratio($ratio){ | |
background-image: url('#{$hdpiImage}'); | |
} | |
} | |
// This mixin uses the mixin pixel-ratio() which you can find in anoter gist: https://gist.github.com/2ndkauboy/5397402 |
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 | |
/** | |
* Search the array for a part of a string in the values and return an array with matching elements | |
* | |
* @param array $haystack The array. | |
* @param string $needle The searched value. | |
* @return array The filtered array. | |
*/ | |
function array_match_string(array $haystack, $needle){ |
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 | |
/* | |
Plugin Name: AJAX Deactivation for Contact Form 7 | |
Plugin URI: https://gist.github.com/2ndkauboy/6123099 | |
Description: Deactivate the JS functionality of Contact Form 7 | |
Version: 0.1 | |
Author: Bernhard Kau | |
Author URI: http://kau-boys.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
<?php | |
/* | |
Plugin Name: Add Skype To Allowed Protocols | |
Plugin URI: https://gist.github.com/2ndkauboy/6133018 | |
Description: Enables a user to use skype:{Username} as a link target | |
Version: 0.1 | |
Author: Bernhard Kau | |
Author URI: http://kau-boys.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
<?php | |
/* | |
Plugin Name: Pagespeed CSS Combination Fix | |
Plugin URI: https://gist.github.com/2ndkauboy/7154341 | |
Description: Removes the id attribute from style tags, enabling mod_pagespeed to combine those files | |
Version: 0.1 | |
Author: Bernhard Kau | |
Author URI: http://kau-boys.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
<?php | |
/* | |
Plugin Name: Gallery Shortcode Change Default Images Size | |
Description: Plugin to change the default image size of the gallery shortcode | |
Version: 0.1 | |
Author: Bernhard Kau | |
Author URI: http://kau-boys.de | |
*/ | |
function gallery_shortcode_change_default_size( $out, $pairs, $atts ) { |
OlderNewer