@@ -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 |
@@ -10,24 +10,24 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Disable Section', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'basic-checkbox-section-disable', |
|
| 17 | - 'subsection' => true, |
|
| 18 | - 'customizer_width' => '450px', |
|
| 19 | - 'disabled' => true, |
|
| 20 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/checkbox.html" target="_blank">https://devs.redux.io/core-fields/checkbox.html</a>', |
|
| 21 | - 'fields' => array( |
|
| 22 | - array( |
|
| 23 | - 'id' => 'opt-checkbox-section-disable', |
|
| 24 | - 'type' => 'checkbox', |
|
| 25 | - 'title' => esc_html__( 'Checkbox Option', 'your-textdomain-here' ), |
|
| 26 | - 'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ), |
|
| 27 | - 'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ), |
|
| 28 | - 'default' => '1', // 1 = on | 0 = off. |
|
| 29 | - ), |
|
| 30 | - ), |
|
| 31 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Disable Section', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'basic-checkbox-section-disable', |
|
| 17 | + 'subsection' => true, |
|
| 18 | + 'customizer_width' => '450px', |
|
| 19 | + 'disabled' => true, |
|
| 20 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/checkbox.html" target="_blank">https://devs.redux.io/core-fields/checkbox.html</a>', |
|
| 21 | + 'fields' => array( |
|
| 22 | + array( |
|
| 23 | + 'id' => 'opt-checkbox-section-disable', |
|
| 24 | + 'type' => 'checkbox', |
|
| 25 | + 'title' => esc_html__( 'Checkbox Option', 'your-textdomain-here' ), |
|
| 26 | + 'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ), |
|
| 27 | + 'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ), |
|
| 28 | + 'default' => '1', // 1 = on | 0 = off. |
|
| 29 | + ), |
|
| 30 | + ), |
|
| 31 | + ) |
|
| 32 | 32 | ); |
| 33 | 33 | // phpcs:enable |
@@ -10,24 +10,24 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Disable Field', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'basic-checkbox-disable', |
|
| 17 | - 'subsection' => true, |
|
| 18 | - 'customizer_width' => '450px', |
|
| 19 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/checkbox.html" target="_blank">https://devs.redux.io/core-fields/checkbox.html</a>', |
|
| 20 | - 'fields' => array( |
|
| 21 | - array( |
|
| 22 | - 'id' => 'opt-checkbox-disable', |
|
| 23 | - 'type' => 'checkbox', |
|
| 24 | - 'title' => esc_html__( 'Checkbox 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 | - 'disabled' => true, |
|
| 28 | - 'default' => '1', // 1 = on | 0 = off. |
|
| 29 | - ), |
|
| 30 | - ), |
|
| 31 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Disable Field', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'basic-checkbox-disable', |
|
| 17 | + 'subsection' => true, |
|
| 18 | + 'customizer_width' => '450px', |
|
| 19 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/checkbox.html" target="_blank">https://devs.redux.io/core-fields/checkbox.html</a>', |
|
| 20 | + 'fields' => array( |
|
| 21 | + array( |
|
| 22 | + 'id' => 'opt-checkbox-disable', |
|
| 23 | + 'type' => 'checkbox', |
|
| 24 | + 'title' => esc_html__( 'Checkbox 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 | + 'disabled' => true, |
|
| 28 | + 'default' => '1', // 1 = on | 0 = off. |
|
| 29 | + ), |
|
| 30 | + ), |
|
| 31 | + ) |
|
| 32 | 32 | ); |
| 33 | 33 | // phpcs:enable |
@@ -10,52 +10,52 @@ |
||
| 10 | 10 | defined( 'ABSPATH' ) || exit; |
| 11 | 11 | |
| 12 | 12 | Redux::set_section( |
| 13 | - $opt_name, |
|
| 14 | - array( |
|
| 15 | - 'title' => esc_html__( 'Sorter', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'additional-sorter', |
|
| 17 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/sorter.html" target="_blank">https://devs.redux.io/core-fields/sorter.html</a>', |
|
| 18 | - 'subsection' => true, |
|
| 19 | - 'fields' => array( |
|
| 20 | - array( |
|
| 21 | - 'id' => 'opt-homepage-layout', |
|
| 22 | - 'type' => 'sorter', |
|
| 23 | - 'title' => 'Layout Manager Advanced', |
|
| 24 | - 'subtitle' => 'You can add multiple drop areas or columns.', |
|
| 25 | - 'compiler' => 'true', |
|
| 26 | - 'options' => array( |
|
| 27 | - 'enabled' => array( |
|
| 28 | - 'highlights' => 'Highlights', |
|
| 29 | - 'slider' => 'Slider', |
|
| 30 | - 'staticpage' => 'Static Page', |
|
| 31 | - 'services' => 'Services', |
|
| 32 | - ), |
|
| 33 | - 'disabled' => array(), |
|
| 34 | - 'backup' => array(), |
|
| 35 | - ), |
|
| 36 | - 'limits' => array( |
|
| 37 | - 'disabled' => 1, |
|
| 38 | - 'backup' => 2, |
|
| 39 | - ), |
|
| 40 | - ), |
|
| 41 | - array( |
|
| 42 | - 'id' => 'opt-homepage-layout-2', |
|
| 43 | - 'type' => 'sorter', |
|
| 44 | - 'title' => 'Homepage Layout Manager', |
|
| 45 | - 'desc' => 'Organize how you want the layout to appear on the homepage', |
|
| 46 | - 'compiler' => 'true', |
|
| 47 | - 'options' => array( |
|
| 48 | - 'disabled' => array( |
|
| 49 | - 'highlights' => 'Highlights', |
|
| 50 | - 'slider' => 'Slider', |
|
| 51 | - ), |
|
| 52 | - 'enabled' => array( |
|
| 53 | - 'staticpage' => 'Static Page', |
|
| 54 | - 'services' => 'Services', |
|
| 55 | - ), |
|
| 56 | - ), |
|
| 57 | - ), |
|
| 58 | - ), |
|
| 59 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Sorter', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'additional-sorter', |
|
| 17 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/sorter.html" target="_blank">https://devs.redux.io/core-fields/sorter.html</a>', |
|
| 18 | + 'subsection' => true, |
|
| 19 | + 'fields' => array( |
|
| 20 | + array( |
|
| 21 | + 'id' => 'opt-homepage-layout', |
|
| 22 | + 'type' => 'sorter', |
|
| 23 | + 'title' => 'Layout Manager Advanced', |
|
| 24 | + 'subtitle' => 'You can add multiple drop areas or columns.', |
|
| 25 | + 'compiler' => 'true', |
|
| 26 | + 'options' => array( |
|
| 27 | + 'enabled' => array( |
|
| 28 | + 'highlights' => 'Highlights', |
|
| 29 | + 'slider' => 'Slider', |
|
| 30 | + 'staticpage' => 'Static Page', |
|
| 31 | + 'services' => 'Services', |
|
| 32 | + ), |
|
| 33 | + 'disabled' => array(), |
|
| 34 | + 'backup' => array(), |
|
| 35 | + ), |
|
| 36 | + 'limits' => array( |
|
| 37 | + 'disabled' => 1, |
|
| 38 | + 'backup' => 2, |
|
| 39 | + ), |
|
| 40 | + ), |
|
| 41 | + array( |
|
| 42 | + 'id' => 'opt-homepage-layout-2', |
|
| 43 | + 'type' => 'sorter', |
|
| 44 | + 'title' => 'Homepage Layout Manager', |
|
| 45 | + 'desc' => 'Organize how you want the layout to appear on the homepage', |
|
| 46 | + 'compiler' => 'true', |
|
| 47 | + 'options' => array( |
|
| 48 | + 'disabled' => array( |
|
| 49 | + 'highlights' => 'Highlights', |
|
| 50 | + 'slider' => 'Slider', |
|
| 51 | + ), |
|
| 52 | + 'enabled' => array( |
|
| 53 | + 'staticpage' => 'Static Page', |
|
| 54 | + 'services' => 'Services', |
|
| 55 | + ), |
|
| 56 | + ), |
|
| 57 | + ), |
|
| 58 | + ), |
|
| 59 | + ) |
|
| 60 | 60 | ); |
| 61 | 61 | // 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__( 'Date', 'your-textdomain-here' ), |
|
| 16 | - 'id' => 'additional-date', |
|
| 17 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/date.html" target="_blank">https://devs.redux.io/core-fields/date.html</a>', |
|
| 18 | - 'subsection' => true, |
|
| 19 | - 'fields' => array( |
|
| 20 | - array( |
|
| 21 | - 'id' => 'opt-datepicker', |
|
| 22 | - 'type' => 'date', |
|
| 23 | - 'title' => esc_html__( 'Date Option', 'your-textdomain-here' ), |
|
| 24 | - 'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ), |
|
| 25 | - 'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ), |
|
| 26 | - ), |
|
| 27 | - ), |
|
| 28 | - ) |
|
| 13 | + $opt_name, |
|
| 14 | + array( |
|
| 15 | + 'title' => esc_html__( 'Date', 'your-textdomain-here' ), |
|
| 16 | + 'id' => 'additional-date', |
|
| 17 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/date.html" target="_blank">https://devs.redux.io/core-fields/date.html</a>', |
|
| 18 | + 'subsection' => true, |
|
| 19 | + 'fields' => array( |
|
| 20 | + array( |
|
| 21 | + 'id' => 'opt-datepicker', |
|
| 22 | + 'type' => 'date', |
|
| 23 | + 'title' => esc_html__( 'Date Option', 'your-textdomain-here' ), |
|
| 24 | + 'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ), |
|
| 25 | + 'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ), |
|
| 26 | + ), |
|
| 27 | + ), |
|
| 28 | + ) |
|
| 29 | 29 | ); |
| 30 | 30 | // phpcs:enable |
@@ -11,37 +11,37 @@ |
||
| 11 | 11 | |
| 12 | 12 | $sample_html = ''; |
| 13 | 13 | if ( file_exists( $dir . 'info-html.html' ) ) { |
| 14 | - $fs = Redux_Filesystem::get_instance(); |
|
| 14 | + $fs = Redux_Filesystem::get_instance(); |
|
| 15 | 15 | |
| 16 | - $sample_html = $fs->get_contents( $dir . 'info-html.html' ); |
|
| 16 | + $sample_html = $fs->get_contents( $dir . 'info-html.html' ); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | Redux::set_section( |
| 20 | - $opt_name, |
|
| 21 | - array( |
|
| 22 | - 'title' => esc_html__( 'Raw', 'your-textdomain-here' ), |
|
| 23 | - 'id' => 'additional-raw', |
|
| 24 | - 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/raw.html" target="_blank">https://devs.redux.io/core-fields/raw.html</a>', |
|
| 25 | - 'subsection' => true, |
|
| 26 | - 'fields' => array( |
|
| 27 | - array( |
|
| 28 | - 'id' => 'opt-raw_info_4', |
|
| 29 | - 'type' => 'raw', |
|
| 30 | - 'title' => esc_html__( 'Standard Raw Field', 'your-textdomain-here' ), |
|
| 31 | - 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 32 | - 'desc' => esc_html__( 'Description', 'your-textdomain-here' ), |
|
| 33 | - 'content' => $sample_html, |
|
| 34 | - ), |
|
| 35 | - array( |
|
| 36 | - 'id' => 'opt-raw_info_5', |
|
| 37 | - 'type' => 'raw', |
|
| 38 | - 'full_width' => false, |
|
| 39 | - 'title' => wp_kses_post( __( 'Raw Field <code>full_width</code> set to <code>false</code>', 'your-textdomain-here' ) ), |
|
| 40 | - 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 41 | - 'desc' => esc_html__( 'Description', 'your-textdomain-here' ), |
|
| 42 | - 'content' => $sample_html, |
|
| 43 | - ), |
|
| 44 | - ), |
|
| 45 | - ) |
|
| 20 | + $opt_name, |
|
| 21 | + array( |
|
| 22 | + 'title' => esc_html__( 'Raw', 'your-textdomain-here' ), |
|
| 23 | + 'id' => 'additional-raw', |
|
| 24 | + 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/raw.html" target="_blank">https://devs.redux.io/core-fields/raw.html</a>', |
|
| 25 | + 'subsection' => true, |
|
| 26 | + 'fields' => array( |
|
| 27 | + array( |
|
| 28 | + 'id' => 'opt-raw_info_4', |
|
| 29 | + 'type' => 'raw', |
|
| 30 | + 'title' => esc_html__( 'Standard Raw Field', 'your-textdomain-here' ), |
|
| 31 | + 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 32 | + 'desc' => esc_html__( 'Description', 'your-textdomain-here' ), |
|
| 33 | + 'content' => $sample_html, |
|
| 34 | + ), |
|
| 35 | + array( |
|
| 36 | + 'id' => 'opt-raw_info_5', |
|
| 37 | + 'type' => 'raw', |
|
| 38 | + 'full_width' => false, |
|
| 39 | + 'title' => wp_kses_post( __( 'Raw Field <code>full_width</code> set to <code>false</code>', 'your-textdomain-here' ) ), |
|
| 40 | + 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), |
|
| 41 | + 'desc' => esc_html__( 'Description', 'your-textdomain-here' ), |
|
| 42 | + 'content' => $sample_html, |
|
| 43 | + ), |
|
| 44 | + ), |
|
| 45 | + ) |
|
| 46 | 46 | ); |
| 47 | 47 | // phpcs:enable |