This file contains 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
// OptionTree Custom Post Type Select Option Type | |
// Example code when being used as a Metabox or | |
// Exported OptionTree file to be used in Theme Mode | |
array( | |
'id' => 'spyr_demo_custom_post_type_select', | |
'label' => __( 'Custom Post Type Select', 'text-domain' ), | |
'desc' => __( 'Your description', 'text-domain' ), | |
'type' => 'custom-post-type-select', |
This file contains 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
// OptionTree Category Select Option Type | |
// Example code when being used as a Metabox or | |
// Exported OptionTree file to be used in Theme Mode | |
array( | |
'id' => 'spyr_demo_category_select', | |
'label' => __( 'Category Select', 'text-domain' ), | |
'desc' => __( 'Your description', 'text-domain' ), | |
'type' => 'category-select', |
This file contains 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
// OptionTree Tag Select Option Type | |
// Example code when being used as a Metabox or | |
// Exported OptionTree file to be used in Theme Mode | |
array( | |
'id' => 'spyr_demo_tag_select', | |
'label' => __( 'Tag Select', 'text-domain' ), | |
'desc' => __( 'Your description', 'text-domain' ), | |
'type' => 'tag-select', |
This file contains 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
// OptionTree Taxonomy Select Option Type | |
// Example code when being used as a Metabox or | |
// Exported OptionTree file to be used in Theme Mode | |
array( | |
'id' => 'spyr_demo_taxonomy_select', | |
'label' => __( 'Taxonomy Select', 'text-domain' ), | |
'desc' => __( 'Your description', 'text-domain' ), | |
'type' => 'taxonomy-select', |
This file contains 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
// OptionTree Sidebar Select Option Type | |
// Example code when being used as a Metabox or | |
// Exported OptionTree file to be used in Theme Mode | |
// This option type will read all of your available | |
// Sidebars on your theme, so there is very little work to do here | |
array( | |
'id' => 'spyr_demo_sidebar_select', | |
'label' => __( 'Sidebar Select', 'text-domain' ), | |
'desc' => __( 'Your description', 'text-domain' ), |
This file contains 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
jQuery(document).ready(function() { | |
// Start positioning the #header-ext div | |
wcs_position_header_ext(); | |
}); | |
jQuery( window ).resize( function() { | |
wcs_position_header_ext(); | |
}); |
This file contains 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' => 'spyr_demo_date_picker', | |
'label' => __( 'Date Picker', 'text-domain' ), | |
'desc' => __( 'Your description', 'text-domain' ), | |
'type' => 'date-picker', | |
'section' => 'your_section', | |
) | |
// Get the value saved on Theme Options Page | |
$spyr_demo_date_picker = ot_get_option( 'spyr_demo_date_picker' ); |
This file contains 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
// OptionTree Date Time Picker Option Type | |
// Example code when being used as a Metabox or | |
// Exported OptionTree file to be used in Theme Mode | |
array( | |
'id' => 'spyr_demo_date_time_picker', | |
'label' => __( 'Date Time Picker', 'text-domain' ), | |
'desc' => __( 'Your description', 'text-domain' ), | |
'std' => '', |
This file contains 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
// OptionTree Measurement Option Type | |
// Example code when being used as a Metabox or | |
// Exported OptionTree file to be used in Theme Mode | |
array( | |
'id' => 'spyr_demo_measurement', | |
'label' => __( 'Measurement', 'text-domain' ), | |
'desc' => __( 'Your description', 'text-domain' ), | |
'type' => 'measurement', |
This file contains 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
// OptionTree Numeric Slider Option Type | |
// Example code when being used as a Metabox or | |
// Exported OptionTree file to be used in Theme Mode | |
array( | |
'id' => 'spyr_demo_numeric_slider', | |
'label' => __( 'Numeric Slider', 'text-domain' ), | |
'desc' => __( 'Your description', 'text-domain' ), | |
'type' => 'numeric-slider', |
OlderNewer