Skip to content

Commit

Permalink
Added support for Organisation structured data
Browse files Browse the repository at this point in the history
  • Loading branch information
adampmoss committed Jul 3, 2015
1 parent 81e0edc commit 75219c6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
3 changes: 3 additions & 0 deletions app/code/community/Creare/CreareSeoCore/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@
<social_schema>
<enabled>0</enabled>
</social_schema>
<address_schema>
<enabled>0</enabled>
</address_schema>
<logo_schema>
<enabled>1</enabled>
</logo_schema>
Expand Down
37 changes: 19 additions & 18 deletions app/code/community/Creare/CreareSeoCore/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -478,17 +478,28 @@
<show_in_store>1</show_in_store>
<comment>
<![CDATA[
<p>Add your business details below to include <a href="https://schema.org/LocalBusiness" target="_blank">LocalBusiness Schema</a> on your website.</p>
<p>Add your business details below to include <a href="http://schema.org/Organization" target="_blank">Organization Schema</a> on your website.</p>
]]>
</comment>
<fields>
<enabled translate="label">
<label>Enable Business Address Schema?</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</enabled>
<street_address translate="label">
<label>Street Address</label>
<frontend_type>text</frontend_type>
<sort_order>50</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<validate>required-entry</validate>
<depends><enabled>1</enabled></depends>
</street_address>
<address_locality translate="label">
<label>Address Locality</label>
Expand All @@ -497,6 +508,8 @@
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<validate>required-entry</validate>
<depends><enabled>1</enabled></depends>
</address_locality>
<region translate="label">
<label>Region</label>
Expand All @@ -505,31 +518,19 @@
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<validate>required-entry</validate>
<depends><enabled>1</enabled></depends>
</region>
<postcode translate="label">
<label>Postcode</label>
<label>Postal Code</label>
<frontend_type>text</frontend_type>
<sort_order>80</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<validate>required-entry</validate>
<depends><enabled>1</enabled></depends>
</postcode>
<fax translate="label">
<label>Fax Number</label>
<frontend_type>text</frontend_type>
<sort_order>90</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</fax>
<company_no translate="label">
<label>Company Number</label>
<frontend_type>text</frontend_type>
<sort_order>100</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</company_no>
</fields>
</address_schema>
<product_schema>
Expand Down
5 changes: 5 additions & 0 deletions app/design/frontend/base/default/layout/creareseo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<template>creareseo/logo/schema.phtml</template>
</action>
</block>
<block type="core/template" name="creareseo.business">
<action method="setTemplate" ifconfig="creareseocore/address_schema/enabled">
<template>creareseo/business/schema.phtml</template>
</action>
</block>
</reference>
</default>
<cms_index_index>
Expand Down

0 comments on commit 75219c6

Please sign in to comment.