本文整理汇总了PHP中BYT_Theme_Utils::are_tab_fields_empty方法的典型用法代码示例。如果您正苦于以下问题:PHP BYT_Theme_Utils::are_tab_fields_empty方法的具体用法?PHP BYT_Theme_Utils::are_tab_fields_empty怎么用?PHP BYT_Theme_Utils::are_tab_fields_empty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BYT_Theme_Utils
的用法示例。
在下文中一共展示了BYT_Theme_Utils::are_tab_fields_empty方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: do_action
<?php
do_action('byt_show_single_cruise_reviews_before');
get_template_part('includes/parts/review', 'item');
BYT_Theme_Utils::render_tab_extra_fields('cruise_extra_fields', $cruise_extra_fields, 'reviews', $cruise_obj);
do_action('byt_show_single_cruise_reviews_after');
?>
</section>
<!--//reviews-->
<?php
}
// if ($enable_reviews)
?>
<?php
foreach ($tab_array as $tab) {
if (count(BYT_Theme_Utils::custom_array_search($default_cruise_tabs, 'id', $tab['id'])) == 0) {
$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);
示例2: do_action
<?php
do_action('byt_show_single_tour_reviews_before');
get_template_part('includes/parts/review', 'item');
BYT_Theme_Utils::render_tab_extra_fields('tour_extra_fields', $tour_extra_fields, 'reviews', $tour_obj);
do_action('byt_show_single_tour_reviews_after');
?>
</section>
<!--//reviews-->
<?php
}
// if ($enable_reviews)
?>
<?php
foreach ($tab_array as $tab) {
if (count(BYT_Theme_Utils::custom_array_search($default_tour_tabs, 'id', $tab['id'])) == 0) {
$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);
示例3: __
?>
<?php
BYT_Theme_Utils::render_tab_extra_fields('car_rental_extra_fields', $car_rental_extra_fields, 'description', $car_rental_obj, '', false, true);
?>
</div>
<?php
BYT_Theme_Utils::render_link_button("#", "clearfix gradient-button book_car_rental", "", __('Book now', 'bookyourtravel'));
?>
</article>
</section>
<!--//description-->
<?php
foreach ($tab_array as $tab) {
if (count(BYT_Theme_Utils::custom_array_search($default_car_rental_tabs, 'id', $tab['id'])) == 0) {
$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);
示例4:
">
<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">
<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);