'No Widgets allowed', 'before_widget' => '', 'after_widget' => '', 'before_title' => '
' . '
'; // Text des E-Mail-Feldes ändern $fields['email'] = ''; // Text des Webseitenfeldes ändern $fields['url'] = '' . '
'; return $fields; } add_filter('comment_form_default_fields','my_fields'); // Comment Form add_action( 'admin_init', 'theme_options_init' );add_action( 'admin_menu', 'theme_options_add_page' ); function theme_options_init(){ register_setting( 'bluniverse_options', 'bluniverse_theme_options', 'bluniverse_validate_options' ); } function bluniverse_version_checker() { $xml = simplexml_load_file('http://fimply.com/themes/bluniverse/updatedata/updates.xml'); $version_online = $xml->build[0]; $version_online_real = $xml->version[0]; $version_changelog = $xml->changelog[0]; include(get_stylesheet_directory() . '/version.php'); if ( $current_version_offline < $version_online ) { echo "". __( 'You are using version', 'Bluniverse' ) ." ";echo $current_version_offline_real;echo ".";echo " ";echo $version_online_real;echo " ". __( 'is now available! Charging you the update as soon as possible. The update process can take several minutes.', 'Bluniverse' ) .""; } else { echo $current_version_offline_real; } } function bluniverse_name() { $xml = simplexml_load_file('http://fimply.com/themes/bluniverse/updatedata/updates.xml'); $version_online = $xml->build[0]; $version_online_real = $xml->version[0]; $version_changelog = $xml->changelog[0]; include(get_stylesheet_directory() . '/version.php'); if ( $current_version_offline < $version_online ) { return "Bluniverse (1)"; } else { return "Bluniverse"; } } function bluniverse_update_button() { $xml = simplexml_load_file('http://fimply.com/themes/bluniverse/updatedata/updates.xml'); $version_online = $xml->build[0]; $version_online_real = $xml->version[0]; $version_changelog = $xml->changelog[0]; include(get_stylesheet_directory() . '/version.php'); $pfad2 = "../wp-content/themes/Bluniverse/update.php"; if ( $current_version_offline < $version_online ) { echo ''.$version_changelog.'
'; } else {} } add_action('admin_menu', 'bluniverse_create_menu'); function bluniverse_create_menu() { $name = bluniverse_name(); //create new top-level menu add_theme_page('Bluniverse Settings', $name, 'administrator', 'bluniverse', 'bluniverse_settings_page'); add_theme_page('Bluniverse Updates', 'Theme Updates' , 'administrator', 'bluniverse-updates', 'bluniverse_updates_page'); //call register settings function add_action( 'admin_init', 'register_mysettings' ); } add_action('admin_menu', 'bluniverse_create_submenu'); function bluniverse_create_submenu() { //create new top-level menu // add_submenu_page('bluniverse', 'Bluniverse Settings', 'Header', 'administrator', 'bluniverse-header', 'bluniverse_header_settings_page'); //call register settings function add_action( 'admin_init', 'register_mysettings' ); } function register_mysettings() { //register our settings register_setting( 'bluniverse-settings-group', 'new_option_name' ); register_setting( 'bluniverse-settings-group', 'some_other_option' ); register_setting( 'bluniverse-settings-group', 'option_etc' ); } function bluniverse_updates_page() { } // ADD OPTIONS add_option('bluniverse_header_heading_1'); add_option('bluniverse_header_heading_2'); add_option('bluniverse_header_heading_2_italic'); add_option('bluniverse_activate_footer'); add_option('bluniverse_header_heading_2_italic'); add_option('bluniverse_footer'); // END function bluniverse_settings_page() { global $select_options, $radio_options; if ( ! isset( $_REQUEST['settings-updated'] ) ) $_REQUEST['settings-updated'] = false; ?>