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)
|
@foreach($links as $link)
|
||||||
@if(isset($link->custom_html) && $link->custom_html)
|
@if(isset($link->custom_html) && $link->custom_html)
|
||||||
@php setBlockAssetContext($link->type); @endphp
|
@if(isset($link->ignore_container) && $link->ignore_container)
|
||||||
@include('blocks::' . $link->type . '.display', ['link' => $link, 'initial' => $initial++])
|
</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
|
@else
|
||||||
@switch($link->name)
|
@switch($link->name)
|
||||||
@case('icon')
|
@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>
|
@extends('linkstack.layout')
|
||||||
@include('layouts.lang')
|
@section('content')
|
||||||
<head>
|
@push('linkstack-head-end')
|
||||||
@include('linkstack.modules.meta')
|
@include('linkstack.modules.theme')
|
||||||
@include('linkstack.modules.theme')
|
@endpush
|
||||||
@stack('linkstack-head')
|
@include('linkstack.elements.buttons')
|
||||||
@include('linkstack.modules.assets')
|
@endsection
|
||||||
@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
|
|
||||||
@include('linkstack.elements.buttons')
|
|
||||||
@include('linkstack.modules.footer')
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stack('linkstack-body-end')
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue