# yatra/3.0.2.7/templates/tmpl-tour-item.php

Yatra – Travel Booking &amp; Tour Operator Software, version 3.0.2.7. 29 lines.

- Page: https://pluginprobe.com/plugins/yatra/3.0.2.7/code/templates/tmpl-tour-item.php
- Raw: https://pluginprobe.com/plugins/yatra/3.0.2.7/raw/templates/tmpl-tour-item.php
- Modified: 2024-06-02T13:39:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yatra/3.0.2.7/code/templates/tmpl-tour-item.php#L10-L20`.

```php
<div class="<?php echo esc_attr($data['class']) ?> yatra-tour-list-item">
    <div class="yatra-item-inner">
        <?php
        if (yatra_is_featured_tour($data['id'])) {
            echo '<span class="yatra-featured-tour"><i class="yatra-icon fa fa-bullhorn"></i><small class="text">' . __('Featured', 'yatra') . '</small></span>';
        } ?>
        <div class="yatra-figure-wrap">
            <a href="<?php echo esc_url($data['permalink']) ?>">
                <figure>
                    <?php if (!empty($data['image'])) { ?>
                            <img src="<?php echo esc_attr($data['image']) ?>"/>
                        <?php } ?>

                </figure>
            </a>
            <?php yatra_get_price_html($data['id']); ?>
        </div>
        <?php yatra_entry_meta_options($data['id']); ?>
        <h2 class="yatra-tour-title"><a
                    href="<?php echo esc_url($data['permalink']) ?>"><?php echo esc_html($data['title']); ?></a></h2>
        <div class="yatra-tour-more">
            <a href="<?php echo esc_url($data['permalink']) ?>" class="yatra-button button yatra-tour-details-button">
                <?php
                echo esc_html(yatra_get_tour_view_details_button_text());
                ?>
            </a>
        </div>
    </div>
</div>
```
