Skip to content

Instantly share code, notes, and snippets.

@dovy
Created February 21, 2015 04:11
Show Gist options
  • Save dovy/98c8fead3d11f0e7e618 to your computer and use it in GitHub Desktop.
Save dovy/98c8fead3d11f0e7e618 to your computer and use it in GitHub Desktop.
To add to the redux docs.
array('id' => 'dovytest', 'type'=>'typography', 'title' => 'Dovy Test'
),
array(
'id' => 'opt-presets',
'type' => 'image_select',
'presets' => true,
'title' => __('Preset', 'redux-framework-demo'),
'subtitle' => __('This allows you to set a json string or array to override multiple preferences in your theme.', 'redux-framework-demo'),
'default' => 0,
'desc' => __('This allows you to set a json string or array to override multiple preferences in your theme.', 'redux-framework-demo'),
'options' => array(
// Array of preset options
'1' => array(
'alt' => 'Preset 1',
'img' => 'http://avada.dev/wp-content/themes/avada3.8/assets/images/patterns/header1.jpg',
'presets' => array(
'dovytest' => array(
'color' => '#000000',
)
),
'merge' => 1
),
// JSON string of preset options
'2' => array(
'alt' => 'Preset 2',
'img' => 'http://avada.dev/wp-content/themes/avada3.8/assets/images/patterns/header2.jpg',
'presets' => array(
'dovytest' => array(
'color' => '#f8f8f8',
)
),
'merge' => array('dovytest')
),
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment