' . __('Saved!', 'ad-minister') . '

'; $value = $content[$id]; } } else if ($_POST['action'] == 'delete') { $id = $_POST['id']; $content = get_post_meta(get_option('administer_post_id'), 'administer_content', true); $stats = get_post_meta(get_option('administer_post_id'), 'administer_stats', true); if (is_array($stats)) { unset($stats[$id]); update_post_meta(get_option('administer_post_id'), 'administer_stats', $stats); } // Remove the evidence unset($content[$id]); // Save back down update_post_meta(get_option('administer_post_id'), 'administer_content', $content); // Notify echo '

' . __('Deleted!', 'ad-minister') . '

'; } $content = get_post_meta(get_option('administer_post_id'), 'administer_content', true); if (!is_array($content) || empty($content)) echo '

' . __('There is no content! Do make some.', 'ad-minister') . '

'; // Are we editing? if ($_GET['action'] == 'edit') { if (!$value) $value = $content[$_GET['id']]; } else $value = array(); $checked_visible = ($value['visible'] == 'true' || !$value['visible']) ? 'checked="checked"' : ''; $checked_wrap = ($value['wrap'] == 'true' || !$value['wrap']) ? 'checked="checked"' : ''; ?>

Content info:

Create content


(, E.g. 2007-12-01:2008-01-01)
()
()
()

:
*/ ?>