예제 #1
0
    ?>
">
    <meta name="twitter:label1" content="Price">

    <!-- Open Graph data -->
    <meta property="og:title" content="<?php 
    echo $social_meta['name'];
    ?>
" />
    <meta property="og:type" content="product" />
    <meta property="og:url" content="<?php 
    linkify_to_item($social_meta['itemid'], $social_meta['name']);
    ?>
" />
    <meta property="og:image" content="<?php 
    linkify_to_images($social_meta['image_thumb']);
    ?>
" />
    <meta property="og:description" content="<?php 
    echo character_limiter(str_replace("Seller's Comments and Description:", '', $social_meta['description']), 120);
    ?>
" />
    <meta property="og:type" content="<?php 
    echo $social_meta['username'];
    ?>
" />
    <meta property="product:price:amount" content="<?php 
    echo $social_meta['value'];
    ?>
" />
    <meta property="product:price:currency" content="PHP" />
			<?php 
    foreach ($data as $value) {
        if ($value->image_thumb === NULL) {
            $value->image_thumb = 'default_thumb.JPG';
        }
        ?>

			<div class="col-sm-12 col-xs-12 col-md-4 col-lg-4">
				<div class="thumbnail bootsnipp-thumb">
					<div class="image-card">
						<a href="<?php 
        linkify_to_item($value->a_item_id, $value->name);
        ?>
">
							<img width="200" height="200" src="<?php 
        linkify_to_images($value->image_thumb);
        ?>
" alt="<?php 
        echo $value->name;
        ?>
">
						</a>
						<p class="snipp-title">
							<a title="<?php 
        echo $value->name;
        ?>
"  href="<?php 
        linkify_to_item($value->a_item_id, $value->name);
        ?>
"><?php 
        echo character_limiter(word_wrap($value->name), 40);