예제 #1
0
파일: search.php 프로젝트: nsdown/kunkka
					<div class="post-body">
						<?php 
        if ($post_thumbnail["exist"]) {
            ?>
							<div class="post-thumbnail">
								<a href="<?php 
            the_permalink();
            ?>
" rel="bookmark">
									<img class="lazy"
									     src="<?php 
            echo mutheme_cdn(mutheme_image('placeholder.png'));
            ?>
"
									     data-original="<?php 
            echo mutheme_cdn($post_thumbnail);
            ?>
"
									     alt="<?php 
            the_title();
            ?>
" width="130" height="130"/>
								</a>
							</div>
							<div class="post-content">
								<?php 
            printf('<p>%s</p>', mutheme_excerpt($post->post_content, 320));
            ?>
							</div>
						<?php 
        } else {
예제 #2
0
function mutheme_avatar($avatar)
{
    if (!is_admin()) {
        $avatar = str_replace('src=', 'src="' . mutheme_cdn(mutheme_image('placeholder.png')) . '" data-original=', $avatar);
    }
    if (mutheme_settings('avatar') == 1) {
        $avatar = str_replace(array("www.gravatar.com", "0.gravatar.com", "1.gravatar.com", "2.gravatar.com"), "gravatar.duoshuo.com", $avatar);
    }
    return $avatar;
}