Filters

The list below contains the available filter hooks in the Charlene theme. These can be used to further customize the output of the theme should you choose to do so. Each one of the filter hooks will be followed with it’s respective location so that you can easily pick it out and have a closer look at the code should you choose to customize your theme in this manner. Let’s have a look.

Note: This is only a brief look, more information will be added in the near future.

Byline

eighttwenty_byline()
Found in /library/functions/post-functions.php

Default:

function eighttwenty_byline() {
	$byline = '<div class="byline">';
	$byline .= __('Written by ', 'eighttwenty');
	$byline .= '<span class="author vcard">';
	$byline .= '<a class="url fn n" href="';
	$byline .= get_author_posts_url( get_the_author_meta( 'ID' ) );
	$byline .= '" title="' . get_the_author_meta( 'display_name' ) . '">';
	$byline .= get_the_author_meta( 'display_name' );
	$byline .= '</a></span>';
	$byline .= ' <abbr class="published updated" title="';
	$byline .= get_the_time('l, F jS, Y, g:i a') . '">';
	$byline .= get_the_time('F d, Y');
	$byline .= '</abbr></div>';

	echo apply_filters('eighttwenty_byline',$byline);
}

Postmeta (Publish Date/More Link)

eighttwenty_postmeta()
Found in /library/functions/post-functions.php

function eighttwenty_postmeta() {

	$meta = '<p class="postmeta">';
	$meta .= '<abbr class="published updated" title="';
	$meta .= get_the_time('l, F jS, Y, g:i a') . '">';
	$meta .= get_the_time('m.d.Y') . '</abbr> // ';
	$meta .= '<a class="read-more" href="';
	$meta .= get_permalink();
	$meta .= '" rel="bookmark" title="Permanent Link to';
	$meta .= the_title_attribute('echo=0') . '">';
	$meta .= __('Continue Reading &#187;', 'eighttwenty');
	$meta .= '</a></p>';

	echo apply_filters('eighttwenty_postmeta',$meta);
}

Comments are closed.