Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rjakobsson on github.
  • I am r00bn (https://keybase.io/r00bn) on keybase.
  • I have a public key ASDzRmhs3SIdV6HK6wF_QSF3V4kZk0G5BhdpOTS52oNFXQo

To claim this, I am signing this object:

@rjakobsson
rjakobsson / index.html
Created January 18, 2015 21:15
Showing dependency on data attribute in Router.route, in order to get back button functionality
<template name="layout">
{{#ionBody}}
{{> ionNavBar class="bar-dark"}}
{{#ionNavView}}
{{> yield}}
{{/ionNavView}}
{{/ionBody}}
</template>
<template name="hello">
@rjakobsson
rjakobsson / Category Cloud Widget - Count children's posts
Created October 12, 2011 13:33
A code snippet that enhances the WordPress widget "Category Cloud Widget" by Lee Kelleher with sub-categories post count as well.
/*
A small enhancement to the WordPress widget http://leekelleher.com/wordpress/plugins/category-cloud-widget/ by http://leekelleher.com/ . Counts the subcategories of a category and adds that to the total count.
*/
if ( function_exists('get_categories') )
{
// new version of wp (2.1+)
$cats = get_categories("style=cloud&show_count=1&use_desc_for_title=0$exclude&hierarchical=0$hide_empty");
foreach ($cats as $cat)
{
// Get current category's children