Skip to content

Instantly share code, notes, and snippets.

@chipbennett
chipbennett / WCTOR.childthemes.5b.php
Created November 3, 2011 01:46
WCTOR.childthemes.5b
<?php
function twentyeleven_posted_on() {
// Output definition goes here
$output = '';
// Custom filter hook
return apply_filters( 'twentyeleven_posted_on', $output );
}
?>
@chipbennett
chipbennett / WCTOR.childthemes.5a.php
Created November 3, 2011 01:43
WCTOR.childthemes.5a
<?php
if ( ! function_exists( 'twentyeleven_posted_on' ) ) {
function twentyeleven_posted_on() {
// Output definition goes here
}
}
?>
@chipbennett
chipbennett / WCTOR.childthemes.4.php
Created November 3, 2011 01:35
WCTOR.childthemes.4
<?php
/**
* Action hook before content within div.post
*
* This action hook fires before content is output in the div.post container. It
* can be used to add content before post content is output.
*
* Template file: loop.php
*
* @uses do_action()
@chipbennett
chipbennett / WCTOR.childthemes.2a.php
Created November 3, 2011 01:31
WCTOR.childthemes.2a
<?php
add_theme_support( 'post-thumbnails' );
?>
@chipbennett
chipbennett / WCTOR.childthemes.3.php
Created November 3, 2011 01:16
WCTOR.childthemes.3
<?php
/**
* Template part file that contains the WordPress Loop
*
* Contains Loop header, Loop content, and Loop footer.
*/
?>
<!-- Begin Loop Header (div#loop-header) -->
<div id="loop-header">
@chipbennett
chipbennett / WCTOR.childthemes.2.php
Created November 3, 2011 01:06
WCTOR.childthemes.2
<?php
function themename_setup() {
add_theme_support( 'post-thumbnails' );
}
add_action( 'after_setup_theme', 'themename_setup' );
?>
@chipbennett
chipbennett / WCTOR.enqueue.2.php
Created November 2, 2011 21:13
WCTOR.enqueue.2
<?php
function oenology_enqueue_comment_reply() {
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'oenology_enqueue_comment_reply' );
?>
@chipbennett
chipbennett / WCTOR.enqueue.1.php
Created November 2, 2011 20:05
WCTOR.enqueue.1
<?php
/**
* Header Template Part
*
* Template part file that contains the HTML document head and
* opening HTML body elements, as well as the site header and
* "infobar".
*
* This file is called by all primary template pages
*
@chipbennett
chipbennett / WCTOR.childthemes.1.css
Created October 29, 2011 21:09
WCTOR.childthemes.1
/*
Theme Name: Oenology Child
Description: Child theme for the Oenology theme
Template: oenology
Version: 1.0
*/
@import('../oenology/style.css');
@chipbennett
chipbennett / WCTOR.copyright.3.txt
Created October 29, 2011 16:22
WCTOR.copyright.3