コード例 #1
0
ファイル: layout-list.php プロジェクト: kevinaxu/99boulders
	<section class='post <?php 
            echo $class;
            ?>
 fix'>
		<div class="entry fix">
<?php 
        }
    }
    if ($total > 0) {
        echo "<{$suf_excerpt_list_style}>\n";
        while (have_posts()) {
            the_post();
            if (in_array($post->ID, $suffusion_duplicate_posts)) {
                continue;
            }
            echo "<li>";
            echo suffusion_get_post_title_and_link();
            echo "</li>\n";
        }
        echo "</{$suf_excerpt_list_style}>\n";
        ?>
		</div> <!-- /.entry -->
	</section> <!-- /.post -->
<?php 
    }
    if ($suf_excerpt_list_count != 'all') {
        suffusion_before_end_content();
    }
} else {
    get_template_part('layouts/template-missing');
}
コード例 #2
0
ファイル: pullout.php プロジェクト: jpsutton/suffusion
$post_with_title_show_perm = ${$with_title_show_perm};
$show_date = !isset($suffusion_cpt_post_id) && !$is_cpt ? $suf_date_box_show != 'hide' || $suf_date_box_show == 'hide-search' && !is_search() : $suf_cpt_bylines_post_date;
$post_meta_position = apply_filters('suffusion_pullout_position', $post_meta_position);
if ($post_meta_position == 'corners') {
    return;
}
echo "<div class='meta-pullout meta-{$post_meta_position}'>\n";
echo "<ul>\n";
if ($show_date && $show_date !== 'hide') {
    echo "<li class='fix'><span class='pullout-date'><span class='icon'>&nbsp;</span>" . get_the_time(get_option('date_format')) . "</span></li>\n";
}
$title = get_the_title();
if ($post_show_perm && $post_show_perm != 'hide' && (isset($suffusion_cpt_post_id) || $is_cpt) || !isset($suffusion_cpt_post_id) && !$is_cpt && $post_show_perm != 'hide' && ($title == '' || !$title || !($title == '' || !$title) && $post_with_title_show_perm != 'hide')) {
    echo "<li class='fix'>";
    $permalink_text = apply_filters('suffusion_permalink_text', __('Permalink', 'suffusion'));
    echo "<span class='permalink'><span class='icon'>&nbsp;</span> " . suffusion_get_post_title_and_link($permalink_text) . "</span>";
    echo "</li>\n";
}
if ($post_show_posted_by && $post_show_posted_by != 'hide') {
    echo "<li class='fix'>";
    suffusion_print_author_byline();
    echo "</li>\n";
}
if ($post_show_comment && $post_show_comment != 'hide') {
    if ('open' == $post->comment_status && is_singular()) {
        echo "<li class='fix'><span class='comments'><span class='icon'>&nbsp;</span> <a href='#respond'>" . __('Add comments', 'suffusion') . "</a></span></li>\n";
    } else {
        echo "<li class='fix'><span class='comments'><span class='icon'>&nbsp;</span> ";
        comments_popup_link(__('No Responses', 'suffusion'), __('1 Response', 'suffusion'), __('% Responses', 'suffusion'));
        echo "</span></li>\n";
    }
コード例 #3
0
ファイル: byline-line.php プロジェクト: kevinaxu/99boulders
$post_show_posted_by = ${$show_posted_by};
$post_show_tags = ${$show_tags};
$post_show_comment = ${$show_comment};
$post_show_perm = ${$show_perm};
$post_with_title_show_perm = ${$with_title_show_perm};
$show_date = !isset($suffusion_cpt_post_id) && !$is_cpt ? $suf_date_box_show != 'hide' || $suf_date_box_show == 'hide-search' && !is_search() : $suf_cpt_bylines_post_date;
if ($show_date || $post_show_cats != 'hide' || $post_show_posted_by != 'hide' || $post_show_tags != 'hide' || $post_show_comment != 'hide' || $post_show_perm != 'hide' || $post_with_title_show_perm != 'hide') {
    ?>
<div class='postdata line'>
	<?php 
    $title = get_the_title();
    if ($post_show_perm && $post_show_perm != 'hide' && (isset($suffusion_cpt_post_id) || $is_cpt) || !isset($suffusion_cpt_post_id) && !$is_cpt && $post_show_perm != 'hide' && ($title == '' || !$title || !($title == '' || !$title) && $post_with_title_show_perm != 'hide')) {
        $permalink_text = apply_filters('suffusion_permalink_text', __('Permalink', 'suffusion'));
        $prepend = apply_filters('suffusion_before_byline_html', do_shortcode($suf_byline_before_permalink), 'permalink');
        $append = apply_filters('suffusion_after_byline_html', do_shortcode($suf_byline_after_permalink), 'permalink');
        echo "<span class='permalink'><span class='icon'>&nbsp;</span>" . $prepend . suffusion_get_post_title_and_link($permalink_text) . $append . "</span>\n";
    }
    if ($show_date && $show_date !== 'hide') {
        $prepend = apply_filters('suffusion_before_byline_html', do_shortcode($suf_byline_before_date), 'date');
        $append = apply_filters('suffusion_after_byline_html', do_shortcode($suf_byline_after_date), 'date');
        echo "<span class='line-date'><span class='icon'>&nbsp;</span>" . $prepend . get_the_time(get_option('date_format')) . $append . "</span>\n";
    }
    if ($post_show_posted_by && 'hide' != $post_show_posted_by) {
        suffusion_print_author_byline();
    }
    if ($post_show_cats != 'hide') {
        $categories = get_the_category();
        if (is_array($categories) && count($categories) > 0) {
            $prepend = apply_filters('suffusion_before_byline_html', do_shortcode($suf_byline_before_category), 'category');
            $append = apply_filters('suffusion_after_byline_html', do_shortcode($suf_byline_after_category), 'category');
            echo '<span class="category"><span class="icon">&nbsp;</span>';
コード例 #4
0
ファイル: byline-tile.php プロジェクト: kevinaxu/99boulders
$show_cats = ${$cats};
$show_tags = ${$tags};
$ret = '';
echo "<div class='suf-tile-bylines fix'>\n";
echo "<ul class='suf-tile-byline-icons'>\n";
$ret_trailer = "<ul class='suf-tile-byline-texts'>\n";
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'));