示例#1
0
function cws_hdpi_bg_size($url)
{
    $width = cws_get_img_width($url);
    $img_width = floor($width / 2);
    return $img_width;
}
示例#2
0
文件: single.php 项目: Makenrro/repos
            echo $img_width * 0.5625;
            ?>
px">
																	<?php 
            echo $video;
            ?>
																</figure>
															</div><!--/ post-thumb-->
														<?php 
        } elseif (has_post_thumbnail()) {
            $image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_id()), 'full', true);
            ?>
															<div class="content-wrapper alignleft">
																<figure>
																<?php 
            $post_img = cws_get_img_width($image[0]) < $img_width ? cws_get_img_width($image[0]) : null;
            if ($disable_lightbox || $post_img) {
                ?>
																	<img class="pic" src="<?php 
                echo $post_img ? $image[0] : bfi_thumb($image[0], $f_img_settings);
                ?>
" alt="<?php 
                the_title();
                ?>
" />
																<?php 
            } else {
                ?>
																
																	<a class="prettyPhoto kids_picture" title="<?php 
                the_title();