Skip to content

Commit

Permalink
images compression
Browse files Browse the repository at this point in the history
  • Loading branch information
Meng-Heng committed Aug 19, 2024
1 parent 24772ca commit 571c509
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions _includes/2020/ImageRandomizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ static function randomizer($folder) {
return str_replace($_SERVER['DOCUMENT_ROOT'], '', $img[0]);
}
}
return "";
return "Not found";
}
}


?>
7 changes: 1 addition & 6 deletions _includes/2020/templates/Foot.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,7 @@ static function render(array $fields = []) {
</div>
<div class="footer-third sil-logo">
<br>
<a href="/about/">
<img id="sil-logo"
src="<?php echo ImageRandomizer::randomizer("img/sil-logos-2024/"); ?>"
width="50%"
alt='SIL'>
</a>
<a href="/about/"><img id="sil-logo" src="<?php echo ImageRandomizer::randomizer("img/sil-logos-20242/"); ?>" width="50%" alt='SIL'></a>
<p>Created by <a href="/about/">SIL International</a></p>
</div>
</div>
Expand Down
Binary file modified cdn/dev/img/sil-logos-2024/sil-logo-abbysinica.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cdn/dev/img/sil-logos-2024/sil-logo-andika-v1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cdn/dev/img/sil-logos-2024/sil-logo-andika-v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cdn/dev/img/sil-logos-2024/sil-logo-annapurna.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cdn/dev/img/sil-logos-2024/sil-logo-tai-heritage-pro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
require_once('includes/template.php');
require_once('_includes/2020/ImageRandomizer.php');

// Required
head([
Expand Down
3 changes: 2 additions & 1 deletion windows/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
require_once('includes/template.php');

require_once __DIR__ . '/../_includes/autoload.php';

// Required
head([
'title' =>'Keyman for Windows ' . $stable_version,
Expand Down

0 comments on commit 571c509

Please sign in to comment.