예제 #1
0
/**
 * Echos the publisher's Google Plus URL to the header of the page, if it's defined.
 *
 * @version 1.0.0
 * @since   3.4.0
 */
function standard_google_plus()
{
    global $post;
    $html = '';
    if (standard_using_native_seo() && ((is_single() || is_page()) && 0 != strlen(trim($google_plus = get_user_meta($post->post_author, 'google_plus', true))))) {
        if (false != standard_is_gplusto_url($google_plus)) {
            $google_plus = standard_get_google_plus_from_gplus($google_plus);
        }
        // end if
        $html = '<link rel="author" href="' . trailingslashit($google_plus) . '"/>';
    }
    // end if
    echo $html;
}
예제 #2
0
                ?>
" title="<?php 
                _e('Facebook', 'standard');
                ?>
" target="_blank"><?php 
                _e('Facebook', 'standard');
                ?>
</a>
								<?php 
            }
            // end if
            ?>
								
								<?php 
            // Get the Google+ ID based on if we're using Standard's SEO or WordPress SEO
            $google_plus = standard_using_native_seo() ? trailingslashit(get_user_meta(get_the_author_meta('ID'), 'google_plus', true)) : trailingslashit(get_user_meta(get_the_author_meta('ID'), 'googleplus', true));
            ?>
								
								<?php 
            if (1 < strlen(trim($google_plus))) {
                ?>
									<a class="author-link icn-gplus" rel="author" href="<?php 
                echo $google_plus;
                ?>
" title="<?php 
                _e('Google+', 'standard');
                ?>
" target="_blank"><?php 
                _e('Google+', 'standard');
                ?>
</a>
예제 #3
0
    echo $presentation_options['fav_icon'];
    ?>
" />
			<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php 
    echo $presentation_options['fav_icon'];
    ?>
" />
		<?php 
}
// end if
?>
		<?php 
global $post;
?>
		<?php 
if (standard_using_native_seo() && ((is_single() || is_page()) && 0 != strlen(trim($google_plus = get_user_meta($post->post_author, 'google_plus', true))))) {
    ?>
			<link rel="author" href="<?php 
    echo trailingslashit($google_plus);
    ?>
posts"/>
		<?php 
}
// end if
?>
		<?php 
$global_options = get_option('standard_theme_global_options');
?>
		<?php 
if ('' != $global_options['google_analytics']) {
    ?>
예제 #4
0
/**
 * If running in native SEO mode and if the current page has a meta description, renders the description to the browser.
 *
 * @version 3.0
 * @since	3.0
 */
function standard_meta_description()
{
    // If we're using Standard's native SEO, let's do the following...
    if (standard_using_native_seo()) {
        // If we're on the homepage, we're going to use the site's description
        if (is_home()) {
            echo '<meta name="description" content="' . get_bloginfo('description') . '" />';
        }
        // end if
        // For single pages, we're setting the meta description to what the user has provided (or nothing, if it's empty
        if ((is_single() || is_page()) && '' != get_post_meta(get_the_ID(), 'standard_seo_post_meta_description', true)) {
            echo '<meta name="description" content="' . get_post_meta(get_the_ID(), 'standard_seo_post_meta_description', true) . '" />';
        }
        // end if/else
        // And if we're on the categories or any other archives, we'll be using the description if it has been provided
        if (is_archive() && '' != trim(category_description())) {
            echo '<meta name="description" content="' . trim(str_replace('</p>', '', str_replace('<p>', '', category_description()))) . '" />';
        }
        // end if
    }
    // end if
}