WowPress-Tailwind/theme/template-parts/layout/header-content.php

164 lines
31 KiB
PHP

<?php
/**
* Template part for displaying the header content
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WowPress
*/
use WoWPress\Frontend\Icon;
use WoWPress\Frontend\NavWalker;
use WoWPress\Models\Notification;
if (is_user_logged_in()) {
$notifications = Notification::getAll();
} else {
$notifications = collect([]);
}
?>
<header id="masthead" class="bg-glass">
<div class="flex flex-row justify-center items-center">
<div class="hidden lg:block" style="width:100px;fill:var(--color-alliance);transform:rotate(-20deg)">
<!--?xml version="1.0" encoding="UTF-8" standalone="no"?-->
<svg width="100%" height="auto" version="1.1" viewBox="0 0 14.588 10.579" xml:space="preserve" id="svg8" sodipodi:docname="crest_nk.svg" inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs12"></defs>
<sodipodi:namedview id="namedview10" pagecolor="#ffffff" bordercolor="#000000" borderopacity="0.25" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" showgrid="false" inkscape:zoom="256" inkscape:cx="7.125" inkscape:cy="10.09375" inkscape:window-width="1920" inkscape:window-height="1010" inkscape:window-x="1920" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg8"></sodipodi:namedview>
<g transform="translate(-132.72 -104.88)" id="g6">
<g transform="translate(2.7435 .50256)" id="g4">
<path d="m 137.58,114.94 c -0.24175,0.005 -0.2399,0.0164 -0.57494,-0.024 -0.095,0 -0.3207,-0.0755 -0.50158,-0.16778 -0.29236,-0.14915 -0.34041,-0.21933 -0.43278,-0.63207 -0.18035,-0.40264 -0.25966,-0.74575 -0.50437,-1.0989 -0.4827,-0.68907 -0.7176,-1.2081 -0.88273,-1.9503 -0.096,-0.43128 -0.18132,-0.63828 -0.26323,-0.63828 -0.0861,0 -0.12134,0.10422 -0.12162,0.35983 -2.5e-4,0.19791 -0.0254,0.79452 -0.056,1.3258 -0.13782,1.0127 0.70368,1.8487 0.0819,2.6958 -0.26389,0.19589 -0.55953,0.12253 -0.89346,-0.2217 -0.25057,-0.25831 -0.32812,-0.41461 -0.36754,-0.74076 -0.0916,-0.75814 -0.28349,-1.1985 -0.47154,-1.0823 -0.0352,0.0218 -0.0411,0.28597 -0.013,0.58708 0.0372,0.3986 0.0234,0.54747 -0.0508,0.54747 -0.056,0 -0.0825,-0.0314 -0.0588,-0.0697 0.0237,-0.0383 -0.0868,-0.28536 -0.2456,-0.54893 -0.21521,-0.35726 -0.24743,-0.45346 -0.1266,-0.378 0.0891,0.0557 0.18506,0.0782 0.21315,0.0501 0.0647,-0.0647 -0.45447,-0.91618 -0.55863,-0.91618 -0.0426,0 -0.0699,-0.0286 -0.0606,-0.0635 0.0301,-0.11375 -0.11198,-0.44798 -0.17406,-0.40961 -0.0332,0.0205 -0.0683,-0.0265 -0.0779,-0.1046 -0.01,-0.0781 -0.0411,-0.30685 -0.07,-0.50838 -0.0461,-0.32144 -0.0242,-0.396 0.17816,-0.60724 0.18997,-0.19829 0.22499,-0.30084 0.1983,-0.58075 -0.0178,-0.18696 -0.0146,-0.32208 0.007,-0.30027 0.0218,0.0218 0.0879,-0.0473 0.1469,-0.15349 0.0992,-0.17861 0.10746,-0.16382 0.11023,0.19638 0.003,0.43556 0.13606,0.90248 0.30918,1.0878 0.0995,0.10652 0.15039,0.0962 0.38603,-0.078 0.25495,-0.18849 0.27688,-0.19153 0.36111,-0.05 0.20561,0.34542 0.40639,0.55564 0.53067,0.55564 0.10816,0 0.12281,-0.0696 0.0801,-0.381 -0.0313,-0.22809 -0.0189,-0.381 0.0308,-0.381 0.0848,0 0.12232,0.23055 0.093,0.5715 -0.0221,0.25758 0.22504,0.25149 0.32369,-0.008 0.0415,-0.10916 0.0497,-0.58202 0.0182,-1.0508 -0.0315,-0.46878 -0.0312,-0.8362 6.7e-4,-0.81649 0.0319,0.0197 0.0755,-0.0313 0.0969,-0.11338 0.0214,-0.0821 0.0433,-0.0281 0.0487,0.11982 0.007,0.17831 0.0812,0.32516 0.22149,0.43552 0.11642,0.0916 0.21167,0.22178 0.21167,0.28935 0,0.0676 0.0753,0.19105 0.16744,0.2744 0.16351,0.14797 0.17139,0.14235 0.33456,-0.23831 0.19241,-0.4488 0.81018,-1.157 1.0093,-1.157 0.10483,0 0.0956,0.0276 -0.0411,0.12338 -0.3302,0.23129 -0.45388,1.2003 -0.22825,1.7883 0.0236,0.0616 0.32538,0.30362 0.67053,0.53779 l 0.62753,0.42578 0.62911,-0.42684 c 0.5934,-0.40262 0.63424,-0.4508 0.71966,-0.84912 0.20018,-0.67265 -0.15478,-1.064 -0.25123,-1.4759 -0.062,-0.0748 -0.068,-0.12329 -0.0151,-0.12329 0.16649,0 0.86347,0.86465 0.96196,1.1934 0.0545,0.18183 0.12522,0.3306 0.1572,0.3306 0.10378,0 0.33838,-0.30604 0.33838,-0.44143 0,-0.0725 0.0952,-0.19417 0.21167,-0.27045 0.15059,-0.0987 0.21322,-0.21752 0.21703,-0.41191 0.005,-0.2691 0.007,-0.27003 0.0927,-0.0615 0.048,0.11641 0.0712,0.53551 0.0515,0.93133 -0.0494,0.99243 -0.004,1.1391 0.36217,1.1586 0.28596,0.0153 0.53866,-0.17288 0.75937,-0.56545 0.0597,-0.10621 0.10662,-0.0931 0.29283,0.0818 0.17093,0.16058 0.25351,0.18826 0.36044,0.1208 0.19326,-0.1219 0.34705,-0.59079 0.35824,-1.0922 0.009,-0.41085 0.013,-0.4171 0.13044,-0.21167 0.0666,0.11642 0.12235,0.3479 0.124,0.51441 0.002,0.21282 0.0674,0.36324 0.21985,0.50646 0.18013,0.16923 0.21298,0.26851 0.194,0.58626 -0.0126,0.21039 -0.0545,0.42064 -0.0931,0.4672 -0.16632,0.20054 -0.82308,1.3641 -0.82436,1.4605 -0.002,0.1439 0.12438,0.13332 0.25259,-0.0212 0.058,-0.0699 0.14176,-0.127 0.18621,-0.127 0.0444,0 -0.0364,0.11723 -0.1797,0.26051 -0.23741,0.23741 -0.27514,0.30754 -0.25328,0.47085 0.004,0.0297 -0.0279,0.0773 -0.0707,0.10584 -0.0429,0.0285 -0.12476,0.128 -0.18196,0.22113 -0.0858,0.13973 -0.0954,0.0607 -0.055,-0.45199 0.0378,-0.47939 0.0246,-0.61372 -0.0581,-0.58805 -0.17577,0.0546 -0.39994,0.59756 -0.44862,1.0867 -0.0391,0.3933 -0.0923,0.50253 -0.37792,0.777 -0.22936,0.22039 -0.40889,0.31937 -0.57928,0.31937 -0.49855,0 -0.60772,-0.42809 -0.35088,-1.376 0.16235,-0.59916 0.18074,-0.81252 0.12958,-1.5026 -0.0328,-0.44238 -0.0548,-0.98531 -0.0488,-1.2065 0.0194,-0.72061 -0.31941,-0.43641 -0.37853,0.3175 -0.0153,0.19509 -0.0652,0.33177 -0.35535,0.97367 -0.11578,0.25612 -0.2679,0.52994 -0.33804,0.6085 -0.10585,0.51901 -0.55952,0.81741 -0.70403,1.4084 -0.0884,0.38271 -0.14667,0.47091 -0.38686,0.58545 -0.30492,0.21566 -0.1333,0.27642 -0.4806,0.21557 z m -3.4027,-1.0188 c -0.0307,-0.17463 -0.0854,-0.5842 -0.12162,-0.91017 -0.0944,-0.76553 -0.42762,-1.1772 -1.1323,-1.5198 -0.19791,-0.0817 -0.42738,-0.18361 -0.50992,-0.22645 -0.10985,-0.057 -0.164,-0.0416 -0.20197,0.0573 -0.034,0.0885 0.0676,0.25723 0.29425,0.48875 0.19036,0.19445 0.40902,0.50595 0.4859,0.69222 0.0769,0.18627 0.21203,0.4985 0.30034,0.69385 0.0883,0.19536 0.16056,0.39246 0.16056,0.43801 0,0.16524 0.44267,0.60381 0.60946,0.60381 0.15115,0 0.16458,-0.037 0.11531,-0.3175 z m 6.676,0.057 c 0.12056,-0.14327 0.21919,-0.29904 0.21919,-0.34614 0,-0.0471 0.1143,-0.33259 0.254,-0.63441 0.1397,-0.30182 0.254,-0.58584 0.254,-0.63116 0,-0.0453 0.17586,-0.27039 0.3908,-0.50017 0.24903,-0.26624 0.37258,-0.46525 0.34059,-0.54863 -0.0365,-0.095 -0.0913,-0.10951 -0.2003,-0.0529 -0.0825,0.0428 -0.31201,0.14474 -0.50992,0.22645 -0.67481,0.30231 -1.0577,0.80869 -1.1388,1.5134 -0.0326,0.3295 -0.0844,0.74196 -0.11509,0.91659 -0.0493,0.28052 -0.0358,0.3175 0.11531,0.3175 0.0941,0 0.2697,-0.11723 0.39026,-0.2605 z m -4.1777,-0.60631 c 0.16483,-1.0523 -0.18722,-1.2131 -0.60182,-1.8884 -0.10913,-0.11617 -0.20948,-0.39826 -0.26861,-0.75508 -0.0905,-0.54599 -0.23742,-0.75914 -0.4041,-0.58611 -0.0709,0.0736 -0.1964,0.93072 -0.18433,1.2588 0.16268,0.39971 0.4742,0.83995 0.79132,1.1004 0.0184,-0.0184 0.037,0.26985 0.0412,0.64056 0.009,0.81318 0.12886,1.0369 0.38195,0.7152 0.091,-0.11569 0.20095,-0.33413 0.24434,-0.48542 z m 1.7393,0.50697 c 0.0347,-0.10477 0.0583,-0.40277 0.0525,-0.66222 -0.0103,-0.45521 0.20227,-1.0099 0.38698,-1.0099 0.41254,-0.46633 0.47806,-0.96147 0.40505,-1.4605 -0.0784,-0.52345 -0.11652,-0.61384 -0.25892,-0.61384 -0.13146,0 -0.18136,0.0811 -0.23455,0.381 -0.0372,0.20955 -0.0513,0.44768 -0.0314,0.52917 0.0199,0.0815 0.002,0.14817 -0.0406,0.14817 -0.0422,0 -0.0767,0.0348 -0.0767,0.0774 0,0.0426 -0.13727,0.21875 -0.30505,0.39152 -0.39341,0.40511 -0.54162,0.77042 -0.54162,1.3351 0,0.36525 0.0458,0.51515 0.23284,0.76163 0.27402,0.36118 0.32722,0.37702 0.41154,0.12255 z m -8.1148,-4.4769 c -0.12014,-0.34334 -0.24379,-0.8538 -0.27478,-1.1344 l -0.0563,-0.51009 0.34477,-0.27706 c 0.40218,-0.32321 0.45919,-0.21795 0.0908,0.16757 -0.321,0.3359 -0.31851,0.47526 0.0173,0.97289 0.16736,0.24799 0.29126,0.55736 0.32333,0.80736 0.0286,0.22292 0.0341,0.3874 0.0122,0.36552 -0.0219,-0.0219 -0.0846,0.0215 -0.13932,0.0963 -0.0834,0.11406 -0.1349,0.035 -0.31796,-0.48815 z m 13.569,0.43965 c -0.0482,-0.0901 -0.0876,-0.28491 -0.0876,-0.43298 0,-0.27806 0.30033,-0.91798 0.48683,-1.0373 0.18316,-0.11718 0.11553,-0.44737 -0.14817,-0.7233 -0.27449,-0.28723 -0.30843,-0.39302 -0.15625,-0.48708 0.0585,-0.0361 0.0748,-0.0233 0.0408,0.0318 -0.0315,0.0509 0.0794,0.19627 0.24748,0.32447 l 0.30449,0.23225 -0.0568,0.51411 c -0.049,0.44316 -0.43268,1.7418 -0.51466,1.7418 -0.0156,0 -0.0678,-0.0737 -0.11602,-0.16376 z m -10.358,-0.32112 c -0.10036,-0.15771 0.0747,-0.696 0.37964,-1.1674 0.15015,-0.23212 0.26539,-0.45061 0.25609,-0.48553 -0.009,-0.0349 0.0166,-0.0635 0.0575,-0.0635 0.11174,0 0.27388,-0.44478 0.34594,-0.949 0.062,-0.43374 0.0661,-0.43924 0.12877,-0.17283 0.0356,0.15134 0.0958,0.27516 0.13379,0.27516 0.038,0 0.0144,0.10478 -0.0524,0.23284 -0.13401,0.25689 -0.16716,0.73609 -0.0457,0.66104 0.1361,-0.0841 -0.0119,0.32868 -0.17398,0.48525 -0.15126,0.14612 -0.15679,0.14363 -0.15679,-0.0705 0,-0.2627 -0.17079,-0.24511 -0.29525,0.0304 -0.046,0.10176 -0.11358,0.18502 -0.15026,0.18502 -0.0929,0 -0.24675,0.40057 -0.30899,0.80434 -0.0322,0.20884 -0.0776,0.29884 -0.11831,0.23478 z m 7.3948,-0.1673 c -0.003,-0.32116 -0.13301,-0.64254 -0.41204,-1.02 -0.26654,-0.36056 -0.38739,-0.35273 -0.32672,0.0212 0.028,0.17253 0.0129,0.29634 -0.0362,0.29634 -0.0464,0 -0.0627,-0.035 -0.0362,-0.0778 0.0265,-0.0428 -0.0153,-0.1412 -0.0927,-0.21866 -0.10583,-0.10583 -0.1474,-0.33153 -0.1673,-0.90836 -0.0146,-0.42215 0.009,-0.82858 0.0528,-0.90318 0.0602,-0.10301 0.08,-0.0644 0.0823,0.16071 0.005,0.45753 0.14964,0.88037 0.45493,1.3273 0.32316,0.47307 0.56318,0.93832 0.56318,1.0916 0,0.0588 0.0394,0.12008 0.0876,0.13614 0.0533,0.0178 0.0377,0.0952 -0.0396,0.19756 -0.12183,0.1612 -0.12735,0.15683 -0.12993,-0.10283 z M 131.3,109.04884 c -0.13957,-0.30359 0.01,-0.80037 0.39214,-1.3034 0.35142,-0.46247 0.50555,-0.73695 0.75229,-1.3397 0.0799,-0.19518 0.11153,-0.21876 0.13888,-0.10353 0.0195,0.0821 0.0702,0.12771 0.1127,0.10144 0.0425,-0.0263 0.0552,0.01 0.0281,0.0804 -0.0271,0.0705 0.0117,0.2501 0.086,0.39914 0.14956,0.29979 0.13269,0.40307 -0.0332,0.20321 -0.18081,-0.21786 -0.30312,-0.14678 -0.51096,0.29698 -0.10975,0.23431 -0.25239,0.46988 -0.31699,0.5235 -0.17459,0.14489 -0.44558,0.71277 -0.37662,0.78923 0.0329,0.0365 0.0147,0.0405 -0.0405,0.009 -0.0666,-0.0382 -0.11069,0.0355 -0.13113,0.21926 -0.0248,0.22267 -0.0445,0.24702 -0.10076,0.12457 z m 11.805,-0.0968 c 0,-0.11917 -0.03,-0.21667 -0.0666,-0.21667 -0.0367,0 -0.0728,-0.0817 -0.0803,-0.18156 -0.008,-0.0999 -0.12844,-0.32437 -0.2687,-0.49891 -0.14027,-0.17454 -0.34031,-0.49288 -0.44455,-0.70744 -0.20888,-0.42994 -0.27469,-0.46048 -0.52126,-0.24192 -0.16272,0.14423 -0.16436,0.14285 -0.062,-0.0521 0.0579,-0.11014 0.154,-0.35779 0.21365,-0.55033 l 0.10847,-0.35008 0.10328,0.27517 c 0.0568,0.15134 0.13991,0.27516 0.18467,0.27516 0.0448,0 0.0588,0.0365 0.0312,0.0812 -0.0627,0.10152 0.0593,0.31767 0.56937,1.0082 0.33273,0.45048 0.40217,0.60723 0.40217,0.90787 0,0.19986 -0.0381,0.38692 -0.0847,0.4157 -0.048,0.0297 -0.0847,-0.0414 -0.0847,-0.16433 z m -7.9587,-0.1013 c 0,-0.14351 0.10885,-0.46631 0.24189,-0.71734 0.13304,-0.25103 0.28897,-0.60106 0.34652,-0.77784 0.14627,-0.4493 0.0417,-1.2508 -0.21194,-1.6245 -0.19617,-0.28908 -0.46268,-1.0476 -0.45953,-1.3079 8.8e-4,-0.073 0.11048,0.0405 0.24355,0.25233 0.13306,0.21182 0.3566,0.49335 0.49675,0.62563 0.22058,0.20819 0.24891,0.28449 0.21089,0.56795 -0.0393,0.29305 -0.0116,0.35793 0.26364,0.61752 0.35096,0.331 0.37753,0.48212 0.13823,0.78634 -0.0931,0.1184 -0.16934,0.30096 -0.16934,0.4057 0,0.11433 -0.16345,0.35505 -0.40906,0.60241 -0.22499,0.22659 -0.47264,0.50619 -0.55034,0.62133 l -0.14126,0.20934 z m 3.8667,-0.20449 c -0.17971,-0.23301 -0.36486,-0.39546 -0.41525,-0.36431 -0.05,0.0309 -0.0669,0.0173 -0.0375,-0.0302 0.0294,-0.0475 -0.0219,-0.15458 -0.11392,-0.23787 -0.092,-0.0833 -0.16734,-0.23565 -0.16734,-0.33857 0,-0.10291 -0.0762,-0.28399 -0.16933,-0.40239 -0.23327,-0.29656 -0.21296,-0.4546 0.0945,-0.73545 0.17239,-0.15745 0.28571,-0.36047 0.32688,-0.58561 0.042,-0.22982 0.034,-0.32663 -0.0242,-0.29066 -0.0541,0.0334 -0.0657,-0.002 -0.0306,-0.0939 0.0312,-0.0813 0.0567,-0.16375 0.0567,-0.18323 0,-0.0195 0.0421,-0.0354 0.0936,-0.0354 0.10413,0 0.35937,-0.29981 0.64454,-0.7571 0.10333,-0.16568 0.18905,-0.25034 0.1905,-0.18813 0.005,0.20761 -0.28584,1.1992 -0.35155,1.1992 -0.12944,0 -0.31244,0.48797 -0.36717,0.97904 -0.0451,0.40443 -0.0203,0.59753 0.12671,0.98844 0.1005,0.2672 0.24073,0.51827 0.31161,0.55794 0.0709,0.0397 0.12547,0.0973 0.1213,0.12802 -0.0254,0.18732 0.002,0.31419 0.0594,0.27849 0.0368,-0.0228 0.0517,0.0893 0.0331,0.24901 -0.0187,0.15971 -0.0393,0.28877 -0.0458,0.28678 -0.007,-0.002 -0.15784,-0.19284 -0.33621,-0.42412 z m -6.1527,0.32214 c 0,-0.0182 0.0609,-0.23807 0.13532,-0.48869 0.0765,-0.25765 0.1149,-0.58628 0.0883,-0.7562 -0.0377,-0.2409 -0.029,-0.26925 0.0435,-0.14291 0.13339,0.23234 0.0489,1.1047 -0.12364,1.2773 -0.0789,0.0789 -0.14352,0.12866 -0.14352,0.1105 z m 8.6104,-0.22758 c -0.15644,-0.26483 -0.19271,-0.98292 -0.0601,-1.1908 0.0562,-0.0881 0.0662,-0.035 0.0327,0.17352 -0.0277,0.17225 0.009,0.4946 0.0868,0.75523 0.15721,0.5294 0.14096,0.60117 -0.0593,0.26208 z" fill="var(--logo-color)" stroke-width="0.084667" id="path2" sodipodi:nodetypes="ccccccscccccccsscccsccccccccccccscscssccccsccscccccccscsscccccccccccccccssccccccccscccscccccccccccsccsscccssscccccsscccccsccccccccccsccsssscccccccccccccccssccccccscccccscsscccscsccccccsscccccsccccccccccccccccccccsccscccccsccscccssccccccccscccsccscscccccssccscccccccccccccccccscccc"></path>
</g>
</g>
</svg>
</div>
<a href="/" class="logo w-[350px] h-[150px] max-w-[90vw]">
</a>
<div class="hidden lg:block" style="width:100px;fill:var(--color-alliance);transform:rotate(20deg)">
<!--?xml version="1.0" encoding="UTF-8" standalone="no"?-->
<svg width="100%" height="auto" version="1.1" viewBox="0 0 14.588 10.579" xml:space="preserve" id="svg8" sodipodi:docname="crest_nk.svg" inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs12"></defs>
<sodipodi:namedview id="namedview10" pagecolor="#ffffff" bordercolor="#000000" borderopacity="0.25" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" showgrid="false" inkscape:zoom="256" inkscape:cx="7.125" inkscape:cy="10.09375" inkscape:window-width="1920" inkscape:window-height="1010" inkscape:window-x="1920" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg8"></sodipodi:namedview>
<g transform="translate(-132.72 -104.88)" id="g6">
<g transform="translate(2.7435 .50256)" id="g4">
<path d="m 137.58,114.94 c -0.24175,0.005 -0.2399,0.0164 -0.57494,-0.024 -0.095,0 -0.3207,-0.0755 -0.50158,-0.16778 -0.29236,-0.14915 -0.34041,-0.21933 -0.43278,-0.63207 -0.18035,-0.40264 -0.25966,-0.74575 -0.50437,-1.0989 -0.4827,-0.68907 -0.7176,-1.2081 -0.88273,-1.9503 -0.096,-0.43128 -0.18132,-0.63828 -0.26323,-0.63828 -0.0861,0 -0.12134,0.10422 -0.12162,0.35983 -2.5e-4,0.19791 -0.0254,0.79452 -0.056,1.3258 -0.13782,1.0127 0.70368,1.8487 0.0819,2.6958 -0.26389,0.19589 -0.55953,0.12253 -0.89346,-0.2217 -0.25057,-0.25831 -0.32812,-0.41461 -0.36754,-0.74076 -0.0916,-0.75814 -0.28349,-1.1985 -0.47154,-1.0823 -0.0352,0.0218 -0.0411,0.28597 -0.013,0.58708 0.0372,0.3986 0.0234,0.54747 -0.0508,0.54747 -0.056,0 -0.0825,-0.0314 -0.0588,-0.0697 0.0237,-0.0383 -0.0868,-0.28536 -0.2456,-0.54893 -0.21521,-0.35726 -0.24743,-0.45346 -0.1266,-0.378 0.0891,0.0557 0.18506,0.0782 0.21315,0.0501 0.0647,-0.0647 -0.45447,-0.91618 -0.55863,-0.91618 -0.0426,0 -0.0699,-0.0286 -0.0606,-0.0635 0.0301,-0.11375 -0.11198,-0.44798 -0.17406,-0.40961 -0.0332,0.0205 -0.0683,-0.0265 -0.0779,-0.1046 -0.01,-0.0781 -0.0411,-0.30685 -0.07,-0.50838 -0.0461,-0.32144 -0.0242,-0.396 0.17816,-0.60724 0.18997,-0.19829 0.22499,-0.30084 0.1983,-0.58075 -0.0178,-0.18696 -0.0146,-0.32208 0.007,-0.30027 0.0218,0.0218 0.0879,-0.0473 0.1469,-0.15349 0.0992,-0.17861 0.10746,-0.16382 0.11023,0.19638 0.003,0.43556 0.13606,0.90248 0.30918,1.0878 0.0995,0.10652 0.15039,0.0962 0.38603,-0.078 0.25495,-0.18849 0.27688,-0.19153 0.36111,-0.05 0.20561,0.34542 0.40639,0.55564 0.53067,0.55564 0.10816,0 0.12281,-0.0696 0.0801,-0.381 -0.0313,-0.22809 -0.0189,-0.381 0.0308,-0.381 0.0848,0 0.12232,0.23055 0.093,0.5715 -0.0221,0.25758 0.22504,0.25149 0.32369,-0.008 0.0415,-0.10916 0.0497,-0.58202 0.0182,-1.0508 -0.0315,-0.46878 -0.0312,-0.8362 6.7e-4,-0.81649 0.0319,0.0197 0.0755,-0.0313 0.0969,-0.11338 0.0214,-0.0821 0.0433,-0.0281 0.0487,0.11982 0.007,0.17831 0.0812,0.32516 0.22149,0.43552 0.11642,0.0916 0.21167,0.22178 0.21167,0.28935 0,0.0676 0.0753,0.19105 0.16744,0.2744 0.16351,0.14797 0.17139,0.14235 0.33456,-0.23831 0.19241,-0.4488 0.81018,-1.157 1.0093,-1.157 0.10483,0 0.0956,0.0276 -0.0411,0.12338 -0.3302,0.23129 -0.45388,1.2003 -0.22825,1.7883 0.0236,0.0616 0.32538,0.30362 0.67053,0.53779 l 0.62753,0.42578 0.62911,-0.42684 c 0.5934,-0.40262 0.63424,-0.4508 0.71966,-0.84912 0.20018,-0.67265 -0.15478,-1.064 -0.25123,-1.4759 -0.062,-0.0748 -0.068,-0.12329 -0.0151,-0.12329 0.16649,0 0.86347,0.86465 0.96196,1.1934 0.0545,0.18183 0.12522,0.3306 0.1572,0.3306 0.10378,0 0.33838,-0.30604 0.33838,-0.44143 0,-0.0725 0.0952,-0.19417 0.21167,-0.27045 0.15059,-0.0987 0.21322,-0.21752 0.21703,-0.41191 0.005,-0.2691 0.007,-0.27003 0.0927,-0.0615 0.048,0.11641 0.0712,0.53551 0.0515,0.93133 -0.0494,0.99243 -0.004,1.1391 0.36217,1.1586 0.28596,0.0153 0.53866,-0.17288 0.75937,-0.56545 0.0597,-0.10621 0.10662,-0.0931 0.29283,0.0818 0.17093,0.16058 0.25351,0.18826 0.36044,0.1208 0.19326,-0.1219 0.34705,-0.59079 0.35824,-1.0922 0.009,-0.41085 0.013,-0.4171 0.13044,-0.21167 0.0666,0.11642 0.12235,0.3479 0.124,0.51441 0.002,0.21282 0.0674,0.36324 0.21985,0.50646 0.18013,0.16923 0.21298,0.26851 0.194,0.58626 -0.0126,0.21039 -0.0545,0.42064 -0.0931,0.4672 -0.16632,0.20054 -0.82308,1.3641 -0.82436,1.4605 -0.002,0.1439 0.12438,0.13332 0.25259,-0.0212 0.058,-0.0699 0.14176,-0.127 0.18621,-0.127 0.0444,0 -0.0364,0.11723 -0.1797,0.26051 -0.23741,0.23741 -0.27514,0.30754 -0.25328,0.47085 0.004,0.0297 -0.0279,0.0773 -0.0707,0.10584 -0.0429,0.0285 -0.12476,0.128 -0.18196,0.22113 -0.0858,0.13973 -0.0954,0.0607 -0.055,-0.45199 0.0378,-0.47939 0.0246,-0.61372 -0.0581,-0.58805 -0.17577,0.0546 -0.39994,0.59756 -0.44862,1.0867 -0.0391,0.3933 -0.0923,0.50253 -0.37792,0.777 -0.22936,0.22039 -0.40889,0.31937 -0.57928,0.31937 -0.49855,0 -0.60772,-0.42809 -0.35088,-1.376 0.16235,-0.59916 0.18074,-0.81252 0.12958,-1.5026 -0.0328,-0.44238 -0.0548,-0.98531 -0.0488,-1.2065 0.0194,-0.72061 -0.31941,-0.43641 -0.37853,0.3175 -0.0153,0.19509 -0.0652,0.33177 -0.35535,0.97367 -0.11578,0.25612 -0.2679,0.52994 -0.33804,0.6085 -0.10585,0.51901 -0.55952,0.81741 -0.70403,1.4084 -0.0884,0.38271 -0.14667,0.47091 -0.38686,0.58545 -0.30492,0.21566 -0.1333,0.27642 -0.4806,0.21557 z m -3.4027,-1.0188 c -0.0307,-0.17463 -0.0854,-0.5842 -0.12162,-0.91017 -0.0944,-0.76553 -0.42762,-1.1772 -1.1323,-1.5198 -0.19791,-0.0817 -0.42738,-0.18361 -0.50992,-0.22645 -0.10985,-0.057 -0.164,-0.0416 -0.20197,0.0573 -0.034,0.0885 0.0676,0.25723 0.29425,0.48875 0.19036,0.19445 0.40902,0.50595 0.4859,0.69222 0.0769,0.18627 0.21203,0.4985 0.30034,0.69385 0.0883,0.19536 0.16056,0.39246 0.16056,0.43801 0,0.16524 0.44267,0.60381 0.60946,0.60381 0.15115,0 0.16458,-0.037 0.11531,-0.3175 z m 6.676,0.057 c 0.12056,-0.14327 0.21919,-0.29904 0.21919,-0.34614 0,-0.0471 0.1143,-0.33259 0.254,-0.63441 0.1397,-0.30182 0.254,-0.58584 0.254,-0.63116 0,-0.0453 0.17586,-0.27039 0.3908,-0.50017 0.24903,-0.26624 0.37258,-0.46525 0.34059,-0.54863 -0.0365,-0.095 -0.0913,-0.10951 -0.2003,-0.0529 -0.0825,0.0428 -0.31201,0.14474 -0.50992,0.22645 -0.67481,0.30231 -1.0577,0.80869 -1.1388,1.5134 -0.0326,0.3295 -0.0844,0.74196 -0.11509,0.91659 -0.0493,0.28052 -0.0358,0.3175 0.11531,0.3175 0.0941,0 0.2697,-0.11723 0.39026,-0.2605 z m -4.1777,-0.60631 c 0.16483,-1.0523 -0.18722,-1.2131 -0.60182,-1.8884 -0.10913,-0.11617 -0.20948,-0.39826 -0.26861,-0.75508 -0.0905,-0.54599 -0.23742,-0.75914 -0.4041,-0.58611 -0.0709,0.0736 -0.1964,0.93072 -0.18433,1.2588 0.16268,0.39971 0.4742,0.83995 0.79132,1.1004 0.0184,-0.0184 0.037,0.26985 0.0412,0.64056 0.009,0.81318 0.12886,1.0369 0.38195,0.7152 0.091,-0.11569 0.20095,-0.33413 0.24434,-0.48542 z m 1.7393,0.50697 c 0.0347,-0.10477 0.0583,-0.40277 0.0525,-0.66222 -0.0103,-0.45521 0.20227,-1.0099 0.38698,-1.0099 0.41254,-0.46633 0.47806,-0.96147 0.40505,-1.4605 -0.0784,-0.52345 -0.11652,-0.61384 -0.25892,-0.61384 -0.13146,0 -0.18136,0.0811 -0.23455,0.381 -0.0372,0.20955 -0.0513,0.44768 -0.0314,0.52917 0.0199,0.0815 0.002,0.14817 -0.0406,0.14817 -0.0422,0 -0.0767,0.0348 -0.0767,0.0774 0,0.0426 -0.13727,0.21875 -0.30505,0.39152 -0.39341,0.40511 -0.54162,0.77042 -0.54162,1.3351 0,0.36525 0.0458,0.51515 0.23284,0.76163 0.27402,0.36118 0.32722,0.37702 0.41154,0.12255 z m -8.1148,-4.4769 c -0.12014,-0.34334 -0.24379,-0.8538 -0.27478,-1.1344 l -0.0563,-0.51009 0.34477,-0.27706 c 0.40218,-0.32321 0.45919,-0.21795 0.0908,0.16757 -0.321,0.3359 -0.31851,0.47526 0.0173,0.97289 0.16736,0.24799 0.29126,0.55736 0.32333,0.80736 0.0286,0.22292 0.0341,0.3874 0.0122,0.36552 -0.0219,-0.0219 -0.0846,0.0215 -0.13932,0.0963 -0.0834,0.11406 -0.1349,0.035 -0.31796,-0.48815 z m 13.569,0.43965 c -0.0482,-0.0901 -0.0876,-0.28491 -0.0876,-0.43298 0,-0.27806 0.30033,-0.91798 0.48683,-1.0373 0.18316,-0.11718 0.11553,-0.44737 -0.14817,-0.7233 -0.27449,-0.28723 -0.30843,-0.39302 -0.15625,-0.48708 0.0585,-0.0361 0.0748,-0.0233 0.0408,0.0318 -0.0315,0.0509 0.0794,0.19627 0.24748,0.32447 l 0.30449,0.23225 -0.0568,0.51411 c -0.049,0.44316 -0.43268,1.7418 -0.51466,1.7418 -0.0156,0 -0.0678,-0.0737 -0.11602,-0.16376 z m -10.358,-0.32112 c -0.10036,-0.15771 0.0747,-0.696 0.37964,-1.1674 0.15015,-0.23212 0.26539,-0.45061 0.25609,-0.48553 -0.009,-0.0349 0.0166,-0.0635 0.0575,-0.0635 0.11174,0 0.27388,-0.44478 0.34594,-0.949 0.062,-0.43374 0.0661,-0.43924 0.12877,-0.17283 0.0356,0.15134 0.0958,0.27516 0.13379,0.27516 0.038,0 0.0144,0.10478 -0.0524,0.23284 -0.13401,0.25689 -0.16716,0.73609 -0.0457,0.66104 0.1361,-0.0841 -0.0119,0.32868 -0.17398,0.48525 -0.15126,0.14612 -0.15679,0.14363 -0.15679,-0.0705 0,-0.2627 -0.17079,-0.24511 -0.29525,0.0304 -0.046,0.10176 -0.11358,0.18502 -0.15026,0.18502 -0.0929,0 -0.24675,0.40057 -0.30899,0.80434 -0.0322,0.20884 -0.0776,0.29884 -0.11831,0.23478 z m 7.3948,-0.1673 c -0.003,-0.32116 -0.13301,-0.64254 -0.41204,-1.02 -0.26654,-0.36056 -0.38739,-0.35273 -0.32672,0.0212 0.028,0.17253 0.0129,0.29634 -0.0362,0.29634 -0.0464,0 -0.0627,-0.035 -0.0362,-0.0778 0.0265,-0.0428 -0.0153,-0.1412 -0.0927,-0.21866 -0.10583,-0.10583 -0.1474,-0.33153 -0.1673,-0.90836 -0.0146,-0.42215 0.009,-0.82858 0.0528,-0.90318 0.0602,-0.10301 0.08,-0.0644 0.0823,0.16071 0.005,0.45753 0.14964,0.88037 0.45493,1.3273 0.32316,0.47307 0.56318,0.93832 0.56318,1.0916 0,0.0588 0.0394,0.12008 0.0876,0.13614 0.0533,0.0178 0.0377,0.0952 -0.0396,0.19756 -0.12183,0.1612 -0.12735,0.15683 -0.12993,-0.10283 z M 131.3,109.04884 c -0.13957,-0.30359 0.01,-0.80037 0.39214,-1.3034 0.35142,-0.46247 0.50555,-0.73695 0.75229,-1.3397 0.0799,-0.19518 0.11153,-0.21876 0.13888,-0.10353 0.0195,0.0821 0.0702,0.12771 0.1127,0.10144 0.0425,-0.0263 0.0552,0.01 0.0281,0.0804 -0.0271,0.0705 0.0117,0.2501 0.086,0.39914 0.14956,0.29979 0.13269,0.40307 -0.0332,0.20321 -0.18081,-0.21786 -0.30312,-0.14678 -0.51096,0.29698 -0.10975,0.23431 -0.25239,0.46988 -0.31699,0.5235 -0.17459,0.14489 -0.44558,0.71277 -0.37662,0.78923 0.0329,0.0365 0.0147,0.0405 -0.0405,0.009 -0.0666,-0.0382 -0.11069,0.0355 -0.13113,0.21926 -0.0248,0.22267 -0.0445,0.24702 -0.10076,0.12457 z m 11.805,-0.0968 c 0,-0.11917 -0.03,-0.21667 -0.0666,-0.21667 -0.0367,0 -0.0728,-0.0817 -0.0803,-0.18156 -0.008,-0.0999 -0.12844,-0.32437 -0.2687,-0.49891 -0.14027,-0.17454 -0.34031,-0.49288 -0.44455,-0.70744 -0.20888,-0.42994 -0.27469,-0.46048 -0.52126,-0.24192 -0.16272,0.14423 -0.16436,0.14285 -0.062,-0.0521 0.0579,-0.11014 0.154,-0.35779 0.21365,-0.55033 l 0.10847,-0.35008 0.10328,0.27517 c 0.0568,0.15134 0.13991,0.27516 0.18467,0.27516 0.0448,0 0.0588,0.0365 0.0312,0.0812 -0.0627,0.10152 0.0593,0.31767 0.56937,1.0082 0.33273,0.45048 0.40217,0.60723 0.40217,0.90787 0,0.19986 -0.0381,0.38692 -0.0847,0.4157 -0.048,0.0297 -0.0847,-0.0414 -0.0847,-0.16433 z m -7.9587,-0.1013 c 0,-0.14351 0.10885,-0.46631 0.24189,-0.71734 0.13304,-0.25103 0.28897,-0.60106 0.34652,-0.77784 0.14627,-0.4493 0.0417,-1.2508 -0.21194,-1.6245 -0.19617,-0.28908 -0.46268,-1.0476 -0.45953,-1.3079 8.8e-4,-0.073 0.11048,0.0405 0.24355,0.25233 0.13306,0.21182 0.3566,0.49335 0.49675,0.62563 0.22058,0.20819 0.24891,0.28449 0.21089,0.56795 -0.0393,0.29305 -0.0116,0.35793 0.26364,0.61752 0.35096,0.331 0.37753,0.48212 0.13823,0.78634 -0.0931,0.1184 -0.16934,0.30096 -0.16934,0.4057 0,0.11433 -0.16345,0.35505 -0.40906,0.60241 -0.22499,0.22659 -0.47264,0.50619 -0.55034,0.62133 l -0.14126,0.20934 z m 3.8667,-0.20449 c -0.17971,-0.23301 -0.36486,-0.39546 -0.41525,-0.36431 -0.05,0.0309 -0.0669,0.0173 -0.0375,-0.0302 0.0294,-0.0475 -0.0219,-0.15458 -0.11392,-0.23787 -0.092,-0.0833 -0.16734,-0.23565 -0.16734,-0.33857 0,-0.10291 -0.0762,-0.28399 -0.16933,-0.40239 -0.23327,-0.29656 -0.21296,-0.4546 0.0945,-0.73545 0.17239,-0.15745 0.28571,-0.36047 0.32688,-0.58561 0.042,-0.22982 0.034,-0.32663 -0.0242,-0.29066 -0.0541,0.0334 -0.0657,-0.002 -0.0306,-0.0939 0.0312,-0.0813 0.0567,-0.16375 0.0567,-0.18323 0,-0.0195 0.0421,-0.0354 0.0936,-0.0354 0.10413,0 0.35937,-0.29981 0.64454,-0.7571 0.10333,-0.16568 0.18905,-0.25034 0.1905,-0.18813 0.005,0.20761 -0.28584,1.1992 -0.35155,1.1992 -0.12944,0 -0.31244,0.48797 -0.36717,0.97904 -0.0451,0.40443 -0.0203,0.59753 0.12671,0.98844 0.1005,0.2672 0.24073,0.51827 0.31161,0.55794 0.0709,0.0397 0.12547,0.0973 0.1213,0.12802 -0.0254,0.18732 0.002,0.31419 0.0594,0.27849 0.0368,-0.0228 0.0517,0.0893 0.0331,0.24901 -0.0187,0.15971 -0.0393,0.28877 -0.0458,0.28678 -0.007,-0.002 -0.15784,-0.19284 -0.33621,-0.42412 z m -6.1527,0.32214 c 0,-0.0182 0.0609,-0.23807 0.13532,-0.48869 0.0765,-0.25765 0.1149,-0.58628 0.0883,-0.7562 -0.0377,-0.2409 -0.029,-0.26925 0.0435,-0.14291 0.13339,0.23234 0.0489,1.1047 -0.12364,1.2773 -0.0789,0.0789 -0.14352,0.12866 -0.14352,0.1105 z m 8.6104,-0.22758 c -0.15644,-0.26483 -0.19271,-0.98292 -0.0601,-1.1908 0.0562,-0.0881 0.0662,-0.035 0.0327,0.17352 -0.0277,0.17225 0.009,0.4946 0.0868,0.75523 0.15721,0.5294 0.14096,0.60117 -0.0593,0.26208 z" fill="var(--logo-color)" stroke-width="0.084667" id="path2" sodipodi:nodetypes="ccccccscccccccsscccsccccccccccccscscssccccsccscccccccscsscccccccccccccccssccccccccscccscccccccccccsccsscccssscccccsscccccsccccccccccsccsssscccccccccccccccssccccccscccccscsscccscsccccccsscccccsccccccccccccccccccccsccscccccsccscccssccccccccscccsccscscccccssccscccccccccccccccccscccc"></path>
</g>
</g>
</svg>
</div>
</div>
<div x-data="{ open: false, notification: false }" class="flex flex-col max-w-screen-xl px-4 py-2 mx-auto xl:items-center xl:justify-center xl:flex-row xl:px-8">
<div class="py-2 xl:hidden flex flex-row items-center justify-center gap-2" style="--btn-color : white">
<button class="btn btn-outline flex-grow" @click="open = !open">
Menü
<div x-show="!open">
<?= Icon::get('o-bars-3') ?>
</div>
<div x-show="open">
<?= Icon::get('o-x-mark') ?>
</div>
</button>
<?php if (!is_user_logged_in()) : ?>
<a class="btn btn-outline btn-red" href="/wp-login.php">Login</a>
<?php else : ?>
<a class="btn btn-outline btn-alliance" href="/wp-admin/profile.php">Profil</a>
<?php if (!empty($notifications->first())) : ?>
<a href="#" class="btn btn-outline btn-alliance" @click="notification = !notification">
&nbsp;
<span class="relative flex h-3 w-3">
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-alliance opacity-75"></span>
<span class="relative inline-flex rounded-full h-3 w-3 bg-alliance"></span>
</span>
&nbsp;
</a>
<?php endif; ?>
<?php endif; ?>
</div>
<?php if (!empty($notifications->first())) : ?>
<div x-show="notification">
<div class="p-2 flex flex-col mt-1 gap-2 shadow" style="background-color:var(--color-deepblue)">
<?php foreach ($notifications as $notification) : ?>
<div class="p-2 border flex flex-row gap-1 justify-between">
<form class="hidden" method="POST" action="/request" id="deleteNotification<?= $notification->ID ?>">
<input type="hidden" name="action" value="notificationSeen">
<input type="hidden" name="notification_id" value="<?= $notification->ID ?>">
<?php wp_nonce_field('notificationSeen', 'notificationSeen_nonce'); ?>
</form>
<div><?= $notification->note ?></div>
<button type="submit" class="cursor-pointer" form="deleteNotification<?= $notification->ID ?>"><?= Icon::get('o-x-circle') ?> </button>
</div>
<?php endforeach; ?>
</div>
</div>
<? endif; ?>
<nav id="site-navigation" :class="{'flex': open, 'hidden': !open}" class="flex-col flex-grow pb-4 md:pb-0 hidden xl:flex xl:justify-center xl:flex-row gap-2">
<?php
wp_nav_menu(
array(
'theme_location' => 'menu-1',
'container' => false,
'menu_id' => 'primary-menu',
'items_wrap' => '%3$s',
'walker' => new NavWalker(),
)
);
?>
<div class="hidden xl:flex">
<?php if (!is_user_logged_in()) : ?>
<a class="btn btn-outline btn-red" href="/wp-login.php">Login</a>
<?php else : ?>
<a class="btn btn-outline btn-alliance" href="/wp-admin/profile.php">Profil</a>
<?php endif; ?>
</div>
<?php if (is_user_logged_in() && !empty($notifications->first())) : ?>
<div x-data="{notification:false}">
<div class="hidden xl:flex">
<a href="#" class="btn btn-outline btn-alliance" @click="notification = !notification">
Benachrichtigungen
<span class="relative flex h-3 w-3">
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-alliance opacity-75"></span>
<span class="relative inline-flex rounded-full h-3 w-3 bg-alliance"></span>
</span>
</a>
</div>
<?php if (!empty($notifications->first())) : ?>
<div x-show="notification">
<div class="p-2 flex flex-col mt-1 absolute gap-2 shadow" style="background-color:var(--color-deepblue)">
<?php foreach ($notifications as $notification) : ?>
<div class="p-2 border flex flex-row gap-1 justify-between">
<form class="hidden" action="/request" method="POST" id="deleteNotification<?= $notification->ID ?>">
<input type="hidden" name="action" value="notificationSeen">
<input type="hidden" name="notification_id" value="<?= $notification->ID ?>">
<?php wp_nonce_field('notificationSeen', 'notificationSeen_nonce'); ?>
</form>
<div><?= $notification->note ?></div>
<button type="submit" class="cursor-pointer" form="deleteNotification<?= $notification->ID ?>"><?= Icon::get('o-x-circle') ?> </button>
</div>
<?php endforeach; ?>
</div>
</div>
<? endif; ?>
</div>
<?php endif; ?>
</nav><!-- #site-navigation -->
</div>
</header><!-- #masthead -->