本文整理匯總了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);