PluginProbe
Front End PM / 7.3
Front End PM v7.3
trunk 1.1 1.2 1.3 10.1.1 10.1.2 10.1.3 10.1.4 10.1.5 10.1.6 10.1.7 10.2.1 11.1.1 11.2.1 11.2.2 11.2.3 11.3.1 11.3.3 11.3.4 11.3.5 11.3.6 11.3.7 11.3.8 11.3.9 11.4.1 All 58 releases
front-end-pm / templates / directory.php

directory.php in Front End PM 7.3, at templates/directory.php

66 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit; // Exit if accessed directly.
5 }
6
7 echo fep_info_output();
8 /*
9 if( ! $total ) {
10 echo "<div class='fep-error'>".apply_filters('fep_filter_directory_empty', __("No users found.", 'front-end-pm') )."</div>";
11 return;
12 }
13 */
14 do_action('fep_display_before_directory' );
15
16 ?><div class="fep-directory-search-form-div">
17 <form id="fep-directory-search-form" action="">
18 <input type="hidden" name="fepaction" value="directory" />
19 <input type="search" name="fep-search" class="fep-directory-search-form-field" value="<?php isset( $_GET["fep-search"] ) ? esc_attr_e( $_GET["fep-search"] ): ""; ?>" placeholder="<?php _e("Search Users", "front-end-pm"); ?>" />
20 <input type="hidden" name="feppage" value="1" />
21 </form>
22 </div>
23 <form class="fep-directory-table form" method="post" action="">
24 <div class="fep-table fep-action-table">
25 <div>
26 <div class="fep-bulk-action">
27 <select name="fep-bulk-action">
28 <option value=""><?php _e('Bulk action', 'front-end-pm'); ?></option>
29 <?php foreach( Fep_Directory::init()->get_table_bulk_actions() as $bulk_action => $bulk_action_display ) { ?>
30 <option value="<?php echo $bulk_action; ?>"><?php echo $bulk_action_display; ?></option>
31 <?php } ?>
32 </select>
33 </div>
34 <div>
35 <input type="hidden" name="token" value="<?php echo fep_create_nonce('directory_bulk_action'); ?>"/>
36 <button type="submit" class="fep-button" name="fep_action" value="directory_bulk_action"><?php _e('Apply', 'front-end-pm'); ?></button>
37 </div>
38 <div class="fep-loading-gif-div">
39 </div>
40 <div class="fep-filter">
41 <select onchange="if (this.value) window.location.href=this.value">
42 <?php foreach( Fep_Directory::init()->get_table_filters() as $filter => $filter_display ) { ?>
43 <option value="<?php echo esc_url( add_query_arg( array('fep-filter' => $filter, 'feppage' => false ) ) ); ?>" <?php selected($g_filter, $filter);?>><?php echo $filter_display; ?></option>
44 <?php } ?>
45 </select>
46 </div>
47 </div>
48 </div>
49 <?php if( $user_query->get_results() ) { ?>
50 <div id="fep-table" class="fep-table fep-odd-even"><?php
51 foreach( $user_query->get_results() as $user ) { ?>
52 <div id="fep-directory-<?php echo $user->ID; ?>" class="fep-table-row"><?php
53 foreach ( Fep_Directory::init()->get_table_columns() as $column => $display ) { ?>
54 <div class="fep-column fep-column-<?php echo $column; ?>"><?php Fep_Directory::init()->get_column_content( $column, $user ); ?></div>
55 <?php } ?>
56 </div>
57 <?php
58 } //endforeach
59 ?></div><?php
60 echo fep_pagination( $total, fep_get_option('user_page', 50 ) );
61 } else {
62 ?><div class="fep-error"><?php _e('No users found. Try different filter.', 'front-end-pm'); ?></div><?php
63 }
64 ?></form>
65 <?php
66