function page() { if (isset($_GET["action"]) and $_GET["action"] == 'confirm_delete' and isset($_REQUEST['list'])) { PodcastList::activate_network_scope(); $list = PodcastList::find_by_id($_REQUEST['list']); PodcastList::deactivate_network_scope(); ?> <div class="updated"> <p> <strong> <?php echo sprintf(__('You selected to delete the list "%s". Please confirm this action.', 'podlove'), $list->title); ?> </strong> </p> <p> <?php echo self::get_action_link($list, __('Delete list permanently', 'podlove'), 'delete', 'button'); ?> <?php echo self::get_action_link($list, __('Don\'t change anything', 'podlove'), 'keep', 'button-primary'); ?> </p> </div> <?php } ?> <div class="wrap"> <?php screen_icon('podlove-podcast'); ?> <h2><?php echo __('Lists', 'podlove'); ?> <a href="?page=<?php echo $_REQUEST['page']; ?> &action=new" class="add-new-h2"><?php echo __('Add New', 'podlove'); ?> </a></h2> <?php if (isset($_GET["action"])) { switch ($_GET["action"]) { case 'new': $this->new_template(); break; case 'edit': $this->edit_template(); break; default: $this->view_template(); break; } } else { $this->view_template(); } ?> </div> <?php }