Refactor button display logic and add new layout file
This commit is contained in:
parent
c428bb2ef7
commit
608abc73d7
|
@ -6,8 +6,14 @@
|
|||
|
||||
@foreach($links as $link)
|
||||
@if(isset($link->custom_html) && $link->custom_html)
|
||||
@if(isset($link->ignore_container) && $link->ignore_container)
|
||||
</div></div></div>
|
||||
@endif
|
||||
@php setBlockAssetContext($link->type); @endphp
|
||||
@include('blocks::' . $link->type . '.display', ['link' => $link, 'initial' => $initial++])
|
||||
@if(isset($link->ignore_container) && $link->ignore_container)
|
||||
<div class="container"><div class="row"><div class="column">
|
||||
@endif
|
||||
@else
|
||||
@switch($link->name)
|
||||
@case('icon')
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
@include('layouts.lang')
|
||||
<head>
|
||||
@include('linkstack.modules.meta')
|
||||
|
||||
@stack('linkstack-head')
|
||||
@include('linkstack.modules.assets')
|
||||
@foreach($information as $info)
|
||||
@stack('linkstack-head-end')
|
||||
</head>
|
||||
<body>
|
||||
@stack('linkstack-body-start')
|
||||
@include('linkstack.modules.admin-bar')
|
||||
@include('linkstack.modules.share-button')
|
||||
@include('linkstack.modules.report-icon')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="column" style="margin-top: 5%">
|
||||
@include('linkstack.elements.avatar')
|
||||
@include('linkstack.elements.heading')
|
||||
@include('linkstack.elements.bio')
|
||||
@include('linkstack.elements.icons')
|
||||
@endforeach
|
||||
@yield('content')
|
||||
@include('linkstack.modules.footer')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('linkstack-body-end')
|
||||
</body>
|
||||
</html>
|
|
@ -1,31 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
@include('layouts.lang')
|
||||
<head>
|
||||
@include('linkstack.modules.meta')
|
||||
@extends('linkstack.layout')
|
||||
@section('content')
|
||||
@push('linkstack-head-end')
|
||||
@include('linkstack.modules.theme')
|
||||
@stack('linkstack-head')
|
||||
@include('linkstack.modules.assets')
|
||||
@foreach($information as $info)
|
||||
@stack('linkstack-head-end')
|
||||
</head>
|
||||
<body>
|
||||
@stack('linkstack-body-start')
|
||||
@include('linkstack.modules.admin-bar')
|
||||
@include('linkstack.modules.share-button')
|
||||
@include('linkstack.modules.report-icon')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="column" style="margin-top: 5%">
|
||||
@include('linkstack.elements.avatar')
|
||||
@include('linkstack.elements.heading')
|
||||
@include('linkstack.elements.bio')
|
||||
@include('linkstack.elements.icons')
|
||||
@endforeach
|
||||
@endpush
|
||||
@include('linkstack.elements.buttons')
|
||||
@include('linkstack.modules.footer')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('linkstack-body-end')
|
||||
</body>
|
||||
</html>
|
||||
@endsection
|
Loading…
Reference in New Issue