<?php
/* 
= Move author metabox to publish metabox
* WordPress: 3.3.1
* Version: 1.0
* URL: elbone.com.au
* Files: functions.php
*/

// Remove the author metabox and move dropdown into publish meta box
add_action('admin_init', 'elbone_remove_author_metabox'); // Remove author box in admin
add_action('post_submitbox_misc_actions', 'bv_move_author_to_publish_metabox');  // Move author box in admin
if (!function_exists('elbone_remove_author_metabox')) {
	function elbone_remove_author_metabox() {
		remove_meta_box('authordiv', 'tracks', 'normal');
		remove_meta_box('authordiv', 'clips', 'normal');
	}
}
if (!function_exists('elbone_move_author_to_publish_metabox')) {
    function elbone_move_author_to_publish_metabox() {
        global $post_ID;
        $post = get_post($post_ID);
        echo '<div id="author" style="border-top-style:solid; border-top-width:1px; border-top-color:#dfdfdf; border-bottom-width:0px;">';
        echo '<div class="misc-pub-section" style="border-top-style:solid; border-top-width:1px; border-top-color:#fff; border-bottom-width:0px;">';
        echo 'Author: ';
        post_author_meta_box($post);
        echo '</div>';
        echo '</div>';
    }
}