Defining in the Array
To insert this component on the Theme Options you’ll need to put the following code in the file functions.array.php.
$fuse_options = array( 'name' => __('Image Select','textdomain'), 'description' => __('Some description here (not mandatory)','textdomain'), 'id' => 'themeoptions_imageselectfullID1', 'std' => '2', 'type' => 'radio_image_full', 'options' => array( 'labels' => array('http://dummyimage.com/100x100/dddddd/fff.jpg', 'http://dummyimage.com/100x100/dddddd/fff.jpg', 'http://dummyimage.com/100x100/dddddd/fff.jpg', 'http://dummyimage.com/100x100/dddddd/fff.jpg'), 'values' => array('1', '2', '3', '4'), 'margin' => '0px 10px 10px 0px' ) );
Please, remember that all the values must be different, otherwise may occur some problems with the selection.
How to use on your theme
Make sure you already defined the global variable in the file you want to use the Theme Options values (without this it won’t return the values):
After this, you just need to call the unique ID, for example:
Some ideas for you
This component can be used for multiple purposes, we highly recommend for this ones:
- Hide and Show Elements
- Pre-configured image values
- Pattern / backgrounds
- Grid structure