I'm too busy to help you in some better way because of exams period, but at least the very few I can say:
I've been using I18N Breadcrumbs for some time and of course I added a piece of code to make it work with News Manager posts as well and those microdata - yeah, I use them too, but again in my custom implementation without any plugin - something had to be added to I18N as well.
So this is how my breadcrumbs look like
You can remove any intemscopes and itemtypes if you don't want to use them. If you want to, then you should edit I18N too like this:
frontend.class.php, lines +- 342-343
But definitely I agree that this way of adding correct microdata is a kind of dirty core hack. At least I've shown you my way for the NM breadcrumbs.
I've been using I18N Breadcrumbs for some time and of course I added a piece of code to make it work with News Manager posts as well and those microdata - yeah, I use them too, but again in my custom implementation without any plugin - something had to be added to I18N as well.
So this is how my breadcrumbs look like
Code:
<p class="breadcrumbs">
<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="<?php get_site_url(); ?>en/" itemprop="url"><span itemprop="title">Home</span></a>
</span>
<?php get_i18n_breadcrumbs(return_page_slug());
if (nm_is_single()) { ?>
» <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><strong><a href="<?php nm_post_url(); ?>" itemprop="url"><span itemprop="title"><?php nm_post_title(); ?></span></a></strong></span>
<?php } ?>
</p>
You can remove any intemscopes and itemtypes if you don't want to use them. If you want to, then you should edit I18N too like this:
frontend.class.php, lines +- 342-343
Code:
echo ' » <span class="breadcrumb"><a href="' . $url . '" title="' .
strip_quotes($title) . '" >' . $text . '</a></span>';
replace with
echo ' » <span class="breadcrumb" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="' . $url . '" title="' .
strip_quotes($title) . '" itemprop="url"><span itemprop="title">' . $text . '</span></a></span>';. $text . '</span></a></span>';
But definitely I agree that this way of adding correct microdata is a kind of dirty core hack. At least I've shown you my way for the NM breadcrumbs.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
» The little I did for GetSimple