Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="myveryownblog">
- <?php if ( is_user_logged_in()) : ?>
- <?php global $current_user; get_currentuserinfo(); $user_id = $current_user->ID ; $user_blogs = get_blogs_of_user( $user_id ); $key = 'primary_blog'; $single = true; $primary_blog = get_user_meta( $user_id, $key, $single); foreach ($user_blogs AS $user_blog) {$user_blog->siteurl; break;} $link = $user_blog->siteurl;$title = "My Very Own Blog"; $var = "<a href='$link' style='font-weight:normal; font-size:12px;color: #E04BF1;padding-left: 8px;' title ='My Very Own Blog'><img src='http://mydomain.dev/wp-content/themes/mytheme/images/myveryownblog.jpg' ALIGN = 'LEFT'>$title</a>";if ($primary_blog == "") {echo " ";} else {echo "$var";} ?>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement