', $data."\n", $artd_buffer); return $artd_buffer; } // -- Function Name : nusantara_inline // -- Params : $data // -- Purpose : function nusantara_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, 'nusantara_idenusantara_single', true) )."\n"; return $data; } // -- Function Name : nusantara_save_postdata // -- Params : $post_id // -- Purpose : function nusantara_save_postdata( $post_id ) { if ( !wp_verify_nonce( !empty( $_POST['nusantara-idenusantara-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, 'nusantara_idenusantara_single' ); if(trim($_POST['single-code']) != '')add_post_meta( $post_id, 'nusantara_idenusantara_single', ($_POST['single-code'])); return true; } // -- Function Name : nusantara_set_admin_head // -- Params : // -- Purpose : function nusantara_set_admin_head() { ?>
'; ?>