array( 'content' => array( array( 'id' => 'option_types_help', 'title' => __( 'Option Types', 'theme-text-domain' ), 'content' => '

' . __( 'Help content goes here!', 'theme-text-domain' ) . '

' ) ), 'sidebar' => '

' . __( 'Sidebar content goes here!', 'theme-text-domain' ) . '

' ), /* Admin panel sections /* ------------------------------------ */ 'sections' => array( array( 'id' => 'general', 'title' => __( 'General', 'ambision' ) ), array( 'id' => 'logo_favicon', 'title' => __( 'Logo & Favicon', 'ambision' ) ), array( 'id' => 'styling', 'title' => __( 'Styling', 'ambision' ) ), array( 'id' => 'social_media', 'title' => __( 'Social Media', 'ambision' ) ), array( 'id' => 'custom_css', 'title' => __( 'Custom CSS', 'ambision' ) ), ), /* Theme options /* ------------------------------------ */ 'settings' => array( // General array( 'id' => 'responsive', 'label' => __( 'Responsive Layout', 'ambision' ), 'desc' => sprintf( __( 'You can enable or disable website responsive feature', 'ambision' ), '' ), 'std' => 'off', 'type' => 'on-off', 'section' => 'general', ), array( 'id' => 'featured_slider', 'label' => __( 'Featured Slider', 'ambision' ), 'desc' => sprintf( __( 'You can enable or disable featured slider', 'ambision' ), '' ), 'std' => 'off', 'type' => 'on-off', 'section' => 'general', ), array( 'id' => 'post_sidebar_position', 'label' => 'Post Sidebar Positions', 'desc' => 'Select main content and sidebar alignment for posts', 'std' => 'pull-left', 'type' => 'radio-image', 'section' => 'general', 'choices' => array( array( 'value' => 'pull-left', 'label' => '2 Column', 'src' => get_template_directory_uri() . '/option-tree/assets/images/layout/right-sidebar.png' ), array( 'value' => 'pull-right', 'label' => '2 Column Left', 'src' => get_template_directory_uri() . '/option-tree/assets/images/layout/left-sidebar.png' ), ) ), array( 'id' => 'page_sidebar_position', 'label' => 'Page Sidebar Positions', 'desc' => 'Select main content and sidebar alignment for page', 'std' => 'pull-left', 'type' => 'radio-image', 'section' => 'general', 'choices' => array( array( 'value' => 'pull-left', 'label' => '2 Column', 'src' => get_template_directory_uri() . '/option-tree/assets/images/layout/right-sidebar.png' ), array( 'value' => 'pull-right', 'label' => '2 Column Left', 'src' => get_template_directory_uri() . '/option-tree/assets/images/layout/left-sidebar.png' ), ) ), // Logo & Favicon array( 'id' => 'favicon', 'label' => 'Favicon', 'desc' => 'Favicon for your website (16px x 16px)', 'type' => 'upload', 'section' => 'logo_favicon' ), array( 'id' => 'header_logo', 'label' => 'Header Logo', 'desc' => 'Upload custom logo to your website', 'type' => 'upload', 'section' => 'logo_favicon' ), array( 'id' => 'footer_logo', 'label' => 'Footer Logo', 'desc' => 'Upload custom logo to your website', 'type' => 'upload', 'section' => 'logo_favicon' ), // Styling array( 'id' => 'primary_color', 'label' => __( 'Primary Color', 'ambision' ), 'desc' => __( 'Default Primary Color:- #c7afbd', 'ambision' ), 'std' => '', 'type' => 'colorpicker', 'section' => 'styling', 'operator' => 'and' ), array( 'id' => 'body_bg', 'label' => __( 'Body Background', 'ambision' ), 'desc' => sprintf( __( 'Body background with image, color, etc.', 'ambision' ) ), 'std' => '', 'type' => 'background', 'section' => 'styling', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'min_max_step'=> '', 'class' => '', 'condition' => '', 'operator' => 'and' ), // Social Media array( 'id' => 'facebook', 'label' => __( 'Facebook', 'theme-text-domain' ), 'desc' => __( 'You can add your Facebook url', 'ambision' ), 'std' => '', 'type' => 'text', 'section' => 'social_media', ), array( 'id' => 'twitter', 'label' => __( 'Twitter', 'theme-text-domain' ), 'desc' => __( 'You can add your Twitter url', 'ambision' ), 'std' => '', 'type' => 'text', 'section' => 'social_media', ), array( 'id' => 'googleplus', 'label' => __( 'Google+', 'theme-text-domain' ), 'desc' => __( 'You can add your Google+ url', 'ambision' ), 'std' => '', 'type' => 'text', 'section' => 'social_media', ), array( 'id' => 'linkedin', 'label' => __( 'LinkedIn', 'theme-text-domain' ), 'desc' => __( 'You can add your LinkedIn url', 'ambision' ), 'std' => '', 'type' => 'text', 'section' => 'social_media', ), array( 'id' => 'pinterest', 'label' => __( 'Pinterest', 'theme-text-domain' ), 'desc' => __( 'You can add your Pinterest url', 'ambision' ), 'std' => '', 'type' => 'text', 'section' => 'social_media', ), array( 'id' => 'youtube', 'label' => __( 'Youtube', 'theme-text-domain' ), 'desc' => __( 'You can add your Youtube url', 'ambision' ), 'std' => '', 'type' => 'text', 'section' => 'social_media', ), array( 'id' => 'tumblr', 'label' => __( 'Tumblr', 'theme-text-domain' ), 'desc' => __( 'You can add your Tumblr url', 'ambision' ), 'std' => '', 'type' => 'text', 'section' => 'social_media', ), array( 'id' => 'stumbleupon', 'label' => __( 'Stumbleupon', 'theme-text-domain' ), 'desc' => __( 'You can add your Stumbleupon url', 'ambision' ), 'std' => '', 'type' => 'text', 'section' => 'social_media', ), array( 'id' => 'instagram', 'label' => __( 'Instagram', 'theme-text-domain' ), 'desc' => __( 'You can add your Instagram url', 'ambision' ), 'std' => '', 'type' => 'text', 'section' => 'social_media', ), array( 'id' => 'rss', 'label' => __( 'RSS', 'theme-text-domain' ), 'desc' => __( 'You can add your RSS url', 'ambision' ), 'std' => '', 'type' => 'text', 'section' => 'social_media', ), // Styling: Custom CSS array( 'id' => 'custom_css', 'label' => 'Custom CSS', 'desc' => 'Add your custom CSS styles here. It will be added to the [ dynamic.css ] file', 'type' => 'css', 'section' => 'custom_css', 'std' => ' ' ) ) ); /* allow settings to be filtered before saving */ $custom_settings = apply_filters( ot_settings_id() . '_args', $custom_settings ); /* settings are not the same update the DB */ if ( $saved_settings !== $custom_settings ) { update_option( ot_settings_id(), $custom_settings ); } /* Lets OptionTree know the UI Builder is being overridden */ global $ot_has_custom_theme_options; $ot_has_custom_theme_options = true; }