| type | id | title | subtitle | desc | compiler | class | fold | options | default | data | transparent | width | height | placeholder | tiles | presets | style | raw_html | header | icon | url | preview | username | multi | min | max | step | units | top | right | bottom | left | On | Off | rows | family | size | script | color | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| button_set | X | X | X | X | X | X | X | X | X |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| function redux_get_variables( $name, $key = false ) { | |
| global $MY_VAR_NAME; // Update to your opt_name or global_variable name | |
| $options = $MY_VAR_NAME; // Update to your opt_name or global_variable name | |
| $var = ""; // Set this to your preferred default value | |
| if ( empty( $name ) && !empty( $options ) ) { | |
| $var = $options; | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typography6: { | |
| family: "Arial, Helvetica, sans-serif" | |
| google: "false" | |
| style: "400-italic" | |
| script: "" | |
| size: "33" | |
| height: "42" | |
| color: "#939393" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| // YOUR OLD VERSION | |
| array( | |
| 'id'=>'typography', | |
| 'type' => 'typography', | |
| 'title' => __('Typography', 'redux-framework'), | |
| 'subtitle'=> __('Typography option with each property can be called individually.', 'redux-framework'), | |
| 'default'=> array( | |
| 'color'=>"#333", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $field = array( | |
| 'id'=>'header-border', | |
| 'type' => 'border', | |
| 'title' => __('Header Border Option', 'redux-framework'), | |
| 'subtitle' => __('Only color validation can be done on this field type', 'redux-framework'), | |
| 'desc' => __('This is the description field, again good for additional info.', 'redux-framework'), | |
| 'default' => array('color' => '#1e73be', 'style' => 'solid', 'width'=>'3') | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if(!class_exists('ReduxFramework')){ | |
| require_once(dirname(__FILE__) . '/ReduxFramework/framework.php'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function addAndOverridePanelCSS() { | |
| wp_dequeue_style( 'redux-css' ); | |
| wp_register_style( | |
| 'redux-custom-css', | |
| 'http://urltomyfile', | |
| array( 'farbtastic' ), // Notice redux-css is removed and the wordpress standard farbtastic is included instead | |
| time(), | |
| 'all' | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $options = array( | |
| 'required' => array('id','equals',array( 1,3 ) ) // Multiple values | |
| ); | |
| $options = array( | |
| 'required' => array('id','equals', array( 1 ) ) // Single value | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| array( | |
| 'id'=>'switch-custom', | |
| 'type' => 'switch', | |
| 'title' => __('Switch - Custom Titles', 'redux-framework'), | |
| 'subtitle'=> __('Look, it\'s on! Also hidden child elements!', 'redux-framework'), | |
| "default" => 0, | |
| 'on' => 'Enabled', | |
| 'off' => 'Disabled', | |
| ), |