예제 #1
0
$default['tabber']['status'] = 'yes';
$default['tabber']['popular_num'] = 5;
$default['tabber']['latest_num'] = 5;
$default['tabber']['comments_num'] = 5;
$default['logo']['type'] = 'text_logo';
$default['front_page']['layout'] = 'right-sidebar';
$default['front_page']['categories'] = admin_options::get_categories(6, $exclude);
$default['front_page']['nr_post'] = 6;
$default['logo']['title'] = get_option('blogname');
$default['logo']['description'] = get_option('blogdescription');
$default['social_profiles']['twitter_id'] = 'cosmothemes';
$default['social_profiles']['fb_id'] = '158264557568118';
$default['advertising']['zone_1'] = '';
$default['post_settings']['social_sharing'] = 'yes';
$default['post_settings']['nbr_similar_posts'] = 4;
foreach ($inputs as $group => $inp) {
    if ($group != '_') {
        admin_options::$register['settings'][] = $group;
    }
}
admin_options::$inputs = $inputs;
admin_options::$default = $default;
if (isset($_GET['page']) && $_GET['page'] == 'settings') {
    update_option('blogname', admin_options::get_values('logo', 'title'));
    update_option('blogdescription', admin_options::get_values('logo', 'description'));
} else {
    $antet = get_option('logo');
    $antet['title'] = get_option('blogname');
    $antet['description'] = get_option('blogdescription');
    update_option('logo', $antet);
}