Version Notes
First realize
Download this release
Release Info
Developer | Alex |
Extension | Magefast_MicrodataBreadcrumbs |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Magefast/MicrodataBreadcrumbs/Helper/Data.php +6 -0
- app/code/community/Magefast/MicrodataBreadcrumbs/etc/config.xml +24 -0
- app/design/frontend/default/default/layout/microdata_breadcrumbs.xml +8 -0
- app/design/frontend/default/default/template/microdata_breadcrumbs/page/html/breadcrumbs.phtml +50 -0
- app/etc/modules/Magefast_MicrodataBreadcrumbs.xml +9 -0
- package.xml +19 -0
app/code/community/Magefast/MicrodataBreadcrumbs/Helper/Data.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Magefast_MicrodataBreadcrumbs_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
}
|
app/code/community/Magefast/MicrodataBreadcrumbs/etc/config.xml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Magefast_MicrodataBreadcrumbs>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</Magefast_MicrodataBreadcrumbs>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<helpers>
|
10 |
+
<microdata_breadcrumbs>
|
11 |
+
<class>Magefast_MicrodataBreadcrumbs_Helper</class>
|
12 |
+
</microdata_breadcrumbs>
|
13 |
+
</helpers>
|
14 |
+
</global>
|
15 |
+
<frontend>
|
16 |
+
<layout>
|
17 |
+
<updates>
|
18 |
+
<microdata_breadcrumbs module="Magefast_MicrodataBreadcrumbs">
|
19 |
+
<file>microdata_breadcrumbs.xml</file>
|
20 |
+
</microdata_breadcrumbs>
|
21 |
+
</updates>
|
22 |
+
</layout>
|
23 |
+
</frontend>
|
24 |
+
</config>
|
app/design/frontend/default/default/layout/microdata_breadcrumbs.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="breadcrumbs">
|
5 |
+
<action method="setTemplate"><template>microdata_breadcrumbs/page/html/breadcrumbs.phtml</template></action>
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
+
</layout>
|
app/design/frontend/default/default/template/microdata_breadcrumbs/page/html/breadcrumbs.phtml
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if($crumbs && is_array($crumbs)): ?>
|
2 |
+
<div class="breadcrumbs">
|
3 |
+
<?php $showMarkup = true; if($showMarkup==true): ?>
|
4 |
+
<ul>
|
5 |
+
<?php $i = 0;
|
6 |
+
foreach ($crumbs as $_crumbName => $_crumbInfo):
|
7 |
+
$i++;
|
8 |
+
$showItemscope = false;
|
9 |
+
$itemscopeData = '';
|
10 |
+
if($_crumbInfo['link'] && !$_crumbInfo['last'] && $i!=1):
|
11 |
+
$showItemscope = true;
|
12 |
+
$itemscopeData = ' itemscope itemtype="http://data-vocabulary.org/Breadcrumb"';
|
13 |
+
endif;
|
14 |
+
?>
|
15 |
+
<li class="<?php echo $_crumbName ?>" <?php echo $itemscopeData; ?>>
|
16 |
+
<?php if ($_crumbInfo['link']): ?>
|
17 |
+
<a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $this->escapeHtml($_crumbInfo['title']) ?>" <?php if ($showItemscope): ?>itemprop="url"<?php endif; ?>>
|
18 |
+
<span <?php if ($showItemscope): ?>itemprop="title"<?php endif; ?>><?php echo $this->escapeHtml($_crumbInfo['label']) ?></span>
|
19 |
+
</a>
|
20 |
+
<?php elseif ($_crumbInfo['last']): ?>
|
21 |
+
<strong><?php echo $this->escapeHtml($_crumbInfo['label']) ?></strong>
|
22 |
+
<?php else: ?>
|
23 |
+
<?php echo $this->escapeHtml($_crumbInfo['label']) ?>
|
24 |
+
<?php endif; ?>
|
25 |
+
<?php if (!$_crumbInfo['last']): ?>
|
26 |
+
<span>/ </span>
|
27 |
+
<?php endif; ?>
|
28 |
+
</li>
|
29 |
+
<?php endforeach; ?>
|
30 |
+
</ul>
|
31 |
+
<?php else: ?>
|
32 |
+
<ul>
|
33 |
+
<?php foreach ($crumbs as $_crumbName => $_crumbInfo): ?>
|
34 |
+
<li class="<?php echo $_crumbName ?>">
|
35 |
+
<?php if ($_crumbInfo['link']): ?>
|
36 |
+
<a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $this->escapeHtml($_crumbInfo['title']) ?>"><?php echo $this->escapeHtml($_crumbInfo['label']) ?></a>
|
37 |
+
<?php elseif ($_crumbInfo['last']): ?>
|
38 |
+
<strong><?php echo $this->escapeHtml($_crumbInfo['label']) ?></strong>
|
39 |
+
<?php else: ?>
|
40 |
+
<?php echo $this->escapeHtml($_crumbInfo['label']) ?>
|
41 |
+
<?php endif; ?>
|
42 |
+
<?php if (!$_crumbInfo['last']): ?>
|
43 |
+
<span>/ </span>
|
44 |
+
<?php endif; ?>
|
45 |
+
</li>
|
46 |
+
<?php endforeach; ?>
|
47 |
+
</ul>
|
48 |
+
<?php endif; ?>
|
49 |
+
</div>
|
50 |
+
<?php endif; ?>
|
app/etc/modules/Magefast_MicrodataBreadcrumbs.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Magefast_MicrodataBreadcrumbs>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Magefast_MicrodataBreadcrumbs>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Magefast_MicrodataBreadcrumbs</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>AFL</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Add microdata format for Breadcrumbs on page.</summary>
|
10 |
+
<description>The extension will improve microdata format markup for Breadcrumbs. A breadcrumb trail is a set of links (breadcrumbs) that can help a user understand and navigate your site's hierarchy. This will good for your web-site in Google search result page.
|
11 |
+
</description>
|
12 |
+
<notes>First realize</notes>
|
13 |
+
<authors><author><name>Alex. [magefast.com]</name><user>alexhost</user><email>magento@magefast.com</email></author></authors>
|
14 |
+
<date>2015-04-04</date>
|
15 |
+
<time>13:17:11</time>
|
16 |
+
<contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Magefast"><dir name="MicrodataBreadcrumbs"><dir name="Helper"><file name="Data.php" hash="478ffd1be6d5a1dd267f713d649158c8"/></dir><dir name="etc"><file name="config.xml" hash="4d94d2d8c70d2666d67d98dc482fd4bd"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Magefast_MicrodataBreadcrumbs.xml" hash="e3780847fe70bc35bad1b155d5e294fb"/></dir></dir><dir name="design"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="microdata_breadcrumbs.xml" hash="60035c37a667a48dc70e98d6bc3fed0b"/></dir><dir name="template"><dir name="microdata_breadcrumbs"><dir name="page"><dir name="html"><file name="breadcrumbs.phtml" hash="e59c09cfe6152f4fa6ed73bcf4857538"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
17 |
+
<compatible/>
|
18 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
+
</package>
|