Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Commit b884ec4

Browse files
committed
Update backend view and home page
1 parent 5c4061a commit b884ec4

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

resources/views/vendor/core/admin/master.blade.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88
<meta name="csrf-token" content="{{ csrf_token() }}">
99
<meta name="api-token" content="{{ auth()->user()->api_token ?? '' }}">
10-
1110
<title>@yield('title') – Console {{ config('typicms.'.config('typicms.admin_locale').'.website_title') }}</title>
12-
1311
@stack('css')
14-
12+
<!-- Favicon -->
13+
<link rel="apple-touch-icon" href="{{ asset('img/favicons/apple-touch-icon.png') }}" sizes="180x180">
14+
<link rel="icon" type="image/png" href="{{ asset('img/favicons/favicon-32x32.png') }}" sizes="32x32">
15+
<link rel="icon" type="image/png" href="{{ asset('img/favicons/favicon-16x16.png') }}" sizes="16x16">
16+
<link rel="manifest" href="{{ asset('img/favicons/site.webmanifest') }}">
17+
<link rel="mask-icon" href="{{ asset('img/favicons/safari-pinned-tab.svg') }}" color="#00795d">
18+
<meta name="theme-color" content="#fff">
19+
<meta name="mobile-web-app-capable" content="yes">
1520
<link href="{{ App::environment('production') ? mix('/css/admin.css') : asset('/css/admin.css') }}" rel="stylesheet">
1621

1722
</head>

resources/views/vendor/pages/public/home.blade.php

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,18 @@
2525
<a href="#" class="block__link">@lang('db.All tutorials')</a>
2626
</header>
2727
<div class="last-posts">
28-
28+
@if ($latestTutorials = Tutorials::latest(6) and $latestTutorials->count() > 0)
29+
@foreach($latestTutorials as $tutorial)
30+
<article class="last_post" itemscope itemtype="http://schema.org/Article">
31+
<time class="last-post__date">{{ $tutorial->created_at->format('M d, Y') }}</time>
32+
<h6 class="last-post__title"><a href="{{ $tutorial->uri() }}">{{ $tutorial->title }}</a></h6>
33+
<p class="last-post__summary">
34+
{{ str_limit($tutorial->summary, 60) }}
35+
</p>
36+
<strong class="last-post__author text-primary"><span>{{ __('by') }}</span> {{ $tutorial->user->getFullName() }}</strong>
37+
</article>
38+
@endforeach
39+
@endif
2940
</div>
3041
</div>
3142
<div class="next-event">
@@ -101,16 +112,6 @@
101112

102113
@include('pages::public.partials.sponsors')
103114

104-
{{--
105-
@if ($latestNews = News::latest(3) and $latestNews->count() > 0)
106-
<div class="news-container">
107-
<h3><a href="{{ Route::has($lang.'::index-news') ? route($lang.'::index-news') : '/' }}">@lang('db.Latest news')</a></h3>
108-
@include('news::public._list', ['items' => $latestNews])
109-
<a href="{{ Route::has($lang.'::index-news') ? route($lang.'::index-news') : '/' }}" class="btn btn-light btn-xs">@lang('db.All news')</a>
110-
</div>
111-
@endif
112-
--}}
113-
114115
@if ($upcomingEvents = Events::upcoming() and $upcomingEvents->count() > 0)
115116
<section class="events">
116117
<div class="container">

0 commit comments

Comments
 (0)