c044a1bb by Jeff Balicki

sss

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 6060f08c
...@@ -210,6 +210,9 @@ if ( ( ( $search && $show_search ) || ( $filters && $show_filters && count( $sea ...@@ -210,6 +210,9 @@ if ( ( ( $search && $show_search ) || ( $filters && $show_filters && count( $sea
210 } 210 }
211 } ?> 211 } ?>
212 212
213
214
215
213 <div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( substr( md5( $form_id ), 10, 5 ) ); ?>" 216 <div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( substr( md5( $form_id ), 10, 5 ) ); ?>"
214 data-hash="<?php echo esc_attr( substr( md5( $form_id ), 10, 5 ) ) ?>" data-base-post="<?php echo esc_attr( $post->ID ) ?>" 217 data-hash="<?php echo esc_attr( substr( md5( $form_id ), 10, 5 ) ) ?>" data-base-post="<?php echo esc_attr( $post->ID ) ?>"
215 data-must-search="<?php echo esc_attr( $must_search ); ?>" data-searched="<?php echo $not_searched ? '0' : '1'; ?>" 218 data-must-search="<?php echo esc_attr( $must_search ); ?>" data-searched="<?php echo $not_searched ? '0' : '1'; ?>"
......
...@@ -14833,7 +14833,7 @@ h1 + p, .h1 + p { ...@@ -14833,7 +14833,7 @@ h1 + p, .h1 + p {
14833 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.432' height='11.567' viewBox='0 0 19.432 11.567'%3E%3Cpath id='Path_1875' data-name='Path 1875' d='M395.235 274.525a1.19 1.19 0 0 0 1.681.063l9.188-8.526a1.19 1.19 0 0 0 0-1.744l-9.187-8.526a1.19 1.19 0 1 0-1.619 1.744l8.248 7.654-8.248 7.654a1.19 1.19 0 0 0-.063 1.681Z' transform='translate(274.905 -394.917) rotate(90)' fill='%231A3668'/%3E%3C/svg%3E"); 14833 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.432' height='11.567' viewBox='0 0 19.432 11.567'%3E%3Cpath id='Path_1875' data-name='Path 1875' d='M395.235 274.525a1.19 1.19 0 0 0 1.681.063l9.188-8.526a1.19 1.19 0 0 0 0-1.744l-9.187-8.526a1.19 1.19 0 1 0-1.619 1.744l8.248 7.654-8.248 7.654a1.19 1.19 0 0 0-.063 1.681Z' transform='translate(274.905 -394.917) rotate(90)' fill='%231A3668'/%3E%3C/svg%3E");
14834 } 14834 }
14835 14835
14836 .glyphicon-chevron-down::after { 14836 .um-member-directory-filters-visible a .glyphicon-chevron-up::after {
14837 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.631' height='11.905' viewBox='0 0 19.631 11.905'%3E%3Cpath id='Path_1875' data-name='Path 1875' d='M395.235 274.525a1.19 1.19 0 0 0 1.681.063l9.188-8.526a1.19 1.19 0 0 0 0-1.744l-9.187-8.526a1.19 1.19 0 1 0-1.619 1.744l8.248 7.654-8.248 7.654a1.19 1.19 0 0 0-.063 1.681Z' transform='matrix(-0.017 -1 1 -0.017 -248.34 411.22)' fill='%231A3668'/%3E%3C/svg%3E"); 14837 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.631' height='11.905' viewBox='0 0 19.631 11.905'%3E%3Cpath id='Path_1875' data-name='Path 1875' d='M395.235 274.525a1.19 1.19 0 0 0 1.681.063l9.188-8.526a1.19 1.19 0 0 0 0-1.744l-9.187-8.526a1.19 1.19 0 1 0-1.619 1.744l8.248 7.654-8.248 7.654a1.19 1.19 0 0 0-.063 1.681Z' transform='matrix(-0.017 -1 1 -0.017 -248.34 411.22)' fill='%231A3668'/%3E%3C/svg%3E");
14838 } 14838 }
14839 14839
...@@ -14856,6 +14856,32 @@ h1 + p, .h1 + p { ...@@ -14856,6 +14856,32 @@ h1 + p, .h1 + p {
14856 flex: unset !important; 14856 flex: unset !important;
14857 } 14857 }
14858 14858
14859 .um-faicon-angle-left:before {
14860 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9.095' height='15' viewBox='0 0 9.095 15'%3E%3Cpath id='Path_1291' data-name='Path 1291' d='M7.515 5.543c.52-.526 1.03-1.048 1.546-1.564Q10.918 2.123 12.779.272a.834.834 0 0 1 1.232 0c.236.242.477.479.716.718a.817.817 0 0 1 0 1.222L11.379 5.557Q9.758 7.18 8.138 8.8a.9.9 0 0 1-.606.289.864.864 0 0 1-.667-.288Q5.614 7.551 4.363 6.3L.956 2.889c-.232-.232-.465-.463-.7-.7A.812.812 0 0 1 .269.993l.71-.71a.833.833 0 0 1 1.25 0l3.016 3L7.429 5.462Z' transform='translate(9.095) rotate(90)' fill='%231A3668'/%3E%3C/svg%3E") !important;
14861 }
14862
14863 .um-faicon-angle-right:before {
14864 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9.095' height='15' viewBox='0 0 9.095 15'%3E%3Cpath id='Path_1369' data-name='Path 1369' d='M7.515 3.553c.52.526 1.03 1.048 1.546 1.564q1.857 1.856 3.718 3.708a.834.834 0 0 0 1.232 0c.236-.242.477-.479.716-.718a.817.817 0 0 0 0-1.222L11.379 3.538Q9.758 1.915 8.138.29A.9.9 0 0 0 7.532 0a.864.864 0 0 0-.667.288Q5.614 1.544 4.363 2.8L.956 6.207c-.232.232-.465.463-.7.7A.812.812 0 0 0 .269 8.1l.71.71a.833.833 0 0 0 1.25 0l3.016-3L7.429 3.634Z' transform='translate(9.095) rotate(90)' fill='%231A3668'/%3E%3C/svg%3E") !important;
14865 }
14866
14867 .um-directory .um-members-pagination-box .um-members-pagi .pagi.current {
14868 border-color: #fff !important;
14869 background-color: #fff !important;
14870 color: #3eaf49 !important;
14871 font-weight: 800 !important;
14872 }
14873
14874 .um-directory .um-members-pagination-box .um-members-pagi .pagi.current span {
14875 border-color: #fff !important;
14876 background-color: #fff !important;
14877 color: #3eaf49 !important;
14878 font-weight: 800 !important;
14879 }
14880
14881 .pagi span {
14882 color: #2c2c2c !important;
14883 }
14884
14859 .entry-content .is-layout-constrained.wp-block-group { 14885 .entry-content .is-layout-constrained.wp-block-group {
14860 box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137); 14886 box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
14861 padding: 40px 32px; 14887 padding: 40px 32px;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -166,6 +166,3 @@ function is_valid_email_domain($login, $email, $errors ){ ...@@ -166,6 +166,3 @@ function is_valid_email_domain($login, $email, $errors ){
166 } 166 }
167 } 167 }
168 add_action('register_post', 'is_valid_email_domain',10,3 ); 168 add_action('register_post', 'is_valid_email_domain',10,3 );
169
170
171
......
...@@ -8,37 +8,15 @@ add_shortcode('members-list', 'members_list'); ...@@ -8,37 +8,15 @@ add_shortcode('members-list', 'members_list');
8 function members_list(){ 8 function members_list(){
9 9
10 try{ 10 try{
11 $atts['tax'] = 1;
12 $args['filters'] = 1;
13 $args['search_fields'][0] = "department_branch";
14 $show_filters = empty( $args['roles_can_filter'] ) || ( ! empty( $priority_user_role ) && in_array( $priority_user_role, $args['roles_can_filter'] ) );
15 $search_filters = array();
16 if ( isset( $args['search_fields'] ) ) {
17 $search_filters = apply_filters( 'um_frontend_member_search_filters', array_unique( array_filter( $args['search_fields'] ) ) );
18 }
19
20 if ( ! empty( $search_filters ) ) {
21 $search_filters = array_filter( $search_filters, function( $item ) {
22 return in_array( $item, array_keys( UM()->member_directory()->filter_fields ) );
23 });
24
25 $search_filters = array_values( $search_filters );
26 }
27 11
28 $custom_args = array(
29 'post_type' => 'attachment',
30 'posts_per_page' => -1,
31 'paged' => 1,
32 'post_status' => 'any',
33 'order' => 'DESC',
34 'orderby' => 'rand',
35 12
36 ); 13 $custom_args = array( 'number' => -1 );
37 $custom_query = new \WP_Query($custom_args);
38 14
15 $custom_query = new \WP_User_Query($custom_args);
16 $members = $custom_query->get_results();
39 ob_start(); 17 ob_start();
40 $uniqid = uniqid(); 18 $uniqid = uniqid();
41 if ($custom_query->have_posts()): 19 if (!empty($members)):
42 ?> 20 ?>
43 <div class="course-list resources"> 21 <div class="course-list resources">
44 <label for="quicksearch">Search:</label><input type="text" id="quicksearch" placeholder="" /> 22 <label for="quicksearch">Search:</label><input type="text" id="quicksearch" placeholder="" />
...@@ -47,25 +25,9 @@ function members_list(){ ...@@ -47,25 +25,9 @@ function members_list(){
47 <div class="filter-group"> 25 <div class="filter-group">
48 <div class="category-filter-group "> 26 <div class="category-filter-group ">
49 <div class="category"> 27 <div class="category">
50 <?php $i = 0; 28 <?php $terms = get_post_meta('437','_um_custom_fields', true);
51 foreach ( $search_filters as $filter ) { 29 foreach($terms['department_branch']['options'] as $term){ ?>
52 error_log(print_r($filter, true)); 30 <div class="category-filter"> <input id="<?php echo $term ; ?>" value="<?php echo $term ; ?>" type="checkbox" class="sr-only"><label for="<?php echo $term; ?>"><?php echo $term; ?></label></div>
53 $filter_content = UM()->member_directory()->show_filter( $filter, $args );
54 if ( empty( $filter_content ) ) {
55 continue;
56 }
57
58 $type = UM()->member_directory()->filter_types[ $filter ]; ?>
59
60 <div class="um-search-filter um-<?php echo esc_attr( $type ) ?>-filter-type <?php echo ( $i != 0 && $i%2 !== 0 ) ? 'um-search-filter-2' : '' ?>">
61 <?php echo $filter_content; ?>
62 </div>
63
64 <?php $i++;
65 } ?>
66 <?php $terms = get_terms( array( 'taxonomy' => 'mlo-category' ) );
67 foreach($terms as $term){ ?>
68 <div class="category-filter"> <input id="<?php echo $term->slug ; ?>" value="<?php echo $term->slug ; ?>" type="checkbox" class="sr-only"><label for="<?php echo $term->slug ; ?>"><?php echo $term->name ; ?></label></div>
69 <?php }; ?> 31 <?php }; ?>
70 </div> 32 </div>
71 </div> 33 </div>
...@@ -80,9 +42,9 @@ function members_list(){ ...@@ -80,9 +42,9 @@ function members_list(){
80 <table id="resources"> 42 <table id="resources">
81 <thead><tr><th class="hidden"></th><th></th><th class="hidden"></th><th></th></tr></thead> 43 <thead><tr><th class="hidden"></th><th></th><th class="hidden"></th><th></th></tr></thead>
82 <tbody> 44 <tbody>
83 <?php while ($custom_query->have_posts()): $custom_query->the_post(); 45 <?php foreach ($members as $members):
84 echo members(get_the_ID()); 46 echo members($members->ID);
85 endwhile; ?> 47 endforeach; ?>
86 </tbody> 48 </tbody>
87 </table> 49 </table>
88 </div> 50 </div>
...@@ -92,7 +54,7 @@ function members_list(){ ...@@ -92,7 +54,7 @@ function members_list(){
92 return $output; 54 return $output;
93 55
94 }catch(Throwable $e) { 56 }catch(Throwable $e) {
95 error_log("resources_list()". $e->getMessage()) ; 57 error_log("members_list()". $e->getMessage()) ;
96 } 58 }
97 59
98 } 60 }
...@@ -100,7 +62,7 @@ function members_list(){ ...@@ -100,7 +62,7 @@ function members_list(){
100 62
101 63
102 64
103 function members($id, $tax){ 65 function members($id){
104 66
105 ob_start(); 67 ob_start();
106 $post = get_post($id); 68 $post = get_post($id);
...@@ -109,13 +71,7 @@ function members($id, $tax){ ...@@ -109,13 +71,7 @@ function members($id, $tax){
109 $text = wp_trim_words( $text, $excerpt_length, ' ...' ); 71 $text = wp_trim_words( $text, $excerpt_length, ' ...' );
110 $categories = get_the_terms( $id, 'mlo-category' ); 72 $categories = get_the_terms( $id, 'mlo-category' );
111 $cat =""; 73 $cat ="";
112 if(is_array( $categories)){ 74 ?>
113 foreach( $categories as $category ) {
114 if($category->parent == $tax){
115 $cat .= " ".$category->slug;
116 }
117 };
118 } ?>
119 75
120 <tr class="table-like__item"> 76 <tr class="table-like__item">
121 <td class="item"><div class="item-content"><a target="_blank" role="button" href="<?php echo wp_get_attachment_url($id); ?>"><?php echo $post->post_title; ?></a><div> 77 <td class="item"><div class="item-content"><a target="_blank" role="button" href="<?php echo wp_get_attachment_url($id); ?>"><?php echo $post->post_title; ?></a><div>
......
...@@ -25030,16 +25030,12 @@ ...@@ -25030,16 +25030,12 @@
25030 }; 25030 };
25031 }); 25031 });
25032 $$1(document).ready(function ($) { 25032 $$1(document).ready(function ($) {
25033 var timerid; 25033 // $(document).on("click", ".um-member-directory-filters-a", function(e) {
25034 $("#quicksearch").on("input", function (e) { 25034 // $('#department_branch').select2('destroy');
25035 var value = $(this).val(); 25035 // });
25036 if ($(this).data("lastval") != value) { 25036
25037 $(this).data("lastval", value); 25037 $("#quicksearch.um-search-line").keyup(function () {
25038 clearTimeout(timerid);
25039 timerid = setTimeout(function () {
25040 $('.um-do-search.um-button').click(); 25038 $('.um-do-search.um-button').click();
25041 }, 500);
25042 }
25043 }); 25039 });
25044 }); 25040 });
25045 25041
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -88,6 +88,12 @@ jQuery(document).ready(function($) { ...@@ -88,6 +88,12 @@ jQuery(document).ready(function($) {
88 $('.filter-group').toggleClass('open'); 88 $('.filter-group').toggleClass('open');
89 var span = $(this).find('.glyphicon'); 89 var span = $(this).find('.glyphicon');
90 span.toggleClass('glyphicon-chevron-up glyphicon-chevron-down'); 90 span.toggleClass('glyphicon-chevron-up glyphicon-chevron-down');
91
92
91 }); 93 });
92 94
95
96
97
98
93 }); 99 });
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -38,18 +38,15 @@ document.addEventListener("DOMContentLoaded", function() { ...@@ -38,18 +38,15 @@ document.addEventListener("DOMContentLoaded", function() {
38 }); 38 });
39 39
40 jQuery(document).ready(function($) { 40 jQuery(document).ready(function($) {
41 var timerid;
42 $("#quicksearch").on("input", function(e) {
43 var value = $(this).val();
44 if ($(this).data("lastval") != value) {
45 41
46 $(this).data("lastval", value); 42 // $(document).on("click", ".um-member-directory-filters-a", function(e) {
47 clearTimeout(timerid); 43 // $('#department_branch').select2('destroy');
44 // });
48 45
49 timerid = setTimeout(function() { 46 $("#quicksearch.um-search-line").keyup(function() {
50 $('.um-do-search.um-button').click(); 47 $('.um-do-search.um-button').click();
51 }, 500); 48
52 }; 49
53 }); 50 });
54 }); 51 });
55 52
......
...@@ -173,9 +173,13 @@ ...@@ -173,9 +173,13 @@
173 .glyphicon-chevron-up::after { 173 .glyphicon-chevron-up::after {
174 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.432' height='11.567' viewBox='0 0 19.432 11.567'%3E%3Cpath id='Path_1875' data-name='Path 1875' d='M395.235 274.525a1.19 1.19 0 0 0 1.681.063l9.188-8.526a1.19 1.19 0 0 0 0-1.744l-9.187-8.526a1.19 1.19 0 1 0-1.619 1.744l8.248 7.654-8.248 7.654a1.19 1.19 0 0 0-.063 1.681Z' transform='translate(274.905 -394.917) rotate(90)' fill='%231A3668'/%3E%3C/svg%3E"); 174 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.432' height='11.567' viewBox='0 0 19.432 11.567'%3E%3Cpath id='Path_1875' data-name='Path 1875' d='M395.235 274.525a1.19 1.19 0 0 0 1.681.063l9.188-8.526a1.19 1.19 0 0 0 0-1.744l-9.187-8.526a1.19 1.19 0 1 0-1.619 1.744l8.248 7.654-8.248 7.654a1.19 1.19 0 0 0-.063 1.681Z' transform='translate(274.905 -394.917) rotate(90)' fill='%231A3668'/%3E%3C/svg%3E");
175 } 175 }
176 .glyphicon-chevron-down::after { 176 .um-member-directory-filters-visible{
177 a{
178 .glyphicon-chevron-up::after {
177 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.631' height='11.905' viewBox='0 0 19.631 11.905'%3E%3Cpath id='Path_1875' data-name='Path 1875' d='M395.235 274.525a1.19 1.19 0 0 0 1.681.063l9.188-8.526a1.19 1.19 0 0 0 0-1.744l-9.187-8.526a1.19 1.19 0 1 0-1.619 1.744l8.248 7.654-8.248 7.654a1.19 1.19 0 0 0-.063 1.681Z' transform='matrix(-0.017 -1 1 -0.017 -248.34 411.22)' fill='%231A3668'/%3E%3C/svg%3E"); 179 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.631' height='11.905' viewBox='0 0 19.631 11.905'%3E%3Cpath id='Path_1875' data-name='Path 1875' d='M395.235 274.525a1.19 1.19 0 0 0 1.681.063l9.188-8.526a1.19 1.19 0 0 0 0-1.744l-9.187-8.526a1.19 1.19 0 1 0-1.619 1.744l8.248 7.654-8.248 7.654a1.19 1.19 0 0 0-.063 1.681Z' transform='matrix(-0.017 -1 1 -0.017 -248.34 411.22)' fill='%231A3668'/%3E%3C/svg%3E");
178 } 180 }
181 }
182 }
179 183
180 .um-directory .um-member-directory-header .um-member-directory-header-row.um-member-directory-search-row{ 184 .um-directory .um-member-directory-header .um-member-directory-header-row.um-member-directory-search-row{
181 justify-content: flex-start !important; 185 justify-content: flex-start !important;
...@@ -194,3 +198,26 @@ ...@@ -194,3 +198,26 @@
194 .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-search-line label{ 198 .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-search-line label{
195 flex:unset !important; 199 flex:unset !important;
196 } 200 }
201 .um-faicon-angle-left:before{
202 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9.095' height='15' viewBox='0 0 9.095 15'%3E%3Cpath id='Path_1291' data-name='Path 1291' d='M7.515 5.543c.52-.526 1.03-1.048 1.546-1.564Q10.918 2.123 12.779.272a.834.834 0 0 1 1.232 0c.236.242.477.479.716.718a.817.817 0 0 1 0 1.222L11.379 5.557Q9.758 7.18 8.138 8.8a.9.9 0 0 1-.606.289.864.864 0 0 1-.667-.288Q5.614 7.551 4.363 6.3L.956 2.889c-.232-.232-.465-.463-.7-.7A.812.812 0 0 1 .269.993l.71-.71a.833.833 0 0 1 1.25 0l3.016 3L7.429 5.462Z' transform='translate(9.095) rotate(90)' fill='%231A3668'/%3E%3C/svg%3E") !important;
203 }
204 .um-faicon-angle-right:before{
205 content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9.095' height='15' viewBox='0 0 9.095 15'%3E%3Cpath id='Path_1369' data-name='Path 1369' d='M7.515 3.553c.52.526 1.03 1.048 1.546 1.564q1.857 1.856 3.718 3.708a.834.834 0 0 0 1.232 0c.236-.242.477-.479.716-.718a.817.817 0 0 0 0-1.222L11.379 3.538Q9.758 1.915 8.138.29A.9.9 0 0 0 7.532 0a.864.864 0 0 0-.667.288Q5.614 1.544 4.363 2.8L.956 6.207c-.232.232-.465.463-.7.7A.812.812 0 0 0 .269 8.1l.71.71a.833.833 0 0 0 1.25 0l3.016-3L7.429 3.634Z' transform='translate(9.095) rotate(90)' fill='%231A3668'/%3E%3C/svg%3E") !important;
206 }
207
208 .um-directory .um-members-pagination-box .um-members-pagi .pagi.current{
209 border-color: #fff !important;
210 background-color: #fff !important;
211 color: #3eaf49 !important;
212 font-weight: 800 !important;
213 }
214 .um-directory .um-members-pagination-box .um-members-pagi .pagi.current span{
215 border-color: #fff !important;
216 background-color: #fff !important;
217 color: #3eaf49 !important;
218 font-weight: 800 !important;
219 }
220 .pagi span{
221 color: #2c2c2c !important;
222
223 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
5 Author: the Understrap Contributors 5 Author: the Understrap Contributors
6 Author URI: https://github.com/understrap/understrap-child/graphs/contributors 6 Author URI: https://github.com/understrap/understrap-child/graphs/contributors
7 Template: understrap 7 Template: understrap
8 Version: 1.2.0026 8 Version: 1.2.0027
9 License: GNU General Public License v2 or later 9 License: GNU General Public License v2 or later
10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
11 Text Domain: understrap-child 11 Text Domain: understrap-child
......
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?> 1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2 <style>
2 3
4 </style>
3 5
4 <script type="text/template" id="tmpl-um-members-pagination"> 6 <script type="text/template" id="tmpl-um-members-pagination">
5 <# if ( data.pagination.pages_to_show.length > 0 ) { #> 7 <# if ( data.pagination.pages_to_show.length > 0 ) { #>
...@@ -13,15 +15,18 @@ ...@@ -13,15 +15,18 @@
13 </div> 15 </div>
14 16
15 <div class="um-members-pagi uimob340-hide uimob500-hide"> 17 <div class="um-members-pagi uimob340-hide uimob500-hide">
16 <span class="pagi pagi-arrow <# if ( data.pagination.current_page == 1 ) { #>disabled<# } #>" data-page="first" aria-label="<?php esc_attr_e( 'First page', 'ultimate-member' ); ?>"><i class="um-faicon-angle-double-left"></i></span> 18
17 <span class="pagi pagi-arrow <# if ( data.pagination.current_page == 1 ) { #>disabled<# } #>" data-page="prev" aria-label="<?php esc_attr_e( 'Previous page', 'ultimate-member' ); ?>"><i class="um-faicon-angle-left"></i></span> 19 <span class="pagi pagi-arrow <# if ( data.pagination.current_page == 1 ) { #>disabled<# } #>" data-page="prev" aria-label="<?php esc_attr_e( 'Previous page', 'ultimate-member' ); ?>">
20 <i class="um-faicon-angle-left"></i></span>
18 21
19 <# _.each( data.pagination.pages_to_show, function( page, key, list ) { #> 22 <# _.each( data.pagination.pages_to_show, function( page, key, list ) { #>
20 <span class="pagi <# if ( page == data.pagination.current_page ) { #>current<# } #>" data-page="{{{page}}}">{{{page}}}</span> 23 <span class="pagi <# if ( page == data.pagination.current_page ) { #>current<# } #>" data-page="{{{page}}}"><span>{{{page}}}</span></span>
21 <# }); #> 24 <# }); #>
22 25
23 <span class="pagi pagi-arrow <# if ( data.pagination.current_page == data.pagination.total_pages ) { #>disabled<# } #>" data-page="next" aria-label="<?php esc_attr_e( 'Next page', 'ultimate-member' ); ?>"><i class="um-faicon-angle-right"></i></span> 26 <span class="pagi pagi-arrow <# if ( data.pagination.current_page == data.pagination.total_pages ) { #>disabled<# } #>" data-page="next" aria-label="<?php esc_attr_e( 'Next page', 'ultimate-member' ); ?>">
24 <span class="pagi pagi-arrow <# if ( data.pagination.current_page == data.pagination.total_pages ) { #>disabled<# } #>" data-page="last" aria-label="<?php esc_attr_e( 'Last page', 'ultimate-member' ); ?>"><i class="um-faicon-angle-double-right"></i></span> 27 <i class="um-faicon-angle-right"></i></span>
28
25 </div> 29 </div>
26 <# } #> 30 <# } #>
27 </script> 31 </script>
32
......