View pdb-record-approval-switch.php
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 | |
/* | |
* when the user opens their record for editing, we check on their approval status | |
* and then select the shortcode to use based on that. | |
*/ | |
switch ( $this->participant_values['approved'] ) { | |
case 'yes' : | |
echo do_shortcode( '[pdb_record]' ); | |
break; |
View pdb-custom-sum.php
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 | |
/** | |
* Plugin Name: PDB Custom Log Sum | |
* Description: calculates a summary value for a participant log | |
*/ | |
class pdb_custom_log_sum { | |
/** |
View pdb-single-conditional-show.php
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 | |
/** | |
* @name pdb single template | |
* @version 2.2 | |
* | |
* demonstrates how to skip displaying a field based on a value in the record | |
* | |
* you will need to change 3 values: | |
* 'conditional_field' should be the name of the field you may want to skip showing | |
* 'check_field' should be the name of the record value you are checking |
View pdb-signup-radioselect.php
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 | |
/** | |
* | |
* template for the signup form | |
* | |
* shows an example of letting the selected value of a radio control enable or disable another field | |
* | |
*/ | |
?> | |
<script> |
View pdb-list-record-columns.php
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 | |
/** | |
* @version 1.1 | |
* | |
* PDbList template demonstrating how to show a "reverse" table with records as | |
* columns and fields as rows | |
* | |
*/ | |
/** @var PDb_List $this */ |
View pdb-with-selected-send-signup-email.php
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 | |
/** | |
* Plugin Name: PDb With Selected Signup Email | |
* Description: adds the send signup email item to the "with selected" function | |
*/ | |
add_filter( 'pdb-admin_list_with_selected_actions', function ( $actions ) { | |
return $actions + array( | |
'send signup email' => 'send_signup_email' | |
); |
View pdb_custom_log_template.php
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 | |
/** | |
* Plugin Name: PDB Custom Log Template | |
* Description: provides a customized template for the Participant Log display | |
*/ | |
/** | |
* demonstrates how to provide a custom template for a Participant Log display | |
* | |
* @package WordPress |
View pdb-record-edit-log.php
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 | |
/** | |
* Plugin Name: PDB Record Edit Log Tag | |
* Description: provides a custom email tag that shows which fields were updated | |
* Version: 1.0 | |
* | |
*/ | |
class PDb_Record_Edit_Log_Tag { | |
View pdb-custom-summary-tag.php
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 | |
/** | |
* Plugin Name: PDB Custom Summary Tag | |
* Description: provides a custom tag to the "cars" log | |
*/ | |
add_filter( 'pdblog-summary_tags', 'xnau_add_custom_summary_tag', 10, 2 ); | |
/** | |
* adds a custom summary tag to the "cars" log |
View pdb-admin-show-heading.php
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 | |
/** | |
* Plugin Name: PDB Show Heading Fields in Admin | |
* Description: enabled showing the heading type field on the admin edit participant page | |
*/ | |
add_filter( 'pdb-omit_backend_edit_form_element_type', 'xnau_enable_heading_field_display' ); | |
/** | |
* remove the heading field from the backend omit types array |
NewerOlder