Exemplo n.º 1
0
function wpt_get_slide_image($post_ID)
{
    $post_thumbnail_id = get_image_id_by_link(get_post_meta($post_ID, 'snbf_slideimage_src', true));
    if ($post_thumbnail_id) {
        $post_thumbnail_img = wp_get_attachment_image_src($post_thumbnail_id, 'small');
        return $post_thumbnail_img[0];
    }
}
Exemplo n.º 2
0
function wpt_get_featured_image($post_ID)
{
    $post_thumbnail_id = get_image_id_by_link(get_post_meta($post_ID, 'snbp_pitemlink', true));
    if ($post_thumbnail_id) {
        $post_thumbnail_img = wp_get_attachment_image_src($post_thumbnail_id, 'small');
        return $post_thumbnail_img[0];
    }
}
Exemplo n.º 3
0
    the_ID();
    ?>
" data-type="<?php 
    foreach ($categories as $category) {
        echo $category->slug . ' ';
    }
    ?>
">
								<div class="portfolio-item ">
									<div class="item-content">
										<div class="link-holder">
											<div class="portfolio-item-holder">
												<div class="portfolio-item-hover-content">
													
													<?php 
    $thumbId = get_image_id_by_link(get_post_meta($post->ID, 'snbp_pitemlink', true));
    $thumb = wp_get_attachment_image_src($thumbId, 'portfolio-item-small', false);
    $large = wp_get_attachment_image_src($thumbId, 'large', false);
    ?>
													<a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    the_title();
    ?>
">
													<?php 
    if (!$thumb == '') {
        ?>
													
													<img src="<?php 
Exemplo n.º 4
0
<span class="bio-location"><?php 
    echo of_get_option('veecard_home_address');
    ?>
</span><?php 
}
?>
        </div>

        <div class="col_half clearfix">
            <?php 
if (of_get_option('veecard_home_teaser_image') != '') {
    ?>
            <div class="bio-image">

                <?php 
    $thumbId = get_image_id_by_link(of_get_option('veecard_home_teaser_image'));
    $thumb = wp_get_attachment_image_src($thumbId, 'bio-image', false);
    ?>
               
				<img src="<?php 
    echo $thumb[0];
    ?>
" alt="<?php 
    echo of_get_option('veecard_home_name');
    ?>
" />
            </div>
            <?php 
}
?>
            <div class="bio-info">
Exemplo n.º 5
0
			<?php 
$captions = array();
$tmp = $wp_query;
$slider = get_term_by('id', of_get_option('slidertag'), 'sliders');
$slider = $slider->slug;
$wp_query = new WP_Query('post_type=featured&orderby=menu_order&order=ASC&sliders=' . $slider . '&posts_per_page=99');
if ($wp_query->have_posts()) {
    while ($wp_query->have_posts()) {
        $wp_query->the_post();
        $fitemlink = get_post_meta($post->ID, 'snbf_fitemlink', true);
        $fitemcaption = get_post_meta($post->ID, 'snbf_fitemcaption', true);
        ?>
        	

			<?php 
        $thumbId = get_image_id_by_link(get_post_meta($post->ID, 'snbf_slideimage_src', true));
        $thumb = wp_get_attachment_image_src($thumbId, 'slide', false);
        ?>
			<li>
				<?php 
        if ($fitemlink != '') {
            ?>
				<a href="<?php 
            echo $fitemlink;
            ?>
"><img src="<?php 
            echo $thumb[0];
            ?>
" alt="<?php 
            echo $fitemcaption;
            ?>
Exemplo n.º 6
0
<?php

get_header();
?>
			
			<div id="content" class="container clearfix"> 
				
				<!-- page header -->
				<div class="container clearfix ">
					<?php 
// display the blog page image header or fallback to the default one.
$blogPageID = of_get_option('sc_singledesc');
$thumbId = get_image_id_by_link(get_post_meta($blogPageID, 'snbpd_phitemlink', true));
$thumb = wp_get_attachment_image_src($thumbId, 'page-header', false);
?>
					<?php 
if (of_get_option('sc_showpageheader') == '1' && get_post_meta($blogPageID, 'snbpd_ph_disabled', true) != 'on') {
    ?>
						<?php 
    if (get_post_meta($blogPageID, 'snbpd_phitemlink', true) != '') {
        ?>
						<img class="intro-img" alt=" " src="<?php 
        echo $thumb[0];
        ?>
" alt="<?php 
        the_title();
        ?>
"  />
						<?php 
    } else {
        ?>