initial commit
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* Redux Framework content config.
|
||||
* For full documentation, please visit: http://devs.redux.io/
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
Redux::set_section(
|
||||
$opt_name,
|
||||
array(
|
||||
'title' => esc_html__( 'Content', 'your-textdomain-here' ),
|
||||
'id' => 'presentation-content',
|
||||
'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>',
|
||||
'subsection' => true,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'opt-heading-1',
|
||||
'type' => 'content',
|
||||
'mode' => 'heading',
|
||||
'content' => 'This is a content field using the mode <strong>heading</strong>',
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-subheading-1',
|
||||
'type' => 'content',
|
||||
'mode' => 'subheading',
|
||||
'content' => 'This is a content field using the mode <strong>subheading</strong>',
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-content-1',
|
||||
'type' => 'content',
|
||||
'mode' => 'content',
|
||||
'content' => 'This is a content field using the mode <strong>content</strong>',
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-submessage-1',
|
||||
'type' => 'content',
|
||||
'mode' => 'submessage',
|
||||
'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>normal</strong> style.',
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-content-2',
|
||||
'type' => 'content',
|
||||
'mode' => 'content',
|
||||
'content' => 'This is a content field using the mode <strong>content</strong>',
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-submessage-2',
|
||||
'type' => 'content',
|
||||
'mode' => 'submessage',
|
||||
'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>success</strong> style.',
|
||||
'style' => 'success',
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-submessage-3',
|
||||
'type' => 'content',
|
||||
'mode' => 'submessage',
|
||||
'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>info</strong> style.',
|
||||
'style' => 'info',
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-submessage-4',
|
||||
'type' => 'content',
|
||||
'mode' => 'submessage',
|
||||
'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>warning</strong> style.',
|
||||
'style' => 'warning',
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-submessage-5',
|
||||
'type' => 'content',
|
||||
'mode' => 'submessage',
|
||||
'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>critical</strong> style.',
|
||||
'style' => 'critical',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Redux Framework divide config.
|
||||
* For full documentation, please visit: http://devs.redux.io/
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
Redux::set_section(
|
||||
$opt_name,
|
||||
array(
|
||||
'title' => esc_html__( 'Divide', 'your-textdomain-here' ),
|
||||
'id' => 'presentation-divide',
|
||||
'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>',
|
||||
'subsection' => true,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'opt-divide',
|
||||
'type' => 'divide',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* Silence is golden.
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
echo null;
|
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/**
|
||||
* Redux Framework info config.
|
||||
* For full documentation, please visit: http://devs.redux.io/
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
Redux::set_section(
|
||||
$opt_name,
|
||||
array(
|
||||
'title' => esc_html__( 'Info', 'your-textdomain-here' ),
|
||||
'id' => 'presentation-info',
|
||||
'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>',
|
||||
'subsection' => true,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'opt-info-field',
|
||||
'type' => 'info',
|
||||
'desc' => esc_html__( 'This is the info field, if you want to break sections up.', 'your-textdomain-here' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-notice-info1',
|
||||
'type' => 'info',
|
||||
'style' => 'info',
|
||||
'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ),
|
||||
'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' ) ),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-info-warning',
|
||||
'type' => 'info',
|
||||
'style' => 'warning',
|
||||
'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ),
|
||||
'desc' => wp_kses_post( __( 'This is an info field with the <strong>warning</strong> style applied.', 'your-textdomain-here' ) ),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-info-success',
|
||||
'type' => 'info',
|
||||
'style' => 'success',
|
||||
'icon' => 'el el-info-circle',
|
||||
'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ),
|
||||
'desc' => wp_kses_post( __( 'This is an info field with the <strong>success</strong> style applied and an icon.', 'your-textdomain-here' ) ),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-info-critical',
|
||||
'type' => 'info',
|
||||
'style' => 'critical',
|
||||
'icon' => 'el el-info-circle',
|
||||
'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ),
|
||||
'desc' => wp_kses_post( __( 'This is an info field with the <strong>critical</strong> style applied and an icon.', 'your-textdomain-here' ) ),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-info-custom',
|
||||
'type' => 'info',
|
||||
'style' => 'custom',
|
||||
'color' => 'purple',
|
||||
'icon' => 'el el-info-circle',
|
||||
'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ),
|
||||
'desc' => wp_kses_post( __( 'This is field with the <strong>custom</strong> style applied, color arg passed, and an icon.', 'your-textdomain-here' ) ),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-info-normal',
|
||||
'type' => 'info',
|
||||
'notice' => false,
|
||||
'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ),
|
||||
'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>normal</strong> style applied.', 'your-textdomain-here' ) ),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-notice-info',
|
||||
'type' => 'info',
|
||||
'notice' => false,
|
||||
'style' => 'info',
|
||||
'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ),
|
||||
'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>info</strong> style applied.', 'your-textdomain-here' ) ),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-notice-warning',
|
||||
'type' => 'info',
|
||||
'notice' => false,
|
||||
'style' => 'warning',
|
||||
'icon' => 'el el-info-circle',
|
||||
'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ),
|
||||
'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>warning</strong> style applied and an icon.', 'your-textdomain-here' ) ),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-notice-success',
|
||||
'type' => 'info',
|
||||
'notice' => false,
|
||||
'style' => 'success',
|
||||
'icon' => 'el el-info-circle',
|
||||
'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ),
|
||||
'desc' => wp_kses_post( __( 'This is non-notice field with the <strong>success</strong> style applied and an icon.', 'your-textdomain-here' ) ),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-notice-critical',
|
||||
'type' => 'info',
|
||||
'notice' => false,
|
||||
'style' => 'critical',
|
||||
'icon' => 'el el-info-circle',
|
||||
'title' => esc_html__( 'This is a title.', 'your-textdomain-here' ),
|
||||
'desc' => wp_kses_post( __( 'This is a non-notice field with the <strong>critical</strong> style applied and an icon.', 'your-textdomain-here' ) ),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* Redux Framework section config.
|
||||
* For full documentation, please visit: http://devs.redux.io/
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
Redux::set_section(
|
||||
$opt_name,
|
||||
array(
|
||||
'title' => esc_html__( 'Section', 'your-textdomain-here' ),
|
||||
'id' => 'presentation-section',
|
||||
'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>',
|
||||
'subsection' => true,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'section-start',
|
||||
'type' => 'section',
|
||||
'title' => esc_html__( 'Section Example', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'With the "section" field you can create indented option sections.', 'your-textdomain-here' ),
|
||||
'indent' => true, // Indent all options below until the next 'section' option is set.
|
||||
),
|
||||
array(
|
||||
'id' => 'section-test',
|
||||
'type' => 'text',
|
||||
'title' => esc_html__( 'Field Title', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'section-test-media',
|
||||
'type' => 'media',
|
||||
'title' => esc_html__( 'Field Title', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'section-end',
|
||||
'type' => 'section',
|
||||
'indent' => false, // Indent all options below until the next 'section' option is set.
|
||||
),
|
||||
array(
|
||||
'id' => 'section-info',
|
||||
'type' => 'info',
|
||||
'desc' => esc_html__( 'And now you can add more fields below and outside of the indent.', 'your-textdomain-here' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
Reference in New Issue
Block a user