本文整理汇总了PHP中BYT_Theme_Utils::render_image方法的典型用法代码示例。如果您正苦于以下问题:PHP BYT_Theme_Utils::render_image方法的具体用法?PHP BYT_Theme_Utils::render_image怎么用?PHP BYT_Theme_Utils::render_image使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BYT_Theme_Utils
的用法示例。
在下文中一共展示了BYT_Theme_Utils::render_image方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: do_action
<section id="locations" class="tab-content <?php
echo $first_display_tab == 'locations' ? 'initial' : '';
?>
">
<article>
<?php
do_action('byt_show_single_cruise_locations_before');
?>
<?php
foreach ($cruise_locations as $location_id) {
$location_obj = new byt_location((int) $location_id);
$location_title = $location_obj->get_title();
$location_excerpt = $location_obj->get_excerpt();
if (!empty($location_title) && !empty($location_excerpt)) {
BYT_Theme_Utils::render_field("", "", "", BYT_Theme_Utils::render_image('', '', $location_obj->get_main_image(), $location_title, $location_title, false) . $location_excerpt, $location_title);
BYT_Theme_Utils::render_link_button(get_permalink($location_obj->get_id()), "gradient-button right", "", __('Read more', 'bookyourtravel'));
}
}
?>
<?php
BYT_Theme_Utils::render_tab_extra_fields('cruise_extra_fields', $cruise_extra_fields, 'locations', $cruise_obj);
?>
<?php
do_action('byt_show_single_cruise_locations_after');
?>
</article>
</section>
<!--//locations-->
<?php
示例2:
">
<article>
<?php
do_action('byt_show_single_accommodation_description_before');
BYT_Theme_Utils::render_field("text-wrap", "", "", $accommodation_obj->get_description(), __('General', 'bookyourtravel'), false, false, false);
BYT_Theme_Utils::render_field("text-wrap", "", "", $check_in_time, __('Check-in time', 'bookyourtravel'), false, false, false);
BYT_Theme_Utils::render_field("text-wrap", "", "", $check_out_time, __('Check-out time', 'bookyourtravel'), false, false, false);
BYT_Theme_Utils::render_tab_extra_fields('accommodation_extra_fields', $accommodation_extra_fields, 'description', $accommodation_obj);
do_action('byt_show_single_accommodation_description_after');
?>
</article>
</section>
<!--//description-->
<!--facilities-->
<section id="facilities" class="tab-content <?php
echo $first_display_tab == 'facilities' ? 'initial' : '';
?>
">
<article>
<?php
do_action('byt_show_single_accommodation_facilites_before');
?>
<?php
$facilities = $accommodation_obj->get_facilities();
if ($facilities && count($facilities) > 0) {
?>
<h1><?php
_e('Facilities', 'bookyourtravel');
?>
</h1>
<div class="text-wrap">