Skip to content

Instantly share code, notes, and snippets.

@pyronaur
pyronaur / gist:5387539
Last active October 2, 2019 11:13
sanitize_html_class works just fine for a single class But sometimes le wild `<span class="blue hedgehog">` appears, which is when you need this function, to validate both blue and hedgehog, Because sanitize_html_class doesn't allow spaces (because it's meant for a single class)
<?php
if ( ! function_exists( "sanitize_html_classes" ) && function_exists( "sanitize_html_class" ) ) {
/**
* sanitize_html_class works just fine for a single class
* Some times le wild <span class="blue hedgehog"> appears, which is when you need this function,
* to validate both blue and hedgehog,
* Because sanitize_html_class doesn't allow spaces.
*
* @uses sanitize_html_class
@pyronaur
pyronaur / gist:2315065
Created April 5, 2012 23:34
Porting Twitter Bootstrap 2.0 to SASS and Compass
// So this is an alternative way to do the Twitter bootstrap.
// The thing is that - this really takes A LOT OF rewriting the twitter bootstrap code.
// This is still work in progress, but I'd like to know if someone might consider this useful later on :)
// p.s. At this point I'm __really__ enjoying the @if and @else statements for the first time :)
@mixin nav_pills($extend: false) {
@include clearfix;
> li { float:left;}
> li > a {
@include nav_flatten;