da698fa1 by Jeremy Groot

Merge branch 'master' of git.gotenzing.com:Jeremy/stellervista-Intranet

2 parents 3317f0bd 3f527696
...@@ -15268,6 +15268,14 @@ td.hidden { ...@@ -15268,6 +15268,14 @@ td.hidden {
15268 .table-like__item a:hover { 15268 .table-like__item a:hover {
15269 text-decoration: underline; 15269 text-decoration: underline;
15270 } 15270 }
15271 .table-like__item .flag {
15272 margin-top: 5px;
15273 transform-origin: center;
15274 }
15275 .table-like__item .flag:hover {
15276 color: #000;
15277 transform: scale(1.1);
15278 }
15271 .table-like__item .button { 15279 .table-like__item .button {
15272 all: unset; 15280 all: unset;
15273 cursor: pointer; 15281 cursor: pointer;
...@@ -15349,6 +15357,53 @@ p.intro { ...@@ -15349,6 +15357,53 @@ p.intro {
15349 max-width: 600px; 15357 max-width: 600px;
15350 } 15358 }
15351 15359
15360 .flag-modal .modal-dialog {
15361 max-width: 600px !important;
15362 margin: auto;
15363 }
15364 @media only screen and (max-width: 600px) {
15365 .flag-modal .modal-dialog {
15366 margin: 20px 10px;
15367 }
15368 }
15369 .flag-modal .modal-title {
15370 color: #1A3668;
15371 }
15372 .flag-modal .modal-header {
15373 border-bottom: 0px solid #1A3668;
15374 }
15375 .flag-modal .btn-close {
15376 transform-origin: center;
15377 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22.828' height='22.828' viewBox='0 0 22.828 22.828'%3E%3Cg id='btn_close_modal' data-name='btn_close modal' transform='translate(1.414 1.414)'%3E%3Cline id='Line_14' data-name='Line 14' x2='28.284' transform='translate(0) rotate(45)' fill='none' stroke='%231A3668' stroke-linecap='round' stroke-width='2'/%3E%3Cline id='Line_15' data-name='Line 15' x2='28.284' transform='translate(20 0) rotate(135)' fill='none' stroke='%231A3668' stroke-linecap='round' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E") !important;
15378 }
15379 .flag-modal .btn-close:hover {
15380 transform: scale(1.1);
15381 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22.828' height='22.828' viewBox='0 0 22.828 22.828'%3E%3Cg id='btn_close_modal' data-name='btn_close modal' transform='translate(1.414 1.414)'%3E%3Cline id='Line_14' data-name='Line 14' x2='28.284' transform='translate(0) rotate(45)' fill='none' stroke='%23000000' stroke-linecap='round' stroke-width='2'/%3E%3Cline id='Line_15' data-name='Line 15' x2='28.284' transform='translate(20 0) rotate(135)' fill='none' stroke='%23000000' stroke-linecap='round' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E") !important;
15382 }
15383 .flag-modal .modal-content {
15384 padding: 10px 20px;
15385 margin: auto;
15386 background-color: #fff;
15387 }
15388 .flag-modal .modal-content label {
15389 font-weight: bold;
15390 color: #1A3668;
15391 }
15392 .flag-modal .modal-content .ninja-forms-field[value=Submit] {
15393 all: unset;
15394 cursor: pointer;
15395 text-transform: uppercase;
15396 background-color: #183668;
15397 color: #fff;
15398 padding: 10px 20px !important;
15399 font-size: 15px;
15400 }
15401 .flag-modal .modal-content .ninja-forms-field[value=Submit]:hover {
15402 font-weight: bold;
15403 text-decoration: none;
15404 background-color: #132C55 !important;
15405 }
15406
15352 .green-block { 15407 .green-block {
15353 margin: 60px 0px; 15408 margin: 60px 0px;
15354 padding: 40px 125px; 15409 padding: 40px 125px;
...@@ -15601,21 +15656,21 @@ p.intro { ...@@ -15601,21 +15656,21 @@ p.intro {
15601 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; 15656 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;
15602 } 15657 }
15603 15658
15604 .um-directory .um-members-pagination-box .um-members-pagi .pagi.current { 15659 .um-directory .um-members-pagination-box .um-members-pagi .pagei.current {
15605 border-color: #fff !important; 15660 border-color: #fff !important;
15606 background-color: #fff !important; 15661 background-color: #fff !important;
15607 color: #3eaf49 !important; 15662 color: #3eaf49 !important;
15608 font-weight: 800 !important; 15663 font-weight: 800 !important;
15609 } 15664 }
15610 15665
15611 .um-directory .um-members-pagination-box .um-members-pagi .pagi.current span { 15666 .um-directory .um-members-pagination-box .um-members-pagi .pagei.current span {
15612 border-color: #fff !important; 15667 border-color: #fff !important;
15613 background-color: #fff !important; 15668 background-color: #fff !important;
15614 color: #3eaf49 !important; 15669 color: #3eaf49 !important;
15615 font-weight: 800 !important; 15670 font-weight: 800 !important;
15616 } 15671 }
15617 15672
15618 .pagi span { 15673 .pagei span {
15619 color: #2c2c2c !important; 15674 color: #2c2c2c !important;
15620 } 15675 }
15621 15676
...@@ -15732,4 +15787,59 @@ p.intro { ...@@ -15732,4 +15787,59 @@ p.intro {
15732 box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16); 15787 box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
15733 } 15788 }
15734 15789
15790 .um-directory .um-members-pagination-box .um-members-pagi .pagei {
15791 cursor: pointer;
15792 display: inline-block;
15793 width: auto;
15794 height: 34px;
15795 line-height: 34px;
15796 transition: all 0.2s linear;
15797 padding: 0 14px;
15798 color: #666 !important;
15799 font-weight: normal;
15800 }
15801
15802 .um-directory .um-members-pagination-box .um-members-pagi .pagei {
15803 cursor: pointer;
15804 display: inline-block;
15805 width: auto;
15806 height: 34px;
15807 line-height: 34px;
15808 transition: all 0.2s linear;
15809 padding: 0 14px;
15810 color: #666 !important;
15811 font-weight: normal;
15812 }
15813
15814 .um-directory .um-members-pagination-box .um-members-pagi .pagei.pagi-arrow {
15815 line-height: 38px;
15816 }
15817
15818 .um-directory .um-members-pagination-box .um-members-pagi .pagei.pagi-arrow i:before {
15819 font-size: 20px;
15820 vertical-align: middle !important;
15821 height: 34px;
15822 line-height: 34px;
15823 top: -2px;
15824 position: relative;
15825 }
15826
15827 .um-directory .um-members-pagination-box .um-members-pagi .pagei.current {
15828 cursor: default;
15829 color: #fff !important;
15830 }
15831
15832 .um-directory .um-members-pagination-box .um-members-pagi .pagei.current:hover {
15833 color: #fff !important;
15834 }
15835
15836 .um-directory .um-members-pagination-box .um-members-pagi .pagei.disabled {
15837 cursor: default;
15838 opacity: 0.4;
15839 }
15840
15841 .um-directory .um-members-pagination-box .um-members-pagi .pagei.none {
15842 color: #aaa !important;
15843 }
15844
15735 /*# sourceMappingURL=child-theme.css.map */ 15845 /*# sourceMappingURL=child-theme.css.map */
...\ No newline at end of file ...\ No newline at end of file
......
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.
...@@ -167,3 +167,54 @@ function is_valid_email_domain($login, $email, $errors ){ ...@@ -167,3 +167,54 @@ function is_valid_email_domain($login, $email, $errors ){
167 } 167 }
168 } 168 }
169 add_action('register_post', 'is_valid_email_domain',10,3 ); 169 add_action('register_post', 'is_valid_email_domain',10,3 );
170
171
172
173
174 add_filter( 'um_profile_field_filter_hook__phone_number_12', 'my_profile_phone_number', 10, 2 );
175 add_filter( 'um_profile_field_filter_hook__phone_number', 'my_profile_phone_number', 10, 2 );
176 function my_profile_phone_number( $value, $data ) {
177 $value = format_phone_string( $value );
178 return $value;
179 }
180
181 add_filter( 'um_view_label_phone_number', 'my_phone_number_label', 10, 1 );
182 function my_phone_number_label( $label ) {
183
184 $label = "Direct Line / Branch";
185 return $label;
186 }
187
188
189
190 function format_phone_string( $phoneNumber ) {
191
192 // Return the phone number in parentheses format, e.g. (123) 456-7890.
193 // Handles 10 digit numbers with or without country codes and extensions
194 // Source 2nd part from: https://stackoverflow.com/questions/4708248/formatting-phone-numbers-in-php
195 $phoneNumber = preg_replace('/[^0-9]/','',$phoneNumber);
196
197 if(strlen($phoneNumber) > 10) {
198 $countryCode = substr($phoneNumber, 0, strlen($phoneNumber)-10);
199 $areaCode = substr($phoneNumber, -10, 3);
200 $nextThree = substr($phoneNumber, -7, 3);
201 $lastFour = substr($phoneNumber, -4, 4);
202
203 $phoneNumber = '+'.$countryCode.' ('.$areaCode.') '.$nextThree.'-'.$lastFour;
204 }
205 else if(strlen($phoneNumber) == 10) {
206 $areaCode = substr($phoneNumber, 0, 3);
207 $nextThree = substr($phoneNumber, 3, 3);
208 $lastFour = substr($phoneNumber, 6, 4);
209
210 $phoneNumber = '('.$areaCode.') '.$nextThree.'-'.$lastFour;
211 }
212 else if(strlen($phoneNumber) == 7) {
213 $nextThree = substr($phoneNumber, 0, 3);
214 $lastFour = substr($phoneNumber, 3, 4);
215
216 $phoneNumber = $nextThree.'-'.$lastFour;
217 }
218
219 return $phoneNumber;
220 }
......
...@@ -57,7 +57,20 @@ function resources_list($atts){ ...@@ -57,7 +57,20 @@ function resources_list($atts){
57 endwhile; ?> 57 endwhile; ?>
58 </tbody> 58 </tbody>
59 </table> 59 </table>
60 </div> 60 </div>
61 <div class="modal fade flag-modal" id="flagModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
62 <div class="modal-dialog modal-dialog-centered">
63 <div class="modal-content">
64 <div class="modal-header">
65 <h3 class="modal-title" id="exampleModalLabel">Flag Document</h3>
66 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
67 </div>
68 <div class="modal-body">
69 <?php echo do_shortcode('[ninja_form id=3]'); ?>
70 </div>
71 </div>
72 </div>
73 </div>
61 <?php endif; 74 <?php endif;
62 wp_reset_query(); 75 wp_reset_query();
63 $output = ob_get_clean(); 76 $output = ob_get_clean();
...@@ -119,12 +132,15 @@ function resources($id, $tax){ ...@@ -119,12 +132,15 @@ function resources($id, $tax){
119 132
120 <tr class="table-like__item"> 133 <tr class="table-like__item">
121 <td class="item"> 134 <td class="item">
122 <a target="_blank" role="button" href="<?php echo wp_get_attachment_url($id); ?>"><?php echo $post->post_title; ?></a> 135 <a target="_blank" role="button" class="item-link" href="<?php echo wp_get_attachment_url($id); ?>"><?php echo $post->post_title; ?></a>
123 </td> 136 </td>
124 <td class="hidden"> <?php echo $cat; ?></td> 137 <td class="hidden"> <?php echo $cat; ?></td>
125 <td class="hidden"><?php echo get_post_time('U',false, $id ); ?></td> 138 <td class="hidden"><?php echo get_post_time('U',false, $id ); ?></td>
126 <td> 139 <td class="wide-td">
127 <a target="_blank" role="button" href="<?php echo wp_get_attachment_url($id); ?>" class="button">View</a> 140 <a target="_blank" role="button" href="<?php echo wp_get_attachment_url($id); ?>" class="button">View</a>
141 <a type="button" data-title="<?php echo $post->post_title; ?>" class="flag" data-bs-toggle="modal" data-bs-target="#flagModal"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-flag-fill" viewBox="0 0 16 16">
142 <path d="M14.778.085A.5.5 0 0 1 15 .5V8a.5.5 0 0 1-.314.464L14.5 8l.186.464-.003.001-.006.003-.023.009a12.435 12.435 0 0 1-.397.15c-.264.095-.631.223-1.047.35-.816.252-1.879.523-2.71.523-.847 0-1.548-.28-2.158-.525l-.028-.01C7.68 8.71 7.14 8.5 6.5 8.5c-.7 0-1.638.23-2.437.477A19.626 19.626 0 0 0 3 9.342V15.5a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 1 0v.282c.226-.079.496-.17.79-.26C4.606.272 5.67 0 6.5 0c.84 0 1.524.277 2.121.519l.043.018C9.286.788 9.828 1 10.5 1c.7 0 1.638-.23 2.437-.477a19.587 19.587 0 0 0 1.349-.476l.019-.007.004-.002h.001"/>
143 </svg></a>
128 </td> 144 </td>
129 </tr> 145 </tr>
130 <?php 146 <?php
......
...@@ -20110,6 +20110,9 @@ ...@@ -20110,6 +20110,9 @@
20110 var span = $(this).find('.glyphicon'); 20110 var span = $(this).find('.glyphicon');
20111 span.toggleClass('glyphicon-chevron-up glyphicon-chevron-down'); 20111 span.toggleClass('glyphicon-chevron-up glyphicon-chevron-down');
20112 }); 20112 });
20113 $(document).on("click", ".flag", function (e) {
20114 $("#nf-field-16").val($(this).data('title'));
20115 });
20113 }); 20116 });
20114 20117
20115 /** 20118 /**
...@@ -25052,6 +25055,47 @@ ...@@ -25052,6 +25055,47 @@
25052 directory.find('.um-member-directory-view-type').removeClass('um-disabled'); 25055 directory.find('.um-member-directory-view-type').removeClass('um-disabled');
25053 }); 25056 });
25054 }); 25057 });
25058 jQuery(document.body).on('click', '.um-directory .pagei:not(.current)', function () {
25059 if (jQuery(this).hasClass('disabled')) {
25060 return;
25061 }
25062 var directory = jQuery(this).parents('.um-directory');
25063 if (um_is_directory_busy(directory)) {
25064 return;
25065 }
25066 um_members_show_preloader(directory);
25067 var page;
25068 if ('first' === jQuery(this).data('page')) {
25069 page = 1;
25070 } else if ('prev' === jQuery(this).data('page')) {
25071 page = directory.data('page') * 1 - 1;
25072 } else if ('next' === jQuery(this).data('page')) {
25073 page = directory.data('page') * 1 + 1;
25074 } else if ('last' === jQuery(this).data('page')) {
25075 page = parseInt(directory.data('total_pages'));
25076 } else {
25077 page = parseInt(jQuery(this).data('page'));
25078 }
25079 if (page === 1) {
25080 directory.find('.pagi[data-page="first"], .pagi[data-page="prev"]').addClass('disabled');
25081 directory.find('.pagi[data-page="prev"], .pagi[data-page="last"]').removeClass('disabled');
25082 } else if (page === parseInt(directory.data('total_pages'))) {
25083 directory.find('.pagi[data-page="prev"], .pagi[data-page="last"]').addClass('disabled');
25084 directory.find('.pagi[data-page="first"], .pagi[data-page="prev"]').removeClass('disabled');
25085 } else {
25086 directory.find('.pagi[data-page="prev"], .pagi[data-page="last"]').removeClass('disabled');
25087 directory.find('.pagi[data-page="first"], .pagi[data-page="prev"]').removeClass('disabled');
25088 }
25089 directory.find('.pagi').removeClass('current');
25090 directory.find('.pagi[data-page="' + page + '"]').addClass('current');
25091 directory.data('page', page);
25092 if (page === 1) {
25093 um_set_url_from_data(directory, 'page', '');
25094 } else {
25095 um_set_url_from_data(directory, 'page', page);
25096 }
25097 um_ajax_get_members_new(directory);
25098 });
25055 function um_ajax_get_members_new(directory, args) { 25099 function um_ajax_get_members_new(directory, args) {
25056 /** 25100 /**
25057 * Operates with the next data: 25101 * Operates with the next data:
......
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.
...@@ -52,6 +52,57 @@ jQuery(document).ready(function($) { ...@@ -52,6 +52,57 @@ jQuery(document).ready(function($) {
52 }); 52 });
53 53
54 54
55
56 jQuery( document.body ).on( 'click', '.um-directory .pagei:not(.current)', function() {
57 if ( jQuery(this).hasClass('disabled') ) {
58 return;
59 }
60
61 var directory = jQuery(this).parents('.um-directory');
62 if ( um_is_directory_busy( directory ) ) {
63 return;
64 }
65
66 um_members_show_preloader( directory );
67
68 var page;
69 if ( 'first' === jQuery(this).data('page') ) {
70 page = 1;
71 } else if ( 'prev' === jQuery(this).data('page') ) {
72 page = directory.data( 'page' )*1 - 1;
73 } else if ( 'next' === jQuery(this).data('page') ) {
74 page = directory.data( 'page' )*1 + 1;
75 } else if ( 'last' === jQuery(this).data('page') ) {
76 page = parseInt( directory.data( 'total_pages' ) );
77 } else {
78 page = parseInt( jQuery(this).data('page') );
79 }
80
81 if ( page === 1 ) {
82 directory.find('.pagi[data-page="first"], .pagi[data-page="prev"]').addClass('disabled');
83 directory.find('.pagi[data-page="prev"], .pagi[data-page="last"]').removeClass('disabled');
84 } else if ( page === parseInt( directory.data( 'total_pages' ) ) ) {
85 directory.find('.pagi[data-page="prev"], .pagi[data-page="last"]').addClass('disabled');
86 directory.find('.pagi[data-page="first"], .pagi[data-page="prev"]').removeClass('disabled');
87 } else {
88 directory.find('.pagi[data-page="prev"], .pagi[data-page="last"]').removeClass('disabled');
89 directory.find('.pagi[data-page="first"], .pagi[data-page="prev"]').removeClass('disabled');
90 }
91
92 directory.find('.pagi').removeClass('current');
93 directory.find('.pagi[data-page="' + page + '"]').addClass('current');
94
95 directory.data( 'page', page );
96 if ( page === 1 ) {
97 um_set_url_from_data( directory, 'page', '' );
98 } else {
99 um_set_url_from_data( directory, 'page', page );
100 }
101
102 um_ajax_get_members_new( directory );
103 });
104
105
55 function um_ajax_get_members_new( directory, args ) { 106 function um_ajax_get_members_new( directory, args ) {
56 107
57 /** 108 /**
......
...@@ -93,6 +93,9 @@ jQuery(document).ready(function($) { ...@@ -93,6 +93,9 @@ jQuery(document).ready(function($) {
93 }); 93 });
94 94
95 95
96 $(document).on("click", ".flag", function(e) {
97 $("#nf-field-16").val($(this).data('title'));
98 });
96 99
97 100
98 101
......
...@@ -79,19 +79,19 @@ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width ...@@ -79,19 +79,19 @@ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width
79 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; 79 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;
80 } 80 }
81 81
82 .um-directory .um-members-pagination-box .um-members-pagi .pagi.current{ 82 .um-directory .um-members-pagination-box .um-members-pagi .pagei.current{
83 border-color: #fff !important; 83 border-color: #fff !important;
84 background-color: #fff !important; 84 background-color: #fff !important;
85 color: #3eaf49 !important; 85 color: #3eaf49 !important;
86 font-weight: 800 !important; 86 font-weight: 800 !important;
87 } 87 }
88 .um-directory .um-members-pagination-box .um-members-pagi .pagi.current span{ 88 .um-directory .um-members-pagination-box .um-members-pagi .pagei.current span{
89 border-color: #fff !important; 89 border-color: #fff !important;
90 background-color: #fff !important; 90 background-color: #fff !important;
91 color: #3eaf49 !important; 91 color: #3eaf49 !important;
92 font-weight: 800 !important; 92 font-weight: 800 !important;
93 } 93 }
94 .pagi span{ 94 .pagei span{
95 color: #2c2c2c !important; 95 color: #2c2c2c !important;
96 96
97 } 97 }
...@@ -188,4 +188,47 @@ flex-wrap: wrap !important; ...@@ -188,4 +188,47 @@ flex-wrap: wrap !important;
188 .um-directory .um-members-wrapper .um-members .um-member{ 188 .um-directory .um-members-wrapper .um-members .um-member{
189 border-width: 0px !important; 189 border-width: 0px !important;
190 box-shadow: 0 3px 6px rgb(0 0 0 / 16%); 190 box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
191 }
...\ No newline at end of file ...\ No newline at end of file
191 }
192
193 .um-directory .um-members-pagination-box .um-members-pagi .pagei {
194 cursor: pointer;
195 display: inline-block;
196 width: auto;
197 height: 34px;
198 line-height: 34px;
199 transition: all .2s linear;
200 padding: 0 14px;
201 color: #666 !important;
202 font-weight: normal; }
203
204
205
206 .um-directory .um-members-pagination-box .um-members-pagi .pagei {
207 cursor: pointer;
208 display: inline-block;
209 width: auto;
210 height: 34px;
211 line-height: 34px;
212 transition: all .2s linear;
213 padding: 0 14px;
214 color: #666 !important;
215 font-weight: normal; }
216 .um-directory .um-members-pagination-box .um-members-pagi .pagei.pagi-arrow {
217 line-height: 38px; }
218 .um-directory .um-members-pagination-box .um-members-pagi .pagei.pagi-arrow i:before {
219 font-size: 20px;
220 vertical-align: middle !important;
221 height: 34px;
222 line-height: 34px;
223 top: -2px;
224 position: relative; }
225 .um-directory .um-members-pagination-box .um-members-pagi .pagei.current {
226 cursor: default;
227 color: #fff !important; }
228 .um-directory .um-members-pagination-box .um-members-pagi .pagei.current:hover {
229 color: #fff !important; }
230 .um-directory .um-members-pagination-box .um-members-pagi .pagei.disabled {
231 cursor: default;
232 opacity: .4; }
233 .um-directory .um-members-pagination-box .um-members-pagi .pagei.none {
234 color: #aaa !important; }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -228,6 +228,7 @@ td.hidden { ...@@ -228,6 +228,7 @@ td.hidden {
228 padding: 20px ; 228 padding: 20px ;
229 229
230 } 230 }
231
231 .item { 232 .item {
232 width: 100%; 233 width: 100%;
233 } 234 }
...@@ -253,6 +254,15 @@ td.hidden { ...@@ -253,6 +254,15 @@ td.hidden {
253 a:hover{ 254 a:hover{
254 text-decoration: underline; 255 text-decoration: underline;
255 } 256 }
257
258 .flag{
259 margin-top: 5px;
260 transform-origin: center;
261 }
262 .flag:hover{
263 color: #000;
264 transform: scale(1.1);
265 }
256 266
257 .button{ 267 .button{
258 all: unset; 268 all: unset;
...@@ -328,4 +338,56 @@ td.hidden { ...@@ -328,4 +338,56 @@ td.hidden {
328 338
329 p.intro{ 339 p.intro{
330 max-width: 600px; 340 max-width: 600px;
331 }
...\ No newline at end of file ...\ No newline at end of file
341 }
342
343 .flag-modal{
344 .modal-dialog{
345 max-width: 600px !important;
346 margin: auto;
347 @media only screen and (max-width: 600px) {
348 margin: 20px 10px;
349 }
350 }
351 .modal-title{
352 color: #1A3668;
353 }
354 .modal-header{
355 border-bottom: 0px solid #1A3668;
356 }
357 .btn-close{
358 transform-origin: center;
359 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22.828' height='22.828' viewBox='0 0 22.828 22.828'%3E%3Cg id='btn_close_modal' data-name='btn_close modal' transform='translate(1.414 1.414)'%3E%3Cline id='Line_14' data-name='Line 14' x2='28.284' transform='translate(0) rotate(45)' fill='none' stroke='%231A3668' stroke-linecap='round' stroke-width='2'/%3E%3Cline id='Line_15' data-name='Line 15' x2='28.284' transform='translate(20 0) rotate(135)' fill='none' stroke='%231A3668' stroke-linecap='round' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E") !important;
360 }
361
362 .btn-close:hover{
363 transform: scale(1.1);
364 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22.828' height='22.828' viewBox='0 0 22.828 22.828'%3E%3Cg id='btn_close_modal' data-name='btn_close modal' transform='translate(1.414 1.414)'%3E%3Cline id='Line_14' data-name='Line 14' x2='28.284' transform='translate(0) rotate(45)' fill='none' stroke='%23000000' stroke-linecap='round' stroke-width='2'/%3E%3Cline id='Line_15' data-name='Line 15' x2='28.284' transform='translate(20 0) rotate(135)' fill='none' stroke='%23000000' stroke-linecap='round' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E") !important;
365 }
366
367
368
369 .modal-content{
370 padding: 10px 20px;
371 margin: auto;
372 background-color: #fff;
373 label{
374 font-weight: bold;
375 color: #1A3668;
376 }
377 .ninja-forms-field[value="Submit"]{
378 all: unset;
379 cursor: pointer;
380 text-transform: uppercase;
381 background-color: #183668;
382 color:#fff;
383 padding: 10px 20px !important;
384 font-size: 15px;
385 }
386 .ninja-forms-field[value="Submit"]:hover{
387 font-weight: bold;
388 text-decoration: none;
389 background-color: #132C55 !important;
390 }
391
392 }
393 }
......
...@@ -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.0050 8 Version: 1.2.0056
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
......
...@@ -86,7 +86,13 @@ $unique_hash = substr( md5( $args['form_id'] ), 10, 5 ); ?> ...@@ -86,7 +86,13 @@ $unique_hash = substr( md5( $args['form_id'] ), 10, 5 ); ?>
86 86
87 <# if ( typeof user['<?php echo $key; ?>'] !== 'undefined' ) { #> 87 <# if ( typeof user['<?php echo $key; ?>'] !== 'undefined' ) { #>
88 <div class="um-member-metaline um-member-metaline-<?php echo $key; ?>"> 88 <div class="um-member-metaline um-member-metaline-<?php echo $key; ?>">
89 <strong>{{{user['label_<?php echo $key;?>']}}}:</strong>&nbsp;{{{user['<?php echo $key;?>']}}} 89 <?php if ( $key !== 'phone_number') { ?>
90 <strong>{{{user['label_<?php echo $key;?>']}}}:</strong>
91 <?php } ?>
92 <?php if ( $key === 'phone_number') { ?>
93 <strong>Direct Line / Branch:</strong>
94 <?php } ?>
95 &nbsp;{{{user['<?php echo $key;?>']}}}
90 </div> 96 </div>
91 <# } #> 97 <# } #>
92 98
......
...@@ -16,14 +16,14 @@ ...@@ -16,14 +16,14 @@
16 16
17 <div class="um-members-pagi uimob340-hide uimob500-hide"> 17 <div class="um-members-pagi uimob340-hide uimob500-hide">
18 18
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' ); ?>"> 19 <span class="pagei 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> 20 <i class="um-faicon-angle-left"></i></span>
21 21
22 <# _.each( data.pagination.pages_to_show, function( page, key, list ) { #> 22 <# _.each( data.pagination.pages_to_show, function( page, key, list ) { #>
23 <span class="pagi <# if ( page == data.pagination.current_page ) { #>current<# } #>" data-page="{{{page}}}"><span>{{{page}}}</span></span> 23 <span class="pagei <# if ( page == data.pagination.current_page ) { #>current<# } #>" data-page="{{{page}}}"><span>{{{page}}}</span></span>
24 <# }); #> 24 <# }); #>
25 25
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' ); ?>"> 26 <span class="pagei 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' ); ?>">
27 <i class="um-faicon-angle-right"></i></span> 27 <i class="um-faicon-angle-right"></i></span>
28 28
29 </div> 29 </div>
......