|/'; preg_match($pattern,$tape,$queue); $q = $queue[0]; $q = $q.$body_code->output_body_code(); echo preg_replace($pattern,$q,$tape); } add_action('wp_print_footer_scripts','aFHFCBuffPlay'); $footer_code_prior = get_option('aFhfc_footer_code_priority'); if(!empty($footer_code_prior)){ add_action('wp_footer', array('aFHFCClass','output_footer_code'),$footer_code_prior); } else { add_action('wp_footer', array('aFHFCClass','output_footer_code')); } endif; /* M E T A B O X F O R P O S T S ================================= Metabox w/head & footer fields for all post types (including custom) */ add_action('add_meta_boxes','aFhfc_add'); function aFhfc_add() { if(current_user_can('manage_options')){ $args = array('public'=>true); $post_types = get_post_types($args); add_meta_box('aFhfcMetaBox','Head & Footer Code','aFhfc_mtbx',$post_types,'normal','low'); } } function aFhfc_mtbx($post) { $values = get_post_custom($post->ID); $head_text = isset($values['aFhfc_head_code']) ? esc_attr($values['aFhfc_head_code'][0]) : ''; $head_replace = isset($values['aFhfc_head_replace']) ? esc_attr($values['aFhfc_head_replace'][0]) : ''; $body_text = isset($values['aFhfc_body_code']) ? esc_attr($values['aFhfc_body_code'][0]) : ''; $body_replace = isset($values['aFhfc_body_replace']) ? esc_attr($values['aFhfc_body_replace'][0]) : ''; $footer_text = isset($values['aFhfc_footer_code']) ? esc_attr($values['aFhfc_footer_code'][0]) : ''; $footer_replace = isset($values['aFhfc_footer_replace']) ? esc_attr($values['aFhfc_footer_replace'][0]) : ''; wp_nonce_field('aFhfc_nonce', 'aFhfc_mb_nonce'); ?>

/>

/>

/>