ThemeShaper Forums » Thematic

[closed]

changing output in entry-utility in Thematic 1.0

(4 posts)
  • Started 11 years ago by onelittlemoose
  • Latest reply from em hr
  • This topic is not resolved
  1. onelittlemoose
    Member

    I had some custom code to remove "trackbacks are closed but you can leave a comment" that appears at the end of post. Updating to new Thematic 1.0+ has broken it, and it now ends with
    "This entry was posted in [category]. Bookmark the permalink. . Bookmark the permalink. Post a comment."
    And when I am logged in, it gives me 2 edit links.
    Here is my code:

    // OVERRIDING WHAT APPEARS IN THE POST FOOTER FOR CLOSED COMMENTS TRACKBACKS ETC
    function childtheme_override_postfooter_postconnect() {
    $postconnect = __('. Bookmark the ', 'thematic') . '<a href="' . apply_filters('the_permalink', get_permalink()) . '" title="' . __('Permalink to ', 'thematic') . the_title_attribute('echo=0') . '">';
     $postconnect .= __('permalink', 'thematic') . '</a>.';
    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 */
    /* CHANGED FROM THEMATIC ORIGINAL TO REMOVE Trackbacks are closed, but you can */
     $postconnect .= __(' ', '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 */
    /* CHANGED FROM THEMATIC ORIGINAL TO REMOVE TEXT both trackbacks and comments are closed */
     $postconnect .= __(' ', 'thematic');
     }
    // Display edit link on single posts
     if (current_user_can('edit_posts')) {
    $postconnect .= ' ' . thematic_postfooter_posteditlink();
    }
     return apply_filters('childtheme_override_postfooter_postconnect',$postconnect);
    }

    I know this is quite clumsy, and obviously since it's broken in the new version, this was the wrong way to do it. As the trackbacks are closed for this particular site, I don't want a mention of trackbacks in the post footer.

    Anyone else run into this, or have any insights? Thanks.

    Posted 11 years ago #
  2. Best Bet? Thematic has sort of moved so you might find asking this question here; http://thematictheme.com/forums/
    More beneficial.

    Posted 11 years ago #
  3. onelittlemoose
    Member

    Thanks drec. But hmmm, can't seem to register on the new forum. My confirmation page is blank.....

    Posted 11 years ago #
  4. onelittlemoose,

    Thanks for your patience. Your login on the new site should be sorted now :)

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.