本文整理汇总了PHP中TravelHelper::locationHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP TravelHelper::locationHtml方法的具体用法?PHP TravelHelper::locationHtml怎么用?PHP TravelHelper::locationHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TravelHelper
的用法示例。
在下文中一共展示了TravelHelper::locationHtml方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: balanceTags
echo balanceTags($img);
} else {
echo '<img width="800" height="600" alt="no-image" class="wp-post-image" src="' . bfi_thumb(get_template_directory_uri() . '/img/no-image.png', array('width' => 800, 'height' => 600)) . '">';
}
?>
<h5 class="hover-title hover-hold">
<?php
the_title();
?>
</h5>
</a>
</header>
<div class="thumb-caption">
<div class="row">
<?php
if ($location = TravelHelper::locationHtml(get_the_ID())) {
?>
<div class="col-md-12">
<i class="fa fa-location-arrow"></i>
<?php
echo $location;
?>
</div>
<?php
}
?>
<?php
if ($price_html = STHoliday::get_price_html(false, false, ' <br> -')) {
?>
<div class="col-md-12">
<p class="mb0 text-darken">
示例2: the_permalink
?>
</ul>
<?php
}
?>
<h5 class="thumb-title">
<a href="<?php
the_permalink();
?>
" class="text-darken"><?php
the_title();
?>
</a>
</h5>
<?php
if ($address = TravelHelper::locationHtml(get_the_ID())) {
?>
<p class="mb0">
<small><i class="fa fa-map-marker"></i>
<?php
echo $address;
?>
</small>
</p>
<?php
}
?>
<p class="mb0 text-darken">
<span class="text-lg lh1em text-color">
<?php
echo TravelHelper::format_money(STHotel::get_avg_price());
示例3: st_the_language
st_the_language('tour_max_people');
?>
: </span>
<?php
echo esc_html($max_people);
?>
</div>
<div class="package-info">
<i class="fa fa-location-arrow"></i>
<span class="head"><?php
st_the_language('tour_location');
?>
: </span>
<?php
echo TravelHelper::locationHtml(get_the_ID());
?>
</div>
<div class="package-info pull-left">
<div class="pull-left">
<i class="fa fa-star"></i>
<span class="head"><?php
st_the_language('tour_rate');
?>
:</span>
</div>
<div class="pull-left pl-5">
<ul class="icon-group booking-item-rating-stars">
<?php
$avg = STReview::get_avg_rate();
echo TravelHelper::rate_to_string($avg);