Files
nhgooi.nl/resources/views/layouts/sidebar.blade.php
T
eric.busandClaude Opus 5.5 69bd0ba66a Semantic landmarks: header, main, aside and footer
- Mobile and desktop top bars are <header>, the footer is <footer>
  (existing elements retagged, so sticky positioning is unaffected)
- The page content is <main>; on article pages and /nieuws the content
  column is the <main> and the sidebar a top-level <aside>
- Podcast and program pages: sidebar is an <aside> (inside the page
  <main>, because their title sits above the content column)
- No visual changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:30:50 +01:00

76 lines
3.7 KiB
PHP

@extends('layouts/master')
{{-- This layout has its own <main> (content) and <aside> (sidebar) --}}
@section('page_tag', 'div')
@section('content_class')
box
@endsection
@section('page')
<div class="@yield('container_class')">
<div class="row @yield('page_class')">
<div class="col-12">
@yield('breadcrumb_top')
</div>
<main class="col-12 col-md content_container">
{{-- Pages can make this an <article> with @section('content_tag', 'article') --}}
<@yield('content_tag', 'div') class="full-width md_margin_top @yield('content_class')">
@yield('breadcrumb')
@yield('tags')
<h1 class="page_title">@yield('title')</h1>
@yield('content')
</@yield('content_tag', 'div')>
</main>
<aside aria-label="Meer van GOOI&amp;meer" class="col-12 col-md-auto sidebar">
@section('sidebar')
@if ((isset($populair) && $populair) || isset($newsItems) && $newsItems)
<div data-tabs>
<div class="tabs">
@if (isset($populair) && $populair)
<h4 data-tab-content-id="tab_most_read"
class="box_header small flex-grow-1 active"><span>Meest gelezen</span>
</h4>
@endif
@if (isset($newsItems) && $newsItems)
<h4 data-tab-content-id="tab_more_news"
class="box_header small{{!$populair? ' active' : ''}}">
<span>Meer nieuws</span></h4>
@endif
</div>
@if (isset($populair) && $populair)
<div id="tab_most_read" class="box tab_content active">
@include('partial/newslist_small', ['id' => 'items-most-read', 'news' => $populair])
<a class="btn auto_width" id="meer-nieuws-most-read" href="#"
data-loadmorenews='{"container":["#items-most-read"], "url": "/nieuws/populair?id=items-most-read"}'>
<span class="fas fa-spinner fa-spin" id="loading"></span>
Klik hier voor meer nieuws
</a>
</div>
@endif
@if (isset($newsItems) && $newsItems)
<div id="tab_more_news" class="box tab_content">
@include('partial/newslist_small', ['id' => 'items-more-news', 'news' => $newsItems])
<a class="btn auto_width" id="meer-nieuws-more-news" href="#"
data-loadmorenews='{"container":["#items-more-news"], "url": "/nieuws/more?id=items-more-news"}'>
<span class="fas fa-spinner fa-spin" id="loading"></span>
Klik hier voor meer nieuws
</a>
</div>
@endif
</div>
@endif
@include('widgets/gooienmeerradiotv', ['headerClass' => 'small'])
@include('widgets.banner_sidebar')
@include('widgets/contact', [])
@show
</aside>
</div>
</div>
@endsection