示例#1
0
        adventure_tours_renders_tour_badge(array('tour_id' => $item_id, 'wrap_css_class' => 'atgrid__item__angle-wrap', 'css_class' => 'atgrid__item__angle'));
        ?>
						<?php 
        if ($price_html) {
            printf('<div class="atgrid__item__price"><a href="%s" class="atgrid__item__price__button">%s</a></div>', esc_url($item_url), $price_html);
        }
        ?>
					<?php 
    }
    ?>
					<?php 
    adventure_tours_renders_stars_rating($item->get_average_rating(), array('before' => '<div class="atgrid__item__rating">', 'after' => '</div>'));
    ?>
					<?php 
    if ($view_settings['show_categories']) {
        adventure_tours_render_tour_icons(array('before' => '<div class="atgrid__item__icons">', 'after' => '</div>'), $item_id);
    }
    ?>
				</div>
				<div class="atgrid__item__content">
					<h3 class="atgrid__item__title"><a href="<?php 
    echo esc_url($item_url);
    ?>
"><?php 
    echo esc_html($item->post->post_title);
    ?>
</a></h3>
					<div class="atgrid__item__description"><?php 
    echo adventure_tours_get_short_description($item->post, $view_settings['description_words_limit']);
    ?>
</div>
示例#2
0
    $permalink = get_permalink($item_id);
    $title = get_the_title($item_id);
    $thumb_html = adventure_tours_get_the_post_thumbnail(null, $view_settings['image_size']);
    $price_html = $item->get_price_html();
    ob_start();
    adventure_tours_render_product_attributes(array('before' => '<div class="item-attributes item-attributes--style2">', 'after' => '</div>', 'before_each' => '<div class="item-attributes__item">', 'after_each' => '</div>', 'limit' => 3), $item_id);
    $attributes = ob_get_clean();
    ?>
		<div class="atlist__item margin-bottom">
			<div class="atlist__item__image">
			<?php 
    printf('<a class="atlist__item__image-wrap" href="%s">%s</a>', esc_url($permalink), $thumb_html ? $thumb_html : adventure_tours_placeholder_img($view_settings['image_size']));
    ?>
			<?php 
    if ($view_settings['show_categories']) {
        adventure_tours_render_tour_icons(array('before' => '<div class="atlist__item__icons">', 'after' => '</div>'));
    }
    ?>
			<?php 
    if ($item->is_type('tour')) {
        adventure_tours_renders_tour_badge(array('tour_id' => get_the_ID(), 'wrap_css_class' => 'atlist__item__angle-wrap', 'css_class' => 'atlist__item__angle'));
    }
    ?>
			</div>
			<div class="atlist__item__content<?php 
    if (!$attributes) {
        echo ' atlist__item__content--full-height';
    }
    ?>
">
				<div class="atlist__item__content__items">