Skip to content

Commit

Permalink
Minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
splorp committed Oct 14, 2012
1 parent edf872b commit 708306a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
20 changes: 18 additions & 2 deletions functions.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @subpackage Tersus * @subpackage Tersus
*/ */



// Define Theme Constants // Define Theme Constants


$theme_data = get_theme_data( TEMPLATEPATH . '/style.css'); $theme_data = get_theme_data( TEMPLATEPATH . '/style.css');
Expand Down Expand Up @@ -161,10 +162,12 @@ function tersus_admin() {


add_action('admin_menu', 'tersus_add_admin'); add_action('admin_menu', 'tersus_add_admin');



// Automatic Feed Links // Automatic Feed Links


automatic_feed_links(); automatic_feed_links();



// Add Support for Page Menus // Add Support for Page Menus


function register_my_menus() { function register_my_menus() {
Expand All @@ -174,10 +177,12 @@ function register_my_menus() {
} }
add_action( 'init', 'register_my_menus' ); add_action( 'init', 'register_my_menus' );



// Remove non-validating parent post link from header // Remove non-validating parent post link from header


remove_action('wp_head', 'parent_post_rel_link'); remove_action('wp_head', 'parent_post_rel_link');



// Sidebar support. Let's have two, shall we? // Sidebar support. Let's have two, shall we?
if ( function_exists('register_sidebar') ) { if ( function_exists('register_sidebar') ) {
Expand All @@ -195,10 +200,13 @@ function register_my_menus() {
)); ));
} }


// Adds support for Post Formats -- http://codex.wordpress.org/Post_Formats
// Adds support for Post Formats
// http://codex.wordpress.org/Post_Formats


add_theme_support( 'post-formats', array( 'aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat' ) ); add_theme_support( 'post-formats', array( 'aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat' ) );



// Replace default post class verbosity // Replace default post class verbosity


function simple_post_class() { function simple_post_class() {
Expand All @@ -220,6 +228,7 @@ function simple_post_class() {


add_filter( 'post_class', 'simple_post_class' ); add_filter( 'post_class', 'simple_post_class' );



// Remove non-validating rel attributes from category links // Remove non-validating rel attributes from category links


function relfix($c) { function relfix($c) {
Expand All @@ -228,6 +237,7 @@ function relfix($c) {


add_filter('the_category','relfix'); add_filter('the_category','relfix');



// Add a proper thousands delimiter to category post counts // Add a proper thousands delimiter to category post counts


function delim($c) { function delim($c) {
Expand Down Expand Up @@ -395,6 +405,7 @@ function comment_reply_anchor($str) {
add_image_size( 'archive-thumbnail', 50, 50 ); // Permalink thumbnail size add_image_size( 'archive-thumbnail', 50, 50 ); // Permalink thumbnail size
} }



// Add support for the_post_thumbnail in RSS feeds // Add support for the_post_thumbnail in RSS feeds


function insertThumbnailRSS($content) { function insertThumbnailRSS($content) {
Expand All @@ -408,6 +419,7 @@ function insertThumbnailRSS($content) {
add_filter('the_excerpt_rss', 'insertThumbnailRSS'); add_filter('the_excerpt_rss', 'insertThumbnailRSS');
add_filter('the_content_feed', 'insertThumbnailRSS'); add_filter('the_content_feed', 'insertThumbnailRSS');



// Removes the link delimiter when viewing first or last post // Removes the link delimiter when viewing first or last post


function delim_post_link() { function delim_post_link() {
Expand All @@ -418,6 +430,7 @@ function delim_post_link() {
} }
} }



// Removes the link delimiter when viewing first or last archive page // Removes the link delimiter when viewing first or last archive page


function delim_posts_link() { function delim_posts_link() {
Expand All @@ -428,6 +441,7 @@ function delim_posts_link() {
} }
} }



// Removes the link delimiter when viewing first or last comment // Removes the link delimiter when viewing first or last comment


function delim_comment_link() { function delim_comment_link() {
Expand All @@ -439,6 +453,7 @@ function delim_comment_link() {
} }
} }



// Removes the link delimiter when viewing first or last image // Removes the link delimiter when viewing first or last image


function delim_image_link() { function delim_image_link() {
Expand All @@ -458,6 +473,7 @@ function delim_image_link() {
} }
} }



// Custom excerpt links // Custom excerpt links


function new_excerpt_more($more) { function new_excerpt_more($more) {
Expand All @@ -469,4 +485,4 @@ function new_excerpt_more($more) {


add_filter('excerpt_more', 'new_excerpt_more'); add_filter('excerpt_more', 'new_excerpt_more');


?> ?>
3 changes: 2 additions & 1 deletion readme.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The Tersus theme is absolutely free and conveniently licensed under GPL. You may


Portions of the stylesheets are based on the [YUI CSS Reset](http://developer.yahoo.com/yui/reset/) and [YUI CSS Base](http://developer.yahoo.com/yui/base/) tools provided as part of the [Yahoo! User Interface Library](http://developer.yahoo.com/yui/). All of the [YUI Library](http://developer.yahoo.com/yui/ "Copyright © Yahoo! Inc. All rights reserved") components are provided free of charge under a liberal [BSD license](http://yuilibrary.com/license/). Portions of the stylesheets are based on the [YUI CSS Reset](http://developer.yahoo.com/yui/reset/) and [YUI CSS Base](http://developer.yahoo.com/yui/base/) tools provided as part of the [Yahoo! User Interface Library](http://developer.yahoo.com/yui/). All of the [YUI Library](http://developer.yahoo.com/yui/ "Copyright © Yahoo! Inc. All rights reserved") components are provided free of charge under a liberal [BSD license](http://yuilibrary.com/license/).


The [HTML5 Shiv](https://github.com/aFarkas/html5shiv) script is licensed under MIT/GPL2. The [HTML5 Shiv](https://github.com/afarkas/html5shiv) script is licensed under MIT/GPL2.




## Version History ## Version History
Expand All @@ -69,6 +69,7 @@ The [HTML5 Shiv](https://github.com/aFarkas/html5shiv) script is licensed under
+ Added support for page menu navigation + Added support for page menu navigation
+ Added theme option to display page menu navigation + Added theme option to display page menu navigation
+ The theme version is displayed in the footer again + The theme version is displayed in the footer again
+ The name and version of the child theme will also be displayed in the footer
+ Embiggened theme screenshot + Embiggened theme screenshot




Expand Down

0 comments on commit 708306a

Please sign in to comment.