Skip to content
Browse files

Minor edits

  • Loading branch information...
1 parent edf872b commit 708306a4b06ee1628602eb0fb4a7bb9c38557ded @splorp committed
Showing with 20 additions and 3 deletions.
  1. +18 −2 functions.php
  2. +2 −1 readme.md
View
20 functions.php
@@ -4,6 +4,7 @@
* @subpackage Tersus
*/
+
// Define Theme Constants
$theme_data = get_theme_data( TEMPLATEPATH . '/style.css');
@@ -161,10 +162,12 @@ function tersus_admin() {
add_action('admin_menu', 'tersus_add_admin');
+
// Automatic Feed Links
automatic_feed_links();
+
// Add Support for Page Menus
function register_my_menus() {
@@ -174,10 +177,12 @@ function register_my_menus() {
}
add_action( 'init', 'register_my_menus' );
+
// Remove non-validating parent post link from header
remove_action('wp_head', 'parent_post_rel_link');
+
// Sidebar support. Let's have two, shall we?
if ( function_exists('register_sidebar') ) {
@@ -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' ) );
+
// Replace default post class verbosity
function simple_post_class() {
@@ -220,6 +228,7 @@ function simple_post_class() {
add_filter( 'post_class', 'simple_post_class' );
+
// Remove non-validating rel attributes from category links
function relfix($c) {
@@ -228,6 +237,7 @@ function relfix($c) {
add_filter('the_category','relfix');
+
// Add a proper thousands delimiter to category post counts
function delim($c) {
@@ -395,6 +405,7 @@ function comment_reply_anchor($str) {
add_image_size( 'archive-thumbnail', 50, 50 ); // Permalink thumbnail size
}
+
// Add support for the_post_thumbnail in RSS feeds
function insertThumbnailRSS($content) {
@@ -408,6 +419,7 @@ function insertThumbnailRSS($content) {
add_filter('the_excerpt_rss', 'insertThumbnailRSS');
add_filter('the_content_feed', 'insertThumbnailRSS');
+
// Removes the link delimiter when viewing first or last post
function delim_post_link() {
@@ -418,6 +430,7 @@ function delim_post_link() {
}
}
+
// Removes the link delimiter when viewing first or last archive page
function delim_posts_link() {
@@ -428,6 +441,7 @@ function delim_posts_link() {
}
}
+
// Removes the link delimiter when viewing first or last comment
function delim_comment_link() {
@@ -439,6 +453,7 @@ function delim_comment_link() {
}
}
+
// Removes the link delimiter when viewing first or last image
function delim_image_link() {
@@ -458,6 +473,7 @@ function delim_image_link() {
}
}
+
// Custom excerpt links
function new_excerpt_more($more) {
@@ -469,4 +485,4 @@ function new_excerpt_more($more) {
add_filter('excerpt_more', 'new_excerpt_more');
-?>
+?>
View
3 readme.md
@@ -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/).
-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
@@ -69,6 +69,7 @@ The [HTML5 Shiv](https://github.com/aFarkas/html5shiv) script is licensed under
+ Added support for page menu navigation
+ Added theme option to display page menu navigation
+ 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

0 comments on commit 708306a

Please sign in to comment.
Something went wrong with that request. Please try again.