MEMBERLIST
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
15 changed files
with
635 additions
and
243 deletions
| ... | @@ -14777,111 +14777,6 @@ h1 + p, .h1 + p { | ... | @@ -14777,111 +14777,6 @@ h1 + p, .h1 + p { |
| 14777 | max-width: 600px; | 14777 | max-width: 600px; |
| 14778 | } | 14778 | } |
| 14779 | 14779 | ||
| 14780 | .um input[type=submit].um-button, .um input[type=submit].um-button:focus, .um a.um-button { | ||
| 14781 | text-transform: uppercase !important; | ||
| 14782 | background-color: #183668 !important; | ||
| 14783 | background: #183668 !important; | ||
| 14784 | color: #fff; | ||
| 14785 | border-radius: 0px !important; | ||
| 14786 | } | ||
| 14787 | |||
| 14788 | .um input[type=submit].um-button:hover, .um input[type=submit].um-button:focus, .um a.um-button:hover { | ||
| 14789 | background-color: #132C55 !important; | ||
| 14790 | background: #132C55 !important; | ||
| 14791 | font-weight: bold !important; | ||
| 14792 | } | ||
| 14793 | |||
| 14794 | .um .um-tip:hover, .um .um-field-radio.active:not(.um-field-radio-state-disabled) i, .um .um-field-checkbox.active:not(.um-field-radio-state-disabled) i, .um .um-member-name a:hover, .um .um-member-more a:hover, .um .um-member-less a:hover, .um .um-members-pagi a:hover, .um .um-cover-add:hover, .um .um-profile-subnav a.active, .um .um-item-meta a, .um-account-name a:hover, .um-account-nav a.current, .um-account-side li a.current span.um-account-icon, .um-account-side li a.current:hover span.um-account-icon, .um-dropdown li a:hover, i.um-active-color, span.um-active-color { | ||
| 14795 | color: #3EAF49 !important; | ||
| 14796 | } | ||
| 14797 | |||
| 14798 | .um-account-profile-link { | ||
| 14799 | display: none !important; | ||
| 14800 | } | ||
| 14801 | |||
| 14802 | .directory-filters-top { | ||
| 14803 | border-top: 1px solid #3eaf49 !important; | ||
| 14804 | padding: 10px 0 0px 0; | ||
| 14805 | } | ||
| 14806 | |||
| 14807 | .directory-filters-bottom { | ||
| 14808 | border-bottom: 1px solid #3eaf49 !important; | ||
| 14809 | padding: 0px !important; | ||
| 14810 | margin-bottom: 40px !important; | ||
| 14811 | } | ||
| 14812 | |||
| 14813 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-nav-line .um-member-directory-filters .um-member-directory-filters-a { | ||
| 14814 | font-size: 18px; | ||
| 14815 | line-height: 24px; | ||
| 14816 | color: #1a3668; | ||
| 14817 | text-transform: uppercase; | ||
| 14818 | text-decoration: none; | ||
| 14819 | padding: 10px 0; | ||
| 14820 | display: block; | ||
| 14821 | font-weight: 800; | ||
| 14822 | } | ||
| 14823 | |||
| 14824 | .um-member-directory-filters { | ||
| 14825 | justify-content: flex-start; | ||
| 14826 | } | ||
| 14827 | |||
| 14828 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-nav-line .um-member-directory-filters { | ||
| 14829 | justify-content: flex-start !important; | ||
| 14830 | } | ||
| 14831 | |||
| 14832 | .glyphicon-chevron-up::after { | ||
| 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 | } | ||
| 14835 | |||
| 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"); | ||
| 14838 | } | ||
| 14839 | |||
| 14840 | .um-directory .um-member-directory-header .um-member-directory-header-row.um-member-directory-search-row { | ||
| 14841 | justify-content: flex-start !important; | ||
| 14842 | } | ||
| 14843 | |||
| 14844 | #quicksearch { | ||
| 14845 | width: 600px; | ||
| 14846 | border: 1px solid #fff !important; | ||
| 14847 | border-bottom: 1px solid #8e908f !important; | ||
| 14848 | margin-bottom: 15px; | ||
| 14849 | } | ||
| 14850 | |||
| 14851 | .um-do-search.um-button { | ||
| 14852 | display: none; | ||
| 14853 | } | ||
| 14854 | |||
| 14855 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-search-line label { | ||
| 14856 | flex: unset !important; | ||
| 14857 | } | ||
| 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 | |||
| 14885 | .entry-content .is-layout-constrained.wp-block-group { | 14780 | .entry-content .is-layout-constrained.wp-block-group { |
| 14886 | box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137); | 14781 | box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137); |
| 14887 | padding: 40px 32px; | 14782 | padding: 40px 32px; |
| ... | @@ -15433,4 +15328,123 @@ td.hidden { | ... | @@ -15433,4 +15328,123 @@ td.hidden { |
| 15433 | max-width: unset; | 15328 | max-width: unset; |
| 15434 | } | 15329 | } |
| 15435 | 15330 | ||
| 15331 | .um input[type=submit].um-button, .um input[type=submit].um-button:focus, .um a.um-button { | ||
| 15332 | text-transform: uppercase !important; | ||
| 15333 | background-color: #183668 !important; | ||
| 15334 | background: #183668 !important; | ||
| 15335 | color: #fff; | ||
| 15336 | border-radius: 0px !important; | ||
| 15337 | } | ||
| 15338 | |||
| 15339 | .um input[type=submit].um-button:hover, .um input[type=submit].um-button:focus, .um a.um-button:hover { | ||
| 15340 | background-color: #132C55 !important; | ||
| 15341 | background: #132C55 !important; | ||
| 15342 | font-weight: bold !important; | ||
| 15343 | } | ||
| 15344 | |||
| 15345 | .um .um-tip:hover, .um .um-field-radio.active:not(.um-field-radio-state-disabled) i, .um .um-field-checkbox.active:not(.um-field-radio-state-disabled) i, .um .um-member-name a:hover, .um .um-member-more a:hover, .um .um-member-less a:hover, .um .um-members-pagi a:hover, .um .um-cover-add:hover, .um .um-profile-subnav a.active, .um .um-item-meta a, .um-account-name a:hover, .um-account-nav a.current, .um-account-side li a.current span.um-account-icon, .um-account-side li a.current:hover span.um-account-icon, .um-dropdown li a:hover, i.um-active-color, span.um-active-color { | ||
| 15346 | color: #3EAF49 !important; | ||
| 15347 | } | ||
| 15348 | |||
| 15349 | .um-account-profile-link { | ||
| 15350 | display: none !important; | ||
| 15351 | } | ||
| 15352 | |||
| 15353 | .directory-filters-top { | ||
| 15354 | border-top: 1px solid #3eaf49 !important; | ||
| 15355 | padding: 10px 0 0px 0; | ||
| 15356 | } | ||
| 15357 | |||
| 15358 | .directory-filters-bottom { | ||
| 15359 | border-bottom: 1px solid #3eaf49 !important; | ||
| 15360 | padding: 0px !important; | ||
| 15361 | margin-bottom: 40px !important; | ||
| 15362 | } | ||
| 15363 | |||
| 15364 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-nav-line .um-member-directory-filters .um-member-directory-filters-a { | ||
| 15365 | font-size: 18px; | ||
| 15366 | line-height: 24px; | ||
| 15367 | color: #1a3668; | ||
| 15368 | text-transform: uppercase; | ||
| 15369 | text-decoration: none; | ||
| 15370 | padding: 10px 0; | ||
| 15371 | display: block; | ||
| 15372 | font-weight: 800; | ||
| 15373 | } | ||
| 15374 | |||
| 15375 | .um-member-directory-filters { | ||
| 15376 | justify-content: flex-start; | ||
| 15377 | } | ||
| 15378 | |||
| 15379 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-nav-line .um-member-directory-filters { | ||
| 15380 | justify-content: flex-start !important; | ||
| 15381 | } | ||
| 15382 | |||
| 15383 | .glyphicon-chevron-up::after { | ||
| 15384 | 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"); | ||
| 15385 | } | ||
| 15386 | |||
| 15387 | .um-member-directory-filters-visible a .glyphicon-chevron-up::after { | ||
| 15388 | 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"); | ||
| 15389 | } | ||
| 15390 | |||
| 15391 | .um-directory .um-member-directory-header .um-member-directory-header-row.um-member-directory-search-row { | ||
| 15392 | justify-content: flex-start !important; | ||
| 15393 | } | ||
| 15394 | |||
| 15395 | #quicksearch { | ||
| 15396 | width: 600px; | ||
| 15397 | border: 1px solid #fff !important; | ||
| 15398 | border-bottom: 1px solid #8e908f !important; | ||
| 15399 | margin-bottom: 15px; | ||
| 15400 | } | ||
| 15401 | |||
| 15402 | .um-do-search.um-button { | ||
| 15403 | display: none; | ||
| 15404 | } | ||
| 15405 | |||
| 15406 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-search-line label { | ||
| 15407 | flex: unset !important; | ||
| 15408 | } | ||
| 15409 | |||
| 15410 | .um-faicon-angle-left:before { | ||
| 15411 | 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; | ||
| 15412 | } | ||
| 15413 | |||
| 15414 | .um-faicon-angle-right:before { | ||
| 15415 | 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; | ||
| 15416 | } | ||
| 15417 | |||
| 15418 | .um-directory .um-members-pagination-box .um-members-pagi .pagi.current { | ||
| 15419 | border-color: #fff !important; | ||
| 15420 | background-color: #fff !important; | ||
| 15421 | color: #3eaf49 !important; | ||
| 15422 | font-weight: 800 !important; | ||
| 15423 | } | ||
| 15424 | |||
| 15425 | .um-directory .um-members-pagination-box .um-members-pagi .pagi.current span { | ||
| 15426 | border-color: #fff !important; | ||
| 15427 | background-color: #fff !important; | ||
| 15428 | color: #3eaf49 !important; | ||
| 15429 | font-weight: 800 !important; | ||
| 15430 | } | ||
| 15431 | |||
| 15432 | .pagi span { | ||
| 15433 | color: #2c2c2c !important; | ||
| 15434 | } | ||
| 15435 | |||
| 15436 | .um-check-filter-type label:before { | ||
| 15437 | height: 20px !important; | ||
| 15438 | width: 20px !important; | ||
| 15439 | } | ||
| 15440 | |||
| 15441 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-search .um-search-filter { | ||
| 15442 | width: auto !important; | ||
| 15443 | } | ||
| 15444 | |||
| 15445 | .directory-filters-bottom.um-member-directory-filters-bar:not(.um-header-row-invisible) .um-search.um-search-1.um-search-invisible { | ||
| 15446 | display: flex !important; | ||
| 15447 | flex-wrap: wrap !important; | ||
| 15448 | } | ||
| 15449 | |||
| 15436 | /*# sourceMappingURL=child-theme.css.map */ | 15450 | /*# 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.
| ... | @@ -13,7 +13,7 @@ function members_list(){ | ... | @@ -13,7 +13,7 @@ function members_list(){ |
| 13 | $custom_args = array( 'number' => -1 ); | 13 | $custom_args = array( 'number' => -1 ); |
| 14 | 14 | ||
| 15 | $custom_query = new \WP_User_Query($custom_args); | 15 | $custom_query = new \WP_User_Query($custom_args); |
| 16 | $members = $custom_query->get_results(); | 16 | $members = $wp_user_query->get_results(); |
| 17 | ob_start(); | 17 | ob_start(); |
| 18 | $uniqid = uniqid(); | 18 | $uniqid = uniqid(); |
| 19 | if (!empty($members)): | 19 | if (!empty($members)): | ... | ... |
| ... | @@ -25007,6 +25007,183 @@ | ... | @@ -25007,6 +25007,183 @@ |
| 25007 | } | 25007 | } |
| 25008 | }); | 25008 | }); |
| 25009 | 25009 | ||
| 25010 | jQuery(document).ready(function ($) { | ||
| 25011 | $("#quicksearch.um-search-line").keyup(function () { | ||
| 25012 | $('.um-do-search.um-button').click(); | ||
| 25013 | }); | ||
| 25014 | var $checkboxes = $('.category-filter input'); | ||
| 25015 | $checkboxes.change(function () { | ||
| 25016 | // map input values to an array | ||
| 25017 | var inclusives = []; | ||
| 25018 | // inclusive filters from checkboxes | ||
| 25019 | $checkboxes.each(function (i, elem) { | ||
| 25020 | // if checkbox, use value if checked | ||
| 25021 | if (elem.checked) { | ||
| 25022 | inclusives.push(um_sanitize_value(elem.value)); | ||
| 25023 | } | ||
| 25024 | }); | ||
| 25025 | var directory = jQuery(this).parents('.um-directory'); | ||
| 25026 | if (um_is_directory_busy(directory)) { | ||
| 25027 | return; | ||
| 25028 | } | ||
| 25029 | um_members_show_preloader(directory); | ||
| 25030 | var filter_name = 'department_branch'; | ||
| 25031 | var current_value = um_get_data_for_directory(directory, 'filter_' + filter_name); | ||
| 25032 | current_value = inclusives.join('||'); | ||
| 25033 | um_set_url_from_data(directory, 'filter_' + filter_name, current_value); | ||
| 25034 | |||
| 25035 | //set 1st page after filtration | ||
| 25036 | directory.data('page', 1); | ||
| 25037 | //um_set_url_from_data( directory, 'page', '' ); | ||
| 25038 | console.log(directory); | ||
| 25039 | um_ajax_get_members_new(directory); | ||
| 25040 | um_change_tag(directory); | ||
| 25041 | directory.data('searched', 1); | ||
| 25042 | directory.find('.um-member-directory-sorting-options').prop('disabled', false); | ||
| 25043 | directory.find('.um-member-directory-view-type').removeClass('um-disabled'); | ||
| 25044 | }); | ||
| 25045 | }); | ||
| 25046 | function um_ajax_get_members_new(directory, args) { | ||
| 25047 | /** | ||
| 25048 | * Operates with the next data: | ||
| 25049 | * | ||
| 25050 | * 1) Page - getting from directory data 'page' | ||
| 25051 | * 2) Sort - getting from 'um-member-directory-sorting-options' field value | ||
| 25052 | * 3) Search - getting from 'um-search-line' field value | ||
| 25053 | * 4) Filters - getting from URL data by 'um_get_data_for_directory' function | ||
| 25054 | * | ||
| 25055 | */ | ||
| 25056 | |||
| 25057 | var hash = um_members_get_hash(directory); | ||
| 25058 | var allow = wp.hooks.applyFilters('um_member_directory_get_members_allow', true, hash, directory); | ||
| 25059 | if (!allow) { | ||
| 25060 | setTimeout(um_ajax_get_members, 600, directory, args); | ||
| 25061 | return; | ||
| 25062 | } | ||
| 25063 | var page = um_get_current_page(directory); | ||
| 25064 | var search = um_get_search(directory); | ||
| 25065 | var sorting = um_get_sort(directory); | ||
| 25066 | var local_date = new Date(); | ||
| 25067 | var gmt_hours = -local_date.getTimezoneOffset() / 60; | ||
| 25068 | var request = { | ||
| 25069 | directory_id: hash, | ||
| 25070 | page: page, | ||
| 25071 | search: search, | ||
| 25072 | sorting: sorting, | ||
| 25073 | gmt_offset: gmt_hours, | ||
| 25074 | post_refferer: directory.data('base-post'), | ||
| 25075 | nonce: um_scripts.nonce | ||
| 25076 | }; | ||
| 25077 | if (directory.find('.um-search-filter').length) { | ||
| 25078 | directory.find('.um-search-filter').each(function () { | ||
| 25079 | var filter = jQuery(this); | ||
| 25080 | if (filter.find('.um-slider').length) { | ||
| 25081 | var filter_name = filter.find('.um-slider').data('field_name'); | ||
| 25082 | var value_from = um_get_data_for_directory(directory, 'filter_' + filter_name + '_from'); | ||
| 25083 | var value_to = um_get_data_for_directory(directory, 'filter_' + filter_name + '_to'); | ||
| 25084 | if (typeof value_from != 'undefined' || typeof value_to != 'undefined') { | ||
| 25085 | request[filter_name] = [value_from, value_to]; | ||
| 25086 | } | ||
| 25087 | } else if (filter.hasClass('um-check-filter-type') && filter.find('input[type="checkbox"]:checked').length) { | ||
| 25088 | var filter_name = filter.find('input[type="checkbox"]:checked').attr('name'); | ||
| 25089 | console.log('directory'); | ||
| 25090 | console.log(directory); | ||
| 25091 | var value = um_get_data_for_directory(directory, 'filter_' + filter_name); | ||
| 25092 | console.log('value'); | ||
| 25093 | console.log(value); | ||
| 25094 | if (typeof value != 'undefined') { | ||
| 25095 | value = um_unsanitize_value(value); | ||
| 25096 | request[filter_name] = value.split('||'); | ||
| 25097 | } | ||
| 25098 | } else if (filter.find('.um-datepicker-filter').length) { | ||
| 25099 | var filter_name = filter.find('.um-datepicker-filter').data('filter_name'); | ||
| 25100 | var value_from = um_get_data_for_directory(directory, 'filter_' + filter_name + '_from'); | ||
| 25101 | var value_to = um_get_data_for_directory(directory, 'filter_' + filter_name + '_to'); | ||
| 25102 | if (typeof value_from != 'undefined' || typeof value_to != 'undefined') { | ||
| 25103 | request[filter_name] = [value_from, value_to]; | ||
| 25104 | } | ||
| 25105 | } else if (filter.find('.um-timepicker-filter').length) { | ||
| 25106 | var filter_name = filter.find('.um-timepicker-filter').data('filter_name'); | ||
| 25107 | var value_from = um_get_data_for_directory(directory, 'filter_' + filter_name + '_from'); | ||
| 25108 | var value_to = um_get_data_for_directory(directory, 'filter_' + filter_name + '_to'); | ||
| 25109 | if (typeof value_from != 'undefined') { | ||
| 25110 | var value_from = value_from.split(':'); | ||
| 25111 | var hours = value_from[0] * 1; | ||
| 25112 | if (hours < 10) { | ||
| 25113 | hours = '0' + hours; | ||
| 25114 | } | ||
| 25115 | var minutes = value_from[1] * 1; | ||
| 25116 | if (minutes < 10) { | ||
| 25117 | minutes = '0' + minutes; | ||
| 25118 | } | ||
| 25119 | value_from = hours + ':' + minutes + ':00'; | ||
| 25120 | } | ||
| 25121 | if (typeof value_to != 'undefined') { | ||
| 25122 | var val_to = value_to.split(':'); | ||
| 25123 | var minutes = val_to[1] * 1; | ||
| 25124 | var hours = val_to[0] * 1; | ||
| 25125 | if (hours < 10) { | ||
| 25126 | hours = '0' + hours; | ||
| 25127 | } | ||
| 25128 | if (minutes < 10) { | ||
| 25129 | minutes = '0' + minutes; | ||
| 25130 | } | ||
| 25131 | value_to = hours + ':' + minutes + ':59'; | ||
| 25132 | } | ||
| 25133 | if (typeof value_from != 'undefined' || typeof value_to != 'undefined') { | ||
| 25134 | request[filter_name] = [value_from, value_to]; | ||
| 25135 | } | ||
| 25136 | } else if (filter.find('select').length) { | ||
| 25137 | var filter_name = filter.find('select').attr('name'); | ||
| 25138 | var value = um_get_data_for_directory(directory, 'filter_' + filter_name); | ||
| 25139 | if (typeof value != 'undefined') { | ||
| 25140 | value = um_unsanitize_value(value); | ||
| 25141 | request[filter_name] = value.split('||'); | ||
| 25142 | } | ||
| 25143 | } else if (filter.hasClass('um-text-filter-type') && filter.find('input[type="text"]').length) { | ||
| 25144 | var filter_name = filter.find('input[type="text"]').attr('name'); | ||
| 25145 | var value = um_get_data_for_directory(directory, 'filter_' + filter_name); | ||
| 25146 | if (typeof value != 'undefined') { | ||
| 25147 | value = um_unsanitize_value(value); | ||
| 25148 | request[filter_name] = value; | ||
| 25149 | } | ||
| 25150 | } else { | ||
| 25151 | request = wp.hooks.applyFilters('um_member_directory_custom_filter_handler', request, filter, directory); | ||
| 25152 | } | ||
| 25153 | }); | ||
| 25154 | } | ||
| 25155 | request = wp.hooks.applyFilters('um_member_directory_filter_request', request); | ||
| 25156 | wp.ajax.send('um_get_members', { | ||
| 25157 | data: request, | ||
| 25158 | success: function (answer) { | ||
| 25159 | //set last data hard for using on layouts reloading | ||
| 25160 | um_member_directory_last_data[hash] = answer; | ||
| 25161 | um_build_template(directory, answer); | ||
| 25162 | var pagination_template = wp.template('um-members-pagination'); | ||
| 25163 | directory.find('.um-members-pagination-box').html(pagination_template(answer)); | ||
| 25164 | directory.data('total_pages', answer.pagination.total_pages); | ||
| 25165 | if (answer.pagination.total_pages) { | ||
| 25166 | directory.find('.um-member-directory-sorting-options').prop('disabled', false); | ||
| 25167 | directory.find('.um-member-directory-view-type').removeClass('um-disabled'); | ||
| 25168 | } else { | ||
| 25169 | directory.find('.um-member-directory-sorting-options').prop('disabled', true); | ||
| 25170 | directory.find('.um-member-directory-view-type').addClass('um-disabled'); | ||
| 25171 | } | ||
| 25172 | |||
| 25173 | //args.directory = directory; | ||
| 25174 | wp.hooks.doAction('um_member_directory_loaded', directory, answer); | ||
| 25175 | //jQuery( document ).trigger('um_members_rendered', [ directory, answer ] ); | ||
| 25176 | |||
| 25177 | um_init_new_dropdown(); | ||
| 25178 | um_members_hide_preloader(directory); | ||
| 25179 | }, | ||
| 25180 | error: function (data) { | ||
| 25181 | console.log(data); | ||
| 25182 | um_members_hide_preloader(directory); | ||
| 25183 | } | ||
| 25184 | }); | ||
| 25185 | } | ||
| 25186 | |||
| 25010 | var a = document.querySelector('.blur-image'); | 25187 | var a = document.querySelector('.blur-image'); |
| 25011 | document.addEventListener("DOMContentLoaded", function () { | 25188 | document.addEventListener("DOMContentLoaded", function () { |
| 25012 | if (!a) return !1; | 25189 | if (!a) return !1; |
| ... | @@ -25029,15 +25206,6 @@ | ... | @@ -25029,15 +25206,6 @@ |
| 25029 | c2.classList.add('image-loaded'), c2.style.backgroundImage = 'linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 91%, rgba(0, 0, 0, 0) 100%), url(' + b2 + ')'; | 25206 | c2.classList.add('image-loaded'), c2.style.backgroundImage = 'linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 91%, rgba(0, 0, 0, 0) 100%), url(' + b2 + ')'; |
| 25030 | }; | 25207 | }; |
| 25031 | }); | 25208 | }); |
| 25032 | $$1(document).ready(function ($) { | ||
| 25033 | // $(document).on("click", ".um-member-directory-filters-a", function(e) { | ||
| 25034 | // $('#department_branch').select2('destroy'); | ||
| 25035 | // }); | ||
| 25036 | |||
| 25037 | $("#quicksearch.um-search-line").keyup(function () { | ||
| 25038 | $('.um-do-search.um-button').click(); | ||
| 25039 | }); | ||
| 25040 | }); | ||
| 25041 | 25209 | ||
| 25042 | exports.Alert = alert$1; | 25210 | exports.Alert = alert$1; |
| 25043 | exports.Button = button; | 25211 | exports.Button = button; | ... | ... |
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.
| 1 | jQuery(document).ready(function($) { | ||
| 2 | |||
| 3 | |||
| 4 | $("#quicksearch.um-search-line").keyup(function() { | ||
| 5 | $('.um-do-search.um-button').click(); | ||
| 6 | }); | ||
| 7 | |||
| 8 | var $checkboxes = $('.category-filter input'); | ||
| 9 | var filterValue; | ||
| 10 | |||
| 11 | $checkboxes.change(function() { | ||
| 12 | // map input values to an array | ||
| 13 | var inclusives = []; | ||
| 14 | // inclusive filters from checkboxes | ||
| 15 | $checkboxes.each(function(i, elem) { | ||
| 16 | // if checkbox, use value if checked | ||
| 17 | if (elem.checked) { | ||
| 18 | inclusives.push( um_sanitize_value(elem.value)); | ||
| 19 | } | ||
| 20 | }); | ||
| 21 | |||
| 22 | |||
| 23 | var directory = jQuery(this).parents('.um-directory'); | ||
| 24 | |||
| 25 | if ( um_is_directory_busy( directory ) ) { | ||
| 26 | return; | ||
| 27 | } | ||
| 28 | |||
| 29 | um_members_show_preloader( directory ); | ||
| 30 | |||
| 31 | var filter_name = 'department_branch'; | ||
| 32 | |||
| 33 | var current_value = um_get_data_for_directory( directory, 'filter_' + filter_name ); | ||
| 34 | |||
| 35 | current_value = inclusives.join( '||' ); | ||
| 36 | |||
| 37 | um_set_url_from_data( directory, 'filter_' + filter_name, current_value ); | ||
| 38 | |||
| 39 | //set 1st page after filtration | ||
| 40 | directory.data( 'page', 1 ); | ||
| 41 | //um_set_url_from_data( directory, 'page', '' ); | ||
| 42 | console.log(directory); | ||
| 43 | um_ajax_get_members_new( directory ); | ||
| 44 | |||
| 45 | um_change_tag( directory ); | ||
| 46 | |||
| 47 | directory.data( 'searched', 1 ); | ||
| 48 | directory.find( '.um-member-directory-sorting-options' ).prop( 'disabled', false ); | ||
| 49 | directory.find( '.um-member-directory-view-type' ).removeClass( 'um-disabled' ); | ||
| 50 | |||
| 51 | }); | ||
| 52 | }); | ||
| 53 | |||
| 54 | |||
| 55 | function um_ajax_get_members_new( directory, args ) { | ||
| 56 | |||
| 57 | /** | ||
| 58 | * Operates with the next data: | ||
| 59 | * | ||
| 60 | * 1) Page - getting from directory data 'page' | ||
| 61 | * 2) Sort - getting from 'um-member-directory-sorting-options' field value | ||
| 62 | * 3) Search - getting from 'um-search-line' field value | ||
| 63 | * 4) Filters - getting from URL data by 'um_get_data_for_directory' function | ||
| 64 | * | ||
| 65 | */ | ||
| 66 | |||
| 67 | var hash = um_members_get_hash( directory ); | ||
| 68 | |||
| 69 | var allow = wp.hooks.applyFilters( 'um_member_directory_get_members_allow', true, hash, directory ); | ||
| 70 | if ( ! allow ) { | ||
| 71 | setTimeout( um_ajax_get_members, 600, directory, args ); | ||
| 72 | return; | ||
| 73 | } | ||
| 74 | |||
| 75 | var page = um_get_current_page( directory ); | ||
| 76 | var search = um_get_search( directory ); | ||
| 77 | var sorting = um_get_sort( directory ); | ||
| 78 | |||
| 79 | var local_date = new Date(); | ||
| 80 | var gmt_hours = -local_date.getTimezoneOffset() / 60; | ||
| 81 | |||
| 82 | var request = { | ||
| 83 | directory_id: hash, | ||
| 84 | page: page, | ||
| 85 | search: search, | ||
| 86 | sorting: sorting, | ||
| 87 | gmt_offset: gmt_hours, | ||
| 88 | post_refferer: directory.data('base-post'), | ||
| 89 | nonce: um_scripts.nonce | ||
| 90 | }; | ||
| 91 | |||
| 92 | if ( directory.find('.um-search-filter').length ) { | ||
| 93 | directory.find('.um-search-filter').each( function() { | ||
| 94 | var filter = jQuery(this); | ||
| 95 | |||
| 96 | if ( filter.find( '.um-slider' ).length ) { | ||
| 97 | var filter_name = filter.find( '.um-slider' ).data('field_name'); | ||
| 98 | |||
| 99 | var value_from = um_get_data_for_directory( directory, 'filter_' + filter_name + '_from' ); | ||
| 100 | var value_to = um_get_data_for_directory( directory, 'filter_' + filter_name + '_to' ); | ||
| 101 | if ( typeof value_from != 'undefined' || typeof value_to != 'undefined' ) { | ||
| 102 | request[ filter_name ] = [ value_from, value_to ]; | ||
| 103 | } | ||
| 104 | }else if ( filter.hasClass( 'um-check-filter-type' ) && filter.find('input[type="checkbox"]:checked').length ) { | ||
| 105 | |||
| 106 | var filter_name = filter.find('input[type="checkbox"]:checked').attr('name'); | ||
| 107 | console.log('directory'); | ||
| 108 | console.log(directory ); | ||
| 109 | var value = um_get_data_for_directory( directory, 'filter_' + filter_name ); | ||
| 110 | console.log('value'); | ||
| 111 | console.log(value ); | ||
| 112 | if ( typeof value != 'undefined' ) { | ||
| 113 | value = um_unsanitize_value( value ); | ||
| 114 | request[ filter_name ] = value.split( '||' ); | ||
| 115 | } | ||
| 116 | } else if ( filter.find( '.um-datepicker-filter' ).length ) { | ||
| 117 | var filter_name = filter.find( '.um-datepicker-filter' ).data('filter_name'); | ||
| 118 | var value_from = um_get_data_for_directory( directory, 'filter_' + filter_name + '_from' ); | ||
| 119 | var value_to = um_get_data_for_directory( directory, 'filter_' + filter_name + '_to' ); | ||
| 120 | if ( typeof value_from != 'undefined' || typeof value_to != 'undefined') { | ||
| 121 | request[ filter_name ] = [ value_from, value_to ]; | ||
| 122 | } | ||
| 123 | } else if ( filter.find( '.um-timepicker-filter' ).length ) { | ||
| 124 | var filter_name = filter.find( '.um-timepicker-filter' ).data('filter_name'); | ||
| 125 | var value_from = um_get_data_for_directory( directory, 'filter_' + filter_name + '_from' ); | ||
| 126 | var value_to = um_get_data_for_directory( directory, 'filter_' + filter_name + '_to' ); | ||
| 127 | |||
| 128 | if ( typeof value_from != 'undefined' ) { | ||
| 129 | var value_from = value_from.split(':'); | ||
| 130 | var hours = value_from[0]*1; | ||
| 131 | if ( hours < 10 ) { | ||
| 132 | hours = '0' + hours; | ||
| 133 | } | ||
| 134 | |||
| 135 | var minutes = value_from[1]*1; | ||
| 136 | if ( minutes < 10 ) { | ||
| 137 | minutes = '0' + minutes; | ||
| 138 | } | ||
| 139 | |||
| 140 | value_from = hours + ':' + minutes + ':00'; | ||
| 141 | } | ||
| 142 | if ( typeof value_to != 'undefined' ) { | ||
| 143 | var val_to = value_to.split(':'); | ||
| 144 | var minutes = val_to[1]*1; | ||
| 145 | |||
| 146 | var hours = val_to[0]*1; | ||
| 147 | if ( hours < 10 ) { | ||
| 148 | hours = '0' + hours; | ||
| 149 | } | ||
| 150 | |||
| 151 | if ( minutes < 10 ) { | ||
| 152 | minutes = '0' + minutes; | ||
| 153 | } | ||
| 154 | |||
| 155 | value_to = hours + ':' + minutes + ':59'; | ||
| 156 | } | ||
| 157 | |||
| 158 | if ( typeof value_from != 'undefined' || typeof value_to != 'undefined' ) { | ||
| 159 | request[ filter_name ] = [ value_from, value_to ]; | ||
| 160 | } | ||
| 161 | |||
| 162 | } else if ( filter.find( 'select' ).length ) { | ||
| 163 | var filter_name = filter.find('select').attr('name'); | ||
| 164 | var value = um_get_data_for_directory( directory, 'filter_' + filter_name ); | ||
| 165 | if ( typeof value != 'undefined' ) { | ||
| 166 | value = um_unsanitize_value( value ); | ||
| 167 | request[ filter_name ] = value.split( '||' ); | ||
| 168 | } | ||
| 169 | } else if ( filter.hasClass( 'um-text-filter-type' ) && filter.find('input[type="text"]').length ) { | ||
| 170 | var filter_name = filter.find('input[type="text"]').attr('name'); | ||
| 171 | var value = um_get_data_for_directory( directory, 'filter_' + filter_name ); | ||
| 172 | if ( typeof value != 'undefined' ) { | ||
| 173 | value = um_unsanitize_value( value ); | ||
| 174 | request[ filter_name ] = value; | ||
| 175 | } | ||
| 176 | } else { | ||
| 177 | request = wp.hooks.applyFilters( 'um_member_directory_custom_filter_handler', request, filter, directory ); | ||
| 178 | } | ||
| 179 | }); | ||
| 180 | } | ||
| 181 | |||
| 182 | request = wp.hooks.applyFilters( 'um_member_directory_filter_request', request ); | ||
| 183 | |||
| 184 | wp.ajax.send( 'um_get_members', { | ||
| 185 | data: request, | ||
| 186 | success: function( answer ) { | ||
| 187 | //set last data hard for using on layouts reloading | ||
| 188 | um_member_directory_last_data[ hash ] = answer; | ||
| 189 | |||
| 190 | um_build_template( directory, answer ); | ||
| 191 | |||
| 192 | var pagination_template = wp.template( 'um-members-pagination' ); | ||
| 193 | directory.find('.um-members-pagination-box').html( pagination_template( answer ) ); | ||
| 194 | |||
| 195 | directory.data( 'total_pages', answer.pagination.total_pages ); | ||
| 196 | |||
| 197 | if ( answer.pagination.total_pages ) { | ||
| 198 | directory.find( '.um-member-directory-sorting-options' ).prop( 'disabled', false ); | ||
| 199 | directory.find( '.um-member-directory-view-type' ).removeClass( 'um-disabled' ); | ||
| 200 | } else { | ||
| 201 | directory.find( '.um-member-directory-sorting-options' ).prop( 'disabled', true ); | ||
| 202 | directory.find( '.um-member-directory-view-type' ).addClass( 'um-disabled' ); | ||
| 203 | } | ||
| 204 | |||
| 205 | //args.directory = directory; | ||
| 206 | wp.hooks.doAction( 'um_member_directory_loaded', directory, answer ); | ||
| 207 | //jQuery( document ).trigger('um_members_rendered', [ directory, answer ] ); | ||
| 208 | |||
| 209 | um_init_new_dropdown(); | ||
| 210 | |||
| 211 | um_members_hide_preloader( directory ); | ||
| 212 | }, | ||
| 213 | error: function( data ) { | ||
| 214 | console.log( data ); | ||
| 215 | |||
| 216 | um_members_hide_preloader( directory ); | ||
| 217 | } | ||
| 218 | }); | ||
| 219 | } |
| ... | @@ -3,6 +3,8 @@ import DataTable from 'datatables.net-bs5'; | ... | @@ -3,6 +3,8 @@ import DataTable from 'datatables.net-bs5'; |
| 3 | 3 | ||
| 4 | import "./_resources_list"; | 4 | import "./_resources_list"; |
| 5 | import "./_contest"; | 5 | import "./_contest"; |
| 6 | import "./_member_list"; | ||
| 7 | |||
| 6 | 8 | ||
| 7 | var a = document.querySelector('.blur-image'); | 9 | var a = document.querySelector('.blur-image'); |
| 8 | 10 | ||
| ... | @@ -36,17 +38,3 @@ document.addEventListener("DOMContentLoaded", function() { | ... | @@ -36,17 +38,3 @@ document.addEventListener("DOMContentLoaded", function() { |
| 36 | c2.style.backgroundImage = 'linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 91%, rgba(0, 0, 0, 0) 100%), url(' + b2 + ')'; | 38 | c2.style.backgroundImage = 'linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 91%, rgba(0, 0, 0, 0) 100%), url(' + b2 + ')'; |
| 37 | }; | 39 | }; |
| 38 | }); | 40 | }); |
| 39 | |||
| 40 | jQuery(document).ready(function($) { | ||
| 41 | |||
| 42 | // $(document).on("click", ".um-member-directory-filters-a", function(e) { | ||
| 43 | // $('#department_branch').select2('destroy'); | ||
| 44 | // }); | ||
| 45 | |||
| 46 | $("#quicksearch.um-search-line").keyup(function() { | ||
| 47 | $('.um-do-search.um-button').click(); | ||
| 48 | |||
| 49 | |||
| 50 | }); | ||
| 51 | }); | ||
| 52 | ... | ... |
| ... | @@ -18,6 +18,7 @@ | ... | @@ -18,6 +18,7 @@ |
| 18 | @import "theme/link_block"; | 18 | @import "theme/link_block"; |
| 19 | @import "theme/resources_list"; | 19 | @import "theme/resources_list"; |
| 20 | @import "theme/contest"; | 20 | @import "theme/contest"; |
| 21 | @import "theme/member"; | ||
| 21 | // @import "assets/understrap/theme/colors"; // <-------- This creates the necessary bootstrap color classes. | 22 | // @import "assets/understrap/theme/colors"; // <-------- This creates the necessary bootstrap color classes. |
| 22 | // @import "assets/understrap/theme/blocks"; // <-------- This adds Bootstrap styles to blocks. | 23 | // @import "assets/understrap/theme/blocks"; // <-------- This adds Bootstrap styles to blocks. |
| 23 | // @import "assets/understrap/theme/contact-form7"; // <-------- Contact Form 7 - Bootstrap 4 support | 24 | // @import "assets/understrap/theme/contact-form7"; // <-------- Contact Form 7 - Bootstrap 4 support | ... | ... |
| ... | @@ -123,101 +123,3 @@ | ... | @@ -123,101 +123,3 @@ |
| 123 | .um-register{ | 123 | .um-register{ |
| 124 | max-width: 600px; | 124 | max-width: 600px; |
| 125 | } | 125 | } |
| 126 | |||
| 127 | .um input[type=submit].um-button, .um input[type=submit].um-button:focus, .um a.um-button{ | ||
| 128 | text-transform: uppercase !important; | ||
| 129 | background-color: #183668 !important; | ||
| 130 | background:#183668 !important; | ||
| 131 | color: #fff; | ||
| 132 | border-radius: 0px !important; | ||
| 133 | } | ||
| 134 | .um input[type=submit].um-button:hover, .um input[type=submit].um-button:focus, .um a.um-button:hover{ | ||
| 135 | background-color: #132C55 !important; | ||
| 136 | background:#132C55 !important; | ||
| 137 | font-weight: bold !important | ||
| 138 | |||
| 139 | } | ||
| 140 | .um .um-tip:hover, .um .um-field-radio.active:not(.um-field-radio-state-disabled) i, .um .um-field-checkbox.active:not(.um-field-radio-state-disabled) i, .um .um-member-name a:hover, .um .um-member-more a:hover, .um .um-member-less a:hover, .um .um-members-pagi a:hover, .um .um-cover-add:hover, .um .um-profile-subnav a.active, .um .um-item-meta a, .um-account-name a:hover, .um-account-nav a.current, .um-account-side li a.current span.um-account-icon, .um-account-side li a.current:hover span.um-account-icon, .um-dropdown li a:hover, i.um-active-color, span.um-active-color{ | ||
| 141 | color:#3EAF49 !important; | ||
| 142 | } | ||
| 143 | .um-account-profile-link{ | ||
| 144 | display: none !important; | ||
| 145 | } | ||
| 146 | |||
| 147 | .directory-filters-top{ | ||
| 148 | border-top: 1px solid #3eaf49!important; | ||
| 149 | padding: 10px 0 0px 0; | ||
| 150 | } | ||
| 151 | .directory-filters-bottom{ | ||
| 152 | border-bottom: 1px solid #3eaf49!important; | ||
| 153 | padding: 0px !important; | ||
| 154 | margin-bottom: 40px !important; | ||
| 155 | } | ||
| 156 | |||
| 157 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-nav-line .um-member-directory-filters .um-member-directory-filters-a{ | ||
| 158 | font-size: 18px; | ||
| 159 | line-height: 24px; | ||
| 160 | color: #1a3668; | ||
| 161 | text-transform: uppercase; | ||
| 162 | text-decoration: none; | ||
| 163 | padding: 10px 0; | ||
| 164 | display: block; | ||
| 165 | font-weight: 800; | ||
| 166 | } | ||
| 167 | .um-member-directory-filters{ | ||
| 168 | justify-content:flex-start; | ||
| 169 | } | ||
| 170 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-nav-line .um-member-directory-filters{ | ||
| 171 | justify-content: flex-start !important; | ||
| 172 | } | ||
| 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"); | ||
| 175 | } | ||
| 176 | .um-member-directory-filters-visible{ | ||
| 177 | a{ | ||
| 178 | .glyphicon-chevron-up::after { | ||
| 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"); | ||
| 180 | } | ||
| 181 | } | ||
| 182 | } | ||
| 183 | |||
| 184 | .um-directory .um-member-directory-header .um-member-directory-header-row.um-member-directory-search-row{ | ||
| 185 | justify-content: flex-start !important; | ||
| 186 | } | ||
| 187 | |||
| 188 | #quicksearch { | ||
| 189 | width: 600px; | ||
| 190 | border: 1px solid #fff !important; | ||
| 191 | border-bottom: 1px solid #8e908f!important; | ||
| 192 | margin-bottom: 15px; | ||
| 193 | } | ||
| 194 | .um-do-search.um-button{ | ||
| 195 | display: none; | ||
| 196 | } | ||
| 197 | |||
| 198 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-search-line label{ | ||
| 199 | flex:unset !important; | ||
| 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 | ... | ... |
| 1 | |||
| 2 | .um input[type=submit].um-button, .um input[type=submit].um-button:focus, .um a.um-button{ | ||
| 3 | text-transform: uppercase !important; | ||
| 4 | background-color: #183668 !important; | ||
| 5 | background:#183668 !important; | ||
| 6 | color: #fff; | ||
| 7 | border-radius: 0px !important; | ||
| 8 | } | ||
| 9 | .um input[type=submit].um-button:hover, .um input[type=submit].um-button:focus, .um a.um-button:hover{ | ||
| 10 | background-color: #132C55 !important; | ||
| 11 | background:#132C55 !important; | ||
| 12 | font-weight: bold !important | ||
| 13 | |||
| 14 | } | ||
| 15 | .um .um-tip:hover, .um .um-field-radio.active:not(.um-field-radio-state-disabled) i, .um .um-field-checkbox.active:not(.um-field-radio-state-disabled) i, .um .um-member-name a:hover, .um .um-member-more a:hover, .um .um-member-less a:hover, .um .um-members-pagi a:hover, .um .um-cover-add:hover, .um .um-profile-subnav a.active, .um .um-item-meta a, .um-account-name a:hover, .um-account-nav a.current, .um-account-side li a.current span.um-account-icon, .um-account-side li a.current:hover span.um-account-icon, .um-dropdown li a:hover, i.um-active-color, span.um-active-color{ | ||
| 16 | color:#3EAF49 !important; | ||
| 17 | } | ||
| 18 | .um-account-profile-link{ | ||
| 19 | display: none !important; | ||
| 20 | } | ||
| 21 | |||
| 22 | .directory-filters-top{ | ||
| 23 | border-top: 1px solid #3eaf49!important; | ||
| 24 | padding: 10px 0 0px 0; | ||
| 25 | } | ||
| 26 | .directory-filters-bottom{ | ||
| 27 | border-bottom: 1px solid #3eaf49!important; | ||
| 28 | padding: 0px !important; | ||
| 29 | margin-bottom: 40px !important; | ||
| 30 | } | ||
| 31 | |||
| 32 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-nav-line .um-member-directory-filters .um-member-directory-filters-a{ | ||
| 33 | font-size: 18px; | ||
| 34 | line-height: 24px; | ||
| 35 | color: #1a3668; | ||
| 36 | text-transform: uppercase; | ||
| 37 | text-decoration: none; | ||
| 38 | padding: 10px 0; | ||
| 39 | display: block; | ||
| 40 | font-weight: 800; | ||
| 41 | } | ||
| 42 | .um-member-directory-filters{ | ||
| 43 | justify-content:flex-start; | ||
| 44 | } | ||
| 45 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-nav-line .um-member-directory-filters{ | ||
| 46 | justify-content: flex-start !important; | ||
| 47 | } | ||
| 48 | .glyphicon-chevron-up::after { | ||
| 49 | 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"); | ||
| 50 | } | ||
| 51 | .um-member-directory-filters-visible{ | ||
| 52 | a{ | ||
| 53 | .glyphicon-chevron-up::after { | ||
| 54 | 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"); | ||
| 55 | } | ||
| 56 | } | ||
| 57 | } | ||
| 58 | |||
| 59 | .um-directory .um-member-directory-header .um-member-directory-header-row.um-member-directory-search-row{ | ||
| 60 | justify-content: flex-start !important; | ||
| 61 | } | ||
| 62 | |||
| 63 | #quicksearch { | ||
| 64 | width: 600px; | ||
| 65 | border: 1px solid #fff !important; | ||
| 66 | border-bottom: 1px solid #8e908f!important; | ||
| 67 | margin-bottom: 15px; | ||
| 68 | } | ||
| 69 | .um-do-search.um-button{ | ||
| 70 | display: none; | ||
| 71 | } | ||
| 72 | |||
| 73 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-search-line label{ | ||
| 74 | flex:unset !important; | ||
| 75 | } | ||
| 76 | .um-faicon-angle-left:before{ | ||
| 77 | 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; | ||
| 78 | } | ||
| 79 | .um-faicon-angle-right:before{ | ||
| 80 | 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; | ||
| 81 | } | ||
| 82 | |||
| 83 | .um-directory .um-members-pagination-box .um-members-pagi .pagi.current{ | ||
| 84 | border-color: #fff !important; | ||
| 85 | background-color: #fff !important; | ||
| 86 | color: #3eaf49 !important; | ||
| 87 | font-weight: 800 !important; | ||
| 88 | } | ||
| 89 | .um-directory .um-members-pagination-box .um-members-pagi .pagi.current span{ | ||
| 90 | border-color: #fff !important; | ||
| 91 | background-color: #fff !important; | ||
| 92 | color: #3eaf49 !important; | ||
| 93 | font-weight: 800 !important; | ||
| 94 | } | ||
| 95 | .pagi span{ | ||
| 96 | color: #2c2c2c !important; | ||
| 97 | |||
| 98 | } | ||
| 99 | .um-check-filter-type label:before{ | ||
| 100 | height: 20px !important; | ||
| 101 | width: 20px !important; | ||
| 102 | } | ||
| 103 | .um-directory .um-member-directory-header .um-member-directory-header-row .um-search .um-search-filter{ | ||
| 104 | width: auto !important; | ||
| 105 | } | ||
| 106 | .directory-filters-bottom.um-member-directory-filters-bar:not(.um-header-row-invisible){ | ||
| 107 | .um-search.um-search-1.um-search-invisible{ | ||
| 108 | display: flex !important; | ||
| 109 | flex-wrap: wrap !important; | ||
| 110 | } | ||
| 111 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -318,22 +318,11 @@ if ( ( ( $search && $show_search ) || ( $filters && $show_filters && count( $sea | ... | @@ -318,22 +318,11 @@ if ( ( ( $search && $show_search ) || ( $filters && $show_filters && count( $sea |
| 318 | </script> | 318 | </script> |
| 319 | 319 | ||
| 320 | <div class="um-member-directory-header-row directory-filters-bottom um-member-directory-filters-bar<?php if ( ! $filters_expanded ) { ?> um-header-row-invisible<?php } ?>"> | 320 | <div class="um-member-directory-header-row directory-filters-bottom um-member-directory-filters-bar<?php if ( ! $filters_expanded ) { ?> um-header-row-invisible<?php } ?>"> |
| 321 | <div class="um-search um-search-<?php echo count( $search_filters ) ?><?php if ( ! $filters_expanded ) { ?> um-search-invisible<?php } ?>"> | 321 | <div class="um-search um-search-<?php echo count( $search_filters ) ?><?php if ( ! $filters_expanded ) { ?> um-search-invisible<?php } ?>"> |
| 322 | <?php $i = 0; | 322 | <?php $terms = get_post_meta('437','_um_custom_fields', true); |
| 323 | foreach ( $search_filters as $filter ) { | 323 | foreach($terms['department_branch']['options'] as $term){ ?> |
| 324 | $filter_content = UM()->member_directory()->show_filter( $filter, $args ); | 324 | <div class="category-filter um-search-filter um-check-filter-type"> <input id="<?php echo $term ; ?>" name="department_branch" value="<?php echo $term ; ?>" type="checkbox" class=" sr-only"><label for="<?php echo $term; ?>"><?php echo $term; ?></label></div> |
| 325 | if ( empty( $filter_content ) ) { | 325 | <?php }; ?> |
| 326 | continue; | ||
| 327 | } | ||
| 328 | |||
| 329 | $type = UM()->member_directory()->filter_types[ $filter ]; ?> | ||
| 330 | |||
| 331 | <div class="um-search-filter um-<?php echo esc_attr( $type ) ?>-filter-type <?php echo ( $i != 0 && $i%2 !== 0 ) ? 'um-search-filter-2' : '' ?>"> | ||
| 332 | <?php echo $filter_content; ?> | ||
| 333 | </div> | ||
| 334 | |||
| 335 | <?php $i++; | ||
| 336 | } ?> | ||
| 337 | </div> | 326 | </div> |
| 338 | </div> | 327 | </div> |
| 339 | <div class="um-member-directory-header-row"> | 328 | <div class="um-member-directory-header-row"> | ... | ... |
-
Please register or sign in to post a comment