@@ -10,22 +10,22 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Textarea', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'basic-textarea', |
|
| 17 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/textarea.html" target="_blank">https://devs.redux.io/core-fields/textarea.html</a>', |
|
| 18 | - 'subsection' => true, |
|
| 19 | - 'fields' => array( |
|
| 20 | - array( |
|
| 21 | - 'id' => 'opt-textarea', |
|
| 22 | - 'type' => 'textarea', |
|
| 23 | - 'title' => esc_html__( 'Textarea Option - HTML Validated Custom', 'your-textdomain-here' ), |
|
| 24 | - 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 25 | - 'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ), |
|
| 26 | - 'default' => 'Default Text', |
|
| 27 | - ), |
|
| 28 | - ), |
|
| 29 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Textarea', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'basic-textarea', |
|
| 17 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/textarea.html" target="_blank">https://devs.redux.io/core-fields/textarea.html</a>', |
|
| 18 | + 'subsection' => true, |
|
| 19 | + 'fields' => array( |
|
| 20 | + array( |
|
| 21 | + 'id' => 'opt-textarea', |
|
| 22 | + 'type' => 'textarea', |
|
| 23 | + 'title' => esc_html__( 'Textarea Option - HTML Validated Custom', 'your-textdomain-here' ), |
|
| 24 | + 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 25 | + 'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ), |
|
| 26 | + 'default' => 'Default Text', |
|
| 27 | + ), |
|
| 28 | + ), |
|
| 29 | + ) |
|
| 30 | 30 | ); |
| 31 | 31 | // phpcs:enable |
@@ -10,38 +10,38 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Radio', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'basic-radio', |
|
| 17 | - 'subsection' => true, |
|
| 18 | - 'customizer_width' => '500px', |
|
| 19 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/radio.html" target="_blank">https://devs.redux.io/core-fields/radio.html</a>', |
|
| 20 | - 'fields' => array( |
|
| 21 | - array( |
|
| 22 | - 'id' => 'opt-radio', |
|
| 23 | - 'type' => 'radio', |
|
| 24 | - 'title' => esc_html__( 'Radio Option', 'your-textdomain-here' ), |
|
| 25 | - 'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ), |
|
| 26 | - 'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ), |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Radio', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'basic-radio', |
|
| 17 | + 'subsection' => true, |
|
| 18 | + 'customizer_width' => '500px', |
|
| 19 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/radio.html" target="_blank">https://devs.redux.io/core-fields/radio.html</a>', |
|
| 20 | + 'fields' => array( |
|
| 21 | + array( |
|
| 22 | + 'id' => 'opt-radio', |
|
| 23 | + 'type' => 'radio', |
|
| 24 | + 'title' => esc_html__( 'Radio Option', 'your-textdomain-here' ), |
|
| 25 | + 'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ), |
|
| 26 | + 'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ), |
|
| 27 | 27 | |
| 28 | - // Must provide key => value pairs for radio options. |
|
| 29 | - 'options' => array( |
|
| 30 | - '1' => 'Opt 1', |
|
| 31 | - '2' => 'Opt 2', |
|
| 32 | - '3' => 'Opt 3', |
|
| 33 | - ), |
|
| 34 | - 'default' => '2', |
|
| 35 | - ), |
|
| 36 | - array( |
|
| 37 | - 'id' => 'opt-radio-data', |
|
| 38 | - 'type' => 'radio', |
|
| 39 | - 'title' => esc_html__( 'Radio Option w/ Menu Data', 'your-textdomain-here' ), |
|
| 40 | - 'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ), |
|
| 41 | - 'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ), |
|
| 42 | - 'data' => 'menu', |
|
| 43 | - ), |
|
| 44 | - ), |
|
| 45 | - ) |
|
| 28 | + // Must provide key => value pairs for radio options. |
|
| 29 | + 'options' => array( |
|
| 30 | + '1' => 'Opt 1', |
|
| 31 | + '2' => 'Opt 2', |
|
| 32 | + '3' => 'Opt 3', |
|
| 33 | + ), |
|
| 34 | + 'default' => '2', |
|
| 35 | + ), |
|
| 36 | + array( |
|
| 37 | + 'id' => 'opt-radio-data', |
|
| 38 | + 'type' => 'radio', |
|
| 39 | + 'title' => esc_html__( 'Radio Option w/ Menu Data', 'your-textdomain-here' ), |
|
| 40 | + 'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ), |
|
| 41 | + 'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ), |
|
| 42 | + 'data' => 'menu', |
|
| 43 | + ), |
|
| 44 | + ), |
|
| 45 | + ) |
|
| 46 | 46 | ); |
| 47 | 47 | // phpcs:enable |
@@ -10,21 +10,21 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Multi Text', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'basic-multi-text', |
|
| 17 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/multi-text.html" target="_blank">https://devs.redux.io/core-fields/multi-text.html</a>', |
|
| 18 | - 'subsection' => true, |
|
| 19 | - 'fields' => array( |
|
| 20 | - array( |
|
| 21 | - 'id' => 'opt-multitext', |
|
| 22 | - 'type' => 'multi_text', |
|
| 23 | - 'title' => esc_html__( 'Multi Text Option', 'your-textdomain-here' ), |
|
| 24 | - 'subtitle' => esc_html__( 'Field subtitle', 'your-textdomain-here' ), |
|
| 25 | - 'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ), |
|
| 26 | - ), |
|
| 27 | - ), |
|
| 28 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Multi Text', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'basic-multi-text', |
|
| 17 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/multi-text.html" target="_blank">https://devs.redux.io/core-fields/multi-text.html</a>', |
|
| 18 | + 'subsection' => true, |
|
| 19 | + 'fields' => array( |
|
| 20 | + array( |
|
| 21 | + 'id' => 'opt-multitext', |
|
| 22 | + 'type' => 'multi_text', |
|
| 23 | + 'title' => esc_html__( 'Multi Text Option', 'your-textdomain-here' ), |
|
| 24 | + 'subtitle' => esc_html__( 'Field subtitle', 'your-textdomain-here' ), |
|
| 25 | + 'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ), |
|
| 26 | + ), |
|
| 27 | + ), |
|
| 28 | + ) |
|
| 29 | 29 | ); |
| 30 | 30 | // phpcs:enable |
@@ -10,20 +10,20 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Password', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'basic-password', |
|
| 17 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/password.html" target="_blank">https://devs.redux.io/core-fields/password.html</a>', |
|
| 18 | - 'subsection' => true, |
|
| 19 | - 'fields' => array( |
|
| 20 | - array( |
|
| 21 | - 'id' => 'password', |
|
| 22 | - 'type' => 'password', |
|
| 23 | - 'username' => true, |
|
| 24 | - 'title' => 'Password Field', |
|
| 25 | - ), |
|
| 26 | - ), |
|
| 27 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Password', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'basic-password', |
|
| 17 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/password.html" target="_blank">https://devs.redux.io/core-fields/password.html</a>', |
|
| 18 | + 'subsection' => true, |
|
| 19 | + 'fields' => array( |
|
| 20 | + array( |
|
| 21 | + 'id' => 'password', |
|
| 22 | + 'type' => 'password', |
|
| 23 | + 'username' => true, |
|
| 24 | + 'title' => 'Password Field', |
|
| 25 | + ), |
|
| 26 | + ), |
|
| 27 | + ) |
|
| 28 | 28 | ); |
| 29 | 29 | // phpcs:enable |
@@ -10,50 +10,50 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Text', 'your-textdomain-here' ), |
|
| 16 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/text.html" target="_blank">https://devs.redux.io/core-fields/text.html</a>', |
|
| 17 | - 'id' => 'basic-text', |
|
| 18 | - 'subsection' => true, |
|
| 19 | - 'customizer_width' => '700px', |
|
| 20 | - 'fields' => array( |
|
| 21 | - array( |
|
| 22 | - 'id' => 'text-example', |
|
| 23 | - 'type' => 'text', |
|
| 24 | - 'title' => esc_html__( 'Text Field', 'your-textdomain-here' ), |
|
| 25 | - 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 26 | - 'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ), |
|
| 27 | - 'default' => 'Default Text', |
|
| 28 | - ), |
|
| 29 | - array( |
|
| 30 | - 'id' => 'text-example-hint', |
|
| 31 | - 'type' => 'text', |
|
| 32 | - 'title' => esc_html__( 'Text Field w/ Hint', 'your-textdomain-here' ), |
|
| 33 | - 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 34 | - 'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ), |
|
| 35 | - 'default' => 'Default Text', |
|
| 36 | - 'hint' => array( |
|
| 37 | - 'title' => 'Hint Title', |
|
| 38 | - 'content' => 'Hint content about this field!', |
|
| 39 | - ), |
|
| 40 | - ), |
|
| 41 | - array( |
|
| 42 | - 'id' => 'text-placeholder', |
|
| 43 | - 'type' => 'text', |
|
| 44 | - 'title' => esc_html__( 'Text Field w/ placeholder using custom data object.', 'your-textdomain-here' ), |
|
| 45 | - 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 46 | - 'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ), |
|
| 47 | - 'placeholder' => array( |
|
| 48 | - 'box1' => 'Box One Placeholder', |
|
| 49 | - 'box2' => 'Box Two Placeholder', |
|
| 50 | - ), |
|
| 51 | - 'data' => array( |
|
| 52 | - 'box1' => 'Box One Title', |
|
| 53 | - 'box2' => 'Box Two Title', |
|
| 54 | - ), |
|
| 55 | - ), |
|
| 56 | - ), |
|
| 57 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Text', 'your-textdomain-here' ), |
|
| 16 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/text.html" target="_blank">https://devs.redux.io/core-fields/text.html</a>', |
|
| 17 | + 'id' => 'basic-text', |
|
| 18 | + 'subsection' => true, |
|
| 19 | + 'customizer_width' => '700px', |
|
| 20 | + 'fields' => array( |
|
| 21 | + array( |
|
| 22 | + 'id' => 'text-example', |
|
| 23 | + 'type' => 'text', |
|
| 24 | + 'title' => esc_html__( 'Text Field', 'your-textdomain-here' ), |
|
| 25 | + 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 26 | + 'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ), |
|
| 27 | + 'default' => 'Default Text', |
|
| 28 | + ), |
|
| 29 | + array( |
|
| 30 | + 'id' => 'text-example-hint', |
|
| 31 | + 'type' => 'text', |
|
| 32 | + 'title' => esc_html__( 'Text Field w/ Hint', 'your-textdomain-here' ), |
|
| 33 | + 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 34 | + 'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ), |
|
| 35 | + 'default' => 'Default Text', |
|
| 36 | + 'hint' => array( |
|
| 37 | + 'title' => 'Hint Title', |
|
| 38 | + 'content' => 'Hint content about this field!', |
|
| 39 | + ), |
|
| 40 | + ), |
|
| 41 | + array( |
|
| 42 | + 'id' => 'text-placeholder', |
|
| 43 | + 'type' => 'text', |
|
| 44 | + 'title' => esc_html__( 'Text Field w/ placeholder using custom data object.', 'your-textdomain-here' ), |
|
| 45 | + 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 46 | + 'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ), |
|
| 47 | + 'placeholder' => array( |
|
| 48 | + 'box1' => 'Box One Placeholder', |
|
| 49 | + 'box2' => 'Box Two Placeholder', |
|
| 50 | + ), |
|
| 51 | + 'data' => array( |
|
| 52 | + 'box1' => 'Box One Title', |
|
| 53 | + 'box2' => 'Box Two Title', |
|
| 54 | + ), |
|
| 55 | + ), |
|
| 56 | + ), |
|
| 57 | + ) |
|
| 58 | 58 | ); |
| 59 | 59 | // phpcs:enable |
@@ -10,100 +10,100 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Info', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'presentation-info', |
|
| 17 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/info.html" target="_blank">https://devs.redux.io/core-fields/info.html</a>', |
|
| 18 | - 'subsection' => true, |
|
| 19 | - 'fields' => array( |
|
| 20 | - array( |
|
| 21 | - 'id' => 'opt-info-field', |
|
| 22 | - 'type' => 'info', |
|
| 23 | - 'desc' => esc_html__( 'This is the info field, if you want to break sections up.', 'your-textdomain-here' ), |
|
| 24 | - ), |
|
| 25 | - array( |
|
| 26 | - 'id' => 'opt-notice-info1', |
|
| 27 | - 'type' => 'info', |
|
| 28 | - 'style' => 'info', |
|
| 29 | - 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 30 | - 'desc' => wp_kses_post( __( 'This is an info field with the <strong>info</strong> style applied. By default the <strong>normal</strong> style is applied.', 'your-textdomain-here' ) ), |
|
| 31 | - ), |
|
| 32 | - array( |
|
| 33 | - 'id' => 'opt-info-warning', |
|
| 34 | - 'type' => 'info', |
|
| 35 | - 'style' => 'warning', |
|
| 36 | - 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 37 | - 'desc' => wp_kses_post( __( 'This is an info field with the <strong>warning</strong> style applied.', 'your-textdomain-here' ) ), |
|
| 38 | - ), |
|
| 39 | - array( |
|
| 40 | - 'id' => 'opt-info-success', |
|
| 41 | - 'type' => 'info', |
|
| 42 | - 'style' => 'success', |
|
| 43 | - 'icon' => 'el el-info-circle', |
|
| 44 | - 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 45 | - 'desc' => wp_kses_post( __( 'This is an info field with the <strong>success</strong> style applied and an icon.', 'your-textdomain-here' ) ), |
|
| 46 | - ), |
|
| 47 | - array( |
|
| 48 | - 'id' => 'opt-info-critical', |
|
| 49 | - 'type' => 'info', |
|
| 50 | - 'style' => 'critical', |
|
| 51 | - 'icon' => 'el el-info-circle', |
|
| 52 | - 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 53 | - 'desc' => wp_kses_post( __( 'This is an info field with the <strong>critical</strong> style applied and an icon.', 'your-textdomain-here' ) ), |
|
| 54 | - ), |
|
| 55 | - array( |
|
| 56 | - 'id' => 'opt-info-custom', |
|
| 57 | - 'type' => 'info', |
|
| 58 | - 'style' => 'custom', |
|
| 59 | - 'color' => 'purple', |
|
| 60 | - 'icon' => 'el el-info-circle', |
|
| 61 | - 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 62 | - 'desc' => wp_kses_post( __( 'This is field with the <strong>custom</strong> style applied, color arg passed, and an icon.', 'your-textdomain-here' ) ), |
|
| 63 | - ), |
|
| 64 | - array( |
|
| 65 | - 'id' => 'opt-info-normal', |
|
| 66 | - 'type' => 'info', |
|
| 67 | - 'notice' => false, |
|
| 68 | - 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 69 | - 'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>normal</strong> style applied.', 'your-textdomain-here' ) ), |
|
| 70 | - ), |
|
| 71 | - array( |
|
| 72 | - 'id' => 'opt-notice-info', |
|
| 73 | - 'type' => 'info', |
|
| 74 | - 'notice' => false, |
|
| 75 | - 'style' => 'info', |
|
| 76 | - 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 77 | - 'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>info</strong> style applied.', 'your-textdomain-here' ) ), |
|
| 78 | - ), |
|
| 79 | - array( |
|
| 80 | - 'id' => 'opt-notice-warning', |
|
| 81 | - 'type' => 'info', |
|
| 82 | - 'notice' => false, |
|
| 83 | - 'style' => 'warning', |
|
| 84 | - 'icon' => 'el el-info-circle', |
|
| 85 | - 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 86 | - 'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>warning</strong> style applied and an icon.', 'your-textdomain-here' ) ), |
|
| 87 | - ), |
|
| 88 | - array( |
|
| 89 | - 'id' => 'opt-notice-success', |
|
| 90 | - 'type' => 'info', |
|
| 91 | - 'notice' => false, |
|
| 92 | - 'style' => 'success', |
|
| 93 | - 'icon' => 'el el-info-circle', |
|
| 94 | - 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 95 | - 'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>success</strong> style applied and an icon.', 'your-textdomain-here' ) ), |
|
| 96 | - ), |
|
| 97 | - array( |
|
| 98 | - 'id' => 'opt-notice-critical', |
|
| 99 | - 'type' => 'info', |
|
| 100 | - 'notice' => false, |
|
| 101 | - 'style' => 'critical', |
|
| 102 | - 'icon' => 'el el-info-circle', |
|
| 103 | - 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 104 | - 'desc' => wp_kses_post( __( 'This is a non-notice field with the <strong>critical</strong> style applied and an icon.', 'your-textdomain-here' ) ), |
|
| 105 | - ), |
|
| 106 | - ), |
|
| 107 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Info', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'presentation-info', |
|
| 17 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/info.html" target="_blank">https://devs.redux.io/core-fields/info.html</a>', |
|
| 18 | + 'subsection' => true, |
|
| 19 | + 'fields' => array( |
|
| 20 | + array( |
|
| 21 | + 'id' => 'opt-info-field', |
|
| 22 | + 'type' => 'info', |
|
| 23 | + 'desc' => esc_html__( 'This is the info field, if you want to break sections up.', 'your-textdomain-here' ), |
|
| 24 | + ), |
|
| 25 | + array( |
|
| 26 | + 'id' => 'opt-notice-info1', |
|
| 27 | + 'type' => 'info', |
|
| 28 | + 'style' => 'info', |
|
| 29 | + 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 30 | + 'desc' => wp_kses_post( __( 'This is an info field with the <strong>info</strong> style applied. By default the <strong>normal</strong> style is applied.', 'your-textdomain-here' ) ), |
|
| 31 | + ), |
|
| 32 | + array( |
|
| 33 | + 'id' => 'opt-info-warning', |
|
| 34 | + 'type' => 'info', |
|
| 35 | + 'style' => 'warning', |
|
| 36 | + 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 37 | + 'desc' => wp_kses_post( __( 'This is an info field with the <strong>warning</strong> style applied.', 'your-textdomain-here' ) ), |
|
| 38 | + ), |
|
| 39 | + array( |
|
| 40 | + 'id' => 'opt-info-success', |
|
| 41 | + 'type' => 'info', |
|
| 42 | + 'style' => 'success', |
|
| 43 | + 'icon' => 'el el-info-circle', |
|
| 44 | + 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 45 | + 'desc' => wp_kses_post( __( 'This is an info field with the <strong>success</strong> style applied and an icon.', 'your-textdomain-here' ) ), |
|
| 46 | + ), |
|
| 47 | + array( |
|
| 48 | + 'id' => 'opt-info-critical', |
|
| 49 | + 'type' => 'info', |
|
| 50 | + 'style' => 'critical', |
|
| 51 | + 'icon' => 'el el-info-circle', |
|
| 52 | + 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 53 | + 'desc' => wp_kses_post( __( 'This is an info field with the <strong>critical</strong> style applied and an icon.', 'your-textdomain-here' ) ), |
|
| 54 | + ), |
|
| 55 | + array( |
|
| 56 | + 'id' => 'opt-info-custom', |
|
| 57 | + 'type' => 'info', |
|
| 58 | + 'style' => 'custom', |
|
| 59 | + 'color' => 'purple', |
|
| 60 | + 'icon' => 'el el-info-circle', |
|
| 61 | + 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 62 | + 'desc' => wp_kses_post( __( 'This is field with the <strong>custom</strong> style applied, color arg passed, and an icon.', 'your-textdomain-here' ) ), |
|
| 63 | + ), |
|
| 64 | + array( |
|
| 65 | + 'id' => 'opt-info-normal', |
|
| 66 | + 'type' => 'info', |
|
| 67 | + 'notice' => false, |
|
| 68 | + 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 69 | + 'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>normal</strong> style applied.', 'your-textdomain-here' ) ), |
|
| 70 | + ), |
|
| 71 | + array( |
|
| 72 | + 'id' => 'opt-notice-info', |
|
| 73 | + 'type' => 'info', |
|
| 74 | + 'notice' => false, |
|
| 75 | + 'style' => 'info', |
|
| 76 | + 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 77 | + 'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>info</strong> style applied.', 'your-textdomain-here' ) ), |
|
| 78 | + ), |
|
| 79 | + array( |
|
| 80 | + 'id' => 'opt-notice-warning', |
|
| 81 | + 'type' => 'info', |
|
| 82 | + 'notice' => false, |
|
| 83 | + 'style' => 'warning', |
|
| 84 | + 'icon' => 'el el-info-circle', |
|
| 85 | + 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 86 | + 'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>warning</strong> style applied and an icon.', 'your-textdomain-here' ) ), |
|
| 87 | + ), |
|
| 88 | + array( |
|
| 89 | + 'id' => 'opt-notice-success', |
|
| 90 | + 'type' => 'info', |
|
| 91 | + 'notice' => false, |
|
| 92 | + 'style' => 'success', |
|
| 93 | + 'icon' => 'el el-info-circle', |
|
| 94 | + 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 95 | + 'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>success</strong> style applied and an icon.', 'your-textdomain-here' ) ), |
|
| 96 | + ), |
|
| 97 | + array( |
|
| 98 | + 'id' => 'opt-notice-critical', |
|
| 99 | + 'type' => 'info', |
|
| 100 | + 'notice' => false, |
|
| 101 | + 'style' => 'critical', |
|
| 102 | + 'icon' => 'el el-info-circle', |
|
| 103 | + 'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ), |
|
| 104 | + 'desc' => wp_kses_post( __( 'This is a non-notice field with the <strong>critical</strong> style applied and an icon.', 'your-textdomain-here' ) ), |
|
| 105 | + ), |
|
| 106 | + ), |
|
| 107 | + ) |
|
| 108 | 108 | ); |
| 109 | 109 | // phpcs:enable |
@@ -10,72 +10,72 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Content', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'presentation-content', |
|
| 17 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/content.html" target="_blank">https://devs.redux.io/core-fields/content.html</a>', |
|
| 18 | - 'subsection' => true, |
|
| 19 | - 'fields' => array( |
|
| 20 | - array( |
|
| 21 | - 'id' => 'opt-heading-1', |
|
| 22 | - 'type' => 'content', |
|
| 23 | - 'mode' => 'heading', |
|
| 24 | - 'content' => 'This is a content field using the mode <strong>heading</strong>', |
|
| 25 | - ), |
|
| 26 | - array( |
|
| 27 | - 'id' => 'opt-subheading-1', |
|
| 28 | - 'type' => 'content', |
|
| 29 | - 'mode' => 'subheading', |
|
| 30 | - 'content' => 'This is a content field using the mode <strong>subheading</strong>', |
|
| 31 | - ), |
|
| 32 | - array( |
|
| 33 | - 'id' => 'opt-content-1', |
|
| 34 | - 'type' => 'content', |
|
| 35 | - 'mode' => 'content', |
|
| 36 | - 'content' => 'This is a content field using the mode <strong>content</strong>', |
|
| 37 | - ), |
|
| 38 | - array( |
|
| 39 | - 'id' => 'opt-submessage-1', |
|
| 40 | - 'type' => 'content', |
|
| 41 | - 'mode' => 'submessage', |
|
| 42 | - 'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>normal</strong> style.', |
|
| 43 | - ), |
|
| 44 | - array( |
|
| 45 | - 'id' => 'opt-content-2', |
|
| 46 | - 'type' => 'content', |
|
| 47 | - 'mode' => 'content', |
|
| 48 | - 'content' => 'This is a content field using the mode <strong>content</strong>', |
|
| 49 | - ), |
|
| 50 | - array( |
|
| 51 | - 'id' => 'opt-submessage-2', |
|
| 52 | - 'type' => 'content', |
|
| 53 | - 'mode' => 'submessage', |
|
| 54 | - 'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>success</strong> style.', |
|
| 55 | - 'style' => 'success', |
|
| 56 | - ), |
|
| 57 | - array( |
|
| 58 | - 'id' => 'opt-submessage-3', |
|
| 59 | - 'type' => 'content', |
|
| 60 | - 'mode' => 'submessage', |
|
| 61 | - 'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>info</strong> style.', |
|
| 62 | - 'style' => 'info', |
|
| 63 | - ), |
|
| 64 | - array( |
|
| 65 | - 'id' => 'opt-submessage-4', |
|
| 66 | - 'type' => 'content', |
|
| 67 | - 'mode' => 'submessage', |
|
| 68 | - 'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>warning</strong> style.', |
|
| 69 | - 'style' => 'warning', |
|
| 70 | - ), |
|
| 71 | - array( |
|
| 72 | - 'id' => 'opt-submessage-5', |
|
| 73 | - 'type' => 'content', |
|
| 74 | - 'mode' => 'submessage', |
|
| 75 | - 'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>critical</strong> style.', |
|
| 76 | - 'style' => 'critical', |
|
| 77 | - ), |
|
| 78 | - ), |
|
| 79 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Content', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'presentation-content', |
|
| 17 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/content.html" target="_blank">https://devs.redux.io/core-fields/content.html</a>', |
|
| 18 | + 'subsection' => true, |
|
| 19 | + 'fields' => array( |
|
| 20 | + array( |
|
| 21 | + 'id' => 'opt-heading-1', |
|
| 22 | + 'type' => 'content', |
|
| 23 | + 'mode' => 'heading', |
|
| 24 | + 'content' => 'This is a content field using the mode <strong>heading</strong>', |
|
| 25 | + ), |
|
| 26 | + array( |
|
| 27 | + 'id' => 'opt-subheading-1', |
|
| 28 | + 'type' => 'content', |
|
| 29 | + 'mode' => 'subheading', |
|
| 30 | + 'content' => 'This is a content field using the mode <strong>subheading</strong>', |
|
| 31 | + ), |
|
| 32 | + array( |
|
| 33 | + 'id' => 'opt-content-1', |
|
| 34 | + 'type' => 'content', |
|
| 35 | + 'mode' => 'content', |
|
| 36 | + 'content' => 'This is a content field using the mode <strong>content</strong>', |
|
| 37 | + ), |
|
| 38 | + array( |
|
| 39 | + 'id' => 'opt-submessage-1', |
|
| 40 | + 'type' => 'content', |
|
| 41 | + 'mode' => 'submessage', |
|
| 42 | + 'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>normal</strong> style.', |
|
| 43 | + ), |
|
| 44 | + array( |
|
| 45 | + 'id' => 'opt-content-2', |
|
| 46 | + 'type' => 'content', |
|
| 47 | + 'mode' => 'content', |
|
| 48 | + 'content' => 'This is a content field using the mode <strong>content</strong>', |
|
| 49 | + ), |
|
| 50 | + array( |
|
| 51 | + 'id' => 'opt-submessage-2', |
|
| 52 | + 'type' => 'content', |
|
| 53 | + 'mode' => 'submessage', |
|
| 54 | + 'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>success</strong> style.', |
|
| 55 | + 'style' => 'success', |
|
| 56 | + ), |
|
| 57 | + array( |
|
| 58 | + 'id' => 'opt-submessage-3', |
|
| 59 | + 'type' => 'content', |
|
| 60 | + 'mode' => 'submessage', |
|
| 61 | + 'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>info</strong> style.', |
|
| 62 | + 'style' => 'info', |
|
| 63 | + ), |
|
| 64 | + array( |
|
| 65 | + 'id' => 'opt-submessage-4', |
|
| 66 | + 'type' => 'content', |
|
| 67 | + 'mode' => 'submessage', |
|
| 68 | + 'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>warning</strong> style.', |
|
| 69 | + 'style' => 'warning', |
|
| 70 | + ), |
|
| 71 | + array( |
|
| 72 | + 'id' => 'opt-submessage-5', |
|
| 73 | + 'type' => 'content', |
|
| 74 | + 'mode' => 'submessage', |
|
| 75 | + 'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>critical</strong> style.', |
|
| 76 | + 'style' => 'critical', |
|
| 77 | + ), |
|
| 78 | + ), |
|
| 79 | + ) |
|
| 80 | 80 | ); |
| 81 | 81 | // phpcs:enable |
@@ -10,18 +10,18 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Divide', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'presentation-divide', |
|
| 17 | - 'desc' => esc_html__( 'The spacer to the section menu as seen to the left (after this section block) is the divide "section". Also the divider below is the divide "field".', 'your-textdomain-here' ) . '<br />' . __( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/divide.html" target="_blank">https://devs.redux.io/core-fields/divide.html</a>', |
|
| 18 | - 'subsection' => true, |
|
| 19 | - 'fields' => array( |
|
| 20 | - array( |
|
| 21 | - 'id' => 'opt-divide', |
|
| 22 | - 'type' => 'divide', |
|
| 23 | - ), |
|
| 24 | - ), |
|
| 25 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Divide', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'presentation-divide', |
|
| 17 | + 'desc' => esc_html__( 'The spacer to the section menu as seen to the left (after this section block) is the divide "section". Also the divider below is the divide "field".', 'your-textdomain-here' ) . '<br />' . __( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/divide.html" target="_blank">https://devs.redux.io/core-fields/divide.html</a>', |
|
| 18 | + 'subsection' => true, |
|
| 19 | + 'fields' => array( |
|
| 20 | + array( |
|
| 21 | + 'id' => 'opt-divide', |
|
| 22 | + 'type' => 'divide', |
|
| 23 | + ), |
|
| 24 | + ), |
|
| 25 | + ) |
|
| 26 | 26 | ); |
| 27 | 27 | // phpcs:enable |
@@ -10,43 +10,43 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Section', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'presentation-section', |
|
| 17 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/section.html" target="_blank">https://devs.redux.io/core-fields/section.html</a>', |
|
| 18 | - 'subsection' => true, |
|
| 19 | - 'fields' => array( |
|
| 20 | - array( |
|
| 21 | - 'id' => 'section-start', |
|
| 22 | - 'type' => 'section', |
|
| 23 | - 'title' => esc_html__( 'Section Example', 'your-textdomain-here' ), |
|
| 24 | - 'subtitle' => esc_html__( 'With the "section" field you can create indented option sections.', 'your-textdomain-here' ), |
|
| 25 | - 'indent' => true, // Indent all options below until the next 'section' option is set. |
|
| 26 | - ), |
|
| 27 | - array( |
|
| 28 | - 'id' => 'section-test', |
|
| 29 | - 'type' => 'text', |
|
| 30 | - 'title' => esc_html__( 'Field Title', 'your-textdomain-here' ), |
|
| 31 | - 'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ), |
|
| 32 | - ), |
|
| 33 | - array( |
|
| 34 | - 'id' => 'section-test-media', |
|
| 35 | - 'type' => 'media', |
|
| 36 | - 'title' => esc_html__( 'Field Title', 'your-textdomain-here' ), |
|
| 37 | - 'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ), |
|
| 38 | - ), |
|
| 39 | - array( |
|
| 40 | - 'id' => 'section-end', |
|
| 41 | - 'type' => 'section', |
|
| 42 | - 'indent' => false, // Indent all options below until the next 'section' option is set. |
|
| 43 | - ), |
|
| 44 | - array( |
|
| 45 | - 'id' => 'section-info', |
|
| 46 | - 'type' => 'info', |
|
| 47 | - 'desc' => esc_html__( 'And now you can add more fields below and outside of the indent.', 'your-textdomain-here' ), |
|
| 48 | - ), |
|
| 49 | - ), |
|
| 50 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Section', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'presentation-section', |
|
| 17 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/section.html" target="_blank">https://devs.redux.io/core-fields/section.html</a>', |
|
| 18 | + 'subsection' => true, |
|
| 19 | + 'fields' => array( |
|
| 20 | + array( |
|
| 21 | + 'id' => 'section-start', |
|
| 22 | + 'type' => 'section', |
|
| 23 | + 'title' => esc_html__( 'Section Example', 'your-textdomain-here' ), |
|
| 24 | + 'subtitle' => esc_html__( 'With the "section" field you can create indented option sections.', 'your-textdomain-here' ), |
|
| 25 | + 'indent' => true, // Indent all options below until the next 'section' option is set. |
|
| 26 | + ), |
|
| 27 | + array( |
|
| 28 | + 'id' => 'section-test', |
|
| 29 | + 'type' => 'text', |
|
| 30 | + 'title' => esc_html__( 'Field Title', 'your-textdomain-here' ), |
|
| 31 | + 'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ), |
|
| 32 | + ), |
|
| 33 | + array( |
|
| 34 | + 'id' => 'section-test-media', |
|
| 35 | + 'type' => 'media', |
|
| 36 | + 'title' => esc_html__( 'Field Title', 'your-textdomain-here' ), |
|
| 37 | + 'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ), |
|
| 38 | + ), |
|
| 39 | + array( |
|
| 40 | + 'id' => 'section-end', |
|
| 41 | + 'type' => 'section', |
|
| 42 | + 'indent' => false, // Indent all options below until the next 'section' option is set. |
|
| 43 | + ), |
|
| 44 | + array( |
|
| 45 | + 'id' => 'section-info', |
|
| 46 | + 'type' => 'info', |
|
| 47 | + 'desc' => esc_html__( 'And now you can add more fields below and outside of the indent.', 'your-textdomain-here' ), |
|
| 48 | + ), |
|
| 49 | + ), |
|
| 50 | + ) |
|
| 51 | 51 | ); |
| 52 | 52 | // phpcs:enable |