mirror of
https://github.com/e107inc/e107.git
synced 2025-08-25 23:36:29 +02:00
Experimental schema template added to FAQs.
This commit is contained in:
@@ -34,3 +34,21 @@ $FAQS_TEMPLATE['all']['end'] = "
|
||||
$FAQS_TEMPLATE['caption'] = "{FAQ_CAPTION} <small>{FAQ_COUNT}</small>";
|
||||
|
||||
|
||||
/** @experimental */
|
||||
$FAQS_TEMPLATE['schema']['start'] = '{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "FAQPage",
|
||||
"mainEntity": [';
|
||||
|
||||
$FAQS_TEMPLATE['schema']['item'] = '{
|
||||
"@type": "Question",
|
||||
"name": "{FAQ_QUESTION}",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "{FAQ_ANSWER}"
|
||||
}
|
||||
}';
|
||||
|
||||
$FAQS_TEMPLATE['schema']['end'] = ']
|
||||
}
|
||||
';
|
||||
|
Reference in New Issue
Block a user