Пример #1
0
		
		<!--locations-->
		<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>