Posted on ', 'twentyeleven'), esc_url(get_permalink()), esc_attr(get_the_time()), esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'twentyeleven'), get_the_author())), get_the_author() ); } public function custom_background($image = '/images/default-background.png') { add_theme_support('custom-background', array( 'default-image' => get_template_directory_uri() . $image, )); } } class Fn_Post extends Fn_Gen { function __construct() { parent::__construct(); } public static function load() { return new Fn_Post(); } public function excerpt_length($excerpt_length = 100) { add_filter('excerpt_length', array($this, 'excerptLength')); } public function excerptLenght() { return $length = $excerpt_length; } public function pagination() { /** * @link http://wp.smashingmagazine.com/2011/05/10/new-wordpress-power-tips-for-template-developers-and-consultants/ */ global $wp_query; $total = $wp_query->max_num_pages; // only bother with the rest if we have more than 1 page! if ($total > 1) { // get the current page if (!$current_page = get_query_var('paged')) $current_page = 1; // structure of "format" depends on whether we're using pretty permalinks $permalink_structure = get_option('permalink_structure'); $format = empty($permalink_structure) ? '&page=%#%' : 'page/%#%/'; echo paginate_links(array( 'base' => get_pagenum_link(1) . '%_%', 'format' => $format, 'current' => $current_page, 'total' => $total, 'mid_size' => 4, 'type' => 'list' )); } } } class Fn_Images extends Fn_Gen { function __construct() { parent::__construct(); } public static function factory() { $factory = new Fn_Images(); return $factory; } /** * Replace
img
with