' . __( 'Advanced Font Changer', 'afc_textdomain' ) . '
'; $fontToEdit = ''; $afcFonts = new afcfonts(); if( get_option('afc_font_for_edit') == '' ){ if( isset( $_GET['id'] ) && $_GET['id'] != '' ){ $dbFonts = $afcFonts->getFonts( 'id', array( $_GET['id'] ) ); if( is_array( $dbFonts ) ) foreach( $dbFonts as $key ) if( $key['id'] == $_GET['id'] ){ $fontToEdit = $key; update_option('afc_font_for_edit', $key ); break; } } } else{ $fontToEdit = get_option('afc_font_for_edit'); } if( is_array( $fontToEdit ) && isset( $_GET['action'] ) && $_GET['action'] == 'edit' ){ afc_editfont(); } else{ echo ''; update_option('afc_font_for_edit', '' ); global $afcFontListTable; if( isset( $_POST['s'] ) ){ $afcFontListTable->prepare_items( $_POST['s'] ); } else{ $afcFontListTable->prepare_items(); } ?>
search_box('Search', 'search_id'); $afcFontListTable->display(); ?>
'Fonts', 'default' => 10, 'option' => 'fonts_per_page' ); add_screen_option( $option, $args ); $afcFontListTable = new afc_fontsList(); }