function Main() { global $flutter_domain; ?> <div class="wrap"> <h2><?php _e('Create Custom Write Panel', $flutter_domain); ?> </h2> <form action="<?php echo RCCWP_ManagementPage::GetCustomWritePanelGenericUrl('finish-create-custom-write-panel'); ?> " method="post" id="create-new-write-panel-form"> <?php RCCWP_CustomWritePanelPage::Content(); ?> <p class="submit" > <a style="color:black" href="<?php echo RCCWP_ManagementPage::GetCustomWritePanelGenericUrl('cancel-create-custom-write-panel'); ?> " class="button"><?php _e('Cancel'); ?> </a> <input type="submit" id="finish-create-custom-write-panel" value="<?php _e('Finish'); ?> " /> </p> </form> </div> <br /> <a href="http://flutter.freshout.us"><img src="<?php echo FLUTTER_URI . "/images/flutter_logo.jpg"; ?> " /></a> <?php }
public static function Main() { global $mf_domain; ?> <div class="wrap"> <h2><?php _e('Create Custom Write Panel', $mf_domain); ?> </h2> <form action="<?php echo RCCWP_ManagementPage::GetCustomWritePanelGenericUrl('finish-create-custom-write-panel'); ?> " method="post" id="create-new-write-panel-form"> <?php wp_nonce_field('finish-create-custom-write-panel'); ?> <?php RCCWP_CustomWritePanelPage::Content(); ?> <p class="submit" > <a style="color:black" href="<?php echo RCCWP_ManagementPage::GetCustomWritePanelGenericUrl('cancel-create-custom-write-panel'); ?> " class="button"><?php _e('Cancel'); ?> </a> <input type="submit" id="finish-create-custom-write-panel" value="<?php _e('Finish'); ?> " /> </p> </form> </div> <br /> <?php }
function Edit() { global $mf_domain; $customWritePanel = RCCWP_CustomWritePanel::Get((int) $_REQUEST['custom-write-panel-id']); ?> <div class="wrap"> <h2><?php _e('Edit', $mf_domain); ?> <?php echo $customWritePanel->name; ?> <?php _e('Write Panel', $mf_domain); ?> </h2> <form action="<?php echo RCCWP_ManagementPage::GetCustomWritePanelGenericUrl('submit-edit-custom-write-panel'); ?> " method="post" id="submit-edit-custom-write-panel"> <?php RCCWP_CustomWritePanelPage::Content($customWritePanel); ?> <p class="submit" > <a style="color:black" href="<?php echo RCCWP_ManagementPage::GetCustomWritePanelGenericUrl('cancel-edit-custom-write-panel'); ?> " class="button"><?php _e('Cancel', $mf_domain); ?> </a> <input type="submit" id="submit-edit-custom-write-panel" value="<?php _e('Update', $mf_domain); ?> " /> </p> </form> </div> <?php }