75
75
// Links
76
76
$ 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 );
77
77
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 );
81
81
82
82
$ description = preg_replace ('/\[url\](.+)\[\/url\]/ ' , "<a href= \"/ref?rdc=$1 \">$1</a> " , $ description );
83
83
$ description = preg_replace ('/\[(.+)\]\((.+)\)/ ' , "<a href= \"/ref?rdc=$2 \">$1</a> " , $ description );
295
295
</ol>
296
296
<div class="carousel-inner">
297
297
<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">
299
299
</div>
300
300
<?php
301
301
for ($ i =1 ; $ i < count ($ imgArray ); $ i ++) {
302
302
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">
304
304
</div> ' ;
305
305
}
306
306
?>
@@ -469,7 +469,7 @@ function getRating() {
469
469
<div class="card bg-transparent text-light text-center border-0">
470
470
<div class="card-body pt-3 pb-1">
471
471
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 ' ]; ?>
473
473
<a href="/user/<?php echo $ username ; ?> "><?php echo $ username ; ?> </a>.
474
474
<a href="/user/<?php echo $ username ; ?> " class="btn btn-xs rounded btn-sm btn-light btn-rised ml-md-4">Show more </a>
475
475
</p>
@@ -524,7 +524,7 @@ function getRating() {
524
524
echo '<div class="col-md-4 d-flex align-items-stretch">
525
525
<div class="card mb-4 shadow-sm ">
526
526
<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)"> ' ;
528
528
echo '</a>
529
529
<div class="card-body">
530
530
<a href="/product/ ' . $ id . '/" class="text text-dark">
@@ -546,7 +546,7 @@ function getRating() {
546
546
echo '<div class="col-md-4 d-flex align-items-stretch">
547
547
<div class="card mb-4 shadow-sm ' .$ do .'">
548
548
<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)">
550
550
<small class="badge badge-info ml-2" style="font-size:9px;">Paid product</small>
551
551
<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> ' ;
552
552
for ($ i = 0 ; $ i < count ($ tags ); $ i ++) {
@@ -587,7 +587,7 @@ function getRating() {
587
587
echo '<div class="col-md-4 d-flex align-items-stretch">
588
588
<div class="card mb-4 shadow-sm">
589
589
<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)">
591
591
</a>
592
592
<div class="card-body">
593
593
<a href="/product/ ' . $ id . '/" class="text text-dark">
@@ -607,7 +607,7 @@ function getRating() {
607
607
echo '<div class="col-md-4 d-flex align-items-stretch">
608
608
<div class="card mb-4 shadow-sm ' .$ do .'">
609
609
<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)">
611
611
<small class="badge badge-info ml-2" style="font-size:9px;">Paid product</small>
612
612
<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> ' ;
613
613
for ($ i = 0 ; $ i < count ($ tags ); $ i ++) {
@@ -734,12 +734,12 @@ function getRating() {
734
734
<div class="carousel-inner">
735
735
<div class="carousel-item active">
736
736
<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">
738
738
</div>
739
739
<?php
740
740
for ($ i = 1 ; $ i < count ($ imgArray ); $ i ++) {
741
741
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">
743
743
</div> ' ;
744
744
}
745
745
?>
0 commit comments