Skip to content

Instantly share code, notes, and snippets.

@Donma28
Last active January 13, 2018 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Donma28/be6b9addfae7a141f2211acc9283be31 to your computer and use it in GitHub Desktop.
Save Donma28/be6b9addfae7a141f2211acc9283be31 to your computer and use it in GitHub Desktop.
<?php
// determine the type of record it is and show the appropriate shortcode
if ( $this->participant_values['type1'] === 'fa-db' ) {
echo do_shortcode( '[pdb_record tabs=true groups="main,personal,passeport_details,contact_details,professional_details,work_details,airline_experience,documents"]' );
}
elseif ( $this->participant_values['type1'] === 'fp-db' ) {
echo do_shortcode( '[pdb_record tabs=true groups="main,profil_provider,contact"]' );
}
elseif ( $this->participant_values['type1'] === 'sp-db' ) {
echo do_shortcode( '[pdb_record tabs=true groups="main,service_provider"]' );
}
else{
echo "You have not a record in our database. Please sign in our database.";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment