Version 1.0.40

This commit is contained in:
ultimatemember
2015-02-04 20:31:39 +02:00
parent 7e1ee839d3
commit f90388b4d6
420 changed files with 35095 additions and 17582 deletions
@@ -53,20 +53,19 @@
// ACTUAL DECLARATION OF SECTIONS
$this->sections[] = array(
'title' => __( 'Home Settings', 'redux-framework-demo' ),
'desc' => sprintf( __( 'Redux Framework was created with the developer in mind. It allows for any theme developer to have an advanced theme panel with most of the features a developer would need. For more information check out the Github repo at: %d', 'redux-framework-demo' ), '<a href="' . 'https://' . 'github.com/ReduxFramework/Redux-Framework">' . 'https://' . 'github.com/ReduxFramework/Redux-Framework</a>' ),
'desc' => __( 'These fields can be fully translated by WPML (WordPress Multi-Language). This serves as an example for you to implement. For extra details look at our <a href="http://docs.reduxframework.com/core/advanced/wpml-integration/" target="_blank">WPML Implementation</a> documentation.', 'redux-framework-demo' ),
'icon' => 'el-icon-home',
// 'submenu' => false, // Setting submenu to false on a given section will hide it from the WordPress sidebar menu!
'fields' => array(
array(
'id' => 'opt-web-fonts',
'type' => 'media',
'title' => __( 'Web Fonts', 'redux-framework-demo' ),
'id' => 'textid',
'type' => 'text',
'title' => __( 'Example Text', 'redux-framework-demo' ),
'compiler' => 'true',
'mode' => false,
// Can be set to false to allow any media type, or can also be set to any mime type.
'desc' => __( 'Basic media uploader with disabled URL input field.', 'redux-framework-demo' ),
'subtitle' => __( 'Upload any media using the WordPress native uploader', 'redux-framework-demo' ),
'desc' => __( 'Example description.', 'redux-framework-demo' ),
'subtitle' => __( 'Example subtitle.', 'redux-framework-demo' ),
'hint' => array(
//'title' => '',
'content' => 'This is a <b>hint</b> tool-tip for the webFonts field.<br/><br/>Add any HTML based text you like here.',
@@ -74,6 +73,33 @@
),
)
);
$this->sections[] = array(
'title' => __( 'WPML Example', 'redux-framework-demo' ),
'desc' => __( 'These fields can be fully translated by WPML (WordPress Multi-Language). This serves as an example for you to implement.', 'redux-framework-demo' ),
'icon' => 'el-icon-home',
// 'submenu' => false, // Setting submenu to false on a given section will hide it from the WordPress sidebar menu!
'fields' => array(
array(
'id' => 'wpml-text',
'type' => 'textarea',
'title' => __( 'WPML Text', 'redux-framework-demo' ),
'desc' => __( 'This string can be translated via WPML.', 'redux-framework-demo' ),
),
array(
'id' => 'wpml-multicheck',
'type' => 'checkbox',
'title' => __( 'WPML Multi Checkbox', 'redux-framework-demo' ),
'desc' => __( 'You can literally translate the values via key.', 'redux-framework-demo' ),
//Must provide key => value pairs for multi checkbox options
'options' => array(
'1' => 'Option 1',
'2' => 'Option 2',
'3' => 'Option 3'
),
),
)
);
}
public function setHelpTabs() {
@@ -687,9 +687,12 @@
array(
'id' => 'opt-color-rgba',
'type' => 'color_rgba',
'title' => __( 'Color RGBA - BETA', 'redux-framework-demo' ),
'subtitle' => __( 'Gives you the RGBA color. Still quite experimental. Use at your own risk.', 'redux-framework-demo' ),
'default' => array( 'color' => '#dd9933', 'alpha' => '1.0' ),
'title' => __( 'Color RGBA', 'redux-framework-demo' ),
'subtitle' => __( 'Gives you the RGBA color.', 'redux-framework-demo' ),
'default' => array(
'color' => '#7e33dd',
'alpha' => '.8'
),
'output' => array( 'body' ),
'mode' => 'background',
'validate' => 'colorrgba',
@@ -1143,10 +1146,37 @@
'options' => array(
'1' => 'Opt 1',
'2' => 'Opt 2',
'3' => 'Opt 3'
'3' => 'Opt 3',
),
'default' => '2'
),
array(
'id' => 'opt-select-optgroup',
'type' => 'select',
'title' => __( 'Select Option with optgroup', 'redux-framework-demo' ),
'subtitle' => __( 'No validation can be done on this field type', 'redux-framework-demo' ),
'desc' => __( 'This is the description field, again good for additional info.', 'redux-framework-demo' ),
//Must provide key => value pairs for select options
'options' => array(
'Group 1' => array(
'1' => 'Opt 1',
'2' => 'Opt 2',
'3' => 'Opt 3',
),
'Group 2' => array(
'4' => 'Opt 4',
'5' => 'Opt 5',
'6' => 'Opt 6',
),
'7' => 'Opt 7',
'8' => 'Opt 8',
'9' => 'Opt 9',
),
'default' => '2'
),
array(
'id' => 'opt-multi-select',
'type' => 'select',
@@ -1160,7 +1190,7 @@
'2' => 'Opt 2',
'3' => 'Opt 3'
),
'required' => array( 'select', 'equals', array( '1', '3' ) ),
//'required' => array( 'opt-select', 'equals', array( '1', '3' ) ),
'default' => array( '2', '3' )
),
array(
@@ -1529,6 +1559,33 @@
)
);
$this->sections[] = array(
'title' => __( 'WPML Example', 'redux-framework-demo' ),
'desc' => __( 'These fields can be fully translated by WPML (WordPress Multi-Language). This serves as an example for you to implement. For extra details look at our <a href="http://docs.reduxframework.com/core/advanced/wpml-integration/" target="_blank">WPML Implementation</a> documentation.', 'redux-framework-demo' ),
'icon' => 'el-icon-home',
// 'submenu' => false, // Setting submenu to false on a given section will hide it from the WordPress sidebar menu!
'fields' => array(
array(
'id' => 'wpml-text',
'type' => 'textarea',
'title' => __( 'WPML Text', 'redux-framework-demo' ),
'desc' => __( 'This string can be translated via WPML.', 'redux-framework-demo' ),
),
array(
'id' => 'wpml-multicheck',
'type' => 'checkbox',
'title' => __( 'WPML Multi Checkbox', 'redux-framework-demo' ),
'desc' => __( 'You can literally translate the values via key.', 'redux-framework-demo' ),
//Must provide key => value pairs for multi checkbox options
'options' => array(
'1' => 'Option 1',
'2' => 'Option 2',
'3' => 'Option 3'
),
),
)
);
$this->sections[] = array(
'title' => __( 'Import / Export', 'redux-framework-demo' ),
'desc' => __( 'Import and Export your Redux Framework settings from file, text or URL.', 'redux-framework-demo' ),