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 | |
/* | |
* The header core options for the Shoestrap theme | |
*/ | |
if ( !function_exists( 'shoestrap_module_header_options' ) ) { | |
function shoestrap_module_header_options() { | |
/*-----------------------------------------------------------------------------------*/ | |
/* The Options Array */ |
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 | |
/* | |
* The header core options for the Shoestrap theme | |
*/ | |
if ( !function_exists( 'shoestrap_module_header_options' ) ) { | |
function shoestrap_module_header_options() { | |
/*-----------------------------------------------------------------------------------*/ | |
/* The Options Array */ |
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
array( | |
'id' => 'presets', //must be unique | |
'type' => 'images', | |
'presets' => true, | |
'title' => __('Preset', 'simple-options'), | |
'sub_desc'=> __('Select a background pattern.', 'simple-options'), | |
'std' => 0, | |
'options' => array( | |
'1' => array('alt' => '1 Column', 'img' => SOF_OPTIONS_URL.'img/1col.png', 'presets'=>array('slider2'=>12,'patterns'=>2)), | |
'2' => array('alt' => '2 Column Left', 'img' => SOF_OPTIONS_URL.'img/2cl.png', 'presets'=>'{"slider2":"30", "patterns":"5"}'), |
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', | |
), |
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 | |
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 | |
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 | |
$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
<? | |
// 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", |
OlderNewer