Skip to content

Instantly share code, notes, and snippets.

@AbhishekGhosh
Created July 9, 2013 04:57
Show Gist options
  • Save AbhishekGhosh/5954819 to your computer and use it in GitHub Desktop.
Save AbhishekGhosh/5954819 to your computer and use it in GitHub Desktop.
itemprop
if(get_option('smcipwp_showcommcount')=='on'){
$showcommcount = '<meta itemprop="interactionCount" content="UserComments:'.esc_attr($thisipwp_post->comment_count).'" />';
}
if($ipwpdatemodified=='on'){
$ipwp_datemodified= '<meta itemprop="dateModified" content="'.esc_attr(apply_filters('itempropwp_article_post_modified', $thisipwp_post->post_modified)).'" />';
}
$smcipwp_author_link = get_option('smcipwp_author_link');
if($smcipwp_author_link==''){
$smcipwp_author_link = get_author_posts_url(apply_filters('itempropwp_article_post_author', $thisipwp_post->post_author));
}
$postauthoris = esc_url($smcipwp_author_link);
$ipwp_contentx = apply_filters('itempropwp_article_content_before','<span itemscope itemtype="http://schema.org/TechArticle" class="itempropwp-wrap"><meta itemprop="name" content="'.esc_attr($thisipwp_post->post_title).'"><meta itemprop="url" content="'.esc_url(get_permalink()).'">'
.$ipwp_image.'<meta itemprop="author" content="'.$postauthoris.'"><meta itemprop="description" content="'.strip_tags(str_replace(array("\r\n", "\n", "\r", "\t"), "", $ipwp_post_dsc)).'"><meta itemprop="datePublished" content="'.esc_attr($thisipwp_post->post_date).'">'
.$ipwp_datemodified
.$showcommcount.'
</span>');
if ( $done_ipwp_post ){
return $content;
}else{
$content = $content.$ipwp_contentx;
$content = apply_filters('itempropwp_article_content', $content);
$done_ipwp_post = TRUE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment