Created
October 3, 2012 23:26
-
-
Save scottnix/3830539 to your computer and use it in GitHub Desktop.
Thematic override for postconnect on v1.0.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function childtheme_override_postfooter_postconnect() { | |
| if ((comments_open()) && (pings_open())) { /* Comments are open */ | |
| $postconnect = ' <a class="comment-link" href="#respond" title ="' . __('Post a comment', 'thematic') . '">' . __('Post a comment', 'thematic') . '</a>'; | |
| $postconnect .= __(' or leave a trackback: ', 'thematic'); | |
| $postconnect .= '<a class="trackback-link" href="' . get_trackback_url() . '" title ="' . __('Trackback URL for your post', 'thematic') . '" rel="trackback">' . __('Trackback URL', 'thematic') . '</a>.'; | |
| } elseif (!(comments_open()) && (pings_open())) { /* Only trackbacks are open */ | |
| $postconnect = __(' Comments are closed, but you can leave a trackback: ', 'thematic'); | |
| $postconnect .= '<a class="trackback-link" href="' . get_trackback_url() . '" title ="' . __('Trackback URL for your post', 'thematic') . '" rel="trackback">' . __('Trackback URL', 'thematic') . '</a>.'; | |
| } elseif ((comments_open()) && !(pings_open())) { /* Only comments open */ | |
| $postconnect = __(' Trackbacks are closed, but you can ', 'thematic'); | |
| $postconnect .= '<a class="comment-link" href="#respond" title ="' . __('Post a comment', 'thematic') . '">' . __('post a comment', 'thematic') . '</a>.'; | |
| } elseif (!(comments_open()) && !(pings_open())) { /* Comments and trackbacks closed */ | |
| // if both are closed, say nothing instead. | |
| // $postconnect = __(' Both comments and trackbacks are currently closed.', 'thematic'); | |
| $postconnect = __(' ', 'thematic'); | |
| } | |
| return apply_filters('thematic_postfooter_postconnect',$postconnect); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment