Hi you all,
I'm microdating the site with the microdate schema.org and I need to insert some attributes inside the tags in order to google for indexing my pages.
What I did is:
1) Going to the Module Manager --> News Show Pro GK5 --> Options --> Article layout --> Information Block
And set --> (Info format: %DATE ; Second Info format:%AUTHOR)
2) In this file modules\mod_news_pro_gk5\tmpl\com_k2\view.php I add the microdate in this line $news_info = '<span class="source-org vcard" itemscope itemtype="http://schema.org/Person"><a itemprop="url" href="https://plus.google.com/107729283876695900158" rel="author"> <p itemprop="name" class="fn org nspInfo '.$class.'">'.$config['info'.(($num == 2) ? '2' : '').'_format'].'</p></a></span>';
What I need to do is to differentiate either the author from the date but I found that they are created jointly in this line if($config['news_content_info_pos'] != 'disabled') {
$class = 'updated nspInfo1 t'.$config['news_content_info_pos'].' f'.$config['news_content_info_float'];
}
} else {
if($config['news_content_info2_pos'] != 'disabled') {
$class = 'fn url org nspInfo2 t'.$config['news_content_info2_pos'].' f'.$config['news_content_info2_float'];
}
So I can add the class for the microformating hAtom but I can't access the tag to insert the attributes for the schema separately one from another.
Do you know some way to fix it? I thought the posibility to create a js scritp to parse the page and insert the attribute when the page is rendered but I don't know if this is a good idea.
Thanks!