Skip to content

Instantly share code, notes, and snippets.

View franz-josef-kaiser's full-sized avatar

Franz Josef Kaiser franz-josef-kaiser

View GitHub Profile
franz-josef-kaiser /
Created September 2, 2016 23:17 — forked from miki725/
Custom bash prompt which displays: (virtualenv) user:/path (git-branch)
# Set the bash prompt according to:
# * the active virtualenv
# * the branch of the current git/mercurial repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
franz-josef-kaiser /
Created August 24, 2016 20:01 — forked from omegahm/
Create Gtihub labels from Bash
#!/usr/bin/env bash
# Colours picked from
# Label definitions
declare -A LABELS
# Platform
* Plugin Name: (WCM) Backbone/Underscore template loader
* Description: Loads Underscore (or other) templates using the WP Dependency API
* @author Franz Josef Kaiser
* @link
franz-josef-kaiser / breadcrumb.navigation.php
Last active August 29, 2015 13:58 — forked from chipbennett/breadcrumb.navigation.php
This is a fork of Chip Bennets idea to implement breadcrumbs into WP Core. The code is procedural and really not the best - but it would fit into core much easier this way as when implementing it with real OOP patterns.
* Add navigation breadcrumb
function wp_nav_breadcrumb() {
// Separator between breadcrumb links
$delimiter = apply_filters( 'wp_nav_breadcrumb_delimiter', ' &raquo; ' );
// Show taxonomy crumbs for single posts
$show_tax_crumb_for_single = apply_filters( 'wp_nav_breadcrumb_show_tax_crumb_for_single', true );
## Comments added to deleted comments and answers, visible for the post author only.
Sorry, but this is not [an answer](
[An answer should be more than just a link to an external site]( Please add a solution.
[Ask a new question.]( Please don’t misuse the answer field for questions. Thanks.
[You must disclose your affiliation in your answers.](
namespace Renoir\AggregationBundle;
* Abstract client to use for each Client
* Example location: src/Renoir/AggregationBundle/AbstractClient.php
$locations = get_nav_menu_locations();
$menu = wp_get_nav_menu_object( $locations['topnav'] );
$menu_items = wp_get_nav_menu_items( $menu->term_id, array(
'order' => 'DESC',
) );
<select class="the-selectors" onChange="document.location.href=this.options[this.selectedIndex].value;">
<option value="">
franz-josef-kaiser / spam
Created April 24, 2013 17:05 — forked from shanselman/gist:5422230
A spammers complete build string
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as
you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch}
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
franz-josef-kaiser / image-shortcode.php
Created March 9, 2012 12:20 — forked from kovshenin/image-shortcode.php
Image shortcode & template tag for WordPress - mu-plugin
franz-josef-kaiser / codex-generator.php
Created July 16, 2011 22:27
Codex Generator that turns functions into Codex pages
Plugin Name: Codex Generator
Description: Creates ready-made wiki page content for Codex. With magic. Okay - with PHPDoc and Reflect.
Author: Rarst
Author URL:
Version: 0.1
License Notes: GPLv3+, includes modified Parser class from Doqumentor (GPLv3+)