本文整理汇总了PHP中BYT_Theme_Utils::render_tab_extra_fields方法的典型用法代码示例。如果您正苦于以下问题:PHP BYT_Theme_Utils::render_tab_extra_fields方法的具体用法?PHP BYT_Theme_Utils::render_tab_extra_fields怎么用?PHP BYT_Theme_Utils::render_tab_extra_fields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BYT_Theme_Utils
的用法示例。
在下文中一共展示了BYT_Theme_Utils::render_tab_extra_fields方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div class="text-wrap">
<ul class="three-col">
<?php
for ($i = 0; $i < count($facilities); $i++) {
$accommodation_facility = $facilities[$i];
echo '<li>' . $accommodation_facility->name . '</li>';
}
?>
</ul>
</div>
<?php
}
// endif (!empty($accommodation_facilities))
?>
<?php
BYT_Theme_Utils::render_tab_extra_fields('accommodation_extra_fields', $accommodation_extra_fields, 'facilities', $accommodation_obj);
?>
<?php
do_action('byt_show_single_accommodation_facilites_after');
?>
</article>
</section>
<!--//facilities-->
<?php
if (!empty($accommodation_latitude) && !empty($accommodation_longitude)) {
?>
<!--location-->
<section id="location" class="tab-content <?php
示例2: esc_attr
$all_empty_fields = BYT_Theme_Utils::are_tab_fields_empty('tour_extra_fields', $tour_extra_fields, $tab['id'], $tour_obj);
if (!$all_empty_fields) {
?>
<section id="<?php
echo esc_attr($tab['id']);
?>
" class="tab-content <?php
echo $first_display_tab == $tab['id'] ? 'initial' : '';
?>
">
<article>
<?php
do_action('byt_show_single_tour_' . $tab['id'] . '_before');
?>
<?php
BYT_Theme_Utils::render_tab_extra_fields('tour_extra_fields', $tour_extra_fields, $tab['id'], $tour_obj);
?>
<?php
do_action('byt_show_single_tour_' . $tab['id'] . '_after');
?>
</article>
</section>
<?php
}
}
}
do_action('byt_show_single_tour_tab_content_after');
?>
</section>
<!--//tour content-->
<?php
示例3: esc_attr
$all_empty_fields = BYT_Theme_Utils::are_tab_fields_empty('car_rental_extra_fields', $car_rental_extra_fields, $tab['id'], $car_rental_obj);
if (!$all_empty_fields) {
?>
<section id="<?php
echo esc_attr($tab['id']);
?>
" class="tab-content <?php
echo $first_display_tab == $tab['id'] ? 'initial' : '';
?>
">
<article>
<?php
do_action('byt_show_single_car_rental_' . $tab['id'] . '_before');
?>
<?php
BYT_Theme_Utils::render_tab_extra_fields('car_rental_extra_fields', $car_rental_extra_fields, $tab['id'], $car_rental_obj);
?>
<?php
do_action('byt_show_single_car_rental_' . $tab['id'] . '_after');
?>
</article>
</section>
<?php
}
}
}
?>
<?php
do_action('byt_show_single_car_rental_tab_content_after');
?>
</section>
示例4: esc_attr
$all_empty_fields = BYT_Theme_Utils::are_tab_fields_empty('cruise_extra_fields', $cruise_extra_fields, $tab['id'], $cruise_obj);
if (!$all_empty_fields) {
?>
<section id="<?php
echo esc_attr($tab['id']);
?>
" class="tab-content <?php
echo $first_display_tab == $tab['id'] ? 'initial' : '';
?>
">
<article>
<?php
do_action('byt_show_single_cruise_' . $tab['id'] . '_before');
?>
<?php
BYT_Theme_Utils::render_tab_extra_fields('cruise_extra_fields', $cruise_extra_fields, $tab['id'], $cruise_obj);
?>
<?php
do_action('byt_show_single_cruise_' . $tab['id'] . '_after');
?>
</article>
</section>
<?php
}
}
}
do_action('byt_show_single_cruise_tab_content_after');
?>
</section>
<!--//cruise content-->
<?php
示例5: __
echo '<p>' . __('Unfortunately there are no tour offers at this location at the moment.', 'bookyourtravel') . '</p>';
}
?>
<?php
BYT_Theme_Utils::render_tab_extra_fields('location_extra_fields', $location_extra_fields, 'tours', $location_obj);
?>
</div>
</section>
<!--/Tours-->
<?php
}
?>
<?php
if ($enable_cruises) {
?>
<!--Cruises-->
<section id="cruises" class="tab-content <?php
echo $first_display_tab == 'cruises' ? 'initial' : '';
?>
">
<div class="deals">
<?php
$cruise_results = $byt_cruises_post_type->list_cruises(0, -1, 'post_title', 'ASC', $location_id);
if (count($cruise_results) > 0 && $cruise_results['total'] > 0) {
foreach ($cruise_results['results'] as $cruise_result) {
global $post, $cruise_class;
$post = $cruise_result;
setup_postdata($post);
$cruise_class = 'full-width';
get_template_part('includes/parts/cruise', 'item');
}