Skip to content

Instantly share code, notes, and snippets.

@Glinkfr
Created May 22, 2019 10:46
Show Gist options
  • Save Glinkfr/c4916138c140a8a2c5ad74ead2f8105a to your computer and use it in GitHub Desktop.
Save Glinkfr/c4916138c140a8a2c5ad74ead2f8105a to your computer and use it in GitHub Desktop.
Onglets pour Thème Business Directory Plugin WordPress
<?php
/**
* Template listing single view.
*
* @package BDP/Templates/Single
*/
// phpcs:disable
?>
<?php $main_links = wpbdp_main_links( $buttons ); ?>
<?php if ( $main_links ) : ?>
<div class="box-row"><?php echo $main_links; ?></div>
<?php endif; ?>
<div id="tabs">
<ul id="tabs1">
<li><a href="#tabs-1">Annonce</a></li>
<li><a href="#tabs-2">Commentaires</a></li>
<li><a href="#tabs-3">Contact</a></li>
</ul>
<div id="tabs-1">
<div id="<?php echo $listing_css_id; ?>" class="<?php echo $listing_css_class; ?>">
<div class="listing-title">
<h2><?php echo $title; ?></h2>
</div>
<?php if ( in_array( 'single', wpbdp_get_option( 'display-sticky-badge' ) ) ) : ?>
<?php echo $sticky_tag; ?>
<?php endif; ?>
<?php wpbdp_x_part( 'single_content' ); ?>
<?php
echo wpbdp_render(
'parts/listing-buttons', array(
'listing_id' => $listing_id,
'view' => 'single',
), false
);
?>
</div>
</div><!--Fin tabs-1-->
<div id="tabs-2">
<div id="comments_form">
<?php echo $comments; ?>
</div>
</div><!--Fin tabs-2-->
<div id="tabs-3">
<div id="contact_form">
<?php echo $contact_form; ?>
</div>
</div><!--Fin tabs-3-->
</div><!--Fin tabs_container-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment