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 | |
// this is meant to be used with some kind of plugin that lets you insert php into a page | |
// | |
// the Participants Database field named 'user_login' is expected to have the user's user login value | |
// | |
$current_user = wp_get_current_user(); | |
if ( $current_user->ID ) { | |
$record_id = Participants_Db::get_record_id_by_term('user_login', $current_user->user_login ); |
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 Set Reply-To Header | |
* Description: sets the reply-to header for a Participants Database email template | |
*/ | |
add_filter( 'pdb-template_email_header', 'xnau_add_reply_to_header', 20, 2 ); | |
/** | |
* adds a reply-to header to a Participants Database email template | |
* |
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 Multi Field as OR in Filter Search | |
* Description: make the selections within a multiselect field work as OR terms when | |
* global filter mode is enabled | |
*/ | |
add_filter( 'pdb-multisearch_filter_mode', 'xnau_set_multi_field_as_or', 10, 2 ); | |
/** | |
* sets the filter mode for the terms within a multi select field as an OR instead |
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 | |
$wp_locale_conversion = array( | |
'af' => array( | |
'name' => 'Afrikaans', | |
'code' => 'af', | |
'wp_locale' => 'af' | |
) , | |
'ak' => array( | |
'name' => 'Akan', | |
'code' => 'ak', |
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 displaying a business detailed view | |
* | |
* single record template | |
*/ | |
// get the template object for this record | |
$this_business = new PDb_Template($this); | |
?> | |
<h1 class="business-title" |
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: Participants Database Total Field | |
Description: Maintains a total of several fields | |
*/ | |
// this updates the total when the record is updated | |
add_filter( 'pdb-before_submit_update', 'xnau_update_total_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 | |
/* | |
* shows a single record display based on a value in the record | |
*/ | |
if ( $this->participant_id ) : ?> | |
<?php | |
switch ( $this->participant_values['type'] ) { | |
case 'player': |
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 Participants Database list with combo multisearch and a dynamic map | |
*/ | |
$listmap = new pdbgmap\listmap($this); | |
global $PDb_Combo_Multi_Search; | |
$PDb_Combo_Multi_Search->enable(); | |
$combo_search = $PDb_Combo_Multi_Search->get_text_search_value(); |
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 Delete Switch | |
* Description: Gives users the ability to delete their own record | |
* Version: 1.3 | |
*/ | |
class PDb_Record_Delete_Switch { | |
/** |
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
/* | |
Stylesheet for setting up a CSS grid layout for the | |
Participants Database responsive list display | |
*/ | |
/* this is to hide unneeded elements */ | |
.pdb-list-grid .pdb-field-title, | |
.pdb-list-grid h5 { |