示例#1
0
文件: filters.php 项目: alx/Tetalab
/**
 * Called to display post heading for news in index and archive pages
 * @since 1.2.2
 */
function arras_newsheader($page_type)
{
    global $post;
    $postheader = '<div class="entry-thumbnails">';
    $postheader .= '<a class="entry-thumbnails-link" href="' . wpmu_link() . '">';
    if ($thumbnail = arras_get_thumbnail($page_type . '-post-thumb')) {
        $postheader .= '<img src="' . $thumbnail . '" alt="' . get_the_title() . '" title="' . get_the_title() . '" />';
    } else {
        $postheader .= '<span style="display: none">' . get_the_title() . '</span>';
    }
    $postheader .= '</a>';
    if (arras_get_option($page_type . '_display_meta_inpic')) {
        $postheader .= '<span class="entry-meta"><a href="' . wpmu_link() . '"><span class="entry-comments">' . get_comments_number() . '</span></a>';
        $postheader .= '<abbr class="published" title="' . get_the_time('c') . '">' . get_the_time(get_option('date_format')) . '</abbr></span>';
    }
    $postheader .= '</div>';
    $postheader .= '<h3 class="entry-title"><a href="' . wpmu_link() . '" rel="bookmark">' . get_the_title() . '</a></h3>';
    echo apply_filters('arras_newsheader', $postheader);
}
示例#2
0
文件: single.php 项目: alx/Tetalab

<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
	<?php 
        arras_above_post();
        ?>
	
	<div class="featured clearfix">
		<div id="featured-slideshow">
			<div>
				<a class="featured-article" href="<?php 
        echo wpmu_link();
        ?>
" rel="bookmark" style="background: url(<?php 
        echo arras_get_thumbnail('featured-slideshow-thumb');
        ?>
) no-repeat #1E1B1A;">
					<span class="featured-entry">
						<span class="entry-title"><?php 
        the_title();
        ?>
</span>
						<span class="progress"></span>
					</span>
				</a>
			</div>
		</div>