mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-02 12:17:22 +01:00
Updated block order
This commit is contained in:
parent
7aea53e0b8
commit
d4a20f8e9e
@ -72,7 +72,14 @@ The 'Heading' button will be replaced with a sub-heading, where the title define
|
||||
|
||||
<div class="d-flex flex-row flex-wrap p-3">
|
||||
|
||||
@foreach ( $LinkTypes as $lt )
|
||||
@php
|
||||
$custom_order = [1, 2, 6, 7, 3, 4, 5,];
|
||||
$sorted = $LinkTypes->sortBy(function ($item) use ($custom_order) {
|
||||
return array_search($item['id'], $custom_order);
|
||||
});
|
||||
@endphp
|
||||
|
||||
@foreach ($sorted as $lt)
|
||||
<a href="#" data-typeid='{{$lt['id']}}' data-typename='{{$lt['title']}}'' class="hvr-grow m-2 w-100 d-block doSelectLinkType">
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user