-
Notifications
You must be signed in to change notification settings - Fork 0
/
pre-index.php
1512 lines (1505 loc) · 111 KB
/
pre-index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
if (! file_exists('config/config.php')) {
http_response_code(500);
die("<h1>Config file missing</h1><p>Please ensure you have created your config file (<code>config/config.php</code>).</p>");
}
include('config/config.php');
if ($noNativeLogin === false || $noDiscordLogin === false || $noFacebookLogin === false || $noPatreonLogin === false) {
if (isset($_COOKIE["LoginCookie"])) {
if (validateCookie($_COOKIE["LoginCookie"]) === false) {
header("Location: .");
}
}
if (empty($_SESSION['user']->id) && $forcedLogin === true) {
header("Location: ./login?action=login");
die();
}
if (!empty($_SESSION['user']->updatePwd) && $_SESSION['user']->updatePwd === 1) {
header("Location: ./register?action=updatePwd");
die();
}
}
$zoom = ! empty($_GET['zoom']) ? $_GET['zoom'] : null;
$encounterId = ! empty($_GET['encId']) ? $_GET['encId'] : null;
$stopId = ! empty($_GET['stopId']) ? $_GET['stopId'] : null;
$gymId = ! empty($_GET['gymId']) ? $_GET['gymId'] : null;
if (!empty($_GET['lang'])) {
setcookie("LocaleCookie", $_GET['lang'], time() + 60 * 60 * 24 * 31);
header("Location: .");
}
if (!empty($_COOKIE["LocaleCookie"])) {
$locale = $_COOKIE["LocaleCookie"];
}
if (! empty($_GET['lat']) && ! empty($_GET['lon'])) {
$startingLat = $_GET['lat'];
$startingLng = $_GET['lon'];
$locationSet = 1;
} else {
$locationSet = 0;
}
if ($blockIframe) {
header('X-Frame-Options: DENY');
}
if (strtolower($map) === "rdm") {
if (strtolower($fork) === "default" || strtolower($fork) === "beta") {
$getList = new \Scanner\RDM();
}
} elseif (strtolower($map) === "rocketmap") {
if (strtolower($fork) === "mad") {
$getList = new \Scanner\RocketMap_MAD();
}
}
?>
<!DOCTYPE html>
<html lang="<?= $locale ?>">
<head>
<meta charset="utf-8">
<title><?= $title ?></title>
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="PokeMap">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#3b3b3b">
<!-- Fav- & Apple-Touch-Icons -->
<!-- Favicon -->
<?php
if ($faviconPath != "") {
echo '<link rel="shortcut icon" href="' . $faviconPath . '" type="image/x-icon">';
} else {
echo '<link rel="shortcut icon" href="' . $appIconPath . 'favicon.ico" type="image/x-icon">';
} ?>
<!-- non-retina iPhone pre iOS 7 -->
<link rel="apple-touch-icon" href="<?php echo $appIconPath; ?>114x114.png" sizes="57x57">
<!-- non-retina iPad pre iOS 7 -->
<link rel="apple-touch-icon" href="<?php echo $appIconPath; ?>144x144.png" sizes="72x72">
<!-- non-retina iPad iOS 7 -->
<link rel="apple-touch-icon" href="<?php echo $appIconPath; ?>152x152.png" sizes="76x76">
<!-- retina iPhone pre iOS 7 -->
<link rel="apple-touch-icon" href="<?php echo $appIconPath; ?>114x114.png" sizes="114x114">
<!-- retina iPhone iOS 7 -->
<link rel="apple-touch-icon" href="<?php echo $appIconPath; ?>120x120.png" sizes="120x120">
<!-- retina iPad pre iOS 7 -->
<link rel="apple-touch-icon" href="<?php echo $appIconPath; ?>144x144.png" sizes="144x144">
<!-- retina iPad iOS 7 -->
<link rel="apple-touch-icon" href="<?php echo $appIconPath; ?>152x152.png" sizes="152x152">
<!-- retina iPhone 6 iOS 7 -->
<link rel="apple-touch-icon" href="<?php echo $appIconPath; ?>180x180.png" sizes="180x180">
<script src="https://cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script>
<?php
include('filterimages.php');
if ($gAnalyticsId != "") {
echo '<!-- Google Analytics -->
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga("create", "' . $gAnalyticsId . '", "auto");
ga("send", "pageview");
</script>
<script async src="https://www.google-analytics.com/analytics.js"></script>
<!-- End Google Analytics -->';
}
if ($piwikUrl != "" && $piwikSiteId != "") {
echo '<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u="//' . $piwikUrl . '/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "' . $piwikSiteId . '"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0];
g.type="text/javascript"; g.async=true; g.defer=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->';
}
/* Cookie Disclamer */
if (! $noCookie) {
echo '<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#3b3b3b"
},
"button": {
"background": "#d6d6d6"
}
},
"content": {
"message": "' . i8ln('This website uses cookies to ensure you get the best experience on our website.') . '",
"dismiss": "' . i8ln('Allow') . '",
"link": "' . i8ln('Learn more') . '",
"href": "https://www.cookiesandyou.com/"
}
})});
</script>';
} ?>
<script>
var token = '<?php echo (! empty($_SESSION['token'])) ? $_SESSION['token'] : ""; ?>';
</script>
<link href="node_modules/leaflet-geosearch/assets/css/leaflet.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.css">
<link rel="stylesheet" href="node_modules/datatables/media/css/jquery.dataTables.min.css">
<script src="static/js/vendor/modernizr.custom.js"></script>
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="node_modules/bootstrap-icons/font/bootstrap-icons.css">
<!-- Leaflet -->
<link rel="stylesheet" href="node_modules/leaflet/dist/leaflet.css" />
<link rel="stylesheet" href="static/dist/css/app.min.css">
<?php if (file_exists('static/css/custom.css')) {
echo '<link rel="stylesheet" href="static/css/custom.css?' . time() . '">';
} ?>
<link rel="stylesheet" href="node_modules/leaflet.markercluster/dist/MarkerCluster.css" />
<link rel="stylesheet" href="node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css" />
<link href='static/css/leaflet.fullscreen.css' rel='stylesheet' />
<!-- Flag Icons -->
<link rel="stylesheet" href="node_modules/flag-icon-css/css/flag-icon.min.css" />
</head>
<?php
if (!$noLoadingScreen) {
echo '<app-root><p class="spinner" VALIGN="CENTER">';
if ($loadingStyle == '') {
$loadingStyle = '<i class="fa fas fa-cog fa-spin fa-2x" aria-hidden="true"></i>';
}
echo $loadingStyle . ' ' . i8ln('Loading') . '...</p></app-root>';
} ?>
<body id="top">
<div class="wrapper">
<!-- Header -->
<header id="header">
<a class="btn btn-link" data-bs-toggle="offcanvas" href="#leftNav" role="button" title="<?php echo i8ln('Options') ?>" aria-controls="leftNav"><i class='fas fa-sliders-h'></i></a>
<h1><a href="#"><?= $headerTitle ?><img src="<?= $raidmapLogo ?>"></a></h1>
<?php
if (! $noStatsToggle) {
echo '<a class="btn btn-link" data-bs-toggle="offcanvas" href="#rightNav" role="button" title="' . i8ln('Options') . '" aria-controls="rightNav"><i class="fas fa-chart-bar"></i></a>';
}
if ($paypalUrl != "") {
echo '<a class="config-icon" href="' . $paypalUrl . '" target="_blank">
<i class="fab fa-paypal" title="' . i8ln('PayPal') . '"></i>
</a>';
}
if ($telegramUrl != "") {
echo '<a class="config-icon" href="' . $telegramUrl . '" target="_blank">
<i class="fab fa-telegram" title="' . i8ln('Telegram') . '"></i>
</a>';
}
if ($whatsAppUrl != "") {
echo '<a class="config-icon" href="' . $whatsAppUrl . '" target="_blank">
<i class="fab fa-whatsapp" title="' . i8ln('WhatsApp') . '"></i>
</a>';
}
if ($discordUrl != "") {
echo '<a class="config-icon" href="' . $discordUrl . '" target="_blank">
<i class="fab fa-discord" title="' . i8ln('Discord') . '"></i>
</a>';
}
if ($patreonUrl != "") {
echo '<a class="config-icon" href="' . $patreonUrl . '" target="_blank">
<i class="fab fa-patreon" title="' . i8ln('Patreon') . '"></i>
</a>';
}
if ($customUrl != "") {
echo '<a class="config-icon" href="' . $customUrl . '" target="_blank">
<i class="' . $customUrlFontIcon . '"></i>
</a>';
}
if (! $noHeaderWeatherIcon) { ?>
<div id="currentWeather"></div>
<?php }
if (! $noNotifyNotification) { ?>
<i id="pushNotifyIcon" data-bs-toggle="tooltip" title=""></i>
<?php }
if (!empty($_SESSION['user']->id)) {
echo "<a href='#accountModal' data-bs-toggle='modal' title='" . i8ln('Profile') . "'><img src='" . $_SESSION['user']->avatar . "'></a>";
} else {
echo "<a href='#accountModal' data-bs-toggle='modal' title='" . i8ln('Profile') . "'><i class='fas fa-user'></i></a>";
}
?>
</header>
<!-- Toastr Container -->
<div aria-live="polite" aria-atomic="true" class="position-relative">
<div class="toast-container right-top position-absolute top-0 end-0 p-3">
<!-- Toasts generated in map.js -->
</div>
</div>
<div aria-live="polite" aria-atomic="true" class="position-relative">
<div class="toast-container right-bottom position-absolute p-3 top-0 end-0">
<!-- Toasts generated in map.js -->
</div>
</div>
<!-- NAV -->
<div class="offcanvas left offcanvas-start" data-bs-scroll="true" data-bs-backdrop="false" tabindex="-1" id="leftNav" aria-labelledby="leftNavLabel">
<div class="offcanvas-body left">
<div class="accordion accordion-flush" id="accordionNav">
<?php
if (! $noPokemon || ! $noNests) { ?>
<div class="accordion-item">
<h2 class="accordion-header" id="headingItemOne">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navItemOne" aria-expanded="false" aria-controls="navItemOne">
<?php if (! $noNests) { ?>
<h5><?php echo i8ln('Pokémon & Nests') ?></h5>
<?php
} else { ?>
<h5><?php echo i8ln('Pokémon') ?></h5>
<?php } ?>
</button>
</h2>
<div id="navItemOne" class="accordion-collapse collapse" aria-labelledby="navItemOne" data-bs-parent="#accordionNav">
<div class="accordion-body bg-light">
<div class="card">
<div class="card-body">
<?php
if (! $noPokemon) { ?>
<div class="form form-switch">
<input class="form-check-input" id="pokemon-switch" type="checkbox" name="pokemon-switch">
<label class="form-check-label" for="pokemon-switch"><?php echo i8ln('Pokémon') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php
}
if (! $noNests) { ?>
<div class="form form-switch">
<input class="form-check-input" id="nests-switch" type="checkbox" name="nests-switch">
<label class="form-check-label" for="nests-switch"><?php echo i8ln('Nests') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php } ?>
<div id="pokemon-filter-wrapper" style="display:none">
<?php
if (!$noTinyRat) { ?>
<div class="form form-switch">
<input class="form-check-input" id="tiny-rat-switch" type="checkbox" name="tiny-rat-switch">
<label class="form-check-label" for="tiny-rat-switch"><?php echo i8ln('Only Tiny Rattata') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (!$noBigKarp) {
?>
<div class="form form-switch">
<input class="form-check-input" id="big-karp-switch" type="checkbox" name="big-karp-switch">
<label class="form-check-label" for="big-karp-switch"><?php echo i8ln('Only Big Magikarp') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php } ?>
<div class="overflow-hidden">
<div class="row gx-3">
<?php
if (! $noMinIV) { ?>
<div class="col" >
<div class="p-1 border bg-light">
<input id="min-iv" type="number" min="0" max="100" name="min-iv"/>
<label for="min-iv"><?php echo i8ln('Min IV') ?></label>
</div>
</div>
<?php }
if (! $noMinLevel) { ?>
<div class="col">
<div class="p-1 border bg-light">
<input id="min-level" type="number" min="0" max="100" name="min-level"/>
<label for="min-level"><?php echo i8ln('Min Lvl') ?></label>
</div>
</div>
<?php } ?>
</div>
</div>
<?php if (! $noHidePokemon && ! $noExcludeMinIV) { ?>
<div class="form-control" style="position:relative;top:8px;">
<ul class="nav nav-tabs nav-fill" id="pokemonHideMin" role="tablist">
<?php
$firstTab = 1;
if (! $noHidePokemon) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link<?php echo (($firstTab == 1) ? " active" : ""); ?>" id="exclude-pokemon-tab" data-bs-toggle="tab" data-bs-target="#exclude-pokemon" type="button" role="tab" aria-controls="exclude-pokemon" aria-selected="false"><?php echo i8ln('Hide Pokémon') ?></button>
</li>
<?php
$firstTab++;
}
if (! $noExcludeMinIV) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link<?php echo (($firstTab == 1) ? " active" : ""); ?>" id="exclude-min-iv-tab" data-bs-toggle="tab" data-bs-target="#exclude-min-iv" type="button" role="tab" aria-controls="exclude-min-iv" aria-selected="false"><?php echo i8ln('Excl. Min IV/Lvl') ?></button>
</li>
<?php } ?>
</ul>
<div class="tab-content" id="pokemonHideMinContent">
<?php
$firstTabContent = 1;
if (! $noHidePokemon) { ?>
<div class="tab-pane fade<?php echo (($firstTabContent == 1) ? " show active" : ""); ?>" id="exclude-pokemon" role="tabpanel" aria-labelledby="exclude-pokemon-tab">
<div class="scroll-container">
<?php pokemonFilterImages($noPokemonNumbers, '', [], 2); ?>
</div>
<div class="dropdown-divider"></div>
<a class="btn btn-secondary select-all" href="#"><?php echo i8ln('All') ?></a>
<a class="btn btn-secondary hide-all" href="#"><?php echo i8ln('None') ?></a>
</div>
<?php }
$firstTabContent++;
if (! $noExcludeMinIV) { ?>
<div class="tab-pane fade<?php echo (($firstTabContent == 1) ? " show active" : ""); ?>" id="exclude-min-iv" role="tabpanel" aria-labelledby="exclude-min-iv-tab">
<div class="scroll-container">
<?php pokemonFilterImages($noPokemonNumbers, '', [], 3); ?>
</div>
<div class="dropdown-divider"></div>
<a class="btn btn-secondary select-all" href="#"><?php echo i8ln('All') ?></a>
<a class="btn btn-secondary hide-all" href="#"><?php echo i8ln('None') ?></a>
</div>
<?php } ?>
</div>
</div>
<div class="dropdown-divider"></div>
<?php
} ?>
</div>
<div id="nest-filter-wrapper" style="display:none">
<?php
if (!$noNestPolygon && !$noNests) { ?>
<div class="form form-switch">
<input class="form-check-input" id="nest-polygon-switch" type="checkbox" name="nest-polygon-switch">
<label class="form-check-label" for="nest-polygon-switch"><?php echo i8ln('Nest Polygon') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (!$noNestsAvg && !$noNests) { ?>
<div class="nestslider-div">
<input type="range" class="form-range" min="0" max="<?php echo $nestAvgMax ?>" value="<?php echo $nestAvgDefault ?>" id="nestrange">
<p><?php echo i8ln('Show nest average. ') ?><span id="nestavg"></span></p>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php }
if (! $noPokestops) { ?>
<div class="accordion-item">
<h2 class="accordion-header" id="headingItemTwo">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navItemTwo" aria-expanded="false" aria-controls="navItemTwo">
<?php if (!$noQuests) { ?>
<h5><?php echo i8ln('Pokéstops & Quests'); ?></h5>
<?php
} else { ?>
<h5><?php echo i8ln('Pokéstops'); ?></h5>
<?php } ?>
</button>
</h2>
<div id="navItemTwo" class="accordion-collapse collapse" aria-labelledby="navItemTwo" data-bs-parent="#accordionNav">
<div class="accordion-body bg-light">
<div class="card">
<div class="card-body">
<?php
if (! $noPokestops) { ?>
<div class="form form-switch">
<input class="form-check-input" id="pokestops-switch" type="checkbox" name="pokestops-switch">
<label class="form-check-label" for="pokestops-switch"><?php echo i8ln('Pokéstops') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php
} ?>
<div id="pokestops-filter-wrapper" style="display:none">
<?php
if (! $noAllPokestops) { ?>
<div class="form form-switch">
<input class="form-check-input" id="allPokestops-switch" type="checkbox" name="allPokestops-switch">
<label class="form-check-label" for="allPpokestops-switch"><?php echo i8ln('All Pokéstops') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php
}
if (! $noLures) { ?>
<div class="form form-switch">
<input class="form-check-input" id="lures-switch" type="checkbox" name="lures-switch">
<label class="form-check-label" for="lures-switch"><?php echo i8ln('Lured Pokéstops only') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php
}
if (! $noTeamRocket) { ?>
<div class="form form-switch">
<input class="form-check-input" id="rocket-switch" type="checkbox" name="rocket-switch">
<label class="form-check-label" for="rocket-switch"><?php echo i8ln('Rocket Pokéstops only') ?></label>
</div>
<?php
} ?>
<div id="rocket-wrapper" style="display:none">
<div class="dropdown-divider"></div>
<?php
if (! $noTeamRocket && ! $noTeamRocketTimer) { ?>
<div class="form form-switch">
<input class="form-check-input" id="rocket-timer-switch" type="checkbox" name="rocket-timer-switch">
<label class="form-check-label" for="rocket-timer-switch"><?php echo i8ln('Rocket Pokéstops timer') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php
} ?>
<div class="form-control">
<ul class="nav nav-tabs nav-fill" id="rocketHide" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="exclude-rocket-tab" data-bs-toggle="tab" data-bs-target="#exclude-rocket" type="button" role="tab" aria-controls="exclude-rocket" aria-selected="false"><?php echo i8ln('Hide Grunts') ?></button>
</li>
</ul>
<div class="tab-content" id="rocketHideContent">
<div class="tab-pane fade show active" id="exclude-rocket" role="tabpanel" aria-labelledby="exclude-rocket-tab">
<div class="scroll-container">
<?php
if ($generateExcludeGrunts === true) {
gruntFilterImages($noGruntNumbers, '', array_diff(range(1, $numberOfGrunt), $getList->generated_exclude_list('gruntlist')), 10);
} else {
gruntFilterImages($noGruntNumbers, '', $excludeGrunts, 10);
} ?>
</div>
<div class="dropdown-divider"></div>
<a class="btn btn-secondary select-all-grunt" href="#"><?php echo i8ln('All') ?></a>
<a class="btn btn-secondary hide-all-grunt" href="#"><?php echo i8ln('None') ?></a>
</div>
</div>
</div>
</div>
<?php
if (! $noQuests) { ?>
<div class="dropdown-divider"></div>
<div class="form form-switch">
<input class="form-check-input" id="quests-switch" type="checkbox" name="quests-switch">
<label class="form-check-label" for="quests-switch"><?php echo i8ln('Quest Pokéstops only') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php
} ?>
<div id="quests-filter-wrapper" style="display:none">
<div class="form-control">
<ul class="nav nav-tabs nav-fill" id="questHide" role="tablist">
<?php
$firstTab = 1;
if (! $noQuestsPokemon) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link<?php echo (($firstTab == 1) ? " active" : ""); ?>" id="exclude-quest-pokemon-tab" data-bs-toggle="tab" data-bs-target="#exclude-quest-pokemon" type="button" role="tab" aria-controls="exclude-quest-pokemon" aria-selected="false"><?php echo i8ln('Pokémon') ?></button>
</li>
<?php
$firstTab++;
}
if (! $noQuestsItems) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link<?php echo (($firstTab == 1) ? " active" : ""); ?>" id="exclude-quest-item-tab" data-bs-toggle="tab" data-bs-target="#exclude-quest-item" type="button" role="tab" aria-controls="exclude-quest-item" aria-selected="false"><?php echo i8ln('Items') ?></button>
</li>
<?php }
if (! $noQuestsEnergy) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link<?php echo (($firstTab == 1) ? " active" : ""); ?>" id="exclude-quest-energy-tab" data-bs-toggle="tab" data-bs-target="#exclude-quest-energy" type="button" role="tab" aria-controls="exclude-quest-energy" aria-selected="false"><?php echo i8ln('Energy') ?></button>
</li>
<?php } ?>
</ul>
<div class="tab-content" id="pokemonHideMinContent">
<?php
$firstTabContent = 1;
if (! $noQuestsPokemon) { ?>
<div class="tab-pane fade<?php echo (($firstTabContent == 1) ? " show active" : ""); ?>" id="exclude-quest-pokemon" role="tabpanel" aria-labelledby="exclude-quest-pokemon-tab">
<div class="scroll-container">
<?php
if ($generateExcludeQuestsPokemon === true) {
pokemonFilterImages($noPokemonNumbers, '', array_diff(range(1, $numberOfPokemon), $getList->generated_exclude_list('pokemonlist')), 8);
} else {
pokemonFilterImages($noPokemonNumbers, '', $excludeQuestsPokemon, 8);
} ?>
</div>
<div class="dropdown-divider"></div>
<a class="btn btn-secondary select-all" href="#"><?php echo i8ln('All') ?></a>
<a class="btn btn-secondary hide-all" href="#"><?php echo i8ln('None') ?></a>
</div>
<?php }
$firstTabContent++;
if (! $noQuestsItems) { ?>
<div class="tab-pane fade<?php echo (($firstTabContent == 1) ? " show active" : ""); ?>" id="exclude-quest-item" role="tabpanel" aria-labelledby="exclude-quest-item-tab">
<div class="scroll-container">
<?php
if ($generateExcludeQuestsItem === true) {
itemFilterImages($noItemNumbers, '', array_diff(range(1, $numberOfItem), $getList->generated_exclude_list('itemlist')), 9);
} else {
itemFilterImages($noItemNumbers, '', $excludeQuestsItem, 9);
} ?>
</div>
<div class="dropdown-divider"></div>
<a class="btn btn-secondary select-all-item" href="#"><?php echo i8ln('All') ?></a>
<a class="btn btn-secondary hide-all-item" href="#"><?php echo i8ln('None') ?></a>
</div>
<?php }
$firstTabContent++;
if (! $noQuestsEnergy) { ?>
<div class="tab-pane fade<?php echo (($firstTabContent == 1) ? " show active" : ""); ?>" id="exclude-quest-energy" role="tabpanel" aria-labelledby="exclude-quest-energy-tab">
<div class="scroll-container">
<?php
if ($generateExcludeQuestsEnergy === true) {
energyFilterImages($noPokemonNumbers, '', array_diff(range(1, $numberOfPokemon), $getList->generated_exclude_list('energylist')), 9);
} else {
energyFilterImages($noPokemonNumbers, '', $excludeQuestsEnergy, 9);
} ?>
</div>
<div class="dropdown-divider"></div>
<a class="btn btn-secondary select-all-energy" href="#"><?php echo i8ln('All') ?></a>
<a class="btn btn-secondary hide-all-energy" href="#"><?php echo i8ln('None') ?></a>
</div>
<?php } ?>
</div>
</div>
<div class="dropdown-divider"></div>
<div class="dustslider">
<input type="range" class="form-range" min="0" max="3500" value="500" class="slider" id="dustrange">
<p><?php echo i8ln('Show stardust ') ?><span id="dustvalue"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php }
if (! $noGyms) { ?>
<div class="accordion-item">
<h2 class="accordion-header" id="headingItemThree">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navItemThree" aria-expanded="false" aria-controls="navItemThree">
<?php if (! $noRaids) { ?>
<h5><?php echo i8ln('Gym & Raid') ?></h5>
<?php
} else { ?>
<h5><?php echo i8ln('Gym') ?></h5>
<?php } ?>
</button>
</h2>
<div id="navItemThree" class="accordion-collapse collapse" aria-labelledby="navItemThree" data-bs-parent="#accordionNav">
<div class="accordion-body bg-light">
<div class="card">
<div class="card-body">
<?php
if (! $noRaids) { ?>
<div class="form form-switch">
<input class="form-check-input" id="raids-switch" type="checkbox" name="raids-switch">
<label class="form-check-label" for="raids-switch"><?php echo i8ln('Raids') ?></label>
</div>
<div id="raids-filter-wrapper" style="display:none">
<div class="dropdown-divider"></div>
<?php
if (! $noRaidTimer) { ?>
<div class="form form-switch">
<input class="form-check-input" id="raid-timer-switch" type="checkbox" name="raid-timer-switch">
<label class="form-check-label" for="raid-timer-switch"><?php echo i8ln('Raids Timer') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php
}
if (! $noActiveRaids) { ?>
<div class="form form-switch">
<input class="form-check-input" id="active-raids-switch" type="checkbox" name="active-raids-switch">
<label class="form-check-label" for="active-raids-switch"><?php echo i8ln('Only Active Raids') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php
}
if (! $noMinMaxRaidLevel) { ?>
<div class="form-floating">
<select class="form-select" aria-label="min-level-raids-filter" name="min-level-raids-filter-switch" id="min-level-raids-filter-switch">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
<label for="min-level-raids-filter-switch"><?php echo i8ln('Minimum Raid Level') ?></label>
</div>
<div class="dropdown-divider"></div>
<div class="form-floating">
<select class="form-select" aria-label="max-level-raids-filter" name="max-level-raids-filter-switch" id="max-level-raids-filter-switch">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
<label for="max-level-raids-filter-switch"><?php echo i8ln('Maximum Raid Level') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php } ?>
<div class="form-control">
<ul class="nav nav-tabs nav-fill" id="raidHide" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="exclude-raidboss-tab" data-bs-toggle="tab" data-bs-target="#exclude-raidboss" type="button" role="tab" aria-controls="exclude-raidboss" aria-selected="false"><?php echo i8ln('Hide Raidboss') ?></button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="exclude-raidegg-tab" data-bs-toggle="tab" data-bs-target="#exclude-raidegg" type="button" role="tab" aria-controls="exclude-raidegg" aria-selected="false"><?php echo i8ln('Hide Raidegg') ?></button>
</li>
</ul>
<div class="tab-content" id="raidHideContent">
<div class="tab-pane fade show active" id="exclude-raidboss" role="tabpanel" aria-labelledby="exclude-raidboss-tab">
<div class="scroll-container">
<?php
if ($generateExcludeRaidboss === true) {
pokemonFilterImages($noRaidbossNumbers, '', array_diff(range(1, $numberOfPokemon), $getList->generated_exclude_list('raidbosslist')), 11);
} else {
pokemonFilterImages($noRaidbossNumbers, '', $excludeRaidboss, 11);
} ?>
</div>
<div class="dropdown-divider"></div>
<a class="btn btn-secondary select-all" href="#"><?php echo i8ln('All') ?></a>
<a class="btn btn-secondary hide-all" href="#"><?php echo i8ln('None') ?></a>
</div>
<div class="tab-pane fade" id="exclude-raidegg" role="tabpanel" aria-labelledby="exclude-raidegg-tab">
<div class="scroll-container">
<?php raideggFilterImages($noRaideggNumbers, '', $excludeRaidegg, 12); ?>
</div>
<div class="dropdown-divider"></div>
<a class="btn btn-secondary select-all-egg" href="#"><?php echo i8ln('All') ?></a>
<a class="btn btn-secondary hide-all-egg" href="#"><?php echo i8ln('None') ?></a>
</div>
</div>
</div>
</div>
<div class="dropdown-divider"></div>
<?php } ?>
<div class="form form-switch">
<input class="form-check-input" id="gyms-switch" type="checkbox" name="gyms-switch">
<label class="form-check-label" for="gyms-switch"><?php echo i8ln('Gyms') ?></label>
</div>
<div class="dropdown-divider"></div>
<div id="gyms-filter-wrapper" style="display:none">
<div class="dropdown-divider"></div>
<?php
if (! $noTeams) { ?>
<div class="form-floating">
<select class="form-select" aria-label="teams-gyms-filter" name="team-gyms-filter-switch" id="team-gyms-only-switch">
<option value="0"><?php echo i8ln('All'); ?></option>
<option value="1"><?php echo i8ln('Mystic'); ?></option>
<option value="2"><?php echo i8ln('Valor'); ?></option>
<option value="3"><?php echo i8ln('Instinct'); ?></option>
</select>
<label for="team-gyms-only-switch"><?php echo i8ln('Team'); ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noOpenSpot) { ?>
<div class="form form-switch">
<input class="form-check-input" id="open-gyms-only-switch" type="checkbox" name="open-gyms-only-switch">
<label class="form-check-label" for="open-gyms-only-switch"><?php echo i8ln('Open Spot') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noMinMaxFreeSlots) { ?>
<div class="form-floating">
<select class="form-select" aria-label="min-level-gyms-filter" name="min-level-gyms-filter-switch" id="min-level-gyms-filter-switch">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
<label for="min-level-gyms-filter-switch"><?php echo i8ln('Minimum Free Slots'); ?></label>
</div>
<div class="dropdown-divider"></div>
<div class="form-floating">
<select class="form-select" aria-label="max-level-gyms-filter" name="max-level-gyms-filter-switch" id="max-level-gyms-filter-switch">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
<label for="max-level-gyms-filter-switch"><?php echo i8ln('Maximum Free Slots'); ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noLastScan) { ?>
<div class="form-floating">
<select class="form-select" aria-label="last-update-gyms-filter" name="last-update-gyms-switch" id="last-update-gyms-switch">
<option value="0"><?php echo i8ln('All'); ?></option>
<option value="1"><?php echo i8ln('Last Hour'); ?></option>
<option value="6"><?php echo i8ln('Last 6 Hours'); ?></option>
<option value="12"><?php echo i8ln('Last 12 Hours'); ?></option>
<option value="24"><?php echo i8ln('Last 24 Hours'); ?></option>
<option value="168"><?php echo i8ln('Last Week'); ?></option>
</select>
<label for="last-update-gyms-switch"><?php echo i8ln('Last Scan'); ?></label>
</div>
<div class="dropdown-divider"></div>
<?php } ?>
<div id="gyms-raid-filter-wrapper" style="display:none">
<div class="form form-switch">
<input class="form-check-input" id="ex-eligible-switch" type="checkbox" name="ex-eligible-switch">
<label class="form-check-label" for="ex-eligible-switch"><?php echo i8ln('EX Eligible Only') ?></label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php }
if (! $noCommunity) { ?>
<div class="accordion-item">
<h2 class="accordion-header" id="headingItemFour">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navItemFour" aria-expanded="false" aria-controls="navItemFour">
<h5><?php echo i8ln('Communities'); ?></h5>
</button>
</h2>
<div id="navItemFour" class="accordion-collapse collapse" aria-labelledby="navItemFour" data-bs-parent="#accordionNav">
<div class="accordion-body bg-light">
<div class="card">
<div class="card-body">
<div class="form form-switch">
<input class="form-check-input" id="communities-switch" type="checkbox" name="communities-switch">
<label class="form-check-label" for="communities-switch"><?php echo i8ln('Communities') ?></label>
</div>
</div>
</div>
</div>
</div>
</div>
<?php }
if (! $noPortals || ! $noS2Cells || ! $noPoi) { ?>
<div class="accordion-item">
<h2 class="accordion-header" id="headingItemFive">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navItemFive" aria-expanded="false" aria-controls="navItemFive">
<h5><?php echo i8ln('Ingress / S2Cell'); ?></h5>
</button>
</h2>
<div id="navItemFive" class="accordion-collapse collapse" aria-labelledby="navItemFive" data-bs-parent="#accordionNav">
<div class="accordion-body bg-light">
<div class="card">
<div class="card-body">
<?php
if (! $noPortals) { ?>
<div class="form form-switch">
<input class="form-check-input" id="portals-switch" type="checkbox" name="portals-switch">
<label class="form-check-label" for="portals-switch"><?php echo i8ln('Portals') ?></label>
</div>
<div class="form-floating" id="new-portals-only-wrapper" style="display:none">
<select class="form-select" aria-label="new-portals-only-switch" name="new-portals-only-switch" id="new-portals-only-switch">
<option value = "0"><?php echo i8ln('All'); ?></option>
<option value = "1"><?php echo i8ln('Only new'); ?></option>
</select>
<label for="new-portals-only-switch"><?php echo i8ln('Portal age') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noPoi) { ?>
<div class="form form-switch">
<input class="form-check-input" id="poi-switch" type="checkbox" name="poi-switch">
<label class="form-check-label" for="poi-switch"><?php echo i8ln('POI') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noS2Cells) { ?>
<div class="form form-switch">
<input class="form-check-input" id="s2-switch" type="checkbox" name="s2-switch">
<label class="form-check-label" for="s2-switch"><?php echo i8ln('Show S2 Cells') ?></label>
</div>
<div id="s2-switch-wrapper" style="display:none">
<div class="dropdown-divider"></div>
<div class="form form-switch">
<input class="form-check-input" id="s2-level13-switch" type="checkbox" name="s2-level13-switch">
<label class="form-check-label" for="s2-level13-switch"><?php echo i8ln('EX trigger Cells') ?></label>
</div>
<div class="dropdown-divider"></div>
<div class="form form-switch">
<input class="form-check-input" id="s2-level14-switch" type="checkbox" name="s2-level14-switch">
<label class="form-check-label" for="s2-level14-switch"><?php echo i8ln('Gym placement Cells') ?></label>
</div>
<div class="dropdown-divider"></div>
<div class="form form-switch">
<input class="form-check-input" id="s2-level17-switch" type="checkbox" name="s2-level17-switch">
<label class="form-check-label" for="s2-level17-switch"><?php echo i8ln('Pokéstop placement Cells') ?></label>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<?php }
if (! $noSearchLocation || ! $noNests || ! $noStartMe || ! $noStartLast || ! $noFollowMe || ! $noPokestops || ! $noSpawnPoints || ! $noRanges || ! $noWeatherOverlay || ! $noSpawnArea) { ?>
<div class="accordion-item">
<h2 class="accordion-header" id="headingItemSix">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navItemSix" aria-expanded="false" aria-controls="navItemSix">
<?php if (! $noSearchLocation) { ?>
<h5><?php echo i8ln('Location & Search') ?></h5>
<?php
} else { ?>
<h5><?php echo i8ln('Location') ?></h5>
<?php } ?>
</button>
</h2>
<div id="navItemSix" class="accordion-collapse collapse" aria-labelledby="navItemSix" data-bs-parent="#accordionNav">
<div class="accordion-body bg-light">
<div class="card">
<div class="card-body">
<?php
if (! $noWeatherOverlay) { ?>
<div class="form form-switch">
<input class="form-check-input" id="weather-switch" type="checkbox" name="weather-switch">
<label class="form-check-label" for="weather-switch"><?php echo i8ln('Weather Conditions') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noSpawnPoints) { ?>
<div class="form form-switch">
<input class="form-check-input" id="spawnpoints-switch" type="checkbox" name="spawnpoints-switch">
<label class="form-check-label" for="spawnpoints-switch"><?php echo i8ln('Spawn Points') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noRanges) { ?>
<div class="form form-switch">
<input class="form-check-input" id="ranges-switch" type="checkbox" name="ranges-switch">
<label class="form-check-label" for="ranges-switch"><?php echo i8ln('Ranges') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noScanPolygon) { ?>
<div class="form form-switch">
<input class="form-check-input" id="scan-area-switch" type="checkbox" name="scan-area-switch">
<label class="form-check-label" for="scan-area-switch"><?php echo i8ln('Scan Areas') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noSearchLocation) { ?>
<div class="form form-switch">
<input class="form-check-input" id="scan-location-switch" type="checkbox" name="scan-location-switch">
<label class="form-check-label" for="scan-location-switch"><?php echo i8ln('Real time scanner location') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noSearchLocation) { ?>
<div class="input-group mb-3" id="search-places">
<span class="input-group-text" id="next-location"><?php echo i8ln('Search location'); ?></span>
<input type="text" class="form-control" id="next-location" aria-describedby="next-location">
</div>
<ul id="search-places-results" class="search-results places-results"></ul>
<div class="dropdown-divider"></div>
<?php }
if (! $noStartMe) { ?>
<div class="form form-switch">
<input class="form-check-input" id="start-at-user-location-switch" type="checkbox" name="start-at-user-location-switch">
<label class="form-check-label" for="start-at-user-location-switch"><?php echo i8ln('Start map at my position') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noStartLast) { ?>
<div class="form form-switch">
<input class="form-check-input" id="start-at-last-location-switch" type="checkbox" name="start-at-last-location-switch">
<label class="form-check-label" for="start-at-last-location-switch"><?php echo i8ln('Start map at last position') ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noFollowMe) { ?>
<div class="form form-switch">
<input class="form-check-input" id="follow-my-location-switch" type="checkbox" name="follow-my-location-switch">
<label class="form-check-label" for="follow-my-location-switch"><?php echo i8ln('Follow me') ?></label>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<?php }
if (! $noNotifyPokemon || ! $noNotifyRarity || ! $noNotifyIv || ! $noNotifyLevel || ! $noNotifySound || ! $noNotifyRaid || ! $noNotifyBounce || ! $noNotifyNotification) { ?>
<div class="accordion-item">
<h2 class="accordion-header" id="headingItemSeven">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navItemSeven" aria-expanded="false" aria-controls="navItemSeven">
<h5><?php echo i8ln('Notification') ?></h5>
</button>
</h2>
<div id="navItemSeven" class="accordion-collapse collapse" aria-labelledby="navItemSeven" data-bs-parent="#accordionNav">
<div class="accordion-body bg-light">
<div class="card">
<div class="card-body">
<?php
if (! $noNotifyPokemon) { ?>
<div class="form-control">
<ul class="nav nav-tabs nav-fill" id="notifyPokemon" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="notify-pokemon-tab" data-bs-toggle="tab" data-bs-target="#notify-pokemon" type="button" role="tab" aria-controls="notify-pokemon" aria-selected="false"><?php echo i8ln('Notify of Pokémon') ?></button>
</li>
</ul>
<div class="tab-content" id="notifyPokemonContent">
<div class="tab-pane fade show active" id="notify-pokemon" role="tabpanel" aria-labelledby="notify-pokemon-tab">
<div class="scroll-container">
<?php pokemonFilterImages($noPokemonNumbers, '', [], 4); ?>
</div>
<div class="dropdown-divider"></div>
<a class="btn btn-secondary select-all notify-pokemon-button" href="#"><?php echo i8ln('All') ?></a>
<a class="btn btn-secondary hide-all notify-pokemon-button" href="#"><?php echo i8ln('None') ?></a>
</div>
</div>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noNotifyRarity) { ?>
<div class="form-floating">
<select class="form-select" multiple aria-label="notify-rarity" name="notify-rarity" id="notify-rarity">
<option value="Common"><?php echo i8ln('Common'); ?></option>
<option value="Uncommon"><?php echo i8ln('Uncommon'); ?></option>
<option value="Rare"><?php echo i8ln('Rare'); ?></option>
<option value="Very Rare"><?php echo i8ln('Very Rare'); ?></option>
<option value="Ultra Rare"><?php echo i8ln('Ultra Rare'); ?></option>
</select>
<label for="notify-rarity"><?php echo i8ln('Notify of Rarity'); ?></label>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noNotifyIv || ! $noNotifyLevel) { ?>
<div class="overflow-hidden">
<div class="row gx-3">
<?php
if (! $noNotifyIv) { ?>
<div class="col" >
<div class="p-1 border bg-light">
<input id="notify-perfection" type="number" min="0" max="100" name="notify-perfection"/>
<label for="notify-perfection"><?php echo i8ln('Notify of IV') ?></label>
</div>
</div>
<?php }
if (! $noNotifyLevel) { ?>
<div class="col">
<div class="p-1 border bg-light">
<input id="notify-level" type="number" min="0" max="35" name="notify-level"/>
<label for="notify-level"><?php echo i8ln('Notify of Level') ?></label>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="dropdown-divider"></div>
<?php }
if (! $noNotifyNotification) { ?>
<div class="form form-switch">
<input class="form-check-input" id="toast-switch" type="checkbox" name="toast-switch">
<label class="form-check-label" for="toast-switch"><?php echo i8ln('Notify with popup') ?></label>
</div>
<div id="toast-switch-wrapper" style="display:none">
<div class="dropdown-divider"></div>
<div class="toast-slider">
<label for="toast-delay-slider" class="form-label"><?php echo i8ln('Popup close delay') ?></label>
<input type="range" class="form-range" min="0" max="20000" step="1000" id="toast-delay-slider">
</div>
<span id="toast-delay-set"></span>
</div>