예제 #1
0
$wps_user = new wps_user();
?>

		<div id="primary">
			<div id="content" role="main">

<?php

			echo '<div style="float: left; width:590px;">';
			
			   echo '<div style="float:right; text-align:left;">';
			
			      if ($wps_user->get_city()) echo 'Lives in: '.$wps_user->get_city().'<br />';
			      if ($wps_user->get_country()) echo 'Country: '.$wps_user->get_country().'<br />';
			
			   echo '</div>';
			
			   echo '<div style="float:left;padding-right:20px;">'.$wps_user->get_avatar(120).'</div>';
			
			   echo '<span style="font-size:32px">'.$wps_user->get_display_name().'</span>';
			
			echo '</div>';

?>

			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
예제 #2
0
			// Show avatar
			echo $wps_user->get_avatar(204);
			
			if ($wps_user->get_id() != $current_user->ID) {

				// Friends?
				if ($wps_user->is_friend()) {
					echo 'You are friends.<br />';
				} else {
					// Pending friend?
					if ($wps_user->is_pending_friend()) {
						echo 'Friendship requested.';
						echo $wps_ui->friendship_cancel($wps_user->get_id(), 'Cancel', 'Cancelled!', 'my-submit-button');
					} else {
						// Not a friend
						echo 'Make friends with '.$wps_user->get_display_name().'...';
						echo $wps_ui->friendship_add($wps_user->get_id(), "Type a message, hit return!", "Request sent.", "my-input-box");
					}
				}
				
				// Poke(tm) button
				echo '<div style="margin-top:10px; margin-bottom:10px">'.$wps_ui->poke_button(get_option(WPS_OPTIONS_PREFIX.'_poke_label'), "my-submit-button").'</div>';
	
			}

			// Show profile information if permitted to do so
			if ($wps_user->is_permitted('personal')) { // defaults to activity permission, set to "personal" for personal info

				// Location
				if ($wps_user->get_city()) echo '<span class="my-info-label">Lives in:</span> '.$wps_user->get_city();
				if ($wps_user->get_city() && ($wps_user->get_country())) echo ', ';
예제 #3
0
 */

get_header(); 

// include the PHP class files, the path should match your server!
require_once(ABSPATH.'wp-content/plugins/wp-symposium/class.wps_user.php');
require_once(ABSPATH.'wp-content/plugins/wp-symposium/class.wps_ui.php');

$wps_user = new wps_user();
?>

		<div id="primary">
			<div id="content" role="main">

<?php

			echo $wps_user->get_avatar().'<br />';
			echo $wps_user->get_display_name().'<br />';
			echo 'User login: '******'<br />';
			echo 'Email: '.$wps_user->get_user_email().'<br />';
			echo 'City: '.$wps_user->get_city().'<br />';
			echo 'Country: '.$wps_user->get_country();

?>

			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>