Skip to content

Commit

Permalink
Regarding #962 -- updates to Advanced Options Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
mathetos committed Aug 29, 2016
1 parent 3f4b854 commit 4bd18cb
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions includes/admin/class-give-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,12 @@ public function give_settings( $active_tab ) {
'name' => esc_html__( 'Email Access', 'give' ),
'desc' => esc_html__( 'Would you like your donors to be able to access their donation history using only email? Donors whose sessions have expired and do not have an account may still access their donation history via a temporary email access link.', 'give' ),
'id' => 'email_access',
'type' => 'checkbox',
'type' => 'radio_inline',
'default' => '',
'options' => array(
'on' => esc_html__( 'Enable', 'give' ),
'' => esc_html__( 'Disable', 'give' )
)
),
array(
'id' => 'recaptcha_key',
Expand All @@ -761,7 +766,12 @@ public function give_settings( $active_tab ) {
'name' => esc_html__( 'Remove All Data on Uninstall?', 'give' ),
'desc' => esc_html__( 'When the plugin is deleted, completely remove all Give data.', 'give' ),
'id' => 'uninstall_on_delete',
'type' => 'checkbox'
'type' => 'radio_inline',
'default' => '',
'options' => array(
'on' => esc_html__( 'Yes', 'give' ),
'' => esc_html__( 'No', 'give' )
)
),
array(
'name' => esc_html__( 'Filter Control', 'give' ),
Expand All @@ -771,11 +781,15 @@ public function give_settings( $active_tab ) {
),
array(
/* translators: %s: the_content */
'name' => sprintf( __( 'Disable %s filter', 'give' ), '<code>the_content</code>' ),
/* translators: 1: https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content 2: the_content */
'name' => esc_html__( 'Single form content filter', 'give' ),
'desc' => sprintf( __( 'If you are seeing extra social buttons, related posts, or other unwanted elements appearing within your forms then you can disable WordPress\' content filter. <a href="%1$s" target="_blank">Learn more</a> about %2$s filter.', 'give' ), esc_url( 'https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content' ), '<code>the_content</code>' ),
'id' => 'disable_the_content_filter',
'type' => 'checkbox'
'type' => 'radio_inline',
'default' => '',
'options' => array(
'on' => esc_html__( 'Enable', 'give' ),
'' => esc_html__( 'Disable', 'give' )
)
),
array(
'name' => esc_html__( 'Script Loading', 'give' ),
Expand All @@ -787,7 +801,12 @@ public function give_settings( $active_tab ) {
'name' => esc_html__( 'Load Scripts in Footer?', 'give' ),
'desc' => esc_html__( 'Check this box if you would like Give to load all frontend JavaScript files in the footer.', 'give' ),
'id' => 'scripts_footer',
'type' => 'checkbox'
'type' => 'radio_inline',
'default' => '',
'options' => array(
'on' => esc_html__( 'Yes', 'give' ),
'' => esc_html__( 'No', 'give' )
)
)
)
)
Expand Down

0 comments on commit 4bd18cb

Please sign in to comment.