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
jQuery( document ).ready( function( $ ) { | |
$( 'form' ).submit( function() { | |
$( this ).attr( 'data-touched', true ); | |
} ); | |
$( ':submit' ).click( function() { | |
$( this ).closest( 'form' ).attr( 'data-touched', true ); | |
} ); |
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: Admin Dashboard Columns | |
* Description: Reactivates the option to set the number of admin dashboard columns | |
* Version: 1.0.0 | |
* Author: Bernhard Kau | |
* Author URI: https://kau-boys.de | |
* License: GPLv3 | |
* License URI: http://www.gnu.org/licenses/gpl-3.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
<?php | |
/** | |
* Plugin Name: Allow SVG uploads | |
* Description: Enable the users of your blog to upload SVG files | |
* Version: 1.0.0 | |
* Author: Bernhard Kau | |
* Author URI: https://kau-boys.de | |
* License: GPLv3 | |
* License URI: http://www.gnu.org/licenses/gpl-3.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
@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
<?php | |
/** | |
* Plugin Name: Disable Cachify on home page | |
* Description: This plugin simple disables the caching of the home page with Cachify (see https://wordpress.org/support/topic/exclude-home-page-from-being-cached) | |
* Author: Bernhard Kau | |
* Author URI: https://kau-boys.de | |
*/ | |
add_filter( | |
'cachify_skip_cache', |
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 | |
*/ |