Search results
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
19 changed files
with
1261 additions
and
460 deletions
| ... | @@ -16566,62 +16566,6 @@ html:lang(fr-FR) .fr-only { | ... | @@ -16566,62 +16566,6 @@ html:lang(fr-FR) .fr-only { |
| 16566 | display: inline-block !important; | 16566 | display: inline-block !important; |
| 16567 | } | 16567 | } |
| 16568 | 16568 | ||
| 16569 | .search-results .search-field { | ||
| 16570 | border: 0; | ||
| 16571 | border-bottom: 1px solid #707070; | ||
| 16572 | border-radius: 0; | ||
| 16573 | } | ||
| 16574 | .search-results #content { | ||
| 16575 | padding: 2.5rem 0; | ||
| 16576 | padding-top: 1rem; | ||
| 16577 | } | ||
| 16578 | |||
| 16579 | .pagination { | ||
| 16580 | justify-content: center; | ||
| 16581 | margin-top: 1rem; | ||
| 16582 | } | ||
| 16583 | .pagination .page-item { | ||
| 16584 | border: 0; | ||
| 16585 | display: flex; | ||
| 16586 | align-items: center; | ||
| 16587 | } | ||
| 16588 | .pagination .page-item .page-link { | ||
| 16589 | color: #000000; | ||
| 16590 | margin-left: 0; | ||
| 16591 | border: 0; | ||
| 16592 | font-family: "PT Sans", sans-serif; | ||
| 16593 | } | ||
| 16594 | .pagination .page-item .page-link:hover { | ||
| 16595 | text-decoration: underline; | ||
| 16596 | background: none; | ||
| 16597 | } | ||
| 16598 | .pagination .page-item .page-link.next, .pagination .page-item .page-link.prev { | ||
| 16599 | color: transparent; | ||
| 16600 | background-image: 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 0) rotate(90)'/%3E%3C/svg%3E"); | ||
| 16601 | height: 0.938rem; | ||
| 16602 | background-size: contain; | ||
| 16603 | background-repeat: no-repeat; | ||
| 16604 | background-position: center; | ||
| 16605 | } | ||
| 16606 | .pagination .page-item .page-link.next:hover, .pagination .page-item .page-link.prev:hover { | ||
| 16607 | background: none; | ||
| 16608 | text-decoration: none; | ||
| 16609 | background-image: 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 0) rotate(90)' fill='%23699'/%3E%3C/svg%3E"); | ||
| 16610 | background-size: contain; | ||
| 16611 | background-repeat: no-repeat; | ||
| 16612 | background-position: center; | ||
| 16613 | } | ||
| 16614 | .pagination .page-item .page-link.prev { | ||
| 16615 | transform: rotate(180deg); | ||
| 16616 | } | ||
| 16617 | .pagination .page-item.active .page-link { | ||
| 16618 | font-family: "PT Sans", sans-serif; | ||
| 16619 | font-weight: bold; | ||
| 16620 | } | ||
| 16621 | .pagination .page-item.active .page-link:hover { | ||
| 16622 | text-decoration: none; | ||
| 16623 | } | ||
| 16624 | |||
| 16625 | .sh1 { | 16569 | .sh1 { |
| 16626 | font-weight: 700; | 16570 | font-weight: 700; |
| 16627 | line-height: 24px !important; | 16571 | line-height: 24px !important; |
| ... | @@ -16636,72 +16580,10 @@ html:lang(fr-FR) .fr-only { | ... | @@ -16636,72 +16580,10 @@ html:lang(fr-FR) .fr-only { |
| 16636 | } | 16580 | } |
| 16637 | } | 16581 | } |
| 16638 | 16582 | ||
| 16639 | #search-wrapper { | ||
| 16640 | margin-top: 1rem; | ||
| 16641 | padding-top: 3rem; | ||
| 16642 | display: flex; | ||
| 16643 | } | ||
| 16644 | @media screen and (max-width: 950px) { | ||
| 16645 | #search-wrapper { | ||
| 16646 | padding: 0rem 2rem; | ||
| 16647 | } | ||
| 16648 | } | ||
| 16649 | #search-wrapper .searchandfilter { | 16583 | #search-wrapper .searchandfilter { |
| 16650 | width: calc(100% - 50px); | 16584 | width: calc(100% - 50px); |
| 16651 | display: inline-block; | 16585 | display: inline-block; |
| 16652 | } | 16586 | } |
| 16653 | #search-wrapper #main > article { | ||
| 16654 | padding: 2rem 0; | ||
| 16655 | border-top: 1px solid #bebebe; | ||
| 16656 | display: flex; | ||
| 16657 | } | ||
| 16658 | #search-wrapper #main > article .photo { | ||
| 16659 | min-width: 18.375rem; | ||
| 16660 | min-height: 12.375rem; | ||
| 16661 | max-width: 18.375rem; | ||
| 16662 | max-height: 12.375rem; | ||
| 16663 | } | ||
| 16664 | #search-wrapper #main > article .photo img { | ||
| 16665 | -o-object-fit: cover; | ||
| 16666 | object-fit: cover; | ||
| 16667 | -o-object-position: center; | ||
| 16668 | object-position: center; | ||
| 16669 | height: 100%; | ||
| 16670 | width: 100%; | ||
| 16671 | } | ||
| 16672 | #search-wrapper #main > article a { | ||
| 16673 | gap: 1.5rem; | ||
| 16674 | display: flex; | ||
| 16675 | color: #000000; | ||
| 16676 | text-decoration: none; | ||
| 16677 | flex-direction: row; | ||
| 16678 | } | ||
| 16679 | #search-wrapper #main > article a:hover h2.entry-title, #search-wrapper #main > article a:hover .entry-title.h2 { | ||
| 16680 | text-decoration: underline; | ||
| 16681 | } | ||
| 16682 | #search-wrapper #main > article .entry-header { | ||
| 16683 | height: auto !important; | ||
| 16684 | } | ||
| 16685 | #search-wrapper #main > article h2.entry-title, #search-wrapper #main > article .entry-title.h2 { | ||
| 16686 | margin-top: 0 !important; | ||
| 16687 | font-size: 1.25rem !important; | ||
| 16688 | font-family: "PT Sans", sans-serif; | ||
| 16689 | font-weight: bold; | ||
| 16690 | } | ||
| 16691 | @media screen and (max-width: 768px) { | ||
| 16692 | #search-wrapper #main > article h2.entry-title, #search-wrapper #main > article .entry-title.h2 { | ||
| 16693 | font-size: 1rem !important; | ||
| 16694 | line-height: 1.25rem !important; | ||
| 16695 | } | ||
| 16696 | } | ||
| 16697 | #search-wrapper #main > article .entry-summary p { | ||
| 16698 | color: #4d4d4d; | ||
| 16699 | font-size: 1rem; | ||
| 16700 | font-family: "PT Sans", sans-serif; | ||
| 16701 | } | ||
| 16702 | #search-wrapper #main .understrap-read-more-link { | ||
| 16703 | display: none; | ||
| 16704 | } | ||
| 16705 | #search-wrapper .search-field { | 16587 | #search-wrapper .search-field { |
| 16706 | border: 0; | 16588 | border: 0; |
| 16707 | border-bottom: 1px solid #707070; | 16589 | border-bottom: 1px solid #707070; |
| ... | @@ -16793,10 +16675,6 @@ html:lang(fr-FR) .fr-only { | ... | @@ -16793,10 +16675,6 @@ html:lang(fr-FR) .fr-only { |
| 16793 | overflow: hidden; | 16675 | overflow: hidden; |
| 16794 | } | 16676 | } |
| 16795 | } | 16677 | } |
| 16796 | #search-wrapper #main { | ||
| 16797 | display: flex; | ||
| 16798 | flex-direction: column; | ||
| 16799 | } | ||
| 16800 | #search-wrapper .searchandfilter ul { | 16678 | #search-wrapper .searchandfilter ul { |
| 16801 | padding-left: 0px; | 16679 | padding-left: 0px; |
| 16802 | } | 16680 | } |
| ... | @@ -16817,6 +16695,7 @@ html:lang(fr-FR) .fr-only { | ... | @@ -16817,6 +16695,7 @@ html:lang(fr-FR) .fr-only { |
| 16817 | color: #000; | 16695 | color: #000; |
| 16818 | padding: 5px 14px; | 16696 | padding: 5px 14px; |
| 16819 | text-decoration: none; | 16697 | text-decoration: none; |
| 16698 | margin-top: 2px; | ||
| 16820 | } | 16699 | } |
| 16821 | @media screen and (max-width: 1450px) { | 16700 | @media screen and (max-width: 1450px) { |
| 16822 | #search-wrapper .search-filter-reset { | 16701 | #search-wrapper .search-filter-reset { |
| ... | @@ -17106,6 +16985,168 @@ ul.sf_date_field .sf-datepicker { | ... | @@ -17106,6 +16985,168 @@ ul.sf_date_field .sf-datepicker { |
| 17106 | width: 50px !important; | 16985 | width: 50px !important; |
| 17107 | } | 16986 | } |
| 17108 | 16987 | ||
| 16988 | .search-results .search-field { | ||
| 16989 | border: 0; | ||
| 16990 | border-bottom: 1px solid #707070; | ||
| 16991 | border-radius: 0; | ||
| 16992 | } | ||
| 16993 | .search-results #content { | ||
| 16994 | padding: 2.5rem 0; | ||
| 16995 | padding-top: 1rem; | ||
| 16996 | } | ||
| 16997 | |||
| 16998 | #search-wrapper { | ||
| 16999 | margin-top: 1rem; | ||
| 17000 | padding-top: 3rem; | ||
| 17001 | display: flex; | ||
| 17002 | } | ||
| 17003 | @media screen and (max-width: 950px) { | ||
| 17004 | #search-wrapper { | ||
| 17005 | padding: 0rem 2rem; | ||
| 17006 | } | ||
| 17007 | } | ||
| 17008 | #search-wrapper #main { | ||
| 17009 | display: flex; | ||
| 17010 | flex-direction: column; | ||
| 17011 | } | ||
| 17012 | #search-wrapper #main > article { | ||
| 17013 | padding: 2rem 0; | ||
| 17014 | border-top: 1px solid #bebebe; | ||
| 17015 | display: flex; | ||
| 17016 | } | ||
| 17017 | #search-wrapper #main > article .photo { | ||
| 17018 | min-width: 18.375rem; | ||
| 17019 | min-height: 12.375rem; | ||
| 17020 | max-width: 18.375rem; | ||
| 17021 | max-height: 12.375rem; | ||
| 17022 | } | ||
| 17023 | #search-wrapper #main > article .photo img { | ||
| 17024 | -o-object-fit: cover; | ||
| 17025 | object-fit: cover; | ||
| 17026 | -o-object-position: center; | ||
| 17027 | object-position: center; | ||
| 17028 | height: 100%; | ||
| 17029 | width: 100%; | ||
| 17030 | } | ||
| 17031 | #search-wrapper #main > article a { | ||
| 17032 | gap: 1.5rem; | ||
| 17033 | display: flex; | ||
| 17034 | color: #000000; | ||
| 17035 | text-decoration: none; | ||
| 17036 | flex-direction: row; | ||
| 17037 | } | ||
| 17038 | #search-wrapper #main > article a:hover h2.entry-title, #search-wrapper #main > article a:hover .entry-title.h2 { | ||
| 17039 | text-decoration: underline; | ||
| 17040 | } | ||
| 17041 | #search-wrapper #main > article a[href$=".pdf"] h2:before, #search-wrapper #main > article a[href$=".pdf"] .h2:before { | ||
| 17042 | content: ""; | ||
| 17043 | width: 1.313rem; | ||
| 17044 | height: 1.5rem; | ||
| 17045 | background-image: url("data:image/svg+xml,%3Csvg id='Group_1127' data-name='Group 1127' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='21.409' height='24.169' viewBox='0 0 21.409 24.169'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Rectangle_180' data-name='Rectangle 180' width='21.409' height='24.169' fill='none'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Group_1126' data-name='Group 1126' clip-path='url(%23clip-path)'%3E%3Cpath id='Path_1363' data-name='Path 1363' d='M18.646 24.169H2.779c-.037-.013-.074-.029-.112-.039a.943.943 0 0 1-.657-.6 1.009 1.009 0 0 1-.057-.365q0-2.321 0-4.641V18.39H1.84c-.164 0-.329 0-.493 0A1.354 1.354 0 0 1 .038 17.265.992.992 0 0 0 0 17.141V9.892a.757.757 0 0 0 .035-.114A1.352 1.352 0 0 1 1.392 8.64c.158 0 .315 0 .473 0 .026 0 .052 0 .088-.007V1.079c0-.05 0-.1 0-.151a.952.952 0 0 1 .609-.87A1.084 1.084 0 0 1 2.967 0H14.343a.468.468 0 0 1 .366.161c.032.034.063.07.094.105Q17.05 2.834 19.3 5.4a.667.667 0 0 1 .183.473c0 .03 0 .06 0 .091V8.64h.111c.164 0 .329-.005.493 0a1.326 1.326 0 0 1 1.21.8 1.294 1.294 0 0 1 .112.587q0 2.034 0 4.067 0 1.445 0 2.889a1.732 1.732 0 0 1-.013.291 1.351 1.351 0 0 1-1.323 1.118c-.164 0-.329 0-.493 0-.029 0-.058 0-.095.005v.137q0 2.285 0 4.571c0 .064 0 .128-.007.191a.947.947 0 0 1-.707.835c-.042.011-.082.026-.124.04M2.906.95V8.635H18.52c.023-.106.019-2.289 0-2.369H14.451c-.037 0-.074 0-.111 0a.475.475 0 0 1-.459-.4.952.952 0 0 1-.006-.151q0-2.316 0-4.631V.95Zm0 22H18.528V18.4H2.9Zm5.376-5.727c.041.007.073.014.106.017.274.023.548.051.822.066a11.306 11.306 0 0 0 1.769-.021A5.79 5.79 0 0 0 12.311 17a3.08 3.08 0 0 0 1.978-1.948 4.442 4.442 0 0 0 .159-2.361 2.9 2.9 0 0 0-.577-1.281 3.15 3.15 0 0 0-1.6-1.051 5.884 5.884 0 0 0-1.619-.222 15.609 15.609 0 0 0-1.93.083c-.149.016-.3.039-.447.06ZM3.764 14.73a4.907 4.907 0 0 0 .945.015 3.685 3.685 0 0 0 1.162-.262 2.171 2.171 0 0 0 .976-.749 2.344 2.344 0 0 0 .384-1.706 1.96 1.96 0 0 0-1.308-1.654 3.711 3.711 0 0 0-1.249-.234 14.1 14.1 0 0 0-2.249.1c-.082.01-.163.027-.241.04v6.974H3.764ZM19.9 10.192c-.156-.022-4.245-.014-4.314.006v7.051c.133.019 1.517.014 1.6-.007V15.364q0-.237 0-.473c0-.156 0-.313 0-.477h1.695c.141 0 .282 0 .423 0s.279.006.416 0v-1.3H17.2c-.021-.19-.012-1.539.012-1.62H19.9Z' transform='translate(0 0)' fill='%231a1818'/%3E%3Cpath id='Path_1364' data-name='Path 1364' d='M162.156 186.274c.116-.015.228-.033.341-.042a3.327 3.327 0 0 1 1.129.076 1.818 1.818 0 0 1 1.39 1.425 3.261 3.261 0 0 1-.092 1.835 1.922 1.922 0 0 1-1.422 1.283 3.15 3.15 0 0 1-.848.088c-.164 0-.328-.011-.5-.016Z' transform='translate(-152.266 -174.859)' fill='%231a1818'/%3E%3Cpath id='Path_1365' data-name='Path 1365' d='M61.758 188.026v-2.1c.042-.009.083-.022.125-.027a2.629 2.629 0 0 1 1.038.028 1.092 1.092 0 0 1 .378.181.894.894 0 0 1 .346.582 1.233 1.233 0 0 1-.006.46 1.045 1.045 0 0 1-.786.829 2.131 2.131 0 0 1-.757.073c-.11-.006-.22-.019-.338-.03' transform='translate(-57.991 -174.529)' fill='%231a1818'/%3E%3C/g%3E%3C/svg%3E"); | ||
| 17046 | background-size: contain; | ||
| 17047 | display: inline-block; | ||
| 17048 | position: relative; | ||
| 17049 | top: 5px; | ||
| 17050 | left: -0.5rem; | ||
| 17051 | } | ||
| 17052 | #search-wrapper #main > article a[href$=".doc"] h2:before, #search-wrapper #main > article a[href$=".doc"] .h2:before, | ||
| 17053 | #search-wrapper #main > article a[href$=".docx"] h2:before, | ||
| 17054 | #search-wrapper #main > article a[href$=".docx"] .h2:before { | ||
| 17055 | content: ""; | ||
| 17056 | width: 1.313rem; | ||
| 17057 | height: 1.5rem; | ||
| 17058 | background-repeat: no-repeat; | ||
| 17059 | background-image: url('data:image/svg+xml,<svg id="Group_1918" data-name="Group 1918" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="17.95" height="20.264" viewBox="0 0 17.95 20.264"><defs><clipPath id="clip-path"><rect id="Rectangle_268" data-name="Rectangle 268" width="17.95" height="20.264" fill="none"/></clipPath></defs><g id="Group_1918-2" data-name="Group 1918" clip-path="url(%23clip-path)"><path id="Path_1519" data-name="Path 1519" d="M64.535,186.442l.166.008.118,0a1.607,1.607,0,0,0,.761-.162,1.293,1.293,0,0,0,.481-.43,1.73,1.73,0,0,0,.248-.619,3.63,3.63,0,0,0,.071-.722,3.436,3.436,0,0,0-.063-.651,1.633,1.633,0,0,0-.233-.588,1.313,1.313,0,0,0-.462-.426,1.488,1.488,0,0,0-.742-.166q-.174,0-.351.008a2.153,2.153,0,0,0-.264.024v3.7a.621.621,0,0,0,.106.012l.162.008" transform="translate(-60.981 -173.349)" fill="%231a1818"/><path id="Path_1520" data-name="Path 1520" d="M163.9,182.626a1.089,1.089,0,0,0-.371-.406,1.11,1.11,0,0,0-1.452.316,2.608,2.608,0,0,0-.316,1.448,3.882,3.882,0,0,0,.071.769,1.983,1.983,0,0,0,.217.6,1.1,1.1,0,0,0,.375.394,1.011,1.011,0,0,0,.544.142,1.026,1.026,0,0,0,.892-.45,2.6,2.6,0,0,0,.316-1.46,3.958,3.958,0,0,0-.067-.749,2.092,2.092,0,0,0-.209-.607" transform="translate(-153.494 -172.763)" fill="%231a1818"/><path id="Path_1521" data-name="Path 1521" d="M17.95,8.4a1.085,1.085,0,0,0-.094-.492,1.112,1.112,0,0,0-1.014-.667c-.138-.006-.276,0-.414,0h-.093V5c0-.025,0-.051,0-.076a.559.559,0,0,0-.154-.4Q14.293,2.378,12.41.223c-.026-.03-.051-.06-.078-.088A.392.392,0,0,0,12.025,0H2.487a.907.907,0,0,0-.34.049.8.8,0,0,0-.51.729c0,.042,0,.084,0,.127V7.238c-.03,0-.052.006-.074.006-.132,0-.264,0-.4,0A1.134,1.134,0,0,0,.03,8.2a.633.633,0,0,1-.03.1v6.078a.835.835,0,0,1,.032.1,1.136,1.136,0,0,0,1.1.942c.138,0,.276,0,.414,0h.094v.113q0,1.946,0,3.891a.845.845,0,0,0,.048.306.79.79,0,0,0,.551.5c.032.009.063.022.094.033h13.3c.035-.011.069-.024.1-.033a.794.794,0,0,0,.593-.7c0-.053.006-.107.006-.16q0-1.916,0-3.832v-.115c.03,0,.055,0,.079,0h.414a1.132,1.132,0,0,0,1.11-.937,1.452,1.452,0,0,0,.011-.244q0-1.211,0-2.423,0-1.705,0-3.41M2.437.8h9.2V.905q0,1.941,0,3.883a.792.792,0,0,0,.005.126.4.4,0,0,0,.385.339c.031,0,.062,0,.093,0h3.407c.02.067.024,1.9,0,1.986H2.437ZM11.823,11.22a3.273,3.273,0,0,1-.611,2.126,2.113,2.113,0,0,1-1.732.746,2.453,2.453,0,0,1-1.041-.205,1.913,1.913,0,0,1-.73-.584,2.591,2.591,0,0,1-.43-.907,4.529,4.529,0,0,1-.142-1.176,3.287,3.287,0,0,1,.608-2.126,2.11,2.11,0,0,1,1.736-.745,2.434,2.434,0,0,1,1.034.205,1.948,1.948,0,0,1,.734.584,2.553,2.553,0,0,1,.434.907,4.53,4.53,0,0,1,.142,1.175M2.206,13.989V8.459q.166-.024.375-.039T3.01,8.4q.221-.008.43-.012t.375,0a3.424,3.424,0,0,1,1.254.205,2.135,2.135,0,0,1,.844.576,2.311,2.311,0,0,1,.473.884,4.013,4.013,0,0,1,.15,1.128,4.087,4.087,0,0,1-.142,1.081,2.445,2.445,0,0,1-.473.923,2.373,2.373,0,0,1-.872.647,3.241,3.241,0,0,1-1.337.245q-.126,0-.335-.008t-.434-.02l-.43-.024q-.205-.012-.308-.028m13.329,5.253H2.435V15.424h13.1Zm.158-5.229a4.067,4.067,0,0,1-.8.078,2.869,2.869,0,0,1-.943-.154,2.016,2.016,0,0,1-.785-.5,2.443,2.443,0,0,1-.54-.892,3.875,3.875,0,0,1-.2-1.329,3.6,3.6,0,0,1,.225-1.361,2.469,2.469,0,0,1,.584-.884,2.155,2.155,0,0,1,.8-.481,2.8,2.8,0,0,1,.884-.146,4.316,4.316,0,0,1,.8.063,2.935,2.935,0,0,1,.54.15l-.213.915a1.569,1.569,0,0,0-.43-.126,3.935,3.935,0,0,0-.6-.039,1.317,1.317,0,0,0-1.053.466,2.193,2.193,0,0,0-.4,1.447,2.994,2.994,0,0,0,.095.779,1.676,1.676,0,0,0,.288.6,1.327,1.327,0,0,0,.481.387,1.523,1.523,0,0,0,.667.138,2.178,2.178,0,0,0,.6-.071,1.758,1.758,0,0,0,.426-.181l.221.878a1.656,1.656,0,0,1-.643.258" fill="%231a1818"/></g></svg>'); | ||
| 17060 | background-size: contain; | ||
| 17061 | display: inline-block; | ||
| 17062 | position: relative; | ||
| 17063 | top: 5px; | ||
| 17064 | left: -0.5rem; | ||
| 17065 | } | ||
| 17066 | #search-wrapper #main > article a[href$=".xls"] h2:before, #search-wrapper #main > article a[href$=".xls"] .h2:before, | ||
| 17067 | #search-wrapper #main > article a[href$=".xlsx"] h2:before, | ||
| 17068 | #search-wrapper #main > article a[href$=".xlsx"] .h2:before { | ||
| 17069 | content: ""; | ||
| 17070 | width: 1.313rem; | ||
| 17071 | height: 1.5rem; | ||
| 17072 | background-repeat: no-repeat; | ||
| 17073 | background-size: contain; | ||
| 17074 | background-image: url('data:image/svg+xml,<svg id="Group_1924" data-name="Group 1924" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="17.95" height="20.264" viewBox="0 0 17.95 20.264"><defs><clipPath id="clip-path"><rect id="Rectangle_269" data-name="Rectangle 269" width="17.95" height="20.264" fill="none"/></clipPath></defs><g id="Group_1924-2" data-name="Group 1924" clip-path="url(%23clip-path)"><path id="Path_1522" data-name="Path 1522" d="M17.95,8.4a1.085,1.085,0,0,0-.094-.492,1.112,1.112,0,0,0-1.014-.667c-.138-.006-.276,0-.414,0h-.093V5c0-.025,0-.051,0-.076a.56.56,0,0,0-.154-.4Q14.293,2.377,12.41.222c-.026-.03-.051-.06-.078-.088A.392.392,0,0,0,12.025,0H2.487a.909.909,0,0,0-.34.049.8.8,0,0,0-.51.729c0,.042,0,.084,0,.127V7.237c-.03,0-.052.006-.073.006-.132,0-.265,0-.4,0A1.134,1.134,0,0,0,.03,8.2a.628.628,0,0,1-.03.1v6.078a.824.824,0,0,1,.032.1,1.135,1.135,0,0,0,1.1.942c.138,0,.276,0,.414,0h.094v.113q0,1.946,0,3.891a.845.845,0,0,0,.048.306.791.791,0,0,0,.551.5c.032.009.063.022.094.033h13.3c.034-.011.068-.024.1-.033a.794.794,0,0,0,.593-.7c0-.053.006-.107.006-.16q0-1.916,0-3.832v-.115c.03,0,.055,0,.079,0h.414a1.132,1.132,0,0,0,1.11-.937,1.447,1.447,0,0,0,.011-.244q0-1.211,0-2.423,0-1.705,0-3.41M15.534,19.241H2.435V15.423h13.1ZM2.6,8.458H3.9l.852,1.594.189.56.181-.56.891-1.594H7.188L5.594,11.117,7.267,13.98H5.981l-.97-1.7L4.8,11.693l-.205.584-.978,1.7H2.438l1.7-2.809Zm8.725,4.56v.962H7.827V8.458H8.908v4.56Zm2.757-.931a2.045,2.045,0,0,0-.465-.288q-.28-.13-.607-.268a3.1,3.1,0,0,1-.607-.339,1.726,1.726,0,0,1-.465-.5,1.433,1.433,0,0,1-.185-.765,1.678,1.678,0,0,1,.134-.7,1.31,1.31,0,0,1,.383-.493,1.646,1.646,0,0,1,.588-.292,2.816,2.816,0,0,1,.757-.095,4.75,4.75,0,0,1,.907.083,2.308,2.308,0,0,1,.7.241l-.339.907a1.9,1.9,0,0,0-.521-.2,2.961,2.961,0,0,0-.749-.091.959.959,0,0,0-.58.15.476.476,0,0,0-.2.4.5.5,0,0,0,.185.394,2.138,2.138,0,0,0,.466.292q.28.134.607.276a3.263,3.263,0,0,1,.607.343,1.752,1.752,0,0,1,.465.5,1.366,1.366,0,0,1,.185.738,1.821,1.821,0,0,1-.146.761,1.444,1.444,0,0,1-.41.533,1.735,1.735,0,0,1-.639.316,3.122,3.122,0,0,1-.824.1,4.392,4.392,0,0,1-1.041-.111,3.18,3.18,0,0,1-.663-.221l.347-.923a2.123,2.123,0,0,0,.225.1,2.866,2.866,0,0,0,.312.1,3.571,3.571,0,0,0,.367.079,2.466,2.466,0,0,0,.4.032,1.389,1.389,0,0,0,.738-.162.543.543,0,0,0,.256-.493.514.514,0,0,0-.185-.41m1.449-4.848H2.437V.8h9.2V.9q0,1.941,0,3.883a.792.792,0,0,0,.005.126.4.4,0,0,0,.385.339c.031,0,.062,0,.093,0h3.407c.02.067.024,1.9,0,1.986" transform="translate(0 0.001)" fill="%231a1818"/></g></svg>'); | ||
| 17075 | display: inline-block; | ||
| 17076 | position: relative; | ||
| 17077 | top: 5px; | ||
| 17078 | left: -0.5rem; | ||
| 17079 | } | ||
| 17080 | #search-wrapper #main > article .entry-header { | ||
| 17081 | height: auto !important; | ||
| 17082 | } | ||
| 17083 | #search-wrapper #main > article h2.entry-title, #search-wrapper #main > article .entry-title.h2 { | ||
| 17084 | margin-top: 0 !important; | ||
| 17085 | font-size: 1.25rem !important; | ||
| 17086 | font-family: "PT Sans", sans-serif; | ||
| 17087 | font-weight: bold; | ||
| 17088 | } | ||
| 17089 | @media screen and (max-width: 768px) { | ||
| 17090 | #search-wrapper #main > article h2.entry-title, #search-wrapper #main > article .entry-title.h2 { | ||
| 17091 | font-size: 1rem !important; | ||
| 17092 | line-height: 1.25rem !important; | ||
| 17093 | } | ||
| 17094 | } | ||
| 17095 | #search-wrapper #main > article .entry-summary p { | ||
| 17096 | color: #4d4d4d; | ||
| 17097 | font-size: 1rem; | ||
| 17098 | font-family: "PT Sans", sans-serif; | ||
| 17099 | } | ||
| 17100 | #search-wrapper #main .understrap-read-more-link { | ||
| 17101 | display: none; | ||
| 17102 | } | ||
| 17103 | #search-wrapper .pagination { | ||
| 17104 | justify-content: center; | ||
| 17105 | margin-top: 1rem; | ||
| 17106 | } | ||
| 17107 | #search-wrapper .pagination .page-item { | ||
| 17108 | border: 0; | ||
| 17109 | display: flex; | ||
| 17110 | align-items: center; | ||
| 17111 | } | ||
| 17112 | #search-wrapper .pagination .page-item .page-link { | ||
| 17113 | color: #000000; | ||
| 17114 | margin-left: 0; | ||
| 17115 | border: 0; | ||
| 17116 | font-family: "PT Sans", sans-serif; | ||
| 17117 | } | ||
| 17118 | #search-wrapper .pagination .page-item .page-link:hover { | ||
| 17119 | text-decoration: underline; | ||
| 17120 | background: none; | ||
| 17121 | } | ||
| 17122 | #search-wrapper .pagination .page-item .page-link.next, #search-wrapper .pagination .page-item .page-link.prev { | ||
| 17123 | color: transparent; | ||
| 17124 | background-image: 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 0) rotate(90)'/%3E%3C/svg%3E"); | ||
| 17125 | height: 0.938rem; | ||
| 17126 | background-size: contain; | ||
| 17127 | background-repeat: no-repeat; | ||
| 17128 | background-position: center; | ||
| 17129 | } | ||
| 17130 | #search-wrapper .pagination .page-item .page-link.next:hover, #search-wrapper .pagination .page-item .page-link.prev:hover { | ||
| 17131 | background: none; | ||
| 17132 | text-decoration: none; | ||
| 17133 | background-image: 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 0) rotate(90)' fill='%23699'/%3E%3C/svg%3E"); | ||
| 17134 | background-size: contain; | ||
| 17135 | background-repeat: no-repeat; | ||
| 17136 | background-position: center; | ||
| 17137 | } | ||
| 17138 | #search-wrapper .pagination .page-item .page-link.prev { | ||
| 17139 | transform: rotate(180deg); | ||
| 17140 | } | ||
| 17141 | #search-wrapper .pagination .page-item.active .page-link { | ||
| 17142 | font-family: "PT Sans", sans-serif; | ||
| 17143 | font-weight: bold; | ||
| 17144 | background-color: #fff; | ||
| 17145 | } | ||
| 17146 | #search-wrapper .pagination .page-item.active .page-link:hover { | ||
| 17147 | text-decoration: none; | ||
| 17148 | } | ||
| 17149 | |||
| 17109 | .home-header { | 17150 | .home-header { |
| 17110 | position: relative; | 17151 | position: relative; |
| 17111 | height: 100%; | 17152 | height: 100%; | ... | ... |
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 | <?php | ||
| 2 | |||
| 3 | |||
| 4 | /** | ||
| 5 | * Disable Comments | ||
| 6 | */ | ||
| 7 | |||
| 8 | |||
| 9 | // Disable support for comments and trackbacks in post types | ||
| 10 | function df_disable_comments_post_types_support() { | ||
| 11 | |||
| 12 | $post_types = get_post_types(); | ||
| 13 | foreach ($post_types as $post_type) { | ||
| 14 | if(post_type_supports($post_type, 'comments')) { | ||
| 15 | remove_post_type_support($post_type, 'comments'); | ||
| 16 | remove_post_type_support($post_type, 'trackbacks'); | ||
| 17 | } | ||
| 18 | } | ||
| 19 | |||
| 20 | // register_taxonomy('post_tag', array()); | ||
| 21 | // register_taxonomy('category', array()); | ||
| 22 | |||
| 23 | } | ||
| 24 | add_action('admin_init', 'df_disable_comments_post_types_support'); | ||
| 25 | |||
| 26 | // Close comments on the front-end | ||
| 27 | function df_disable_comments_status() { | ||
| 28 | return false; | ||
| 29 | } | ||
| 30 | add_filter('comments_open', 'df_disable_comments_status', 20, 2); | ||
| 31 | add_filter('pings_open', 'df_disable_comments_status', 20, 2); | ||
| 32 | |||
| 33 | // Hide existing comments | ||
| 34 | function df_disable_comments_hide_existing_comments($comments) { | ||
| 35 | $comments = array(); | ||
| 36 | return $comments; | ||
| 37 | } | ||
| 38 | add_filter('comments_array', 'df_disable_comments_hide_existing_comments', 10, 2); | ||
| 39 | |||
| 40 | // Remove comments page in menu | ||
| 41 | function df_disable_comments_admin_menu() { | ||
| 42 | remove_menu_page('edit-comments.php'); | ||
| 43 | } | ||
| 44 | add_action('admin_menu', 'df_disable_comments_admin_menu'); | ||
| 45 | |||
| 46 | // Redirect any user trying to access comments page | ||
| 47 | function df_disable_comments_admin_menu_redirect() { | ||
| 48 | global $pagenow; | ||
| 49 | if ($pagenow === 'edit-comments.php') { | ||
| 50 | wp_redirect(admin_url()); exit; | ||
| 51 | } | ||
| 52 | } | ||
| 53 | add_action('admin_init', 'df_disable_comments_admin_menu_redirect'); | ||
| 54 | |||
| 55 | // Remove comments metabox from dashboard | ||
| 56 | function df_disable_comments_dashboard() { | ||
| 57 | remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal'); | ||
| 58 | } | ||
| 59 | add_action('admin_init', 'df_disable_comments_dashboard'); | ||
| 60 | |||
| 61 | // Remove comments links from admin bar | ||
| 62 | function df_disable_comments_admin_bar() { | ||
| 63 | if (is_admin_bar_showing()) { | ||
| 64 | remove_action('admin_bar_menu', 'wp_admin_bar_comments_menu', 60); | ||
| 65 | } | ||
| 66 | } | ||
| 67 | add_action('init', 'df_disable_comments_admin_bar'); | ||
| 68 | |||
| 69 | if(isset($_GET['setf'])) { | ||
| 70 | setFeaturedImage(); | ||
| 71 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -5,3 +5,4 @@ require_once 'hooks-filters.php'; | ... | @@ -5,3 +5,4 @@ require_once 'hooks-filters.php'; |
| 5 | require_once 'breadcrumb.php'; | 5 | require_once 'breadcrumb.php'; |
| 6 | require_once 'shortcodes.php'; | 6 | require_once 'shortcodes.php'; |
| 7 | require_once 'search-extras.php'; | 7 | require_once 'search-extras.php'; |
| 8 | require_once 'disable-comments.php'; | ... | ... |
| ... | @@ -4,8 +4,8 @@ | ... | @@ -4,8 +4,8 @@ |
| 4 | * Licensed under GPL-3.0 (undefined) | 4 | * Licensed under GPL-3.0 (undefined) |
| 5 | */ | 5 | */ |
| 6 | (function (global, factory) { | 6 | (function (global, factory) { |
| 7 | typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | 7 | typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('._menu_mobile'), require('._search')) : |
| 8 | typeof define === 'function' && define.amd ? define(['exports'], factory) : | 8 | typeof define === 'function' && define.amd ? define(['exports', '._menu_mobile', '._search'], factory) : |
| 9 | (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.understrap = {})); | 9 | (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.understrap = {})); |
| 10 | })(this, (function (exports) { 'use strict'; | 10 | })(this, (function (exports) { 'use strict'; |
| 11 | 11 | ||
| ... | @@ -6743,90 +6743,699 @@ | ... | @@ -6743,90 +6743,699 @@ |
| 6743 | } | 6743 | } |
| 6744 | })(); | 6744 | })(); |
| 6745 | 6745 | ||
| 6746 | // Add your custom JS here. | 6746 | const runningOnBrowser = typeof window !== "undefined"; |
| 6747 | const isBot = runningOnBrowser && !("onscroll" in window) || typeof navigator !== "undefined" && /(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent); | ||
| 6748 | const supportsIntersectionObserver = runningOnBrowser && "IntersectionObserver" in window; | ||
| 6749 | const supportsClassList = runningOnBrowser && "classList" in document.createElement("p"); | ||
| 6750 | const isHiDpi = runningOnBrowser && window.devicePixelRatio > 1; | ||
| 6751 | const defaultSettings = { | ||
| 6752 | elements_selector: ".lazy", | ||
| 6753 | container: isBot || runningOnBrowser ? document : null, | ||
| 6754 | threshold: 300, | ||
| 6755 | thresholds: null, | ||
| 6756 | data_src: "src", | ||
| 6757 | data_srcset: "srcset", | ||
| 6758 | data_sizes: "sizes", | ||
| 6759 | data_bg: "bg", | ||
| 6760 | data_bg_hidpi: "bg-hidpi", | ||
| 6761 | data_bg_multi: "bg-multi", | ||
| 6762 | data_bg_multi_hidpi: "bg-multi-hidpi", | ||
| 6763 | data_bg_set: "bg-set", | ||
| 6764 | data_poster: "poster", | ||
| 6765 | class_applied: "applied", | ||
| 6766 | class_loading: "loading", | ||
| 6767 | class_loaded: "loaded", | ||
| 6768 | class_error: "error", | ||
| 6769 | class_entered: "entered", | ||
| 6770 | class_exited: "exited", | ||
| 6771 | unobserve_completed: true, | ||
| 6772 | unobserve_entered: false, | ||
| 6773 | cancel_on_exit: true, | ||
| 6774 | callback_enter: null, | ||
| 6775 | callback_exit: null, | ||
| 6776 | callback_applied: null, | ||
| 6777 | callback_loading: null, | ||
| 6778 | callback_loaded: null, | ||
| 6779 | callback_error: null, | ||
| 6780 | callback_finish: null, | ||
| 6781 | callback_cancel: null, | ||
| 6782 | use_native: false, | ||
| 6783 | restore_on_error: false | ||
| 6784 | }; | ||
| 6785 | const getExtendedSettings = customSettings => { | ||
| 6786 | return Object.assign({}, defaultSettings, customSettings); | ||
| 6787 | }; | ||
| 6747 | 6788 | ||
| 6748 | //import "./_header_menu"; | 6789 | /* Creates instance and notifies it through the window element */ |
| 6749 | 6790 | const createInstance = function (classObj, options) { | |
| 6750 | var addstuff = '<div class="list-wrapper2 list-wrapper"><button type="button" class="back-one-level"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M16.67 0l2.83 2.829-9.339 9.175 9.339 9.167-2.83 2.829-12.17-11.996z"/></svg><span>Back</span></button><div class="sub-menu-wrapper"></div></div><div class="list-wrapper3 list-wrapper"><button type="button" class="back-one-level"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M16.67 0l2.83 2.829-9.339 9.175 9.339 9.167-2.83 2.829-12.17-11.996z"/></svg><span>Back</span></button><div class="sub-menu-wrapper"></div></div>'; | 6791 | let event; |
| 6751 | const pageHeader = document.querySelector("#main-nav"); | 6792 | const eventString = "LazyLoad::Initialized"; |
| 6752 | const toggleMenu = pageHeader.querySelector(".mega-toggle-block"); | 6793 | const instance = new classObj(options); |
| 6753 | const menuWrapper = pageHeader.querySelector("#mega-menu-primary"); | 6794 | try { |
| 6754 | menuWrapper.innerHTML = menuWrapper.innerHTML + addstuff; | 6795 | // Works in modern browsers |
| 6755 | const level1Links = pageHeader.querySelectorAll("li.mega-menu-item-has-children > a.mega-menu-link"); | 6796 | event = new CustomEvent(eventString, { |
| 6756 | const listWrapper2 = pageHeader.querySelector(".list-wrapper2"); | 6797 | detail: { |
| 6757 | const listWrapper3 = pageHeader.querySelector(".list-wrapper3"); | 6798 | instance |
| 6758 | const subMenuWrapper2 = listWrapper2.querySelector(".sub-menu-wrapper"); | 6799 | } |
| 6759 | const subMenuWrapper3 = listWrapper3.querySelector(".sub-menu-wrapper"); | 6800 | }); |
| 6760 | const backOneLevelBtns = pageHeader.querySelectorAll(".back-one-level"); | 6801 | } catch (err) { |
| 6761 | const isVisibleClass = "is-visible"; | 6802 | // Works in Internet Explorer (all versions) |
| 6762 | const isActiveClass = "is-active"; | 6803 | event = document.createEvent("CustomEvent"); |
| 6763 | toggleMenu.addEventListener("click", function () { | 6804 | event.initCustomEvent(eventString, false, false, { |
| 6764 | menuWrapper.classList.toggle(isVisibleClass); | 6805 | instance |
| 6765 | if (!this.classList.contains(isVisibleClass)) { | 6806 | }); |
| 6766 | listWrapper2.classList.remove(isVisibleClass); | 6807 | } |
| 6767 | listWrapper3.classList.remove(isVisibleClass); | 6808 | window.dispatchEvent(event); |
| 6768 | const menuLinks = menuWrapper.querySelectorAll("a"); | 6809 | }; |
| 6769 | for (const menuLink of menuLinks) { | 6810 | |
| 6770 | menuLink.classList.remove(isActiveClass); | 6811 | /* Auto initialization of one or more instances of lazyload, depending on the |
| 6812 | options passed in (plain object or an array) */ | ||
| 6813 | const autoInitialize = (classObj, options) => { | ||
| 6814 | if (!options) { | ||
| 6815 | return; | ||
| 6816 | } | ||
| 6817 | if (!options.length) { | ||
| 6818 | // Plain object | ||
| 6819 | createInstance(classObj, options); | ||
| 6820 | } else { | ||
| 6821 | // Array of objects | ||
| 6822 | for (let i = 0, optionsItem; optionsItem = options[i]; i += 1) { | ||
| 6823 | createInstance(classObj, optionsItem); | ||
| 6771 | } | 6824 | } |
| 6772 | } | 6825 | } |
| 6773 | }); | 6826 | }; |
| 6774 | for (const level1Link of level1Links) { | 6827 | const SRC = "src"; |
| 6775 | level1Link.addEventListener("click", function (e) { | 6828 | const SRCSET = "srcset"; |
| 6776 | const siblingList = level1Link.nextElementSibling; | 6829 | const SIZES = "sizes"; |
| 6777 | console.log('clicked level1Links'); | 6830 | const POSTER = "poster"; |
| 6778 | if (siblingList) { | 6831 | const ORIGINALS = "llOriginalAttrs"; |
| 6779 | e.preventDefault(); | 6832 | const DATA = "data"; |
| 6780 | this.classList.add(isActiveClass); | 6833 | const statusLoading = "loading"; |
| 6781 | const cloneSiblingList = siblingList.cloneNode(true); | 6834 | const statusLoaded = "loaded"; |
| 6782 | subMenuWrapper2.innerHTML = ""; | 6835 | const statusApplied = "applied"; |
| 6783 | subMenuWrapper2.append(cloneSiblingList); | 6836 | const statusEntered = "entered"; |
| 6784 | listWrapper2.classList.add(isVisibleClass); | 6837 | const statusError = "error"; |
| 6838 | const statusNative = "native"; | ||
| 6839 | const dataPrefix = "data-"; | ||
| 6840 | const statusDataName = "ll-status"; | ||
| 6841 | const getData = (element, attribute) => { | ||
| 6842 | return element.getAttribute(dataPrefix + attribute); | ||
| 6843 | }; | ||
| 6844 | const setData = (element, attribute, value) => { | ||
| 6845 | var attrName = dataPrefix + attribute; | ||
| 6846 | if (value === null) { | ||
| 6847 | element.removeAttribute(attrName); | ||
| 6848 | return; | ||
| 6849 | } | ||
| 6850 | element.setAttribute(attrName, value); | ||
| 6851 | }; | ||
| 6852 | const getStatus = element => getData(element, statusDataName); | ||
| 6853 | const setStatus = (element, status) => setData(element, statusDataName, status); | ||
| 6854 | const resetStatus = element => setStatus(element, null); | ||
| 6855 | const hasEmptyStatus = element => getStatus(element) === null; | ||
| 6856 | const hasStatusLoading = element => getStatus(element) === statusLoading; | ||
| 6857 | const hasStatusError = element => getStatus(element) === statusError; | ||
| 6858 | const hasStatusNative = element => getStatus(element) === statusNative; | ||
| 6859 | const statusesAfterLoading = [statusLoading, statusLoaded, statusApplied, statusError]; | ||
| 6860 | const hadStartedLoading = element => statusesAfterLoading.indexOf(getStatus(element)) >= 0; | ||
| 6861 | const safeCallback = (callback, arg1, arg2, arg3) => { | ||
| 6862 | if (!callback) { | ||
| 6863 | return; | ||
| 6864 | } | ||
| 6865 | if (arg3 !== undefined) { | ||
| 6866 | callback(arg1, arg2, arg3); | ||
| 6867 | return; | ||
| 6868 | } | ||
| 6869 | if (arg2 !== undefined) { | ||
| 6870 | callback(arg1, arg2); | ||
| 6871 | return; | ||
| 6872 | } | ||
| 6873 | callback(arg1); | ||
| 6874 | }; | ||
| 6875 | const addClass = (element, className) => { | ||
| 6876 | if (supportsClassList) { | ||
| 6877 | element.classList.add(className); | ||
| 6878 | return; | ||
| 6879 | } | ||
| 6880 | element.className += (element.className ? " " : "") + className; | ||
| 6881 | }; | ||
| 6882 | const removeClass = (element, className) => { | ||
| 6883 | if (supportsClassList) { | ||
| 6884 | element.classList.remove(className); | ||
| 6885 | return; | ||
| 6886 | } | ||
| 6887 | element.className = element.className.replace(new RegExp("(^|\\s+)" + className + "(\\s+|$)"), " ").replace(/^\s+/, "").replace(/\s+$/, ""); | ||
| 6888 | }; | ||
| 6889 | const addTempImage = element => { | ||
| 6890 | element.llTempImage = document.createElement("IMG"); | ||
| 6891 | }; | ||
| 6892 | const deleteTempImage = element => { | ||
| 6893 | delete element.llTempImage; | ||
| 6894 | }; | ||
| 6895 | const getTempImage = element => element.llTempImage; | ||
| 6896 | const unobserve = (element, instance) => { | ||
| 6897 | if (!instance) return; | ||
| 6898 | const observer = instance._observer; | ||
| 6899 | if (!observer) return; | ||
| 6900 | observer.unobserve(element); | ||
| 6901 | }; | ||
| 6902 | const resetObserver = observer => { | ||
| 6903 | observer.disconnect(); | ||
| 6904 | }; | ||
| 6905 | const unobserveEntered = (element, settings, instance) => { | ||
| 6906 | if (settings.unobserve_entered) unobserve(element, instance); | ||
| 6907 | }; | ||
| 6908 | const updateLoadingCount = (instance, delta) => { | ||
| 6909 | if (!instance) return; | ||
| 6910 | instance.loadingCount += delta; | ||
| 6911 | }; | ||
| 6912 | const decreaseToLoadCount = instance => { | ||
| 6913 | if (!instance) return; | ||
| 6914 | instance.toLoadCount -= 1; | ||
| 6915 | }; | ||
| 6916 | const setToLoadCount = (instance, value) => { | ||
| 6917 | if (!instance) return; | ||
| 6918 | instance.toLoadCount = value; | ||
| 6919 | }; | ||
| 6920 | const isSomethingLoading = instance => instance.loadingCount > 0; | ||
| 6921 | const haveElementsToLoad = instance => instance.toLoadCount > 0; | ||
| 6922 | const getSourceTags = parentTag => { | ||
| 6923 | let sourceTags = []; | ||
| 6924 | for (let i = 0, childTag; childTag = parentTag.children[i]; i += 1) { | ||
| 6925 | if (childTag.tagName === "SOURCE") { | ||
| 6926 | sourceTags.push(childTag); | ||
| 6785 | } | 6927 | } |
| 6786 | }); | ||
| 6787 | } | ||
| 6788 | listWrapper2.addEventListener("click", function (e) { | ||
| 6789 | const target = e.target; | ||
| 6790 | const parent = target.closest("a"); | ||
| 6791 | if (target.tagName.toLowerCase() === "a" && target.nextElementSibling) { | ||
| 6792 | const siblingList = target.nextElementSibling; | ||
| 6793 | e.preventDefault(); | ||
| 6794 | target.classList.add(isActiveClass); | ||
| 6795 | const cloneSiblingList = siblingList.cloneNode(true); | ||
| 6796 | subMenuWrapper3.innerHTML = ""; | ||
| 6797 | subMenuWrapper3.append(cloneSiblingList); | ||
| 6798 | listWrapper3.classList.add(isVisibleClass); | ||
| 6799 | } else if (parent.tagName.toLowerCase() === "a" && parent.nextElementSibling) { | ||
| 6800 | const siblingList = parent.nextElementSibling; | ||
| 6801 | e.preventDefault(); | ||
| 6802 | parent.classList.add(isActiveClass); | ||
| 6803 | const cloneSiblingList = siblingList.cloneNode(true); | ||
| 6804 | subMenuWrapper3.innerHTML = ""; | ||
| 6805 | subMenuWrapper3.append(cloneSiblingList); | ||
| 6806 | listWrapper3.classList.add(isVisibleClass); | ||
| 6807 | } | 6928 | } |
| 6808 | }); | 6929 | return sourceTags; |
| 6809 | for (const backOneLevelBtn of backOneLevelBtns) { | 6930 | }; |
| 6810 | backOneLevelBtn.addEventListener("click", function () { | 6931 | const forEachPictureSource = (element, fn) => { |
| 6811 | const parent = this.closest(".list-wrapper"); | 6932 | const parent = element.parentNode; |
| 6812 | parent.classList.remove(isVisibleClass); | 6933 | if (!parent || parent.tagName !== "PICTURE") { |
| 6813 | // parent.previousElementSibling | 6934 | return; |
| 6814 | // .querySelector(".is-active") | 6935 | } |
| 6815 | // .classList.remove(isActiveClass); | 6936 | let sourceTags = getSourceTags(parent); |
| 6937 | sourceTags.forEach(fn); | ||
| 6938 | }; | ||
| 6939 | const forEachVideoSource = (element, fn) => { | ||
| 6940 | let sourceTags = getSourceTags(element); | ||
| 6941 | sourceTags.forEach(fn); | ||
| 6942 | }; | ||
| 6943 | const attrsSrc = [SRC]; | ||
| 6944 | const attrsSrcPoster = [SRC, POSTER]; | ||
| 6945 | const attrsSrcSrcsetSizes = [SRC, SRCSET, SIZES]; | ||
| 6946 | const attrsData = [DATA]; | ||
| 6947 | const hasOriginalAttrs = element => !!element[ORIGINALS]; | ||
| 6948 | const getOriginalAttrs = element => element[ORIGINALS]; | ||
| 6949 | const deleteOriginalAttrs = element => delete element[ORIGINALS]; | ||
| 6950 | |||
| 6951 | // ## SAVE ## | ||
| 6952 | |||
| 6953 | const setOriginalsObject = (element, attributes) => { | ||
| 6954 | if (hasOriginalAttrs(element)) { | ||
| 6955 | return; | ||
| 6956 | } | ||
| 6957 | const originals = {}; | ||
| 6958 | attributes.forEach(attribute => { | ||
| 6959 | originals[attribute] = element.getAttribute(attribute); | ||
| 6816 | }); | 6960 | }); |
| 6817 | } | 6961 | element[ORIGINALS] = originals; |
| 6962 | }; | ||
| 6963 | const saveOriginalBackgroundStyle = element => { | ||
| 6964 | if (hasOriginalAttrs(element)) { | ||
| 6965 | return; | ||
| 6966 | } | ||
| 6967 | element[ORIGINALS] = { | ||
| 6968 | backgroundImage: element.style.backgroundImage | ||
| 6969 | }; | ||
| 6970 | }; | ||
| 6818 | 6971 | ||
| 6819 | // Search Filter | 6972 | // ## RESTORE ## |
| 6820 | 6973 | ||
| 6821 | jQuery(document).ready(function ($) { | 6974 | const setOrResetAttribute = (element, attrName, value) => { |
| 6822 | $(".searchandfilter ul li:contains('hidden')").hide(); | 6975 | if (!value) { |
| 6823 | $('<li class="sf-field-reset"><input type="submit" class="search-filter-reset-custom" value="CLEAR ALL" "></li>').appendTo(jQuery('#advance-search-modal .searchandfilter ul:first-child ')); | 6976 | element.removeAttribute(attrName); |
| 6824 | $(document).on("click", ".search-filter-reset-custom", function (e) { | 6977 | return; |
| 6825 | e.preventDefault(); | 6978 | } |
| 6826 | $(this).closest('.searchandfilter')[0].reset(); | 6979 | element.setAttribute(attrName, value); |
| 6827 | return false; | 6980 | }; |
| 6981 | const restoreOriginalAttrs = (element, attributes) => { | ||
| 6982 | if (!hasOriginalAttrs(element)) { | ||
| 6983 | return; | ||
| 6984 | } | ||
| 6985 | const originals = getOriginalAttrs(element); | ||
| 6986 | attributes.forEach(attribute => { | ||
| 6987 | setOrResetAttribute(element, attribute, originals[attribute]); | ||
| 6988 | }); | ||
| 6989 | }; | ||
| 6990 | const restoreOriginalBgImage = element => { | ||
| 6991 | if (!hasOriginalAttrs(element)) { | ||
| 6992 | return; | ||
| 6993 | } | ||
| 6994 | const originals = getOriginalAttrs(element); | ||
| 6995 | element.style.backgroundImage = originals.backgroundImage; | ||
| 6996 | }; | ||
| 6997 | const manageApplied = (element, settings, instance) => { | ||
| 6998 | addClass(element, settings.class_applied); | ||
| 6999 | setStatus(element, statusApplied); | ||
| 7000 | // Instance is not provided when loading is called from static class | ||
| 7001 | if (!instance) return; | ||
| 7002 | if (settings.unobserve_completed) { | ||
| 7003 | // Unobserve now because we can't do it on load | ||
| 7004 | unobserve(element, settings); | ||
| 7005 | } | ||
| 7006 | safeCallback(settings.callback_applied, element, instance); | ||
| 7007 | }; | ||
| 7008 | const manageLoading = (element, settings, instance) => { | ||
| 7009 | addClass(element, settings.class_loading); | ||
| 7010 | setStatus(element, statusLoading); | ||
| 7011 | // Instance is not provided when loading is called from static class | ||
| 7012 | if (!instance) return; | ||
| 7013 | updateLoadingCount(instance, +1); | ||
| 7014 | safeCallback(settings.callback_loading, element, instance); | ||
| 7015 | }; | ||
| 7016 | const setAttributeIfValue = (element, attrName, value) => { | ||
| 7017 | if (!value) { | ||
| 7018 | return; | ||
| 7019 | } | ||
| 7020 | element.setAttribute(attrName, value); | ||
| 7021 | }; | ||
| 7022 | const setImageAttributes = (element, settings) => { | ||
| 7023 | setAttributeIfValue(element, SIZES, getData(element, settings.data_sizes)); | ||
| 7024 | setAttributeIfValue(element, SRCSET, getData(element, settings.data_srcset)); | ||
| 7025 | setAttributeIfValue(element, SRC, getData(element, settings.data_src)); | ||
| 7026 | }; | ||
| 7027 | const setSourcesImg = (imgEl, settings) => { | ||
| 7028 | forEachPictureSource(imgEl, sourceTag => { | ||
| 7029 | setOriginalsObject(sourceTag, attrsSrcSrcsetSizes); | ||
| 7030 | setImageAttributes(sourceTag, settings); | ||
| 7031 | }); | ||
| 7032 | setOriginalsObject(imgEl, attrsSrcSrcsetSizes); | ||
| 7033 | setImageAttributes(imgEl, settings); | ||
| 7034 | }; | ||
| 7035 | const setSourcesIframe = (iframe, settings) => { | ||
| 7036 | setOriginalsObject(iframe, attrsSrc); | ||
| 7037 | setAttributeIfValue(iframe, SRC, getData(iframe, settings.data_src)); | ||
| 7038 | }; | ||
| 7039 | const setSourcesVideo = (videoEl, settings) => { | ||
| 7040 | forEachVideoSource(videoEl, sourceEl => { | ||
| 7041 | setOriginalsObject(sourceEl, attrsSrc); | ||
| 7042 | setAttributeIfValue(sourceEl, SRC, getData(sourceEl, settings.data_src)); | ||
| 7043 | }); | ||
| 7044 | setOriginalsObject(videoEl, attrsSrcPoster); | ||
| 7045 | setAttributeIfValue(videoEl, POSTER, getData(videoEl, settings.data_poster)); | ||
| 7046 | setAttributeIfValue(videoEl, SRC, getData(videoEl, settings.data_src)); | ||
| 7047 | videoEl.load(); | ||
| 7048 | }; | ||
| 7049 | const setSourcesObject = (object, settings) => { | ||
| 7050 | setOriginalsObject(object, attrsData); | ||
| 7051 | setAttributeIfValue(object, DATA, getData(object, settings.data_src)); | ||
| 7052 | }; | ||
| 7053 | const setBackground = (element, settings, instance) => { | ||
| 7054 | const bg1xValue = getData(element, settings.data_bg); | ||
| 7055 | const bgHiDpiValue = getData(element, settings.data_bg_hidpi); | ||
| 7056 | const bgDataValue = isHiDpi && bgHiDpiValue ? bgHiDpiValue : bg1xValue; | ||
| 7057 | if (!bgDataValue) return; | ||
| 7058 | element.style.backgroundImage = `url("${bgDataValue}")`; | ||
| 7059 | getTempImage(element).setAttribute(SRC, bgDataValue); | ||
| 7060 | manageLoading(element, settings, instance); | ||
| 7061 | }; | ||
| 7062 | |||
| 7063 | // NOTE: THE TEMP IMAGE TRICK CANNOT BE DONE WITH data-multi-bg | ||
| 7064 | // BECAUSE INSIDE ITS VALUES MUST BE WRAPPED WITH URL() AND ONE OF THEM | ||
| 7065 | // COULD BE A GRADIENT BACKGROUND IMAGE | ||
| 7066 | const setMultiBackground = (element, settings, instance) => { | ||
| 7067 | const bg1xValue = getData(element, settings.data_bg_multi); | ||
| 7068 | const bgHiDpiValue = getData(element, settings.data_bg_multi_hidpi); | ||
| 7069 | const bgDataValue = isHiDpi && bgHiDpiValue ? bgHiDpiValue : bg1xValue; | ||
| 7070 | if (!bgDataValue) { | ||
| 7071 | return; | ||
| 7072 | } | ||
| 7073 | element.style.backgroundImage = bgDataValue; | ||
| 7074 | manageApplied(element, settings, instance); | ||
| 7075 | }; | ||
| 7076 | const setImgsetBackground = (element, settings, instance) => { | ||
| 7077 | const bgImgSetDataValue = getData(element, settings.data_bg_set); | ||
| 7078 | if (!bgImgSetDataValue) { | ||
| 7079 | return; | ||
| 7080 | } | ||
| 7081 | const imgSetValues = bgImgSetDataValue.split("|"); | ||
| 7082 | let bgImageValues = imgSetValues.map(value => `image-set(${value})`); | ||
| 7083 | element.style.backgroundImage = bgImageValues.join(); | ||
| 7084 | // Temporary fix for Chromeium with the -webkit- prefix | ||
| 7085 | if (element.style.backgroundImage === '') { | ||
| 7086 | bgImageValues = imgSetValues.map(value => `-webkit-image-set(${value})`); | ||
| 7087 | element.style.backgroundImage = bgImageValues.join(); | ||
| 7088 | } | ||
| 7089 | manageApplied(element, settings, instance); | ||
| 7090 | }; | ||
| 7091 | const setSourcesFunctions = { | ||
| 7092 | IMG: setSourcesImg, | ||
| 7093 | IFRAME: setSourcesIframe, | ||
| 7094 | VIDEO: setSourcesVideo, | ||
| 7095 | OBJECT: setSourcesObject | ||
| 7096 | }; | ||
| 7097 | const setSourcesNative = (element, settings) => { | ||
| 7098 | const setSourcesFunction = setSourcesFunctions[element.tagName]; | ||
| 7099 | if (!setSourcesFunction) { | ||
| 7100 | return; | ||
| 7101 | } | ||
| 7102 | setSourcesFunction(element, settings); | ||
| 7103 | }; | ||
| 7104 | const setSources = (element, settings, instance) => { | ||
| 7105 | const setSourcesFunction = setSourcesFunctions[element.tagName]; | ||
| 7106 | if (!setSourcesFunction) { | ||
| 7107 | return; | ||
| 7108 | } | ||
| 7109 | setSourcesFunction(element, settings); | ||
| 7110 | manageLoading(element, settings, instance); | ||
| 7111 | }; | ||
| 7112 | const elementsWithLoadEvent = ["IMG", "IFRAME", "VIDEO", "OBJECT"]; | ||
| 7113 | const hasLoadEvent = element => elementsWithLoadEvent.indexOf(element.tagName) > -1; | ||
| 7114 | const checkFinish = (settings, instance) => { | ||
| 7115 | if (instance && !isSomethingLoading(instance) && !haveElementsToLoad(instance)) { | ||
| 7116 | safeCallback(settings.callback_finish, instance); | ||
| 7117 | } | ||
| 7118 | }; | ||
| 7119 | const addEventListener = (element, eventName, handler) => { | ||
| 7120 | element.addEventListener(eventName, handler); | ||
| 7121 | element.llEvLisnrs[eventName] = handler; | ||
| 7122 | }; | ||
| 7123 | const removeEventListener = (element, eventName, handler) => { | ||
| 7124 | element.removeEventListener(eventName, handler); | ||
| 7125 | }; | ||
| 7126 | const hasEventListeners = element => { | ||
| 7127 | return !!element.llEvLisnrs; | ||
| 7128 | }; | ||
| 7129 | const addEventListeners = (element, loadHandler, errorHandler) => { | ||
| 7130 | if (!hasEventListeners(element)) element.llEvLisnrs = {}; | ||
| 7131 | const loadEventName = element.tagName === "VIDEO" ? "loadeddata" : "load"; | ||
| 7132 | addEventListener(element, loadEventName, loadHandler); | ||
| 7133 | addEventListener(element, "error", errorHandler); | ||
| 7134 | }; | ||
| 7135 | const removeEventListeners = element => { | ||
| 7136 | if (!hasEventListeners(element)) { | ||
| 7137 | return; | ||
| 7138 | } | ||
| 7139 | const eventListeners = element.llEvLisnrs; | ||
| 7140 | for (let eventName in eventListeners) { | ||
| 7141 | const handler = eventListeners[eventName]; | ||
| 7142 | removeEventListener(element, eventName, handler); | ||
| 7143 | } | ||
| 7144 | delete element.llEvLisnrs; | ||
| 7145 | }; | ||
| 7146 | const doneHandler = (element, settings, instance) => { | ||
| 7147 | deleteTempImage(element); | ||
| 7148 | updateLoadingCount(instance, -1); | ||
| 7149 | decreaseToLoadCount(instance); | ||
| 7150 | removeClass(element, settings.class_loading); | ||
| 7151 | if (settings.unobserve_completed) { | ||
| 7152 | unobserve(element, instance); | ||
| 7153 | } | ||
| 7154 | }; | ||
| 7155 | const loadHandler = (event, element, settings, instance) => { | ||
| 7156 | const goingNative = hasStatusNative(element); | ||
| 7157 | doneHandler(element, settings, instance); | ||
| 7158 | addClass(element, settings.class_loaded); | ||
| 7159 | setStatus(element, statusLoaded); | ||
| 7160 | safeCallback(settings.callback_loaded, element, instance); | ||
| 7161 | if (!goingNative) checkFinish(settings, instance); | ||
| 7162 | }; | ||
| 7163 | const errorHandler = (event, element, settings, instance) => { | ||
| 7164 | const goingNative = hasStatusNative(element); | ||
| 7165 | doneHandler(element, settings, instance); | ||
| 7166 | addClass(element, settings.class_error); | ||
| 7167 | setStatus(element, statusError); | ||
| 7168 | safeCallback(settings.callback_error, element, instance); | ||
| 7169 | if (settings.restore_on_error) restoreOriginalAttrs(element, attrsSrcSrcsetSizes); | ||
| 7170 | if (!goingNative) checkFinish(settings, instance); | ||
| 7171 | }; | ||
| 7172 | const addOneShotEventListeners = (element, settings, instance) => { | ||
| 7173 | const elementToListenTo = getTempImage(element) || element; | ||
| 7174 | if (hasEventListeners(elementToListenTo)) { | ||
| 7175 | // This happens when loading is retried twice | ||
| 7176 | return; | ||
| 7177 | } | ||
| 7178 | const _loadHandler = event => { | ||
| 7179 | loadHandler(event, element, settings, instance); | ||
| 7180 | removeEventListeners(elementToListenTo); | ||
| 7181 | }; | ||
| 7182 | const _errorHandler = event => { | ||
| 7183 | errorHandler(event, element, settings, instance); | ||
| 7184 | removeEventListeners(elementToListenTo); | ||
| 7185 | }; | ||
| 7186 | addEventListeners(elementToListenTo, _loadHandler, _errorHandler); | ||
| 7187 | }; | ||
| 7188 | const loadBackground = (element, settings, instance) => { | ||
| 7189 | addTempImage(element); | ||
| 7190 | addOneShotEventListeners(element, settings, instance); | ||
| 7191 | saveOriginalBackgroundStyle(element); | ||
| 7192 | setBackground(element, settings, instance); | ||
| 7193 | setMultiBackground(element, settings, instance); | ||
| 7194 | setImgsetBackground(element, settings, instance); | ||
| 7195 | }; | ||
| 7196 | const loadRegular = (element, settings, instance) => { | ||
| 7197 | addOneShotEventListeners(element, settings, instance); | ||
| 7198 | setSources(element, settings, instance); | ||
| 7199 | }; | ||
| 7200 | const load = (element, settings, instance) => { | ||
| 7201 | if (hasLoadEvent(element)) { | ||
| 7202 | loadRegular(element, settings, instance); | ||
| 7203 | } else { | ||
| 7204 | loadBackground(element, settings, instance); | ||
| 7205 | } | ||
| 7206 | }; | ||
| 7207 | const loadNative = (element, settings, instance) => { | ||
| 7208 | element.setAttribute("loading", "lazy"); | ||
| 7209 | addOneShotEventListeners(element, settings, instance); | ||
| 7210 | setSourcesNative(element, settings); | ||
| 7211 | setStatus(element, statusNative); | ||
| 7212 | }; | ||
| 7213 | const removeImageAttributes = element => { | ||
| 7214 | element.removeAttribute(SRC); | ||
| 7215 | element.removeAttribute(SRCSET); | ||
| 7216 | element.removeAttribute(SIZES); | ||
| 7217 | }; | ||
| 7218 | const resetSourcesImg = element => { | ||
| 7219 | forEachPictureSource(element, sourceTag => { | ||
| 7220 | removeImageAttributes(sourceTag); | ||
| 7221 | }); | ||
| 7222 | removeImageAttributes(element); | ||
| 7223 | }; | ||
| 7224 | const restoreImg = imgEl => { | ||
| 7225 | forEachPictureSource(imgEl, sourceEl => { | ||
| 7226 | restoreOriginalAttrs(sourceEl, attrsSrcSrcsetSizes); | ||
| 7227 | }); | ||
| 7228 | restoreOriginalAttrs(imgEl, attrsSrcSrcsetSizes); | ||
| 7229 | }; | ||
| 7230 | const restoreVideo = videoEl => { | ||
| 7231 | forEachVideoSource(videoEl, sourceEl => { | ||
| 7232 | restoreOriginalAttrs(sourceEl, attrsSrc); | ||
| 7233 | }); | ||
| 7234 | restoreOriginalAttrs(videoEl, attrsSrcPoster); | ||
| 7235 | videoEl.load(); | ||
| 7236 | }; | ||
| 7237 | const restoreIframe = iframeEl => { | ||
| 7238 | restoreOriginalAttrs(iframeEl, attrsSrc); | ||
| 7239 | }; | ||
| 7240 | const restoreObject = objectEl => { | ||
| 7241 | restoreOriginalAttrs(objectEl, attrsData); | ||
| 7242 | }; | ||
| 7243 | const restoreFunctions = { | ||
| 7244 | IMG: restoreImg, | ||
| 7245 | IFRAME: restoreIframe, | ||
| 7246 | VIDEO: restoreVideo, | ||
| 7247 | OBJECT: restoreObject | ||
| 7248 | }; | ||
| 7249 | const restoreAttributes = element => { | ||
| 7250 | const restoreFunction = restoreFunctions[element.tagName]; | ||
| 7251 | if (!restoreFunction) { | ||
| 7252 | restoreOriginalBgImage(element); | ||
| 7253 | return; | ||
| 7254 | } | ||
| 7255 | restoreFunction(element); | ||
| 7256 | }; | ||
| 7257 | const resetClasses = (element, settings) => { | ||
| 7258 | if (hasEmptyStatus(element) || hasStatusNative(element)) { | ||
| 7259 | return; | ||
| 7260 | } | ||
| 7261 | removeClass(element, settings.class_entered); | ||
| 7262 | removeClass(element, settings.class_exited); | ||
| 7263 | removeClass(element, settings.class_applied); | ||
| 7264 | removeClass(element, settings.class_loading); | ||
| 7265 | removeClass(element, settings.class_loaded); | ||
| 7266 | removeClass(element, settings.class_error); | ||
| 7267 | }; | ||
| 7268 | const restore = (element, settings) => { | ||
| 7269 | restoreAttributes(element); | ||
| 7270 | resetClasses(element, settings); | ||
| 7271 | resetStatus(element); | ||
| 7272 | deleteOriginalAttrs(element); | ||
| 7273 | }; | ||
| 7274 | const cancelLoading = (element, entry, settings, instance) => { | ||
| 7275 | if (!settings.cancel_on_exit) return; | ||
| 7276 | if (!hasStatusLoading(element)) return; | ||
| 7277 | if (element.tagName !== "IMG") return; //Works only on images | ||
| 7278 | removeEventListeners(element); | ||
| 7279 | resetSourcesImg(element); | ||
| 7280 | restoreImg(element); | ||
| 7281 | removeClass(element, settings.class_loading); | ||
| 7282 | updateLoadingCount(instance, -1); | ||
| 7283 | resetStatus(element); | ||
| 7284 | safeCallback(settings.callback_cancel, element, entry, instance); | ||
| 7285 | }; | ||
| 7286 | const onEnter = (element, entry, settings, instance) => { | ||
| 7287 | const dontLoad = hadStartedLoading(element); /* Save status | ||
| 7288 | before setting it, to prevent loading it again. Fixes #526. */ | ||
| 7289 | setStatus(element, statusEntered); | ||
| 7290 | addClass(element, settings.class_entered); | ||
| 7291 | removeClass(element, settings.class_exited); | ||
| 7292 | unobserveEntered(element, settings, instance); | ||
| 7293 | safeCallback(settings.callback_enter, element, entry, instance); | ||
| 7294 | if (dontLoad) return; | ||
| 7295 | load(element, settings, instance); | ||
| 7296 | }; | ||
| 7297 | const onExit = (element, entry, settings, instance) => { | ||
| 7298 | if (hasEmptyStatus(element)) return; //Ignore the first pass, at landing | ||
| 7299 | addClass(element, settings.class_exited); | ||
| 7300 | cancelLoading(element, entry, settings, instance); | ||
| 7301 | safeCallback(settings.callback_exit, element, entry, instance); | ||
| 7302 | }; | ||
| 7303 | const tagsWithNativeLazy = ["IMG", "IFRAME", "VIDEO"]; | ||
| 7304 | const shouldUseNative = settings => settings.use_native && "loading" in HTMLImageElement.prototype; | ||
| 7305 | const loadAllNative = (elements, settings, instance) => { | ||
| 7306 | elements.forEach(element => { | ||
| 7307 | if (tagsWithNativeLazy.indexOf(element.tagName) === -1) { | ||
| 7308 | return; | ||
| 7309 | } | ||
| 7310 | loadNative(element, settings, instance); | ||
| 6828 | }); | 7311 | }); |
| 7312 | setToLoadCount(instance, 0); | ||
| 7313 | }; | ||
| 7314 | const isIntersecting = entry => entry.isIntersecting || entry.intersectionRatio > 0; | ||
| 7315 | const getObserverSettings = settings => ({ | ||
| 7316 | root: settings.container === document ? null : settings.container, | ||
| 7317 | rootMargin: settings.thresholds || settings.threshold + "px" | ||
| 6829 | }); | 7318 | }); |
| 7319 | const intersectionHandler = (entries, settings, instance) => { | ||
| 7320 | entries.forEach(entry => isIntersecting(entry) ? onEnter(entry.target, entry, settings, instance) : onExit(entry.target, entry, settings, instance)); | ||
| 7321 | }; | ||
| 7322 | const observeElements = (observer, elements) => { | ||
| 7323 | elements.forEach(element => { | ||
| 7324 | observer.observe(element); | ||
| 7325 | }); | ||
| 7326 | }; | ||
| 7327 | const updateObserver = (observer, elementsToObserve) => { | ||
| 7328 | resetObserver(observer); | ||
| 7329 | observeElements(observer, elementsToObserve); | ||
| 7330 | }; | ||
| 7331 | const setObserver = (settings, instance) => { | ||
| 7332 | if (!supportsIntersectionObserver || shouldUseNative(settings)) { | ||
| 7333 | return; | ||
| 7334 | } | ||
| 7335 | instance._observer = new IntersectionObserver(entries => { | ||
| 7336 | intersectionHandler(entries, settings, instance); | ||
| 7337 | }, getObserverSettings(settings)); | ||
| 7338 | }; | ||
| 7339 | const toArray = nodeSet => Array.prototype.slice.call(nodeSet); | ||
| 7340 | const queryElements = settings => settings.container.querySelectorAll(settings.elements_selector); | ||
| 7341 | const excludeManagedElements = elements => toArray(elements).filter(hasEmptyStatus); | ||
| 7342 | const hasError = element => hasStatusError(element); | ||
| 7343 | const filterErrorElements = elements => toArray(elements).filter(hasError); | ||
| 7344 | const getElementsToLoad = (elements, settings) => excludeManagedElements(elements || queryElements(settings)); | ||
| 7345 | const retryLazyLoad = (settings, instance) => { | ||
| 7346 | const errorElements = filterErrorElements(queryElements(settings)); | ||
| 7347 | errorElements.forEach(element => { | ||
| 7348 | removeClass(element, settings.class_error); | ||
| 7349 | resetStatus(element); | ||
| 7350 | }); | ||
| 7351 | instance.update(); | ||
| 7352 | }; | ||
| 7353 | const setOnlineCheck = (settings, instance) => { | ||
| 7354 | if (!runningOnBrowser) { | ||
| 7355 | return; | ||
| 7356 | } | ||
| 7357 | instance._onlineHandler = () => { | ||
| 7358 | retryLazyLoad(settings, instance); | ||
| 7359 | }; | ||
| 7360 | window.addEventListener("online", instance._onlineHandler); | ||
| 7361 | }; | ||
| 7362 | const resetOnlineCheck = instance => { | ||
| 7363 | if (!runningOnBrowser) { | ||
| 7364 | return; | ||
| 7365 | } | ||
| 7366 | window.removeEventListener("online", instance._onlineHandler); | ||
| 7367 | }; | ||
| 7368 | const LazyLoad = function (customSettings, elements) { | ||
| 7369 | const settings = getExtendedSettings(customSettings); | ||
| 7370 | this._settings = settings; | ||
| 7371 | this.loadingCount = 0; | ||
| 7372 | setObserver(settings, this); | ||
| 7373 | setOnlineCheck(settings, this); | ||
| 7374 | this.update(elements); | ||
| 7375 | }; | ||
| 7376 | LazyLoad.prototype = { | ||
| 7377 | update: function (givenNodeset) { | ||
| 7378 | const settings = this._settings; | ||
| 7379 | const elementsToLoad = getElementsToLoad(givenNodeset, settings); | ||
| 7380 | setToLoadCount(this, elementsToLoad.length); | ||
| 7381 | if (isBot || !supportsIntersectionObserver) { | ||
| 7382 | this.loadAll(elementsToLoad); | ||
| 7383 | return; | ||
| 7384 | } | ||
| 7385 | if (shouldUseNative(settings)) { | ||
| 7386 | loadAllNative(elementsToLoad, settings, this); | ||
| 7387 | return; | ||
| 7388 | } | ||
| 7389 | updateObserver(this._observer, elementsToLoad); | ||
| 7390 | }, | ||
| 7391 | destroy: function () { | ||
| 7392 | // Observer | ||
| 7393 | if (this._observer) { | ||
| 7394 | this._observer.disconnect(); | ||
| 7395 | } | ||
| 7396 | // Clean handlers | ||
| 7397 | resetOnlineCheck(this); | ||
| 7398 | // Clean custom attributes on elements | ||
| 7399 | queryElements(this._settings).forEach(element => { | ||
| 7400 | deleteOriginalAttrs(element); | ||
| 7401 | }); | ||
| 7402 | // Delete all internal props | ||
| 7403 | delete this._observer; | ||
| 7404 | delete this._settings; | ||
| 7405 | delete this._onlineHandler; | ||
| 7406 | delete this.loadingCount; | ||
| 7407 | delete this.toLoadCount; | ||
| 7408 | }, | ||
| 7409 | loadAll: function (elements) { | ||
| 7410 | const settings = this._settings; | ||
| 7411 | const elementsToLoad = getElementsToLoad(elements, settings); | ||
| 7412 | elementsToLoad.forEach(element => { | ||
| 7413 | unobserve(element, this); | ||
| 7414 | load(element, settings, this); | ||
| 7415 | }); | ||
| 7416 | }, | ||
| 7417 | restoreAll: function () { | ||
| 7418 | const settings = this._settings; | ||
| 7419 | queryElements(settings).forEach(element => { | ||
| 7420 | restore(element, settings); | ||
| 7421 | }); | ||
| 7422 | } | ||
| 7423 | }; | ||
| 7424 | LazyLoad.load = (element, customSettings) => { | ||
| 7425 | const settings = getExtendedSettings(customSettings); | ||
| 7426 | load(element, settings); | ||
| 7427 | }; | ||
| 7428 | LazyLoad.resetStatus = element => { | ||
| 7429 | resetStatus(element); | ||
| 7430 | }; | ||
| 7431 | |||
| 7432 | // Automatic instances creation if required (useful for async script loading) | ||
| 7433 | if (runningOnBrowser) { | ||
| 7434 | autoInitialize(LazyLoad, window.lazyLoadOptions); | ||
| 7435 | } | ||
| 7436 | |||
| 7437 | // Add your custom JS here. | ||
| 7438 | new LazyLoad(); | ||
| 6830 | 7439 | ||
| 6831 | exports.Alert = alert; | 7440 | exports.Alert = alert; |
| 6832 | exports.Button = button; | 7441 | 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.
| ... | @@ -7,41 +7,53 @@ | ... | @@ -7,41 +7,53 @@ |
| 7 | 7 | ||
| 8 | // Exit if accessed directly. | 8 | // Exit if accessed directly. |
| 9 | defined( 'ABSPATH' ) || exit; | 9 | defined( 'ABSPATH' ) || exit; |
| 10 | |||
| 11 | $post_type = get_post_type(get_the_ID()); | ||
| 12 | $permalink = get_permalink(); | ||
| 13 | $target = ''; | ||
| 14 | if($post_type == 'attachment') { | ||
| 15 | $permalink = wp_get_attachment_url( get_the_ID()); | ||
| 16 | $target = 'target="_blank"'; | ||
| 17 | } | ||
| 10 | ?> | 18 | ?> |
| 11 | 19 | ||
| 12 | <article <?php post_class(); ?> id="post-<?php the_ID(); ?>"> | 20 | <article <?php post_class(); ?> id="post-<?php the_ID(); ?>"> |
| 13 | 21 | ||
| 14 | <header class="entry-header"> | 22 | <a href='<?php echo $permalink; ?>' <?php echo $target; ?> class='outside-a'> |
| 15 | 23 | <?php | |
| 16 | <?php | 24 | |
| 17 | the_title( | 25 | $imgid = get_post_thumbnail_id($search_posts[$i]['ID']); |
| 18 | sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), | 26 | $img = get_field('photo_from_source', $search_posts[$i]['ID']); |
| 19 | '</a></h2>' | 27 | if($imgid || $img): |
| 20 | ); | 28 | ?> |
| 29 | <div class='photo'> | ||
| 30 | <?php | ||
| 31 | if($imgid) { | ||
| 32 | $image = wp_get_attachment_image_src($imgid, 'medium'); | ||
| 33 | $image = $image[0]; | ||
| 34 | $image_alt = get_post_meta($imgid, '_wp_attachment_image_alt', TRUE); | ||
| 35 | } else if($img ) { | ||
| 36 | $image = $img; | ||
| 37 | $image_alt = get_field('alt_text', $search_posts[$i]['ID']); | ||
| 38 | } | ||
| 21 | ?> | 39 | ?> |
| 40 | <img src='#' data-src="<?= $image ?>" class='lazy' alt='<?= $image_alt ?>' /> | ||
| 41 | </div> | ||
| 42 | <?php endif; ?> | ||
| 43 | <div class='content'> | ||
| 22 | 44 | ||
| 23 | <?php if ( 'post' === get_post_type() ) : ?> | 45 | <header class="entry-header"> |
| 24 | |||
| 25 | <div class="entry-meta"> | ||
| 26 | |||
| 27 | <?php understrap_posted_on(); ?> | ||
| 28 | |||
| 29 | </div><!-- .entry-meta --> | ||
| 30 | |||
| 31 | <?php endif; ?> | ||
| 32 | |||
| 33 | </header><!-- .entry-header --> | ||
| 34 | |||
| 35 | <div class="entry-summary"> | ||
| 36 | 46 | ||
| 37 | <?php the_excerpt(); ?> | 47 | <h2 class="entry-title"><?= the_title() ?></h2> |
| 38 | 48 | ||
| 39 | </div><!-- .entry-summary --> | 49 | </header><!-- .entry-header --> |
| 40 | 50 | ||
| 41 | <footer class="entry-footer"> | 51 | <div class="entry-summary" id='content'> |
| 42 | 52 | ||
| 43 | <?php understrap_entry_footer(); ?> | 53 | <?= wp_strip_all_tags(get_the_excerpt(), true) ?> |
| 44 | 54 | ||
| 45 | </footer><!-- .entry-footer --> | 55 | </div><!-- .entry-summary --> |
| 46 | 56 | ||
| 47 | </article><!-- #post-<?php the_ID(); ?> --> | 57 | </div> |
| 58 | </a> | ||
| 59 | </article><!-- #post-## --> | ... | ... |
| ... | @@ -5637,6 +5637,11 @@ | ... | @@ -5637,6 +5637,11 @@ |
| 5637 | "spdx-expression-parse": "^3.0.0" | 5637 | "spdx-expression-parse": "^3.0.0" |
| 5638 | } | 5638 | } |
| 5639 | }, | 5639 | }, |
| 5640 | "vanilla-lazyload": { | ||
| 5641 | "version": "17.8.4", | ||
| 5642 | "resolved": "https://registry.npmjs.org/vanilla-lazyload/-/vanilla-lazyload-17.8.4.tgz", | ||
| 5643 | "integrity": "sha512-LP1fP0nl7SZom6wojLJXzj2du69txtPfDOoWQWgLDU8mz7NBrWL2Txx6p84f6d+gTEcGbA9lUynAx5CS0rqWsg==" | ||
| 5644 | }, | ||
| 5640 | "vary": { | 5645 | "vary": { |
| 5641 | "version": "1.1.2", | 5646 | "version": "1.1.2", |
| 5642 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", | 5647 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", | ... | ... |
| ... | @@ -41,7 +41,9 @@ | ... | @@ -41,7 +41,9 @@ |
| 41 | "url": "https://github.com/understrap/understrap-child/issues" | 41 | "url": "https://github.com/understrap/understrap-child/issues" |
| 42 | }, | 42 | }, |
| 43 | "homepage": "https://understrap.com", | 43 | "homepage": "https://understrap.com", |
| 44 | "dependencies": {}, | 44 | "dependencies": { |
| 45 | "vanilla-lazyload": "^17.8.4" | ||
| 46 | }, | ||
| 45 | "devDependencies": { | 47 | "devDependencies": { |
| 46 | "@babel/core": "^7.19.6", | 48 | "@babel/core": "^7.19.6", |
| 47 | "@babel/preset-env": "^7.22.9", | 49 | "@babel/preset-env": "^7.22.9", | ... | ... |
| 1 | |||
| 2 | var addstuff = '<div class="list-wrapper2 list-wrapper"><button type="button" class="back-one-level"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M16.67 0l2.83 2.829-9.339 9.175 9.339 9.167-2.83 2.829-12.17-11.996z"/></svg><span>Back</span></button><div class="sub-menu-wrapper"></div></div><div class="list-wrapper3 list-wrapper"><button type="button" class="back-one-level"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M16.67 0l2.83 2.829-9.339 9.175 9.339 9.167-2.83 2.829-12.17-11.996z"/></svg><span>Back</span></button><div class="sub-menu-wrapper"></div></div>'; | ||
| 3 | |||
| 4 | const pageHeader = document.querySelector("#main-nav"); | ||
| 5 | const toggleMenu = pageHeader.querySelector(".mega-toggle-block"); | ||
| 6 | const menuWrapper = pageHeader.querySelector("#mega-menu-primary"); | ||
| 7 | menuWrapper.innerHTML =menuWrapper.innerHTML + addstuff; | ||
| 8 | |||
| 9 | const level1Links = pageHeader.querySelectorAll("li.mega-menu-item-has-children > a.mega-menu-link"); | ||
| 10 | const listWrapper2 = pageHeader.querySelector(".list-wrapper2"); | ||
| 11 | const listWrapper3 = pageHeader.querySelector(".list-wrapper3"); | ||
| 12 | const subMenuWrapper2 = listWrapper2.querySelector(".sub-menu-wrapper"); | ||
| 13 | const subMenuWrapper3 = listWrapper3.querySelector(".sub-menu-wrapper"); | ||
| 14 | const backOneLevelBtns = pageHeader.querySelectorAll(".back-one-level"); | ||
| 15 | const isVisibleClass = "is-visible"; | ||
| 16 | const isActiveClass = "is-active"; | ||
| 17 | |||
| 18 | toggleMenu.addEventListener("click", function () { | ||
| 19 | menuWrapper.classList.toggle(isVisibleClass); | ||
| 20 | if (!this.classList.contains(isVisibleClass)) { | ||
| 21 | listWrapper2.classList.remove(isVisibleClass); | ||
| 22 | listWrapper3.classList.remove(isVisibleClass); | ||
| 23 | const menuLinks = menuWrapper.querySelectorAll("a"); | ||
| 24 | for (const menuLink of menuLinks) { | ||
| 25 | menuLink.classList.remove(isActiveClass); | ||
| 26 | } | ||
| 27 | } | ||
| 28 | }); | ||
| 29 | |||
| 30 | for (const level1Link of level1Links) { | ||
| 31 | level1Link.addEventListener("click", function (e) { | ||
| 32 | const siblingList = level1Link.nextElementSibling; | ||
| 33 | console.log('clicked level1Links') | ||
| 34 | if (siblingList) { | ||
| 35 | e.preventDefault(); | ||
| 36 | this.classList.add(isActiveClass); | ||
| 37 | const cloneSiblingList = siblingList.cloneNode(true); | ||
| 38 | subMenuWrapper2.innerHTML = ""; | ||
| 39 | subMenuWrapper2.append(cloneSiblingList); | ||
| 40 | listWrapper2.classList.add(isVisibleClass); | ||
| 41 | } | ||
| 42 | }); | ||
| 43 | } | ||
| 44 | |||
| 45 | listWrapper2.addEventListener("click", function (e) { | ||
| 46 | const target = e.target; | ||
| 47 | const parent = target.closest("a"); | ||
| 48 | if (target.tagName.toLowerCase() === "a" && target.nextElementSibling) { | ||
| 49 | const siblingList = target.nextElementSibling; | ||
| 50 | e.preventDefault(); | ||
| 51 | target.classList.add(isActiveClass); | ||
| 52 | const cloneSiblingList = siblingList.cloneNode(true); | ||
| 53 | subMenuWrapper3.innerHTML = ""; | ||
| 54 | subMenuWrapper3.append(cloneSiblingList); | ||
| 55 | listWrapper3.classList.add(isVisibleClass); | ||
| 56 | }else if (parent.tagName.toLowerCase() === "a" && parent.nextElementSibling) { | ||
| 57 | const siblingList = parent.nextElementSibling; | ||
| 58 | e.preventDefault(); | ||
| 59 | parent.classList.add(isActiveClass); | ||
| 60 | const cloneSiblingList = siblingList.cloneNode(true); | ||
| 61 | subMenuWrapper3.innerHTML = ""; | ||
| 62 | subMenuWrapper3.append(cloneSiblingList); | ||
| 63 | listWrapper3.classList.add(isVisibleClass); | ||
| 64 | } | ||
| 65 | }); | ||
| 66 | |||
| 67 | for (const backOneLevelBtn of backOneLevelBtns) { | ||
| 68 | backOneLevelBtn.addEventListener("click", function () { | ||
| 69 | const parent = this.closest(".list-wrapper"); | ||
| 70 | parent.classList.remove(isVisibleClass); | ||
| 71 | // parent.previousElementSibling | ||
| 72 | // .querySelector(".is-active") | ||
| 73 | // .classList.remove(isActiveClass); | ||
| 74 | }); | ||
| 75 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | |||
| 2 | // Search Filter | ||
| 3 | |||
| 4 | jQuery(document).ready(function($){ | ||
| 5 | $(".searchandfilter ul li:contains('hidden')").hide(); | ||
| 6 | $('<li class="sf-field-reset"><input type="submit" class="search-filter-reset-custom" value="CLEAR ALL" "></li>').appendTo( jQuery( '#advance-search-modal .searchandfilter ul:first-child ' ) ); | ||
| 7 | |||
| 8 | $(document).on("click", ".search-filter-reset-custom", function(e){ | ||
| 9 | e.preventDefault(); | ||
| 10 | $(this).closest('.searchandfilter')[0].reset(); | ||
| 11 | return false; | ||
| 12 | }); | ||
| 13 | }); |
| 1 | // Add your custom JS here. | 1 | // Add your custom JS here. |
| 2 | 2 | ||
| 3 | //import "./_header_menu"; | 3 | import "._menu_mobile"; |
| 4 | import "._search"; | ||
| 5 | import LazyLoad from "vanilla-lazyload"; | ||
| 4 | 6 | ||
| 7 | var myLazyLoad = new LazyLoad(); | ||
| 5 | 8 | ||
| 6 | var addstuff = '<div class="list-wrapper2 list-wrapper"><button type="button" class="back-one-level"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M16.67 0l2.83 2.829-9.339 9.175 9.339 9.167-2.83 2.829-12.17-11.996z"/></svg><span>Back</span></button><div class="sub-menu-wrapper"></div></div><div class="list-wrapper3 list-wrapper"><button type="button" class="back-one-level"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M16.67 0l2.83 2.829-9.339 9.175 9.339 9.167-2.83 2.829-12.17-11.996z"/></svg><span>Back</span></button><div class="sub-menu-wrapper"></div></div>'; | ||
| 7 | 9 | ||
| 8 | const pageHeader = document.querySelector("#main-nav"); | ||
| 9 | const toggleMenu = pageHeader.querySelector(".mega-toggle-block"); | ||
| 10 | const menuWrapper = pageHeader.querySelector("#mega-menu-primary"); | ||
| 11 | menuWrapper.innerHTML =menuWrapper.innerHTML + addstuff; | ||
| 12 | |||
| 13 | const level1Links = pageHeader.querySelectorAll("li.mega-menu-item-has-children > a.mega-menu-link"); | ||
| 14 | const listWrapper2 = pageHeader.querySelector(".list-wrapper2"); | ||
| 15 | const listWrapper3 = pageHeader.querySelector(".list-wrapper3"); | ||
| 16 | const subMenuWrapper2 = listWrapper2.querySelector(".sub-menu-wrapper"); | ||
| 17 | const subMenuWrapper3 = listWrapper3.querySelector(".sub-menu-wrapper"); | ||
| 18 | const backOneLevelBtns = pageHeader.querySelectorAll(".back-one-level"); | ||
| 19 | const isVisibleClass = "is-visible"; | ||
| 20 | const isActiveClass = "is-active"; | ||
| 21 | |||
| 22 | toggleMenu.addEventListener("click", function () { | ||
| 23 | menuWrapper.classList.toggle(isVisibleClass); | ||
| 24 | if (!this.classList.contains(isVisibleClass)) { | ||
| 25 | listWrapper2.classList.remove(isVisibleClass); | ||
| 26 | listWrapper3.classList.remove(isVisibleClass); | ||
| 27 | const menuLinks = menuWrapper.querySelectorAll("a"); | ||
| 28 | for (const menuLink of menuLinks) { | ||
| 29 | menuLink.classList.remove(isActiveClass); | ||
| 30 | } | ||
| 31 | } | ||
| 32 | }); | ||
| 33 | |||
| 34 | for (const level1Link of level1Links) { | ||
| 35 | level1Link.addEventListener("click", function (e) { | ||
| 36 | const siblingList = level1Link.nextElementSibling; | ||
| 37 | console.log('clicked level1Links') | ||
| 38 | if (siblingList) { | ||
| 39 | e.preventDefault(); | ||
| 40 | this.classList.add(isActiveClass); | ||
| 41 | const cloneSiblingList = siblingList.cloneNode(true); | ||
| 42 | subMenuWrapper2.innerHTML = ""; | ||
| 43 | subMenuWrapper2.append(cloneSiblingList); | ||
| 44 | listWrapper2.classList.add(isVisibleClass); | ||
| 45 | } | ||
| 46 | }); | ||
| 47 | } | ||
| 48 | |||
| 49 | listWrapper2.addEventListener("click", function (e) { | ||
| 50 | const target = e.target; | ||
| 51 | const parent = target.closest("a"); | ||
| 52 | if (target.tagName.toLowerCase() === "a" && target.nextElementSibling) { | ||
| 53 | const siblingList = target.nextElementSibling; | ||
| 54 | e.preventDefault(); | ||
| 55 | target.classList.add(isActiveClass); | ||
| 56 | const cloneSiblingList = siblingList.cloneNode(true); | ||
| 57 | subMenuWrapper3.innerHTML = ""; | ||
| 58 | subMenuWrapper3.append(cloneSiblingList); | ||
| 59 | listWrapper3.classList.add(isVisibleClass); | ||
| 60 | }else if (parent.tagName.toLowerCase() === "a" && parent.nextElementSibling) { | ||
| 61 | const siblingList = parent.nextElementSibling; | ||
| 62 | e.preventDefault(); | ||
| 63 | parent.classList.add(isActiveClass); | ||
| 64 | const cloneSiblingList = siblingList.cloneNode(true); | ||
| 65 | subMenuWrapper3.innerHTML = ""; | ||
| 66 | subMenuWrapper3.append(cloneSiblingList); | ||
| 67 | listWrapper3.classList.add(isVisibleClass); | ||
| 68 | } | ||
| 69 | }); | ||
| 70 | |||
| 71 | for (const backOneLevelBtn of backOneLevelBtns) { | ||
| 72 | backOneLevelBtn.addEventListener("click", function () { | ||
| 73 | const parent = this.closest(".list-wrapper"); | ||
| 74 | parent.classList.remove(isVisibleClass); | ||
| 75 | // parent.previousElementSibling | ||
| 76 | // .querySelector(".is-active") | ||
| 77 | // .classList.remove(isActiveClass); | ||
| 78 | }); | ||
| 79 | } | ||
| 80 | |||
| 81 | // Search Filter | ||
| 82 | |||
| 83 | jQuery(document).ready(function($){ | ||
| 84 | $(".searchandfilter ul li:contains('hidden')").hide(); | ||
| 85 | $('<li class="sf-field-reset"><input type="submit" class="search-filter-reset-custom" value="CLEAR ALL" "></li>').appendTo( jQuery( '#advance-search-modal .searchandfilter ul:first-child ' ) ); | ||
| 86 | |||
| 87 | $(document).on("click", ".search-filter-reset-custom", function(e){ | ||
| 88 | e.preventDefault(); | ||
| 89 | $(this).closest('.searchandfilter')[0].reset(); | ||
| 90 | return false; | ||
| 91 | }); | ||
| 92 | }); | ... | ... |
| 1 | 1 | ||
| 2 | |||
| 3 | .search-results { | ||
| 4 | .search-field { | ||
| 5 | border: 0; | ||
| 6 | border-bottom: 1px solid #707070; | ||
| 7 | border-radius: 0; | ||
| 8 | } | ||
| 9 | |||
| 10 | #content { | ||
| 11 | padding: 2.5rem 0; | ||
| 12 | padding-top: 1rem; | ||
| 13 | } | ||
| 14 | } | ||
| 15 | |||
| 16 | .pagination { | ||
| 17 | justify-content: center; | ||
| 18 | margin-top: 1rem; | ||
| 19 | |||
| 20 | .page-item { | ||
| 21 | border: 0; | ||
| 22 | display: flex; | ||
| 23 | align-items: center; | ||
| 24 | |||
| 25 | .page-link { | ||
| 26 | color: #000000; | ||
| 27 | margin-left: 0; | ||
| 28 | border: 0; | ||
| 29 | font-family: "PT Sans", sans-serif; | ||
| 30 | |||
| 31 | &:hover { | ||
| 32 | text-decoration: underline; | ||
| 33 | background: none; | ||
| 34 | } | ||
| 35 | |||
| 36 | &.next, | ||
| 37 | &.prev { | ||
| 38 | color: transparent; | ||
| 39 | background-image: 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 0) rotate(90)'/%3E%3C/svg%3E"); | ||
| 40 | height: 0.938rem; | ||
| 41 | background-size: contain; | ||
| 42 | background-repeat: no-repeat; | ||
| 43 | background-position: center; | ||
| 44 | |||
| 45 | &:hover { | ||
| 46 | background: none; | ||
| 47 | text-decoration: none; | ||
| 48 | background-image: 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 0) rotate(90)' fill='%23699'/%3E%3C/svg%3E"); | ||
| 49 | background-size: contain; | ||
| 50 | background-repeat: no-repeat; | ||
| 51 | background-position: center; | ||
| 52 | } | ||
| 53 | } | ||
| 54 | |||
| 55 | &.prev { | ||
| 56 | transform: rotate(180deg); | ||
| 57 | } | ||
| 58 | } | ||
| 59 | |||
| 60 | &.active { | ||
| 61 | .page-link { | ||
| 62 | font-family: "PT Sans", sans-serif; | ||
| 63 | font-weight: bold; | ||
| 64 | |||
| 65 | &:hover { | ||
| 66 | text-decoration: none; | ||
| 67 | } | ||
| 68 | } | ||
| 69 | } | ||
| 70 | } | ||
| 71 | } | ||
| 72 | |||
| 73 | .sh1 { | 2 | .sh1 { |
| 74 | font-weight: 700; | 3 | font-weight: 700; |
| 75 | line-height: 24px !important; | 4 | line-height: 24px !important; |
| ... | @@ -84,84 +13,13 @@ | ... | @@ -84,84 +13,13 @@ |
| 84 | } | 13 | } |
| 85 | 14 | ||
| 86 | #search-wrapper { | 15 | #search-wrapper { |
| 87 | margin-top: 1rem; | 16 | |
| 88 | padding-top: 3rem; | ||
| 89 | |||
| 90 | @media screen and (max-width: 950px) { | ||
| 91 | padding: 0rem 2rem; | ||
| 92 | } | ||
| 93 | 17 | ||
| 94 | .searchandfilter { | 18 | .searchandfilter { |
| 95 | width: calc(100% - 50px); | 19 | width: calc(100% - 50px); |
| 96 | display: inline-block; | 20 | display: inline-block; |
| 97 | } | 21 | } |
| 98 | 22 | ||
| 99 | display: flex; | ||
| 100 | |||
| 101 | #main { | ||
| 102 | &>article { | ||
| 103 | padding: 2rem 0; | ||
| 104 | border-top: 1px solid #bebebe; | ||
| 105 | display: flex; | ||
| 106 | |||
| 107 | .photo { | ||
| 108 | min-width: 18.375rem; | ||
| 109 | min-height: 12.375rem; | ||
| 110 | max-width: 18.375rem; | ||
| 111 | max-height: 12.375rem; | ||
| 112 | |||
| 113 | img { | ||
| 114 | object-fit: cover; | ||
| 115 | object-position: center; | ||
| 116 | height: 100%; | ||
| 117 | width: 100%; | ||
| 118 | } | ||
| 119 | } | ||
| 120 | |||
| 121 | a { | ||
| 122 | gap: 1.5rem; | ||
| 123 | display: flex; | ||
| 124 | color: #000000; | ||
| 125 | text-decoration: none; | ||
| 126 | flex-direction: row; | ||
| 127 | |||
| 128 | &:hover { | ||
| 129 | h2.entry-title { | ||
| 130 | text-decoration: underline; | ||
| 131 | } | ||
| 132 | } | ||
| 133 | } | ||
| 134 | |||
| 135 | .entry-header { | ||
| 136 | height: auto !important; | ||
| 137 | } | ||
| 138 | |||
| 139 | h2.entry-title { | ||
| 140 | margin-top: 0 !important; | ||
| 141 | font-size: 1.25rem !important; | ||
| 142 | font-family: "PT Sans", sans-serif; | ||
| 143 | font-weight: bold; | ||
| 144 | |||
| 145 | @media screen and (max-width: 768px) { | ||
| 146 | font-size: 1rem !important; | ||
| 147 | line-height: 1.25rem !important; | ||
| 148 | } | ||
| 149 | } | ||
| 150 | |||
| 151 | .entry-summary { | ||
| 152 | p { | ||
| 153 | color: #4d4d4d; | ||
| 154 | font-size: 1rem; | ||
| 155 | font-family: "PT Sans", sans-serif; | ||
| 156 | } | ||
| 157 | } | ||
| 158 | } | ||
| 159 | |||
| 160 | .understrap-read-more-link { | ||
| 161 | display: none; | ||
| 162 | } | ||
| 163 | } | ||
| 164 | |||
| 165 | .search-field { | 23 | .search-field { |
| 166 | border: 0; | 24 | border: 0; |
| 167 | border-bottom: 1px solid #707070; | 25 | border-bottom: 1px solid #707070; |
| ... | @@ -271,10 +129,6 @@ | ... | @@ -271,10 +129,6 @@ |
| 271 | } | 129 | } |
| 272 | } | 130 | } |
| 273 | 131 | ||
| 274 | #main { | ||
| 275 | display: flex; | ||
| 276 | flex-direction: column; | ||
| 277 | } | ||
| 278 | 132 | ||
| 279 | .searchandfilter { | 133 | .searchandfilter { |
| 280 | ul { | 134 | ul { |
| ... | @@ -299,7 +153,7 @@ | ... | @@ -299,7 +153,7 @@ |
| 299 | color: #000; | 153 | color: #000; |
| 300 | padding: 5px 14px; | 154 | padding: 5px 14px; |
| 301 | text-decoration: none; | 155 | text-decoration: none; |
| 302 | 156 | margin-top: 2px; | |
| 303 | @media screen and (max-width: 1450px) { | 157 | @media screen and (max-width: 1450px) { |
| 304 | width: 40%; | 158 | width: 40%; |
| 305 | line-height: 20px; | 159 | line-height: 20px; | ... | ... |
| 1 | |||
| 2 | .search-results { | ||
| 3 | .search-field { | ||
| 4 | border: 0; | ||
| 5 | border-bottom: 1px solid #707070; | ||
| 6 | border-radius: 0; | ||
| 7 | } | ||
| 8 | |||
| 9 | #content { | ||
| 10 | padding: 2.5rem 0; | ||
| 11 | padding-top: 1rem; | ||
| 12 | } | ||
| 13 | } | ||
| 14 | |||
| 15 | #search-wrapper { | ||
| 16 | margin-top: 1rem; | ||
| 17 | padding-top: 3rem; | ||
| 18 | display: flex; | ||
| 19 | @media screen and (max-width: 950px) { | ||
| 20 | padding: 0rem 2rem; | ||
| 21 | } | ||
| 22 | |||
| 23 | #main { | ||
| 24 | display: flex; | ||
| 25 | flex-direction: column; | ||
| 26 | &>article { | ||
| 27 | padding: 2rem 0; | ||
| 28 | border-top: 1px solid #bebebe; | ||
| 29 | display: flex; | ||
| 30 | |||
| 31 | .photo { | ||
| 32 | min-width: 18.375rem; | ||
| 33 | min-height: 12.375rem; | ||
| 34 | max-width: 18.375rem; | ||
| 35 | max-height: 12.375rem; | ||
| 36 | |||
| 37 | img { | ||
| 38 | object-fit: cover; | ||
| 39 | object-position: center; | ||
| 40 | height: 100%; | ||
| 41 | width: 100%; | ||
| 42 | } | ||
| 43 | } | ||
| 44 | |||
| 45 | a { | ||
| 46 | gap: 1.5rem; | ||
| 47 | display: flex; | ||
| 48 | color: #000000; | ||
| 49 | text-decoration: none; | ||
| 50 | flex-direction: row; | ||
| 51 | |||
| 52 | &:hover { | ||
| 53 | h2.entry-title { | ||
| 54 | text-decoration: underline; | ||
| 55 | } | ||
| 56 | } | ||
| 57 | } | ||
| 58 | a[href$=".pdf"]{ | ||
| 59 | h2{ | ||
| 60 | &:before { | ||
| 61 | content:''; | ||
| 62 | width:1.313rem; | ||
| 63 | height:1.5rem; | ||
| 64 | background-image: url("data:image/svg+xml,%3Csvg id='Group_1127' data-name='Group 1127' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='21.409' height='24.169' viewBox='0 0 21.409 24.169'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Rectangle_180' data-name='Rectangle 180' width='21.409' height='24.169' fill='none'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Group_1126' data-name='Group 1126' clip-path='url(%23clip-path)'%3E%3Cpath id='Path_1363' data-name='Path 1363' d='M18.646 24.169H2.779c-.037-.013-.074-.029-.112-.039a.943.943 0 0 1-.657-.6 1.009 1.009 0 0 1-.057-.365q0-2.321 0-4.641V18.39H1.84c-.164 0-.329 0-.493 0A1.354 1.354 0 0 1 .038 17.265.992.992 0 0 0 0 17.141V9.892a.757.757 0 0 0 .035-.114A1.352 1.352 0 0 1 1.392 8.64c.158 0 .315 0 .473 0 .026 0 .052 0 .088-.007V1.079c0-.05 0-.1 0-.151a.952.952 0 0 1 .609-.87A1.084 1.084 0 0 1 2.967 0H14.343a.468.468 0 0 1 .366.161c.032.034.063.07.094.105Q17.05 2.834 19.3 5.4a.667.667 0 0 1 .183.473c0 .03 0 .06 0 .091V8.64h.111c.164 0 .329-.005.493 0a1.326 1.326 0 0 1 1.21.8 1.294 1.294 0 0 1 .112.587q0 2.034 0 4.067 0 1.445 0 2.889a1.732 1.732 0 0 1-.013.291 1.351 1.351 0 0 1-1.323 1.118c-.164 0-.329 0-.493 0-.029 0-.058 0-.095.005v.137q0 2.285 0 4.571c0 .064 0 .128-.007.191a.947.947 0 0 1-.707.835c-.042.011-.082.026-.124.04M2.906.95V8.635H18.52c.023-.106.019-2.289 0-2.369H14.451c-.037 0-.074 0-.111 0a.475.475 0 0 1-.459-.4.952.952 0 0 1-.006-.151q0-2.316 0-4.631V.95Zm0 22H18.528V18.4H2.9Zm5.376-5.727c.041.007.073.014.106.017.274.023.548.051.822.066a11.306 11.306 0 0 0 1.769-.021A5.79 5.79 0 0 0 12.311 17a3.08 3.08 0 0 0 1.978-1.948 4.442 4.442 0 0 0 .159-2.361 2.9 2.9 0 0 0-.577-1.281 3.15 3.15 0 0 0-1.6-1.051 5.884 5.884 0 0 0-1.619-.222 15.609 15.609 0 0 0-1.93.083c-.149.016-.3.039-.447.06ZM3.764 14.73a4.907 4.907 0 0 0 .945.015 3.685 3.685 0 0 0 1.162-.262 2.171 2.171 0 0 0 .976-.749 2.344 2.344 0 0 0 .384-1.706 1.96 1.96 0 0 0-1.308-1.654 3.711 3.711 0 0 0-1.249-.234 14.1 14.1 0 0 0-2.249.1c-.082.01-.163.027-.241.04v6.974H3.764ZM19.9 10.192c-.156-.022-4.245-.014-4.314.006v7.051c.133.019 1.517.014 1.6-.007V15.364q0-.237 0-.473c0-.156 0-.313 0-.477h1.695c.141 0 .282 0 .423 0s.279.006.416 0v-1.3H17.2c-.021-.19-.012-1.539.012-1.62H19.9Z' transform='translate(0 0)' fill='%231a1818'/%3E%3Cpath id='Path_1364' data-name='Path 1364' d='M162.156 186.274c.116-.015.228-.033.341-.042a3.327 3.327 0 0 1 1.129.076 1.818 1.818 0 0 1 1.39 1.425 3.261 3.261 0 0 1-.092 1.835 1.922 1.922 0 0 1-1.422 1.283 3.15 3.15 0 0 1-.848.088c-.164 0-.328-.011-.5-.016Z' transform='translate(-152.266 -174.859)' fill='%231a1818'/%3E%3Cpath id='Path_1365' data-name='Path 1365' d='M61.758 188.026v-2.1c.042-.009.083-.022.125-.027a2.629 2.629 0 0 1 1.038.028 1.092 1.092 0 0 1 .378.181.894.894 0 0 1 .346.582 1.233 1.233 0 0 1-.006.46 1.045 1.045 0 0 1-.786.829 2.131 2.131 0 0 1-.757.073c-.11-.006-.22-.019-.338-.03' transform='translate(-57.991 -174.529)' fill='%231a1818'/%3E%3C/g%3E%3C/svg%3E"); | ||
| 65 | background-size: contain; | ||
| 66 | display: inline-block; | ||
| 67 | position: relative; | ||
| 68 | top: 5px; | ||
| 69 | left:-0.5rem; | ||
| 70 | } | ||
| 71 | } | ||
| 72 | } | ||
| 73 | a[href$=".doc"], | ||
| 74 | a[href$=".docx"]{ | ||
| 75 | h2{ | ||
| 76 | &:before { | ||
| 77 | content:''; | ||
| 78 | width:1.313rem; | ||
| 79 | height:1.5rem; | ||
| 80 | background-repeat: no-repeat; | ||
| 81 | background-image: url('data:image/svg+xml,<svg id="Group_1918" data-name="Group 1918" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="17.95" height="20.264" viewBox="0 0 17.95 20.264"><defs><clipPath id="clip-path"><rect id="Rectangle_268" data-name="Rectangle 268" width="17.95" height="20.264" fill="none"/></clipPath></defs><g id="Group_1918-2" data-name="Group 1918" clip-path="url(%23clip-path)"><path id="Path_1519" data-name="Path 1519" d="M64.535,186.442l.166.008.118,0a1.607,1.607,0,0,0,.761-.162,1.293,1.293,0,0,0,.481-.43,1.73,1.73,0,0,0,.248-.619,3.63,3.63,0,0,0,.071-.722,3.436,3.436,0,0,0-.063-.651,1.633,1.633,0,0,0-.233-.588,1.313,1.313,0,0,0-.462-.426,1.488,1.488,0,0,0-.742-.166q-.174,0-.351.008a2.153,2.153,0,0,0-.264.024v3.7a.621.621,0,0,0,.106.012l.162.008" transform="translate(-60.981 -173.349)" fill="%231a1818"/><path id="Path_1520" data-name="Path 1520" d="M163.9,182.626a1.089,1.089,0,0,0-.371-.406,1.11,1.11,0,0,0-1.452.316,2.608,2.608,0,0,0-.316,1.448,3.882,3.882,0,0,0,.071.769,1.983,1.983,0,0,0,.217.6,1.1,1.1,0,0,0,.375.394,1.011,1.011,0,0,0,.544.142,1.026,1.026,0,0,0,.892-.45,2.6,2.6,0,0,0,.316-1.46,3.958,3.958,0,0,0-.067-.749,2.092,2.092,0,0,0-.209-.607" transform="translate(-153.494 -172.763)" fill="%231a1818"/><path id="Path_1521" data-name="Path 1521" d="M17.95,8.4a1.085,1.085,0,0,0-.094-.492,1.112,1.112,0,0,0-1.014-.667c-.138-.006-.276,0-.414,0h-.093V5c0-.025,0-.051,0-.076a.559.559,0,0,0-.154-.4Q14.293,2.378,12.41.223c-.026-.03-.051-.06-.078-.088A.392.392,0,0,0,12.025,0H2.487a.907.907,0,0,0-.34.049.8.8,0,0,0-.51.729c0,.042,0,.084,0,.127V7.238c-.03,0-.052.006-.074.006-.132,0-.264,0-.4,0A1.134,1.134,0,0,0,.03,8.2a.633.633,0,0,1-.03.1v6.078a.835.835,0,0,1,.032.1,1.136,1.136,0,0,0,1.1.942c.138,0,.276,0,.414,0h.094v.113q0,1.946,0,3.891a.845.845,0,0,0,.048.306.79.79,0,0,0,.551.5c.032.009.063.022.094.033h13.3c.035-.011.069-.024.1-.033a.794.794,0,0,0,.593-.7c0-.053.006-.107.006-.16q0-1.916,0-3.832v-.115c.03,0,.055,0,.079,0h.414a1.132,1.132,0,0,0,1.11-.937,1.452,1.452,0,0,0,.011-.244q0-1.211,0-2.423,0-1.705,0-3.41M2.437.8h9.2V.905q0,1.941,0,3.883a.792.792,0,0,0,.005.126.4.4,0,0,0,.385.339c.031,0,.062,0,.093,0h3.407c.02.067.024,1.9,0,1.986H2.437ZM11.823,11.22a3.273,3.273,0,0,1-.611,2.126,2.113,2.113,0,0,1-1.732.746,2.453,2.453,0,0,1-1.041-.205,1.913,1.913,0,0,1-.73-.584,2.591,2.591,0,0,1-.43-.907,4.529,4.529,0,0,1-.142-1.176,3.287,3.287,0,0,1,.608-2.126,2.11,2.11,0,0,1,1.736-.745,2.434,2.434,0,0,1,1.034.205,1.948,1.948,0,0,1,.734.584,2.553,2.553,0,0,1,.434.907,4.53,4.53,0,0,1,.142,1.175M2.206,13.989V8.459q.166-.024.375-.039T3.01,8.4q.221-.008.43-.012t.375,0a3.424,3.424,0,0,1,1.254.205,2.135,2.135,0,0,1,.844.576,2.311,2.311,0,0,1,.473.884,4.013,4.013,0,0,1,.15,1.128,4.087,4.087,0,0,1-.142,1.081,2.445,2.445,0,0,1-.473.923,2.373,2.373,0,0,1-.872.647,3.241,3.241,0,0,1-1.337.245q-.126,0-.335-.008t-.434-.02l-.43-.024q-.205-.012-.308-.028m13.329,5.253H2.435V15.424h13.1Zm.158-5.229a4.067,4.067,0,0,1-.8.078,2.869,2.869,0,0,1-.943-.154,2.016,2.016,0,0,1-.785-.5,2.443,2.443,0,0,1-.54-.892,3.875,3.875,0,0,1-.2-1.329,3.6,3.6,0,0,1,.225-1.361,2.469,2.469,0,0,1,.584-.884,2.155,2.155,0,0,1,.8-.481,2.8,2.8,0,0,1,.884-.146,4.316,4.316,0,0,1,.8.063,2.935,2.935,0,0,1,.54.15l-.213.915a1.569,1.569,0,0,0-.43-.126,3.935,3.935,0,0,0-.6-.039,1.317,1.317,0,0,0-1.053.466,2.193,2.193,0,0,0-.4,1.447,2.994,2.994,0,0,0,.095.779,1.676,1.676,0,0,0,.288.6,1.327,1.327,0,0,0,.481.387,1.523,1.523,0,0,0,.667.138,2.178,2.178,0,0,0,.6-.071,1.758,1.758,0,0,0,.426-.181l.221.878a1.656,1.656,0,0,1-.643.258" fill="%231a1818"/></g></svg>'); | ||
| 82 | background-size: contain; | ||
| 83 | display: inline-block; | ||
| 84 | position: relative; | ||
| 85 | top: 5px; | ||
| 86 | left:-0.5rem; | ||
| 87 | } | ||
| 88 | } | ||
| 89 | } | ||
| 90 | a[href$=".xls"], | ||
| 91 | a[href$=".xlsx"]{ | ||
| 92 | h2{ | ||
| 93 | &:before { | ||
| 94 | content:''; | ||
| 95 | width:1.313rem; | ||
| 96 | height:1.5rem; | ||
| 97 | background-repeat: no-repeat; | ||
| 98 | background-size: contain; | ||
| 99 | background-image: url('data:image/svg+xml,<svg id="Group_1924" data-name="Group 1924" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="17.95" height="20.264" viewBox="0 0 17.95 20.264"><defs><clipPath id="clip-path"><rect id="Rectangle_269" data-name="Rectangle 269" width="17.95" height="20.264" fill="none"/></clipPath></defs><g id="Group_1924-2" data-name="Group 1924" clip-path="url(%23clip-path)"><path id="Path_1522" data-name="Path 1522" d="M17.95,8.4a1.085,1.085,0,0,0-.094-.492,1.112,1.112,0,0,0-1.014-.667c-.138-.006-.276,0-.414,0h-.093V5c0-.025,0-.051,0-.076a.56.56,0,0,0-.154-.4Q14.293,2.377,12.41.222c-.026-.03-.051-.06-.078-.088A.392.392,0,0,0,12.025,0H2.487a.909.909,0,0,0-.34.049.8.8,0,0,0-.51.729c0,.042,0,.084,0,.127V7.237c-.03,0-.052.006-.073.006-.132,0-.265,0-.4,0A1.134,1.134,0,0,0,.03,8.2a.628.628,0,0,1-.03.1v6.078a.824.824,0,0,1,.032.1,1.135,1.135,0,0,0,1.1.942c.138,0,.276,0,.414,0h.094v.113q0,1.946,0,3.891a.845.845,0,0,0,.048.306.791.791,0,0,0,.551.5c.032.009.063.022.094.033h13.3c.034-.011.068-.024.1-.033a.794.794,0,0,0,.593-.7c0-.053.006-.107.006-.16q0-1.916,0-3.832v-.115c.03,0,.055,0,.079,0h.414a1.132,1.132,0,0,0,1.11-.937,1.447,1.447,0,0,0,.011-.244q0-1.211,0-2.423,0-1.705,0-3.41M15.534,19.241H2.435V15.423h13.1ZM2.6,8.458H3.9l.852,1.594.189.56.181-.56.891-1.594H7.188L5.594,11.117,7.267,13.98H5.981l-.97-1.7L4.8,11.693l-.205.584-.978,1.7H2.438l1.7-2.809Zm8.725,4.56v.962H7.827V8.458H8.908v4.56Zm2.757-.931a2.045,2.045,0,0,0-.465-.288q-.28-.13-.607-.268a3.1,3.1,0,0,1-.607-.339,1.726,1.726,0,0,1-.465-.5,1.433,1.433,0,0,1-.185-.765,1.678,1.678,0,0,1,.134-.7,1.31,1.31,0,0,1,.383-.493,1.646,1.646,0,0,1,.588-.292,2.816,2.816,0,0,1,.757-.095,4.75,4.75,0,0,1,.907.083,2.308,2.308,0,0,1,.7.241l-.339.907a1.9,1.9,0,0,0-.521-.2,2.961,2.961,0,0,0-.749-.091.959.959,0,0,0-.58.15.476.476,0,0,0-.2.4.5.5,0,0,0,.185.394,2.138,2.138,0,0,0,.466.292q.28.134.607.276a3.263,3.263,0,0,1,.607.343,1.752,1.752,0,0,1,.465.5,1.366,1.366,0,0,1,.185.738,1.821,1.821,0,0,1-.146.761,1.444,1.444,0,0,1-.41.533,1.735,1.735,0,0,1-.639.316,3.122,3.122,0,0,1-.824.1,4.392,4.392,0,0,1-1.041-.111,3.18,3.18,0,0,1-.663-.221l.347-.923a2.123,2.123,0,0,0,.225.1,2.866,2.866,0,0,0,.312.1,3.571,3.571,0,0,0,.367.079,2.466,2.466,0,0,0,.4.032,1.389,1.389,0,0,0,.738-.162.543.543,0,0,0,.256-.493.514.514,0,0,0-.185-.41m1.449-4.848H2.437V.8h9.2V.9q0,1.941,0,3.883a.792.792,0,0,0,.005.126.4.4,0,0,0,.385.339c.031,0,.062,0,.093,0h3.407c.02.067.024,1.9,0,1.986" transform="translate(0 0.001)" fill="%231a1818"/></g></svg>'); | ||
| 100 | display: inline-block; | ||
| 101 | position: relative; | ||
| 102 | top: 5px; | ||
| 103 | left:-0.5rem; | ||
| 104 | } | ||
| 105 | } | ||
| 106 | } | ||
| 107 | |||
| 108 | |||
| 109 | .entry-header { | ||
| 110 | height: auto !important; | ||
| 111 | } | ||
| 112 | |||
| 113 | h2.entry-title { | ||
| 114 | margin-top: 0 !important; | ||
| 115 | font-size: 1.25rem !important; | ||
| 116 | font-family: "PT Sans", sans-serif; | ||
| 117 | font-weight: bold; | ||
| 118 | |||
| 119 | @media screen and (max-width: 768px) { | ||
| 120 | font-size: 1rem !important; | ||
| 121 | line-height: 1.25rem !important; | ||
| 122 | } | ||
| 123 | } | ||
| 124 | |||
| 125 | .entry-summary { | ||
| 126 | p { | ||
| 127 | color: #4d4d4d; | ||
| 128 | font-size: 1rem; | ||
| 129 | font-family: "PT Sans", sans-serif; | ||
| 130 | } | ||
| 131 | } | ||
| 132 | } | ||
| 133 | |||
| 134 | .understrap-read-more-link { | ||
| 135 | display: none; | ||
| 136 | } | ||
| 137 | } | ||
| 138 | |||
| 139 | |||
| 140 | |||
| 141 | |||
| 142 | |||
| 143 | .pagination { | ||
| 144 | justify-content: center; | ||
| 145 | margin-top: 1rem; | ||
| 146 | |||
| 147 | .page-item { | ||
| 148 | border: 0; | ||
| 149 | display: flex; | ||
| 150 | align-items: center; | ||
| 151 | |||
| 152 | .page-link { | ||
| 153 | color: #000000; | ||
| 154 | margin-left: 0; | ||
| 155 | border: 0; | ||
| 156 | font-family: "PT Sans", sans-serif; | ||
| 157 | |||
| 158 | &:hover { | ||
| 159 | text-decoration: underline; | ||
| 160 | background: none; | ||
| 161 | } | ||
| 162 | |||
| 163 | &.next, | ||
| 164 | &.prev { | ||
| 165 | color: transparent; | ||
| 166 | background-image: 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 0) rotate(90)'/%3E%3C/svg%3E"); | ||
| 167 | height: 0.938rem; | ||
| 168 | background-size: contain; | ||
| 169 | background-repeat: no-repeat; | ||
| 170 | background-position: center; | ||
| 171 | |||
| 172 | &:hover { | ||
| 173 | background: none; | ||
| 174 | text-decoration: none; | ||
| 175 | background-image: 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 0) rotate(90)' fill='%23699'/%3E%3C/svg%3E"); | ||
| 176 | background-size: contain; | ||
| 177 | background-repeat: no-repeat; | ||
| 178 | background-position: center; | ||
| 179 | } | ||
| 180 | } | ||
| 181 | |||
| 182 | &.prev { | ||
| 183 | transform: rotate(180deg); | ||
| 184 | } | ||
| 185 | } | ||
| 186 | |||
| 187 | &.active { | ||
| 188 | .page-link { | ||
| 189 | font-family: "PT Sans", sans-serif; | ||
| 190 | font-weight: bold; | ||
| 191 | background-color: #fff; | ||
| 192 | &:hover { | ||
| 193 | text-decoration: none; | ||
| 194 | } | ||
| 195 | } | ||
| 196 | } | ||
| 197 | } | ||
| 198 | } | ||
| 199 | } | ||
| 200 | |||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment