Пример #1
0
    function vw_the_author_social_link($social_field)
    {
        $author = vw_get_current_author();
        $social_link = esc_url(get_the_author_meta($social_field, $author->ID));
        if (empty($social_link)) {
            return;
        }
        if ('vw_user_twitter' == $social_field) {
            $social_icon = 'icon-social-twitter';
            $social_label = __('Twitter', 'envirra');
        } elseif ('vw_user_facebook' == $social_field) {
            $social_icon = 'icon-social-facebook';
            $social_label = __('Facebook', 'envirra');
        } elseif ('vw_user_google' == $social_field) {
            $social_icon = 'icon-social-gplus';
            $social_label = __('Google+', 'envirra');
        } elseif ('vw_user_pinterest' == $social_field) {
            $social_icon = 'icon-social-pinterest';
            $social_label = __('Pinterest', 'envirra');
        } elseif ('vw_user_tumblr' == $social_field) {
            $social_icon = 'icon-social-tumblr';
            $social_label = __('Tumblr', 'envirra');
        } elseif ('vw_user_instagram' == $social_field) {
            $social_icon = 'icon-social-instagram';
            $social_label = __('Instagram', 'envirra');
        } elseif ('vw_user_500px' == $social_field) {
            $social_icon = 'icon-social-fivehundredpx';
            $social_label = __('500px', 'envirra');
        } elseif ('vw_user_dribbble' == $social_field) {
            $social_icon = 'icon-social-dribbble';
            $social_label = __('Dribbble', 'envirra');
        } elseif ('vw_user_flickr' == $social_field) {
            $social_icon = 'icon-social-flickr';
            $social_label = __('Flickr', 'envirra');
        } elseif ('vw_user_linkedin' == $social_field) {
            $social_icon = 'icon-social-linkedin';
            $social_label = __('Linkedin', 'envirra');
        } elseif ('vw_user_skype' == $social_field) {
            $social_icon = 'icon-social-skype';
            $social_label = __('Skype', 'envirra');
        } elseif ('vw_user_youtube' == $social_field) {
            $social_icon = 'icon-social-youtube';
            $social_label = __('Youtube', 'envirra');
        } elseif ('vw_user_vimeo' == $social_field) {
            $social_icon = 'icon-social-vimeo';
            $social_label = __('Vimeo', 'envirra');
        } elseif ('vw_user_email' == $social_field) {
            $social_icon = 'icon-social-email';
            $social_label = __('Email', 'envirra');
        }
        ?>

		<a class="url <?php 
        printf('vw-%1s', $social_icon);
        ?>
" rel="author" href="<?php 
        echo $social_link;
        ?>
" title="<?php 
        echo $social_label;
        ?>
" target="_blank">
			<i class="<?php 
        echo $social_icon;
        ?>
 icon-small"></i>
		</a>
		<?php 
    }
Пример #2
0
						<div class="vw-page-title-thumbnail"><?php 
    vw_the_author_avatar();
    ?>
</div>

						<div class="vw-page-title-box-inner">
							<span class="vw-label"><?php 
    _e('Author Archive', 'envirra');
    ?>
</span>
							<h1 class="vw-page-title"><?php 
    echo get_the_author();
    ?>
</h1>
							<?php 
    $author = vw_get_current_author();
    ?>
							<p class="vw-author-bio note"><?php 
    echo $author->user_description;
    ?>
</p>

							<div class="vw-author-socials clearfix">
								<?php 
    vw_the_author_social_links();
    ?>
							</div>
						</div>

					<?php 
} elseif (function_exists('is_shop') && is_shop()) {
Пример #3
0
 function vw_get_author_avatar($author = null)
 {
     if (!$author) {
         $author = vw_get_current_author();
     }
     return vw_get_avatar(get_the_author_meta('user_email', $author->ID), VW_CONST_AVATAR_SIZE_LARGE, '', get_the_author_meta('display_name', $author->ID));
 }