This repository has been archived on 2022-11-29. You can view files and clone it, but cannot push or open issues or pull requests.
socialtree-jigsaw/source/_partials/default.blade.php

22 lines
783 B
PHP

<!-- _partials/default.blade.php -->
<div class="mainContainer">
<img src="{{ 'assets/images/' . $page->imageName }}">
<h1 class="">{{ $page->author }}</h1>
<div class="linkBox">
@foreach ($page->links as $link)
@if (isset($link['text']) && isset($link['platform']))
<a href="{{$link->link}}" class="{{strtolower($link->platform)}}">
{{ strtoupper($link->text) }}
</a>
@elseif (!isset($link['text']) && isset($link['platform']))
<a href="{{$link->link}}" class="{{strtolower($link->platform)}}">
{{ strtoupper($link->platform) }}
</a>
@else
<a href="{{$link->link}}">
{{ strtoupper($link->text) }}
</a>
@endif
@endforeach
</div>
</div>