'#FFFFFF',
'repeat' => 'repeat',
'position' => 'top center',
'attachment'=>'scroll' );
$menu_defaults = array(
'color' => '#FFFFFF',
'image' => '',
'repeat' => 'repeat',
'position' => 'top center',
'attachment'=>'scroll' );
$page_title_default = array(
'color' => '#FFFFFF',
'image' => '',
'repeat' => 'repeat',
'position' => 'top center',
'attachment'=>'scroll' );
$container_defaults = array(
'color' => '#e8e8e8',
'image' => '',
'repeat' => 'repeat',
'position' => 'top center',
'attachment'=>'scroll' );
$content_defaults = array(
'color' => '#FFFFFF',
'image' => '',
'repeat' => 'repeat',
'position' => 'top center',
'attachment'=>'scroll' );
$elements_background_defaults = array(
'color' => '#6d3db5',
'image' => '',
'repeat' => 'repeat',
'position' => 'top center',
'attachment'=>'scroll' );
$widgetable_defaults = array(
'color' => '#FFFFFF',
'image' => '',
'repeat' => 'repeat',
'position' => 'top center',
'attachment'=>'scroll' );
$typography_options = array(
'sizes' => array( '6','12','14','16','20' ),
'faces' => array( 'Verdana' => 'Verdana', 'Arial' => 'Arial' ),
'styles' => array( 'normal' => 'Normal','bold' => 'Bold' ),
'color' => false
);
// Pull all the categories into an array
$options_categories = array();
$options_categories_obj = get_categories();
foreach ($options_categories_obj as $category) {
$options_categories[$category->cat_ID] = $category->cat_name;
}
// Pull all tags into an array
$options_tags = array();
$options_tags_obj = get_tags();
foreach ( $options_tags_obj as $tag ) {
$options_tags[$tag->term_id] = $tag->name;
}
// Pull all the pages into an array
$options_pages = array();
$options_pages_obj = get_pages('sort_column=post_parent,menu_order');
$options_pages[''] = 'Select a page:';
foreach ($options_pages_obj as $page) {
$options_pages[$page->ID] = $page->post_title;
}
$wp_editor_settings = array(
'wpautop' => true, // Default
'textarea_rows' => 5,
'media_buttons' => true,
'tinymce' => array( 'plugins' => 'wordpress' )
);
$options = array();
// GENERAL SETTING
//////////////////////////////////////////////////////////////////////
$options[] = array(
'name' => __('General Settings', 'options_framework_theme'),
'type' => 'heading'
);
$options[] = array(
'name' => __('LOGO', 'options_framework_theme'),
'id' => 'arete_logo_uploader',
'std' => $imagepath . 'arete-logo.png',
'type' => 'upload'
);
$options['arete_copyright'] = array(
'name' => __('COPYRIGHT', 'options_framework_theme'),
'id' => 'arete_copyright',
'std' => '© 2014 Vanilia Studio * Powered by WordPress * Theme: Arete by Vanilia Studio',
'type' => 'editor',
'settings' => $wp_editor_settings
);
// LAYOUT
//////////////////////////////////////////////////////////////////////
$options[] = array(
'name' => __('Layout', 'options_framework_theme'),
'type' => 'heading'
);
$options[] = array(
'name' => __('PAGE', 'options_framework_theme'),
'desc' => __('Select full page, right or left sidebar for all your pages.', 'options_framework_theme'),
'id' => "arete_page_layout",
'std' => "context-left",
'type' => "images",
'options' => array(
'context-full' => $imagepath . '1col.png',
'context-right' => $imagepath . '2cl.png',
'context-left' => $imagepath . '2cr.png'
)
);
$options[] = array(
'name' => __('BLOG', 'options_framework_theme'),
'desc' => __('Select full page, right or left sidebar for your blog pages.', 'options_framework_theme'),
'id' => "arete_blog_layout",
'std' => "context-left",
'type' => "images",
'options' => array(
'context-full' => $imagepath . '1col.png',
'context-right' => $imagepath . '2cl.png',
'context-left' => $imagepath . '2cr.png'
)
);
// BACKGROUNDS
//////////////////////////////////////////////////////////////////////
$options[] = array(
'name' => __('Backgrounds & Borders', 'options_framework_theme'),
'type' => 'heading'
);
$options[] = array(
'name' => __('Header Background', 'options_framework_theme'),
'id' => 'arete_header_background',
'std' => $header_defaults,
'type' => 'background'
);
$options[] = array(
'name' => __('Menu Background', 'options_framework_theme'),
'id' => 'arete_menu_background',
'std' => $menu_defaults,
'type' => 'background'
);
$options[] = array(
'name' => __('Menu Border', 'options_framework_theme'),
'id' => 'arete_menu_border',
'type' => 'color'
);
$options[] = array(
'name' => __('Page Title Background', 'options_framework_theme'),
'id' => 'arete_page_title_background',
'std' => $page_title_default,
'type' => 'background'
);
$options[] = array(
'name' => __('Page Title Border', 'options_framework_theme'),
'id' => 'arete_page_title_border',
'type' => 'color'
);
$options[] = array(
'name' => __('Container Background', 'options_framework_theme'),
'id' => 'arete_container_background',
'std' => $container_defaults,
'type' => 'background'
);
$options[] = array(
'name' => __('Content Background', 'options_framework_theme'),
'id' => 'arete_content_background',
'std' => $content_defaults,
'type' => 'background'
);
$options[] = array(
'name' => __('Elements Background', 'options_framework_theme'),
'desc' => __('Dropdown Submenu, Icons, Buttons.', 'options_framework_theme'),
'id' => 'arete_elements_background',
'std' => $elements_background_defaults,
'type' => 'background'
);
// TYPOGRAPHY
//////////////////////////////////////////////////////////////////////
$options[] = array(
'name' => __('Typography', 'options_framework_theme'),
'type' => 'heading');
$typography_mixed_fonts = array_merge( arete_options_options_typography_get_os_fonts() , arete_options_typography_get_google_fonts() );
asort($typography_mixed_fonts);
$options['site_title_font'] = array(
'name' => __('Website Title Font', 'options_framework_theme'),
'id' => 'arete-site-title-font',
'std' => array('size' => '32px', 'face' => 'Verdana, Geneva, sans-serif'),
'type' => 'typography',
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false,
'color' => false
)
);
$options['header-font'] = array(
'name' => __('Header Font', 'options_framework_theme'),
'id' => 'arete-header-font',
'std' => array('size' => '12px', 'face' => 'Verdana, Geneva, sans-serif', 'color' =>'#cccccc'),
'type' => 'typography',
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false
)
);
$options['header_link_color'] = array(
'name' => __('Header Link Color', 'options_framework_theme'),
"id" => "arete-header-link-color",
"std" => "#8e8e8e",
"type" => "color"
);
$options['header_link_hover_color'] = array(
'name' => __('Header Link Hover Color', 'options_framework_theme'),
"id" => "arete-header-link-hover-color",
"std" => "#afafaf",
"type" => "color"
);
$options['menu_font'] = array(
'name' => __('Menu Font', 'options_framework_theme'),
'id' => 'arete-menu-font',
'std' => array('size' => '16px', 'face' => 'Verdana, Geneva, sans-serif', 'color' => '#8e8e8e'),
'type' => 'typography',
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false,
'color' => true
)
);
$options['menu_hover_color'] = array(
'name' => __('Menu Hover Color', 'options_framework_theme'),
"id" => "arete-menu-hover-color",
"std" => "#afafaf",
"type" => "color"
);
$options['page-title'] = array(
'name' => __('Page Title', 'options_framework_theme'),
'id' => 'arete-page-title-h1',
'std' => array('size' => '52px', 'face' => 'Verdana, Geneva, sans-serif', 'color' =>'#383838'),
'type' => 'typography',
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false
)
);
$options['headline-h1'] = array(
'name' => __('Headline H1', 'options_framework_theme'),
'id' => 'arete-headline-h1',
'std' => array('size' => '42px', 'face' => 'Verdana, Geneva, sans-serif', 'color' =>'#383838'),
'type' => 'typography',
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false
)
);
$options['body_font'] = array(
'name' => __('Body Font', 'options_framework_theme'),
'id' => 'arete-body-font',
'type' => 'typography',
'std' => array('size' => '13px', 'face' => 'Verdana, Geneva, sans-serif', 'color'=> '#3d3d3d'),
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false
)
);
$options['link_color'] = array(
'name' => __('Body Link Color', 'options_framework_theme'),
"id" => "arete-link-color",
"std" => "#6d3db5",
"type" => "color"
);
$options['link_hover_color'] = array(
'name' => __('Body Link Hover Color', 'options_framework_theme'),
"id" => "arete-link-hover-color",
"std" => "#afafaf",
"type" => "color"
);
// Elements Font Color
$options[] = array(
'name' => __('Elements Font Color', 'options_framework_theme'),
'id' => 'arete_elements_font_color',
'std' => '#FFFFFF',
'type' => 'color'
);
$options[] = array(
'name' => __('Elements Link Color', 'options_framework_theme'),
'id' => 'arete_elements_link_color',
'std' => '#FFFFFF',
'type' => 'color'
);
$options[] = array(
'name' => __('Elements Link Hover Color', 'options_framework_theme'),
'id' => 'arete_elements_link_hover_color',
'std' => '#FFFFFF',
'type' => 'color'
);
// WIDGETABLE
//////////////////////////////////////////////////////////////////////
$options[] = array(
'name' => __('Widgetable', 'options_framework_theme'),
'type' => 'heading'
);
// Sidebar 1
$options[] = array(
'name' => __('DISPLAY WIDGET AREA 1', 'options_framework_theme'),
'id' => 'arete_display_first_widget_area',
'std' => '1',
'type' => 'checkbox'
);
$options[] = array(
'name' => __('Widget Area 1 - Background', 'options_framework_theme'),
'id' => 'tw_sidebar_1_background',
'std' => $widgetable_defaults,
'type' => 'background'
);
$options['tw_sidebar_1_font'] = array(
'name' => __('TW Sidebar 1 - Font', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_1_font',
'type' => 'typography',
'std' => array('size' => '13px', 'face' => 'Verdana, Geneva, sans-serif', 'color'=> '#000000'),
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false
)
);
$options['tw_sidebar_1_font_headline'] = array(
'name' => __('TW Sidebar 1 - Headline 1 Font', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_1_headline_font',
'type' => 'typography',
'std' => array('size' => '32px', 'face' => 'Verdana, Geneva, sans-serif', 'color'=> '#000000'),
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false
)
);
$options[] = array(
'name' => __('TW Sidebar 1 - Link Color', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_1_link_color',
'std' => '#afafaf',
'type' => 'color'
);
$options[] = array(
'name' => __('TW Sidebar 1 - Link Hover Color', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_1_link_hover_color',
'std' => '#000000',
'type' => 'color'
);
// Sidebar 2
$options[] = array(
'name' => __('DISPLAY WIDGET AREA 2', 'options_framework_theme'),
'id' => 'arete_display_second_widget_area',
'std' => '1',
'type' => 'checkbox'
);
$options[] = array(
'name' => __('TW Sidebar 2 - Background', 'options_framework_theme'),
'id' => 'tw_sidebar_2_background',
'std' => $widgetable_defaults,
'type' => 'background'
);
$options['tw_sidebar_2_font'] = array(
'name' => __('TW Sidebar 2 - Font', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_2_font',
'type' => 'typography',
'std' => array('size' => '13px', 'face' => 'Verdana, Geneva, sans-serif', 'color'=> '#000000'),
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false
)
);
$options['tw_sidebar_2_font_headline'] = array(
'name' => __('TW Sidebar 2 - Headline 1 Font', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_2_headline_font',
'type' => 'typography',
'std' => array('size' => '32px', 'face' => 'Verdana, Geneva, sans-serif', 'color'=> '#000000'),
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false
)
);
$options[] = array(
'name' => __('TW Sidebar 2 - Link Color', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_2_link_color',
'std' => '#afafaf',
'type' => 'color'
);
$options[] = array(
'name' => __('TW Sidebar 2 - Link Hover Color', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_2_link_hover_color',
'std' => '#000000',
'type' => 'color'
);
// Sidebar 3
$options[] = array(
'name' => __('DISPLAY WIDGET AREA 3', 'options_framework_theme'),
'id' => 'arete_display_third_widget_area',
'std' => '1',
'type' => 'checkbox'
);
$options[] = array(
'name' => __('TW Sidebar 3 - Background', 'options_framework_theme'),
'id' => 'tw_sidebar_3_background',
'std' => $widgetable_defaults,
'type' => 'background'
);
$options['tw_sidebar_3_font'] = array(
'name' => __('TW Sidebar 3 - Font', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_3_font',
'type' => 'typography',
'std' => array('size' => '13px', 'face' => 'Verdana, Geneva, sans-serif', 'color'=> '#000000'),
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false
)
);
$options['tw_sidebar_3_font_headline'] = array(
'name' => __('TW Sidebar 3 - Headline 1 Font', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_3_headline_font',
'type' => 'typography',
'std' => array('size' => '32px', 'face' => 'Verdana, Geneva, sans-serif', 'color'=> '#000000'),
'options' => array(
'faces' => $typography_mixed_fonts,
'styles' => false
)
);
$options[] = array(
'name' => __('TW Sidebar 3 - Link Color', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_3_link_color',
'std' => '#afafaf',
'type' => 'color'
);
$options[] = array(
'name' => __('TW Sidebar 3 - Link Hover Color', 'options_framework_theme'),
'id' => 'arete_tw_sidebar_3_link_hover_color',
'std' => '#000000',
'type' => 'color'
);
// Blog
//////////////////////////////////////////////////////////////////////
$options[] = array(
'name' => __('Blog', 'options_framework_theme'),
'type' => 'heading'
);
$options[] = array(
'name' => __('ONE COLUMN', 'options_framework_theme'),
'desc' => __('Display your blog posts in one column style.', 'options_framework_theme'),
'id' => 'arete_one_coll_blog',
'std' => '1',
'type' => 'checkbox'
);
$options[] = array(
'name' => __('TWO COLUMNS', 'options_framework_theme'),
'desc' => __('Display your blog posts in two columns style.', 'options_framework_theme'),
'id' => 'arete_two_coll_blog',
'std' => '0',
'type' => 'checkbox'
);
$options[] = array(
'name' => __('Author Info', 'options_framework_theme'),
'desc' => __('Display information about the author.', 'options_framework_theme'),
'id' => 'arete_author_info',
'std' => '1',
'type' => 'checkbox'
);
$options[] = array(
'name' => __('Date', 'options_framework_theme'),
'desc' => __('Display date.', 'options_framework_theme'),
'id' => 'arete_date_info',
'std' => '1',
'type' => 'checkbox'
);
return $options;
}
/*
* This is an example of how to add custom scripts to the options panel.
* This example shows/hides an option when a checkbox is clicked.
*/
add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts');
function optionsframework_custom_scripts() { ?>