function page_meta_boxes() { global $post; $meta_boxes = tj_page_meta_boxes(); ?> <table class="form-table"> <?php foreach ($meta_boxes as $meta) { $value = get_post_meta($post->ID, $meta['name'], true); if ($meta['type'] == 'text') { get_meta_text_input($meta, $value); } elseif ($meta['type'] == 'textarea') { get_meta_textarea($meta, $value); } elseif ($meta['type'] == 'select') { get_meta_select($meta, $value); } elseif ($meta['type'] == 'mundothemesselect') { get_meta_mundothemesselect($meta, $value); } elseif ($meta['type'] == 'selectadmin') { get_meta_selectadmin($meta, $value); } elseif ($meta['type'] == 'checkbox') { get_meta_checkbox($meta, $value); } elseif ($meta['type'] == 'selectdate') { get_meta_selectgrup($meta, $value); } } ?> </table> <?php }
function post_meta_boxes() { global $post; $meta_boxes = hybrid_post_meta_boxes(); ?> <table class="form-table"> <?php foreach ($meta_boxes as $meta) { $value = get_post_meta($post->ID, $meta['name'], true); if ($meta['type'] == 'text') { get_meta_text_input($meta, $value); } elseif ($meta['type'] == 'heading') { get_meta_heading_post($meta, $value); } elseif ($meta['type'] == 'textarea') { get_meta_textarea($meta, $value); } elseif ($meta['type'] == 'select') { get_meta_select($meta, $value); } elseif ($meta['type'] == 'upload') { get_meta_upload($meta, $value); } } ?> </table> <?php }
/** * Displays page meta boxes. * Gets array from icontrol_page_meta_boxes() */ function page_meta_boxes() { global $post; $meta_boxes = icontrol_page_meta_boxes(); ?> <?php foreach ($meta_boxes as $meta) { $value = stripslashes(get_post_meta($post->ID, $meta['name'], true)); if ($meta['type'] == 'text') { get_meta_text_input($meta, $value); } elseif ($meta['type'] == 'textarea') { get_meta_textarea($meta, $value); } elseif ($meta['type'] == 'select') { get_meta_select($meta, $value); } } ?> <?php }
function page_meta_boxes() { global $post; $meta_boxes = imediapixel_page_meta_boxes(); ?> <table class="form-table"> <?php foreach ($meta_boxes as $meta) { $value = stripslashes(get_post_meta($post->ID, $meta['name'], true)); if ($meta['type'] == 'text') { get_meta_text_input($meta, $value); } elseif ($meta['type'] == 'textarea') { get_meta_textarea($meta, $value); } elseif ($meta['type'] == 'select') { get_meta_select($meta, $value); } elseif ($meta['type'] == 'select_slidehow') { get_meta_select_slideshow($meta, $value); } elseif ($meta['type'] == 'select_sidebar_widget') { get_meta_select_sidebar_widget($meta, $value); } } ?> </table> <?php }