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 endwhile; // field loop ?> | |
<div id="submit-button" class="controls"> | |
<?php pdb_field_group_tabs_submit_button( $this ) ?> | |
</div> | |
</fieldset> | |
<?php endwhile; // group loop ?> |
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 Volunteer Dropdown | |
* Description: load the registered volunteers into a Participants Database form dropdown | |
*/ | |
/* | |
* sets our function to be called when the pdb-form_element_build_dropdown action | |
* is triggered by the form | |
* |
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 | |
add_action( 'pdb-form_element_build_text-line', 'xnau_place_dynamic_value' ); | |
/** | |
* sets the value of a dynamic hidden field in the backend | |
* | |
* @param object $field | |
*/ | |
function xnau_place_dynamic_value( $field ) | |
{ | |
/* |
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 | |
add_action( 'pdb-after_submit_add', 'xnau_record_backend_user' ); | |
add_action( 'pdb-after_submit_update', 'xnau_record_backend_user' ); | |
/** | |
* record the user who created or edited a record in the backend | |
* | |
* @param array $record the record data | |
*/ | |
function xnau_record_backend_user( $record ) | |
{ |
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 showing a google map in a single record template | |
* | |
*/ | |
/* | |
* this is the name of the group the address fields are in | |
* | |
* change this to match the name of the group that contains your address fields | |
*/ |
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 HTML Form Element | |
* Description: a general-purpose form element that simply displays HTML | |
* | |
*/ | |
class PDb_html_form_element_example { | |
/** |
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 | |
/* | |
* default template for displaying a single record | |
* | |
* this is the new "WordPress style" template | |
* | |
* each group with the "visible" attribute checked will display its fields in the order set | |
* in the manage database fields page. | |
* | |
* if there are specific fields you wish to exclude from display, you can include the "name" value of |
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 | |
/* | |
* 3-20-17 updated to run on pdb-before_submit_update filer | |
* | |
*/ | |
add_filter( 'pdb-before_submit_update', 'pdb_otu_regenerate_pid' ); | |
/** | |
* regenerates the private id for the current record | |
* |
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 participants list single record output | |
* | |
* use this template with a shortcode like this: [pdb_list template=single] | |
* if you want to show the search control, use this: | |
* [pdb_list search=true template=single] | |
* | |
*/ |