Skip to content

Commit e16059b

Browse files
authored
Merge pull request #210 from FiveMods/phil
Phil
2 parents af91298 + 91fe8cc commit e16059b

File tree

5 files changed

+27
-18
lines changed

5 files changed

+27
-18
lines changed

include/header-normal.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
<div class="collapse navbar-collapse" id="navbarTogglerDemo02">
2626
<span class="navbar-nav mr-auto mt-2 mt-lg-0">
2727
<li class="nav-item mr-1">
28-
<a class="nav-link" href="/"><?php echo $lang['home']; ?></a>
28+
<a class="nav-link text-white" href="/"><?php echo $lang['home']; ?></a>
2929
</li>
3030
<li class="nav-item dropdown has-megamenu">
31-
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown"> <?php echo $lang['categories']; ?> </a>
31+
<a class="nav-link text-white dropdown-toggle" href="#" data-toggle="dropdown"> <?php echo $lang['categories']; ?> </a>
3232
<div class="dropdown-menu megamenu <?php echo $darkmode; ?>" role="menu">
3333
<div class="row">
3434
<div class="col-md-navbar">
@@ -157,7 +157,7 @@
157157
<!-- End Dropdown Menu -->
158158
</li>
159159
<div class="nav-item dropdown show">
160-
<a class="nav-link dropdown-toggle" style="color:rgba(255, 255, 255, 0.5);" href="#" id="dropdownMenuLinkCommunity" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
160+
<a class="nav-link text-white dropdown-toggle" style="color:rgba(255, 255, 255, 0.5);" href="#" id="dropdownMenuLinkCommunity" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
161161
<?php echo $lang['community']; ?>
162162
</a>
163163

@@ -185,7 +185,7 @@
185185
</div>
186186
</div> -->
187187
<div class="nav-item dropdown show">
188-
<a class="nav-link dropdown-toggle" style="color:rgba(255, 255, 255, 0.5);" href="#" id="dropdownMenuLinkFiveM" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
188+
<a class="nav-link text-white dropdown-toggle" style="color:rgba(255, 255, 255, 0.5);" href="#" id="dropdownMenuLinkFiveM" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
189189
<?php echo $lang['fivem-stuff']; ?> Links
190190
</a>
191191

index.php

+9
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,15 @@ function swapStyleSheet(sheet) {
604604
height: 100vh;
605605
width: 100vw;
606606
z-index: 99999;
607+
-ms-overflow-style: none;
608+
scrollbar-width: none;
609+
overflow: hidden;
610+
611+
}
612+
613+
#preloader::-webkit-scrollbar {
614+
display: none;
615+
overflow: hidden;
607616
}
608617
</style>
609618
</head>

pages/.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
<div class="col-md-4 d-flex align-items-stretch">
228228
<div class="card mb-4 shadow-sm rounded shadow1 <?php echo $do; ?>">
229229
<a href="/product/<?php echo $article['m_id']; ?>/">
230-
<img class="card-img-top img-fluid cover rounded" async=on src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/<?php echo explode(" ", $article['m_picture'])[0]; ?>" alt="<?php echo $article['m_name']; ?>-IMAGE">
230+
<img class="card-img-top img-fluid cover rounded" loading="lazy" src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/<?php echo explode(" ", $article['m_picture'])[0]; ?>" alt="<?php echo $article['m_name']; ?>-IMAGE">
231231

232232
</a>
233233
<div class="card-body">

pages/product.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@
7575
// Links
7676
$description = preg_replace('/(^(?!\()|\s)(https?:\/\/(?:www\.|(?!www))(youtube\.com\/watch\?v\=|youtu\.be\/))([A-Za-z0-9-_][^\s|<]{1,})/', "<iframe id=\"ytplayer\" allowFullScreen=\"allowFullScreen\" type=\"text/html\" width=\"544\" height=\"306\" src=\"https://www.youtube.com/embed/$4\"></iframe>", $description);
7777

78-
$description = preg_replace('/(^(?!\()|\s)((https?).*\.(gif|jpe?g|bmp|png))/', "<img src=https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/\"$2\" alt=\"$2\" style=\"max-width: 100%;\">", $description);
79-
$description = preg_replace('/\[img\](.+)\[\/img\]/', "<img src=https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/\"$1\" style=\"max-width: 100%;\">", $description);
80-
$description = preg_replace('/(\!\[\])\((.+)\)/', "<img src=https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/\"$2\" style=\"max-width: 100%;\">", $description);
78+
$description = preg_replace('/(^(?!\()|\s)((https?).*\.(gif|jpe?g|bmp|png))/', "<img src=https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/\"$2\" loading=lazy alt=\"$2\" style=\"max-width: 100%;\">", $description);
79+
$description = preg_replace('/\[img\](.+)\[\/img\]/', "<img src=https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/\"$1\" loading=lazy style=\"max-width: 100%;\">", $description);
80+
$description = preg_replace('/(\!\[\])\((.+)\)/', "<img src=https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/\"$2\" loading=lazy style=\"max-width: 100%;\">", $description);
8181

8282
$description = preg_replace('/\[url\](.+)\[\/url\]/', "<a href=\"/ref?rdc=$1\">$1</a>", $description);
8383
$description = preg_replace('/\[(.+)\]\((.+)\)/', "<a href=\"/ref?rdc=$2\">$1</a>", $description);
@@ -295,12 +295,12 @@
295295
</ol>
296296
<div class="carousel-inner">
297297
<div class="carousel-item active">
298-
<img src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/<?php echo $imgArray[0]; ?>" class="d-block w-100 img-fluid cover" style="width:540px;height:304px;" alt="Mod Picture">
298+
<img src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/<?php echo $imgArray[0]; ?>" loading="lazy" class="d-block w-100 img-fluid cover" style="width:540px;height:304px;" alt="Mod Picture">
299299
</div>
300300
<?php
301301
for ($i=1; $i < count($imgArray); $i++) {
302302
echo '<div class="carousel-item">
303-
<img src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $imgArray[$i] . '" class="d-block w-100 img-fluid cover" style="width:540px;height:304px;" alt="Mod Picture">
303+
<img src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $imgArray[$i] . '" loading="lazy" class="d-block w-100 img-fluid cover" style="width:540px;height:304px;" alt="Mod Picture">
304304
</div>';
305305
}
306306
?>
@@ -469,7 +469,7 @@ function getRating() {
469469
<div class="card bg-transparent text-light text-center border-0">
470470
<div class="card-body pt-3 pb-1">
471471

472-
<p class="lead pb-0 mb-1"><a href="/user/<?php echo $username; ?>"><img class="pr-3" async=on src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/<?php echo $userimg; ?>" height="32" alt="Profile Picture"></a><?php echo $lang['made-by']; ?>
472+
<p class="lead pb-0 mb-1"><a href="/user/<?php echo $username; ?>"><img class="pr-3" loading="lazy" src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/<?php echo $userimg; ?>" height="32" alt="Profile Picture"></a><?php echo $lang['made-by']; ?>
473473
<a href="/user/<?php echo $username; ?>"><?php echo $username; ?></a>.
474474
<a href="/user/<?php echo $username; ?>" class="btn btn-xs rounded btn-sm btn-light btn-rised ml-md-4">Show more </a>
475475
</p>
@@ -524,7 +524,7 @@ function getRating() {
524524
echo '<div class="col-md-4 d-flex align-items-stretch">
525525
<div class="card mb-4 shadow-sm ">
526526
<a href="/product/' . $id . '/">
527-
<img async=on class="card-img-top img-fluid rounded shadow1 cover" src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $img . '" alt="' . $img . '-Image (display)">';
527+
<img loading=lazy class="card-img-top img-fluid rounded shadow1 cover" src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $img . '" alt="' . $img . '-Image (display)">';
528528
echo '</a>
529529
<div class="card-body">
530530
<a href="/product/' . $id . '/" class="text text-dark">
@@ -546,7 +546,7 @@ function getRating() {
546546
echo '<div class="col-md-4 d-flex align-items-stretch">
547547
<div class="card mb-4 shadow-sm '.$do.'">
548548
<a href="/product/' . $id . '/">
549-
<img async=on class="card-img-top img-fluid rounded shadow1 cover" src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $img . '" alt="' . $img . '-Image (display)">
549+
<img loading=lazy class="card-img-top img-fluid rounded shadow1 cover" src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $img . '" alt="' . $img . '-Image (display)">
550550
<small class="badge badge-info ml-2" style="font-size:9px;">Paid product</small>
551551
<small class="badge badge-primary ml-2" style="font-size:9px;margin-top: 10px; margin-bottom: -10px"><i class="fas fa-tag mr-1"></i> ' . $cat . ' </small>';
552552
for ($i = 0; $i < count($tags); $i++) {
@@ -587,7 +587,7 @@ function getRating() {
587587
echo '<div class="col-md-4 d-flex align-items-stretch">
588588
<div class="card mb-4 shadow-sm">
589589
<a href="/product/' . $id . '/">
590-
<img async=on class="card-img-top img-fluid rounded shadow1 cover" src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $img . '" alt="' . $img . '-Image (display)">
590+
<img loading=lazy class="card-img-top img-fluid rounded shadow1 cover" src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $img . '" alt="' . $img . '-Image (display)">
591591
</a>
592592
<div class="card-body">
593593
<a href="/product/' . $id . '/" class="text text-dark">
@@ -607,7 +607,7 @@ function getRating() {
607607
echo '<div class="col-md-4 d-flex align-items-stretch">
608608
<div class="card mb-4 shadow-sm '.$do.'">
609609
<a href="/product/' . $id . '/">
610-
<img async=on class="card-img-top img-fluid rounded shadow1 cover" src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $img . '" alt="' . $img . '-Image (display)">
610+
<img loading=lazy class="card-img-top img-fluid rounded shadow1 cover" src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $img . '" alt="' . $img . '-Image (display)">
611611
<small class="badge badge-info ml-2" style="font-size:9px;">Paid product</small>
612612
<small class="badge badge-primary ml-2" style="font-size:9px;margin-top: 10px; margin-bottom: -10px"><i class="fas fa-tag mr-1"></i> ' . $cat . ' </small>';
613613
for ($i = 0; $i < count($tags); $i++) {
@@ -734,12 +734,12 @@ function getRating() {
734734
<div class="carousel-inner">
735735
<div class="carousel-item active">
736736
<a href="#" data-toggle="modal" data-target="#myModal">
737-
<img async=on src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/<?php echo $imgArray[0]; ?>" class="img-fluid" alt="Mod Picture">
737+
<img loading=lazy src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/<?php echo $imgArray[0]; ?>" class="img-fluid" alt="Mod Picture">
738738
</div>
739739
<?php
740740
for ($i = 1; $i < count($imgArray); $i++) {
741741
echo '<div class="carousel-item">
742-
<img async=on src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $imgArray[$i] . '" class="img-fluid" alt="Mod Picture">
742+
<img loading=lazy src="https://img-cdn.fivemods.net/unsafe/filters:format(webp):quality(95):sharpen(0.2,0.5,true)/' . $imgArray[$i] . '" class="img-fluid" alt="Mod Picture">
743743
</div>';
744744
}
745745
?>

pages/upload2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<div class="row">
3333
<div class="col-lg-5 mx-auto">
3434
35-
<div class="p-5 bg-white shadow rounded-lg"><img src="/static-assets/img/svg/upload_brand.svg" loading="lazy" alt="FiveMods upload brand" width="200" class="d-block mx-auto mb-4 rounded-pill">
35+
<div class="p-5 bg-white shadow rounded-lg"><img src="/static-assets/img/svg/brand/svg/fivemods_brand_icon_watermark_primary_1500x1500.svg" loading="lazy" alt="FiveMods upload brand" width="100px" class="d-block mx-auto mb-4 rounded-pill">
3636
3737
<h6 class="text-center mb-4 text-muted">
3838
Upload your resource here

0 commit comments

Comments
 (0)