File: /home/mmickelson/theflexguy.com/wp-content/themes/rt_affinity_wp/includes/options_handler.php
<?php
function affinity_options_init() {
$theme = 'affinity';
$new_options = array(
// Style
$theme.'_preset' => 'style1',
$theme.'_mainconstyle' => 'light',
$theme.'_showcasestyle' => 'light',
$theme.'_rightsidebarstyle' => 'light',
// Dimensions
$theme.'_sitewidth' => '979',
$theme.'_mainbody_size' => '699',
$theme.'_maincol_size' => '654',
$theme.'_mainbody_sub_size' => '699',
$theme.'_maincol_sub_size' => '654',
$theme.'_leftsidebar_size' => '210',
$theme.'_rightsidebar_size' => '260',
$theme.'_showcasewidth' => '959',
$theme.'_userwgetwidth' => '313',
// Layout
$theme.'_layout' => 'x-c-s',
$theme.'_layout_sub' => 's-c-x',
$theme.'_leftsidebar' => 'false',
$theme.'_rightsidebar' => 'true',
$theme.'_leftsidebar_sub' => 'true',
$theme.'_rightsidebar_sub' => 'false',
$theme.'_leftsidebar_file' => 'side-left.php',
$theme.'_rightsidebar_file' => 'side-right.php',
$theme.'_leftsidebar_sub_file' => 'side-left-sub.php',
$theme.'_rightsidebar_sub_file' => 'side-right-sub.php',
// Top
$theme.'_search' => 'true',
$theme.'_logo' => 'true',
$theme.'_date' => 'true',
$theme.'_login' => 'true',
// Top Menu
$theme.'_topmen' => 'true',
$theme.'_topmen_home' => 'true',
$theme.'_topmen_sorting' => 'menu_order',
$theme.'_topmen_depth' => '',
// Blog
$theme.'_blogorder' => 'date',
$theme.'_blogcont' => 'content',
$theme.'_blogexclude' => '',
$theme.'_blogmeta' => 'true',
$theme.'_blogmeta_author' => 'true',
$theme.'_blogmeta_date' => 'true',
$theme.'_blogmeta_comment' => 'true',
$theme.'_blogtitle' => 'true',
$theme.'_blogtitle_link' => 'false',
// Single
$theme.'_singletitle' => 'true',
$theme.'_singlemeta' => 'true',
$theme.'_singlemeta_author' => 'true',
$theme.'_singlemeta_date' => 'true',
$theme.'_singlemeta_comment' => 'true',
$theme.'_single_footer' => 'true',
$theme.'_single_tweetmeme' => 'true',
// Page
$theme.'_pagetitle' => 'true',
$theme.'_pagemeta' => 'false',
$theme.'_pagemeta_author' => 'true',
$theme.'_pagemeta_date' => 'true',
$theme.'_pagemeta_comment' => 'true',
$theme.'_page_tweetmeme' => 'false',
// Archive
$theme.'_category_postcount' => '5',
$theme.'_category_contentdis' => 'content',
$theme.'_category_postmeta' => 'true',
$theme.'_category_postmeta_author' => 'true',
$theme.'_category_postmeta_date' => 'true',
$theme.'_category_postmeta_comments' => 'true',
$theme.'_category_titlelink' => 'false',
$theme.'_archive_postcount' => '5',
$theme.'_archive_contentdis' => 'content',
$theme.'_archive_postmeta' => 'true',
$theme.'_archive_postmeta_author' => 'true',
$theme.'_archive_postmeta_date' => 'true',
$theme.'_archive_postmeta_comments' => 'true',
$theme.'_archive_titlelink' => 'false',
$theme.'_tag_postcount' => '5',
$theme.'_tag_contentdis' => 'content',
$theme.'_tag_postmeta' => 'true',
$theme.'_tag_postmeta_author' => 'true',
$theme.'_tag_postmeta_date' => 'true',
$theme.'_tag_postmeta_comments' => 'true',
$theme.'_tag_titlelink' => 'false',
// Search
$theme.'_search_postcount' => '5',
$theme.'_search_contentdis' => 'content',
$theme.'_search_postmeta' => 'true',
$theme.'_search_postmeta_author' => 'true',
$theme.'_search_postmeta_date' => 'true',
$theme.'_search_postmeta_comments' => 'true',
$theme.'_search_titlelink' => 'false',
// Left Front Sidebar Content
$theme.'_leftsidebar_authors' => 'true',
$theme.'_leftsidebar_authors_exadmin' => '0',
$theme.'_leftsidebar_authors_fullname' => '1',
$theme.'_leftsidebar_blogroll' => 'true',
$theme.'_leftsidebar_blogroll_order' => 'name',
$theme.'_leftsidebar_blogroll_limit' => '-1',
$theme.'_leftsidebar_blogroll_categorize' => '0',
$theme.'_leftsidebar_blogroll_category' => '',
$theme.'_leftsidebar_meta' => 'true',
// Right Front Sidebar Content
$theme.'_rightsidebar_categories' => 'true',
$theme.'_rightsidebar_categories_order' => 'name',
$theme.'_rightsidebar_categories_empty' => '1',
$theme.'_rightsidebar_archives' => 'true',
$theme.'_rightsidebar_archives_type' => 'monthly',
$theme.'_rightsidebar_archives_limit' => '12',
$theme.'_rightsidebar_tags' => 'true',
$theme.'_rightsidebar_tags_order' => 'name',
// Left Sub Sidebar Content
$theme.'_leftsidebar_sub_categories' => 'true',
$theme.'_leftsidebar_sub_categories_order' => 'name',
$theme.'_leftsidebar_sub_categories_empty' => '1',
$theme.'_leftsidebar_sub_archives' => 'true',
$theme.'_leftsidebar_sub_archives_type' => 'monthly',
$theme.'_leftsidebar_sub_archives_limit' => '12',
$theme.'_leftsidebar_sub_tags' => 'true',
$theme.'_leftsidebar_sub_tags_order' => 'name',
// Right Sub Sidebar Content
$theme.'_rightsidebar_sub_authors' => 'true',
$theme.'_rightsidebar_sub_authors_exadmin' => '0',
$theme.'_rightsidebar_sub_authors_fullname' => '1',
$theme.'_rightsidebar_sub_blogroll' => 'true',
$theme.'_rightsidebar_sub_blogroll_order' => 'name',
$theme.'_rightsidebar_sub_blogroll_limit' => '-1',
$theme.'_rightsidebar_sub_blogroll_categorize' => '0',
$theme.'_rightsidebar_sub_blogroll_category' => '',
$theme.'_rightsidebar_sub_meta' => 'true',
// Footer
$theme.'_footer_blogroll' => 'true',
$theme.'_footer_blogroll_order' => 'name',
$theme.'_footer_blogroll_limit' => '-1',
$theme.'_footer_blogroll_category' => '',
$theme.'_copyright' => 'true',
$theme.'_copyright_text' => '© Copyright 2009, All Rights Reserved',
$theme.'_rocketlogo' => 'true',
// Widget Variations
$theme.'_user1style' => 'medium',
$theme.'_user2style' => 'dark',
$theme.'_user3style' => 'light',
$theme.'_user4style' => 'dark',
$theme.'_user5style' => 'light',
$theme.'_user6style' => 'medium',
$theme.'_user7style' => 'dark',
// Other
$theme.'_dateformat' => 'l, M d, Y',
$theme.'_fface' => 'ff-affinity',
$theme.'_fsize' => 'f-default',
$theme.'_breadcrumbs' => 'true',
$theme.'_ie_warning' => 'true',
// RokBox
'rokbox_enabled' => 'true',
'rokbox_style' => 'light'
);
add_option( 'affinity-options', $new_options );
}
add_action('init', 'affinity_options_init');
function register_affinity_settings() {
register_setting('affinity-options-array', 'affinity-options');
}
if (is_admin()){
add_action( 'admin_init', 'register_affinity_settings' );
}
?>