last things, webp images all aboard
This commit is contained in:
@@ -27,12 +27,12 @@
|
||||
<div style="display: none;" id="parent" class="emojis-box">
|
||||
<div data-simplebar data-simplebar-auto-hide="false" id="child" class="emojis">
|
||||
<?php
|
||||
$files = glob(public_path() . DIRECTORY_SEPARATOR . 'images/comments/*.{gif,png}', GLOB_BRACE);
|
||||
$files = glob(public_path() . DIRECTORY_SEPARATOR . 'images/comments/*.webp', GLOB_BRACE);
|
||||
$files = array_map(function ($f) { return pathinfo($f); }, $files);
|
||||
?>
|
||||
|
||||
@foreach ($files as $file)
|
||||
<a title=":{{$file['filename']}}:" href="javascript:;" onclick="formatTextEmoji ('{{$file['filename']}}');"><img class="comment_emoji_small" src="//s.w0bm.com/images/comments/{{$file['basename']}}"></a>
|
||||
<a title=":{{$file['filename']}}:" href="javascript:;" onclick="formatTextEmoji ('{{$file['filename']}}');"><img class="comment_emoji_small" src="//w0bm.com/images/comments/{{$file['basename']}}"></a>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user