<?php /** * Micro Data Class * This class is used to provide micro data per Schema.org's spec, * to elements in the site. * */ PLS_Micro_Data::init(); class PLS_Micro_Data { public static function init() { add_filter('wp_head', array(__CLASS__, 'schema_org_head_tags')); } public static function schema_org_head_tags() { // Take meta tag designations, and apply them to the HTML elements $tags = PLS_Meta_Tags::determine_appropriate_tags(); ob_start(); ?> <!-- Schema.org Tags --> <meta itemprop="name" content="<?php echo $tags['title']; ?> "> <meta itemprop="email" content="<?php echo $tags['email']; ?> "> <meta itemprop="address" content="<?php
<a href="<?php echo esc_url(home_url('/')); ?> " title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?> " rel="home" <?php echo PLS_Micro_Data::itemprop('organization', 'url'); ?> class="option-pls-site-title"><?php bloginfo('name'); ?> </a> </h1> <h2 id="site-description" <?php echo PLS_Micro_Data::itemprop('organization', 'description'); ?> class="option-pls-site-subtitle"><?php bloginfo('description'); ?> </h2> <?php } ?> </hgroup> <?php pls_do_atomic('header'); ?>