-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added org details on Opportunity detail page, with setup option to control level of detail
- Loading branch information
Showing
6 changed files
with
101 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ function volplus_plugin_settings_page() { | |
</tr> | ||
<th scope="row">Plugin License Code</th> | ||
<td><input type="password" name="volplus_license_code" size="40" value="<?php echo esc_attr( get_option('volplus_license_code') ); ?>" /> | ||
<span class="description">If you have not received your code contact <a href:"mailto:[email protected]">[email protected]</a></span></td> | ||
<span class="description">If you have not received your code email <a href:"mailto:[email protected]">[email protected]</a> with your Domain name as shown above</span></td> | ||
<tr valign="top"> | ||
<th scope="row"><h3>Google Maps</h3></th> | ||
</tr> | ||
|
@@ -127,24 +127,31 @@ function volplus_plugin_settings_page() { | |
<td><input type="checkbox" name="volplus_hidebrackets" <?php if(get_option('volplus_hidebrackets') == 'on') echo 'checked'; ?> /> | ||
<span class="description">Strips out text within brackets in Opportunity titles & Organisation names</span></td> | ||
</tr> | ||
<tr valign="top"> | ||
<th scope="row">Hide Org Direct Contact fields</th> | ||
<td><input type="checkbox" name="volplus_hideorgdirect" <?php if(get_option('volplus_hideorgdirect', 'on') == 'on') echo 'checked'; ?> /> | ||
<span class="description">Hides telephone & emails from Organisation details</span></td> | ||
</tr> | ||
<tr valign="top"> | ||
<th scope="row">Hide Quality Control item details </th> | ||
<td><input type="checkbox" name="volplus_hideqcdetails" <?php if(get_option('volplus_hideqcdetails', null) == 'on') echo 'checked'; ?> /></td> | ||
<td><input type="checkbox" name="volplus_hideqcdetails" <?php if(get_option('volplus_hideqcdetails', null) == 'on') echo 'checked'; ?> /> | ||
<span class="description">Hides 2nd level of details</span></td> | ||
</tr> | ||
<tr valign="top"> | ||
<th scope="row">Volunteer login timeout (hours)</th> | ||
<td><input type="number" name="volplus_voltimeout" min="1" max="72" value="<?php echo esc_attr(get_option('volplus_voltimeout', 1)); ?>" /></td> | ||
<th scope="row">Volunteer login timeout</th> | ||
<td><input type="number" name="volplus_voltimeout" min="1" max="72" value="<?php echo esc_attr(get_option('volplus_voltimeout', 1)); ?>" /> | ||
<span class="description">Hour(s). Accepts decimal (e.g. 0.5 for 30mins)</span></td> | ||
</tr> | ||
<tr valign="top"> | ||
<th scope="row">T&C page (checkbox on registration if selected)</th> | ||
<th scope="row">T&C page</th> | ||
<td><?php | ||
$args= array( | ||
'show_option_none'=>'(Not Used)', | ||
'selected'=> get_option('volplus_compliancepage', null), | ||
'name'=> 'volplus_compliancepage' | ||
); | ||
wp_dropdown_pages($args);?> | ||
</td> | ||
<span class="description"> Shows a mandatory check-box on registration if a page is selected</span></td> | ||
</tr> | ||
</table> | ||
<?php submit_button();?> | ||
|
@@ -189,6 +196,7 @@ function volplus_plugin_settings() { | |
register_setting( 'volplus-plugin-settings-group', 'volplus_agebandmsg' ); | ||
register_setting( 'volplus-plugin-settings-group', 'volplus_compliancepage' ); | ||
register_setting( 'volplus-plugin-settings-group', 'volplus_hidebrackets' ); | ||
register_setting( 'volplus-plugin-settings-group', 'volplus_hideorgdirect' ); | ||
register_setting( 'volplus-plugin-settings-group', 'volplus_hideqcdetails' ); | ||
register_setting( 'volplus-plugin-settings-group', 'volplus_voltimeout' ); | ||
} | ||
|
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