Skip to content

Commit

Permalink
Add microdata #1
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jan 1, 2025
1 parent b30e1b9 commit 2faf0d4
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions src/Module/Front/Faq/views/faq-list.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php
declare(strict_types=1);
namespace App\View;
/**
* Global variables
* --------------------------------------------------------------
Expand All @@ -12,40 +16,50 @@
* @var $lang LangService The language translation service.
*/
declare(strict_types=1);
use Lyrasoft\Faq\Entity\Faq;
use Windwalker\Core\Application\AppContext;
use Windwalker\Core\Asset\AssetService;
use Windwalker\Core\DateTime\ChronosService;
use Windwalker\Core\Language\LangService;
use Windwalker\Core\Router\Navigator;
use Windwalker\Core\Router\SystemUri;
/**
* @var $item Faq
*/
?>

@extends('global.body')

@section('content')
<div class="l-faq-list">
<div class="l-faq-list" itemscope itemtype="https://schema.org/FAQPage">
<form action="{{ $nav->to('faq_list') }}" method="GET" enctype="multipart/form-data">
<div class="container">
<div class="d-flex justify-content-end">
<div class="input-group">
<input type="text" name="search[*]" value="{{ $search['*'] }}" class="form-control" placeholder="請輸入關鍵字" />
<input type="text" name="search[*]" value="{{ $search['*'] }}" class="form-control"
placeholder="請輸入關鍵字" />
</div>
</div>
<div class="accordion my-4" id="faq-accordion">
@foreach($items as $i => $item)
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faq-collapse-{{ $i }}">
{{ $item->title }}
<div class="accordion-item"
itemscope itemprop="mainEntity"
itemtype="https://schema.org/Question"
>
<div class="accordion-header" itemprop="name">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#faq-collapse-{{ $i }}">
{{ $item->getTitle() }}
</button>
</div>

<div id="faq-collapse-{{ $i }}" class="accordion-collapse collapse" data-bs-parent="#faq-accordion">
<div class="accordion-body">
{!! $item->description !!}
<div id="faq-collapse-{{ $i }}" class="accordion-collapse collapse"
data-bs-parent="#faq-accordion">
<div class="accordion-body"
itemscope itemprop="acceptedAnswer"
itemtype="https://schema.org/Answer">
{!! $item->getDescription() !!}
</div>
</div>
</div>
Expand Down

0 comments on commit 2faf0d4

Please sign in to comment.