Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function thematic_postfooter_postconnect() {
- if ((comments_open()) && (pings_open())) { /* Comments are open */
- $postconnect = sprintf( __('%sPost a comment%s or leave a trackback', 'thematic'), sprintf('<a class="comment-link" title="%s" href="#respond">', esc_attr__('Post a comment', 'thematic')), '</a>') . ': ';
- $postconnect .= sprintf('<a class="trackback-link" href="' . get_trackback_url() . '" title ="%s" rel="trackback">%s</a>.', esc_attr__('Trackback URL for your post', 'thematic'), __('Trackback URL', 'thematic'));
- } elseif (!(comments_open()) && (pings_open())) { /* Only trackbacks are open */
- $postconnect = __('Comments are closed, but you can leave a trackback', 'thematic') . ': ';
- $postconnect .= sprintf('<a class="trackback-link" href="%s" title="%s" rel="trackback">%s</a>.', get_trackback_url() , __('Trackback URL for your post', 'thematic'), __('Trackback URL', 'thematic'));
- } elseif ((comments_open()) && !(pings_open())) { /* Only comments open */
- $postconnect = sprintf( __('Trackbacks are closed, but you can %spost a comment%s', 'thematic'), sprintf('<a class="comment-link" title="%s" href="#respond">', esc_attr__('Post a comment', 'thematic')), '</a>') . '.';
- } elseif (!(comments_open()) && !(pings_open())) { /* Comments and trackbacks closed */
- $postconnect = __('Both comments and trackbacks are currently closed', 'thematic'). '.';
- }
- return apply_filters('thematic_postfooter_postconnect',$postconnect);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement