', $data."\n", $artd_buffer); return $artd_buffer; } function krakatau_inline($data) { global $post, $global_styles, $single_styles; if(is_single() or is_page()) $single_styles .= str_replace( '#postid', $post->ID, get_post_meta($post->ID, 'krakatau_ideamdhas_single', true) )."\n"; return $data; } function krakatau_save_postdata( $post_id ) { if ( !wp_verify_nonce( $_POST['krakatau-ideamdhas-nonce'], basename(__FILE__) ) ) return $post_id; if ( 'page' == $_POST['post_type'] ) { if ( !current_user_can( 'edit_page', $post_id ) ) return $post_id; } else { if ( !current_user_can( 'edit_post', $post_id ) ) return $post_id; } delete_post_meta( $post_id, 'krakatau_ideamdhas_single' ); if(trim($_POST['single-code']) != '') add_post_meta( $post_id, 'krakatau_ideamdhas_single', ($_POST['single-code'])); return true; } function krakatau_set_admin_head() { ?>