Last active
January 13, 2018 16:57
-
-
Save Donma28/be6b9addfae7a141f2211acc9283be31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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