last things, webp images all aboard

This commit is contained in:
noxy
2019-09-02 22:06:28 +00:00
parent 4b6d5812a8
commit 08d88a0c9c
13 changed files with 36 additions and 16 deletions

View File

@@ -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>

View File

@@ -0,0 +1,16 @@
<li role="presentation" class="layoutChanger" id="layoutSwitcher">
<a data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span> Layout
</a>
<ul class="dropdown-menu">
<div class="layoutblah">
<button class="layoutbutton" id="layout1">w0bm.com</button>
<br>
<button class="layoutbutton" id="layout2">Njum</button>
<br>
<button class="layoutbutton" id="layout3">z0mb</button>
<br>
<button class="layoutbutton" id="layout4">z0mbie</button>
</div>
</ul>
</li>