예제 #1
0
<?php

$link = st_get_link_with_search(get_permalink(), array('start', 'end', 'room_num_search', 'adult_number', 'child_num'), $_GET);
$thumb_url = wp_get_attachment_url(get_post_thumbnail_id(get_the_ID()));
?>
<div class="div_item_map <?php 
echo 'div_map_item_' . get_the_ID();
?>
" >
    <!--<div class="st_featured"><?php 
/*echo esc_html($post_type) */
?>
</div>-->
    <?php 
echo STFeatured::get_featured();
?>
    <div class="thumb item_map">
        <header class="thumb-header">
            <div class="booking-item-img-wrap st-popup-gallery">
                <a href="<?php 
echo esc_url($thumb_url);
?>
" class="st-gp-item">
                     <?php 
if (has_post_thumbnail() and get_the_post_thumbnail()) {
    the_post_thumbnail(array(360, 270, 'bfi_thumb' => TRUE));
} else {
    echo st_get_default_image();
}
?>
                </a>
예제 #2
0
    $img_tmp = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), array(360, 270));
    $img = $img_tmp[0];
} else {
    $img = get_template_directory_uri() . '/img/no-image.png';
}
?>
<div class="div_item_map <?php 
echo 'div_map_item_' . get_the_ID();
?>
">
    <?php 
$thumb_url = wp_get_attachment_url(get_post_thumbnail_id(get_the_ID()));
$link = st_get_link_with_search(get_permalink(), array('start', 'end', 'room_num_search', 'adult_number', 'children_num'), $_GET);
?>
    <?php 
echo STFeatured::get_featured($hotel_id);
?>
    <div class="thumb item_map">
        <header class="thumb-header">
            <img src="<?php 
echo $img;
?>
" alt="" class="img-responsive">
        </header>
        <div class="thumb-caption">
            <?php 
$view_star_review = st()->get_option('view_star_review', 'review');
if ($view_star_review == 'review') {
    ?>
                <ul class="icon-group text-color">
                    <?php