Esempio n. 1
0
"><?php 
    }
    if ($ifpic != 'checked') {
        ?>
	<?php 
        if (has_post_thumbnail()) {
            ?>
    <?php 
            post_thumbnail($imgW, $imgH, lateLoad('data-') . 'src');
            if (has_excerpt()) {
                the_excerpt();
            } else {
                echo dm_strimwidth(strip_tags($post->post_content), 0, $dis_num, '....');
            }
        } elseif (catch_that_image()) {
            post_thumbnail($imgW, $imgH, lateLoad('data-') . 'src');
            ?>
		<?php 
            if (has_excerpt()) {
                the_excerpt();
            } else {
                echo dm_strimwidth(strip_tags($post->post_content), 0, $dis_num, '....');
            }
        } else {
            if (has_excerpt()) {
                the_excerpt();
            } else {
                echo dm_strimwidth(strip_tags($post->post_content), 0, $dis_num + 50, '....');
            }
        }
    }
Esempio n. 2
0
function pirobox_gall_replace($content)
{
    global $post;
    $pattern = "/<a(.*?)href=('|\")([^>]*).(bmp|gif|jpeg|jpg|png)('|\")(.*?)><img(.*?)src=(.*?)><\\/a>/i";
    if (!is_feed()) {
        $replacement = '<a$1href=$2$3.$4$5 data-lightbox="image_lg"$6><img $7 ' . lateLoad('data-') . 'src=$8></a>';
    } else {
        $replacement = '<a$1href=$2$3.$4$5><img $7 src=$8></a>';
    }
    $content = preg_replace($pattern, $replacement, $content);
    return $content;
}
Esempio n. 3
0
        if (get_option('themes_fo2_TimThumb')) {
            ?>
<img <?php 
            echo lateLoad('data-focus-');
            ?>
src="<?php 
            echo get_post_meta($post->ID, 'flashPic', true);
            ?>
" alt="<?php 
            the_title();
            ?>
" /><?php 
        } else {
            ?>
<img <?php 
            echo lateLoad('data-focus-');
            ?>
src="<?php 
            echo str_replace($blogUrl, '', get_bloginfo("template_url"));
            ?>
/timthumb.php?src=<?php 
            echo get_post_meta($post->ID, 'flashPic', true);
            ?>
&amp;h=504&amp;w=1272&amp;zc=1" alt="<?php 
            the_title();
            ?>
" /><?php 
        }
        ?>
</a><div class="type_text"><p class="title"><?php 
        the_title();