function admin_content() { //parent::admin_content(); echo parent::get_cell_alignment(); echo parent::get_element_margins(); }
$page = $_GET['page']; if (isset($_POST['add_new_template'])) { if (check_admin_referer('save_template')) { if (current_user_can('manage_options') || current_user_can('save_template_cap')) { $templates->add_new_template(); $message = __('Template data has been successfully saved.', 'tc'); } else { $message = __('You do not have required permissions for this action.', 'tc'); } } } if (isset($_GET['action']) && $_GET['action'] == 'edit') { // && check_admin_referer('save_template') $post_id = (int) $_GET['ID']; $template = new TC_Template($post_id); $template_elements = new TC_Ticket_Template_Elements($post_id); $template_elements_set = $template_elements->get_all_set_elements(); } if (isset($_GET['action']) && $_GET['action'] == 'delete') { if (!isset($_POST['_wpnonce'])) { check_admin_referer('delete_' . $_GET['ID']); if (current_user_can('manage_options') || current_user_can('delete_template_cap')) { $template = new TC_Template((int) $_GET['ID']); $template->delete_template(); $message = __('Template has been successfully deleted.', 'tc'); } else { $message = __('You do not have required permissions for this action.', 'tc'); } } } if (isset($_GET['page_num'])) {
function admin_content() { echo $this->get_qr_code_size(); echo parent::get_cell_alignment(); echo parent::get_element_margins(); }