Skip to content

Instantly share code, notes, and snippets.

<!-- OLD -->
<article class="widget content-container span12 image-widget">
<header class="content-header">
<h3>Discover ideas. Ask Questions. Be you. Welcome to the Community.</h3>
</header>
<article class="content-container">
<img src="">
</article>
</article>
@eddiemoya
eddiemoya / gist:3740873
Created September 18, 2012 02:09 — forked from tim-steele/gist:3738582
Featured Category Questions
<article class="widget content-container featured-category-questions widget span12">
<header class="content-header">
<h1>Featured Questions</h1>
</header>
<section class="content-body clearfix">
<section class="span6">
<!-- DROPZONE: FIRST FEATURED QUESTION -->
<article class="content-container featured-post span12">
<header class="content-header">
<h3>Featured Blog Post</h3>
</header>
<section class="content-body clearfix">
<div class="featured-image span6">
<img src="/wp-content/uploads/2012/07/blogmodule.jpg">
</div>
@eddiemoya
eddiemoya / Featured Question.html
Created September 18, 2012 05:12 — forked from tim-steele/Featured Question
Featured Question
@eddiemoya
eddiemoya / Featured Category Questions.html
Created September 18, 2012 06:02 — forked from tim-steele/Featured Category Questions
Featured Category Questions
#!/bin/bash
SYNC_BIN_PATH=`dirname $(readlink -f $0)`
TMP_PATH="$SYNC_BIN_PATH/tmp"
REPO_PLUGINS="$SYNC_BIN_PATH/uxwpress/plugins/*"
NEW_REPO_PLUGINS="$SYNC_BIN_PATH/plugins"
for i in $REPO_PLUGINS
do
CURRENT_PLUGIN_NAME=`basename "$i"`
#!/bin/bash
function actual_path() {
if [ [ -z "$1" ] -a [ -d $1 ] ]; then
echo $(cd $1 && test `pwd` = `pwd -P`)
return 0
else
return 1
fi
}
#!/bin/bash
# readlink -f resolves symlinks but doesnt work on OSX or BSD.
# SYNC_BIN_PATH=`dirname $(readlink -f $0)`
# pwd is lazy, doesnt resolve symlinks, but works everywhere.
SYNC_BIN_PATH=$(pwd)
TMP_PATH="$SYNC_BIN_PATH/tmp"
REPO_PLUGINS="$SYNC_BIN_PATH/uxwpress/plugins/"
NEW_REPO_PLUGINS="$SYNC_BIN_PATH/plugins"
#!/bin/bash
##
# Name: wp-gitify
# Description: Turns the subversion repositories of wordpress
# plugins and themes into github read-only repositories.
# Author: Brian Greenacre <[email protected]>
# Requirements: git, svn, git-svn, svn2git, curl
##
<?php
/*
* A walker class to use that extends wp_dropdown_categories and allows it to use the term's slug as a value rather than ID.
*
* See http://core.trac.wordpress.org/ticket/13258
*
* Usage, as normal:
* wp_dropdown_categories($args);
*