Esempio n. 1
0
                $imgsrc = $large_image_url[0];
            } else {
                $imgsrc = um_catch_first_image();
            }
            ?>
							<li>
								<a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            the_title();
            ?>
" rel="bookmark" class="fancyimg">
									<div class="thumb-img">
										<img src="<?php 
            echo um_timthumb($imgsrc, 280, 180);
            ?>
" alt="<?php 
            the_title();
            ?>
">
										<span><i class="fa fa-shopping-cart"></i></span>
									</div>
								</a>
								<p><a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            the_title();
            ?>
"><?php 
Esempio n. 2
0
function um_author_products_display($showposts = 4, $author = 0, $orderby = 'date')
{
    $is_vip = getUserMemberType($author);
    if ($is_vip) {
        $author_arg = $author;
    } else {
        $author_arg = 0;
    }
    $products_query = um_query_products($showposts, $author_arg, $orderby);
    if ($products_query->have_posts()) {
        while ($products_query->have_posts()) {
            $products_query->the_post();
            if (has_post_thumbnail()) {
                $large_image_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
                $imgsrc = $large_image_url[0];
            } else {
                $imgsrc = um_catch_first_image();
            }
            ?>
	<li><a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            the_title();
            ?>
" rel="bookmark" class="fancyimg">
		<div class="thumb-img">
			<img src="<?php 
            echo um_timthumb($imgsrc, 280, 180);
            ?>
" alt="<?php 
            the_title();
            ?>
">
			<span><i class="fa fa-shopping-cart"></i></span>
		</div>
		</a>
		<p><a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            the_title();
            ?>
"><?php 
            the_title();
            ?>
</a></p>
	</li>
<?php 
        }
    }
    wp_reset_query();
}
Esempio n. 3
0
            $large_image_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
            $imgsrc = $large_image_url[0];
        } else {
            $imgsrc = um_catch_first_image();
        }
        ?>
				<a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title();
        ?>
" rel="bookmark" class="fancyimg">
					<div class="thumb-img">
						<img src="<?php 
        echo um_timthumb($imgsrc, 375, 250);
        ?>
" alt="<?php 
        the_title();
        ?>
">
						<span><i class="fa fa-shopping-cart"></i></span>
					</div>
				</a>
				<h3>
					<a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title();
        ?>