コード例 #1
0
ファイル: snippets.php プロジェクト: samoeba/ultradia
 function vce_user_social_profiles($contactmethods)
 {
     unset($contactmethods['aim']);
     unset($contactmethods['yim']);
     unset($contactmethods['jabber']);
     $social = vce_get_social();
     foreach ($social as $soc_id => $soc_name) {
         if ($soc_id) {
             $contactmethods[$soc_id] = $soc_name;
         }
     }
     return $contactmethods;
 }
コード例 #2
0
ファイル: template-authors.php プロジェクト: greg3560/plailly
        echo __vce('view_all_posts');
        ?>
</a>
						</div>
						<div class="vce-author-links">
							<?php 
        if (get_the_author_meta('url', $author->ID)) {
            ?>
 <a href="<?php 
            the_author_meta('url', $author->ID);
            ?>
" target="_blank" class="fa fa-link vce-author-website"></a><?php 
        }
        ?>
							<?php 
        $user_social = vce_get_social();
        ?>
							<?php 
        foreach ($user_social as $soc_id => $soc_name) {
            ?>
								<?php 
            if ($social_meta = get_the_author_meta($soc_id, $author->ID)) {
                ?>
									<a href="<?php 
                echo $social_meta;
                ?>
" target="_blank" class="fa fa-<?php 
                echo $soc_id;
                ?>
"></a>
								<?php 
コード例 #3
0
ファイル: snippets.php プロジェクト: greg3560/plailly
 function vce_meks_author_social_networks($user_id)
 {
     $output = '';
     if ($author_url = get_the_author_meta('url', $user_id)) {
         $output .= '<a href="' . esc_url($author_url) . '" target="_blank" class="fa fa-link"></a>';
     }
     $user_social = vce_get_social();
     foreach ($user_social as $soc_id => $soc_name) {
         if ($social_meta = get_the_author_meta($soc_id, $user_id)) {
             $output .= '<a href="' . $social_meta . '" target="_blank" class="fa fa-' . $soc_id . '"></a>';
         }
     }
     if (!empty($output)) {
         $output = '<div class="vce-author-links">' . $output . '</div>';
     }
     return $output;
 }