forked from EC-CUBE/ec-cube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: EC-CUBE#6136 Organization, Websiteのマークアップを追加
- Loading branch information
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
src/Eccube/Resource/template/default/Schema/organization.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"@context": "https://schema.org", | ||
"@type": "Organization", | ||
"url": "{{url('homepage')}}", | ||
"logo": { | ||
"@type": "ImageObject", | ||
"contentUrl": "{{ asset('assets/img/common/favicon.ico', 'user_data') }}" | ||
}, | ||
"name": "{{BaseInfo.shop_name}}", | ||
"alternateName": "{{BaseInfo.shop_name_eng}}", | ||
"legalName": "{{BaseInfo.company_name}}", | ||
"description": "{{BaseInfo.message}}", | ||
"email": "{{BaseInfo.email01}}", | ||
"telephone": "+81-{{BaseInfo.phone_number}}", | ||
"address": { | ||
"@type": "PostalAddress", | ||
"streetAddress": "{{BaseInfo.addr02}}", | ||
"addressLocality": "{{BaseInfo.addr01}}", | ||
"addressCountry": "JP", | ||
"addressRegion": "{{BaseInfo.Pref.name}}", | ||
"postalCode": "{{BaseInfo.postal_code}}" | ||
}, | ||
"contactPoint": { | ||
"@type": "ContactPoint", | ||
"telephone": "+81-{{BaseInfo.phone_number}}", | ||
"email": "{{BaseInfo.email02}}", | ||
"url": "{{url('contact')}}" | ||
} | ||
{% if BaseInfo.invoice_registration_number is not null %} | ||
,"iso6523Code": "0221:{{BaseInfo.invoice_registration_number}}" | ||
{% endif %} | ||
{# | ||
,"image": "{{ asset('assets/img/common/site_image.png', 'user_data') }}", | ||
"sameAs": [ | ||
"https://twitter.com/EC_CUBE", | ||
"https://www.ec-cube.net/" | ||
], | ||
"numberOfEmployees": { | ||
"@type": "QuantitativeValue", | ||
"value": 2056 | ||
}, | ||
"foundingDate": "1970-01-01" | ||
#} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"@context" : "https://schema.org", | ||
"@type" : "WebSite", | ||
"name" : "{{BaseInfo.shop_name}}", | ||
"alternateName" : "{{BaseInfo.shop_name_eng}}", | ||
"url" : "{{url('homepage')}}", | ||
"description": "{{BaseInfo.good_traded}}", | ||
"potentialAction": { | ||
"@type": "SearchAction", | ||
"target": { | ||
"@type": "EntryPoint", | ||
"urlTemplate": "{{url('product_list')}}?name={search_term_string}" | ||
}, | ||
"query-input": "required name=search_term_string" | ||
}, | ||
"author":{{include('Schema/organization.twig')}} | ||
{# | ||
,"copyrightYear": "2024" | ||
#} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters