This file contains hidden or 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 | |
/** | |
* Generates a Twitter Bootstrap menu markup, complete with Dropdown menus as defined in sitedata.json | |
* @param array $data JSON data converted to PHP array in siteconfig.php | |
* @param boolean $settings Overrideable settings array to provide some options | |
*/ | |
function add_menu($data, $settings = false) { |
This file contains hidden or 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
// ==UserScript== | |
// @name CList Filter | |
// @version 0.2 | |
// @namespace giggleboxstudios | |
// @include *.craigslist.org/search/* | |
// @grant none | |
// ==/UserScript== | |
/*jshint strict:true, evil:true, boss:false, laxcomma:true, laxbreak:true, latedef:true, immed:true, newcap:true, noarg:true, nonew:true, plusplus:true, regexp:true, undef:true, unused:true, trailing:true, eqeqeq:true, curly:true, camelcase:true, bitwise:true */ |
This file contains hidden or 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
// ==UserScript== | |
// @name SCRIPT_NAME_HERE | |
// @namespace NAMESPACE | |
// @version 0.1 | |
// @description WIDGET_DESCRIPTION_HERE | |
// @match http*://*/* | |
// @include http*://*/* | |
// @copyright 2013+, YOURNAME | |
// ==/UserScript== |
This file contains hidden or 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 | |
// Practically verbatim from the WordPress codex | |
// http://codex.wordpress.org/Function_Reference/post_class#Add_Classes_By_Filters | |
add_filter('post_class','MYTHEME_post_class_cats'); | |
function MYTHEME_post_class_cats($classes) { | |
global $post; |
NewerOlder