cabi/microformat
Composer 安装命令:
composer require cabi/microformat
包简介
Add microformats to your page.
README 文档
README
Example
fluid-template
{namespace m=HDNET\Microformat\ViewHelper}
<m:format.jsonLd showInHead="1" jsonPrettyPrint="1">
<m:microformat.event name="Tanz in den Mai" description="Tolle Tanzveranstaltung mit netten Menschen." url="http://domaine.de/tanz-in-den-mai.html" location="Festzelt auf dem Marktplatz" isAccessibleForFree="true">
<m:microformat.imageObject key="image" caption="Bild 1" url='http://domaine.de/bild1.jpg'></m:microformat.imageObject>
<m:microformat.imageObject key="image" caption="Bild 2" url='http://domaine.de/bild2.jpg'></m:microformat.imageObject>
<m:microformat.imageObject key="image" caption="Bild 3" url='http://domaine.de/bild3.jpg'></m:microformat.imageObject>
</m:microformat.event>
</m:format.jsonLd>
output in the html
<script type="application/ld+json">
{
"image": [
{
"@context": "http://schema.org",
"@type": "ImageObject",
"url": "http://domaine.de/bild1.jpg",
"caption": "Bild 1"
},
{
"@context": "http://schema.org",
"@type": "ImageObject",
"url": "http://domaine.de/bild2.jpg",
"caption": "Bild 2"
},
{
"@context": "http://schema.org",
"@type": "ImageObject",
"url": "http://domaine.de/bild3.jpg",
"caption": "Bild 3"
}
],
"@context": "http://schema.org",
"@type": "Event",
"description": "Tolle Tanzveranstaltung mit netten Menschen.",
"name": "Tanz in den Mai",
"url": "http://domaine.de/tanz-in-den-mai.html",
"isAccessibleForFree": true,
"location": "Festzelt auf dem Marktplatz"
}
</script>```
统计信息
- 总下载量: 222
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 2
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2017-02-22