Example #1
0
if ($format == 'standard') {
    $format = '';
} else {
    $format = $format . '_';
}
$show_posted_by = 'suf_page_show_posted_by';
$show_comment = 'suf_page_show_comment';
global ${$show_posted_by}, ${$show_comment};
$post_show_posted_by = ${$show_posted_by};
$post_show_comment = ${$show_comment};
if ($post_show_posted_by != 'hide' || $post_show_comment != 'hide') {
    ?>
<div class='postdata line'>
	<?php 
    if ($post_show_posted_by != 'hide') {
        suffusion_print_author_byline();
    }
    if (is_singular() && $post_show_comment != 'hide') {
        if ('open' == $post->comment_status) {
            ?>
			<span class="comments"><span class="icon">&nbsp;</span><a href="#respond"><?php 
            _e('Add comments', 'suffusion');
            ?>
</a></span>
<?php 
        }
    } else {
        if ($post_show_comment != 'hide') {
            echo "<span class='comments'><span class='icon'>&nbsp;</span>";
            comments_popup_link(__('No Responses', 'suffusion') . ' &#187;', __('1 Response', 'suffusion') . ' &#187;', __('% Responses', 'suffusion') . ' &#187;');
            echo "</span>";
Example #2
0
if ($show_post_date && $show_post_date != 'hide') {
    $icon_a = "<a id='suf-tile-date-{$post->ID}' class='suf-tile-date-icon suf-tile-icon' href='#' title='" . __('Date', 'suffusion') . "'><span>&nbsp;</span></a>";
    echo "<li>{$icon_a}</li>\n";
    $ret_trailer .= "<li id='suf-tile-date-text-{$post->ID}' class='suf-tile-date-icon-text suf-tile-icon-text'><span class='icon'>&nbsp;</span>" . get_the_time(get_option('date_format')) . "</li>";
}
if ($show_permalinks && $show_permalinks != 'hide') {
    $permalink_text = apply_filters('suffusion_permalink_text', __('Permalink', 'suffusion'));
    $icon_a = "<a id='suf-tile-permalink-{$post->ID}' class='suf-tile-permalink-icon suf-tile-icon' href='#' title='{$permalink_text}'><span>&nbsp;</span></a>";
    echo "<li>{$icon_a}</li>\n";
    $ret_trailer .= "<li id='suf-tile-permalink-text-{$post->ID}' class='suf-tile-permalink-icon-text suf-tile-icon-text'><span class='icon'>&nbsp;</span>" . suffusion_get_post_title_and_link($permalink_text) . "</li>";
}
if ($show_posted_by && $show_posted_by != 'hide') {
    $icon_a = "<a id='suf-tile-postedby-{$post->ID}' class='suf-tile-postedby-icon suf-tile-icon' href='#' title='" . __('Author', 'suffusion') . "'><span>&nbsp;</span></a>";
    echo "<li>{$icon_a}</li>\n";
    $ret_trailer .= "<li id='suf-tile-postedby-text-{$post->ID}' class='suf-tile-postedby-icon-text suf-tile-icon-text'><span class='icon'>&nbsp;</span>";
    $ret_trailer .= suffusion_print_author_byline(false, false);
    $ret_trailer .= "</li>\n";
}
if ($show_comments && $show_comments != 'hide') {
    $icon_a = "<a id='suf-tile-comments-{$post->ID}' class='suf-tile-comments-icon suf-tile-icon' href='#' title='" . __('Responses', 'suffusion') . "'><span>&nbsp;</span></a>";
    echo "<li>{$icon_a}</li>\n";
    $ret_trailer .= "<li id='suf-tile-comments-text-{$post->ID}' class='suf-tile-comments-icon-text suf-tile-icon-text'><span class='icon'>&nbsp;</span>";
    ob_start();
    // Output buffering is needed here because comments_popup_link doesn't have a getter that doesn't echo
    comments_popup_link(__('No Responses', 'suffusion'), __('1 Response', 'suffusion'), __('% Responses', 'suffusion'));
    $ret_trailer .= ob_get_contents();
    ob_end_clean();
    $ret_trailer .= "</li>\n";
}
if ($show_cats != 'hide') {
    $categories = get_the_category($post->ID);