1 <td class="column round-right" id="side_base">
5 <div id="side" class="round-right">
7 <a href="profile.php"><img id="sideimg" src="<?php echo getCookie("imgurl")?>" /></a>
8 <span id="sideid"><span id="side_name"><?php echo getEncryptCookie('twitese_name')?></span><a href="#" id="profileRefresh" title="refresh your profile"><i></i></a></span>
9 <a href="profile.php"><span id="me_tweets"><span id="update_count"><?php echo getCookie('statuses_count')?></span> tweets</span></a>
11 <?php if (strrpos($_SERVER['PHP_SELF'], 'profile')) {
13 $user = $t->showUser();
15 <ul id="user_info_profile">
16 <li><span>Name</span> <?php echo $user->name ?></li>
17 <?php if ($user->location) echo "<li><span>Location</span> $user->location</li>"; ?>
18 <?php if (($user->url) and (strlen($user->url)>20)) echo '<li><span>Web</span> <a href="' .$user->url. '" target="_blank">' .substr($user->url, 0, 20). '...</a></li>'; else if (($user->url) and (strlen($user->url)<=20)) echo '<li><span>Web</span> <a href="' .$user->url. '" target="_blank">' .$user->url. '</a></li>';?>
19 <?php if ($user->description) echo "<li><span>Bio</span> ".formatText($user->description)."</li>"; ?>
24 <a href="friends.php">
25 <span class="count"><?php echo getCookie('friends_count')?></span>
26 <span class="label">following</span>
30 <a href="followers.php">
31 <span class="count"><?php echo getCookie('followers_count')?></span>
32 <span class="label">followers</span>
36 <a href="lists.php?t=2">
37 <span class="count"><?php $listed_count = getCookie('listed_count'); echo ($listed_count > 0 ? $listed_count : 0);?></span>
38 <span class="label">listed</span>
44 <DIV id='profile' class='section'>
45 <p id="sidebarTip" class='promotion round'>
49 'term' => 'Short·cuts',
50 'def' => '<em>n.</em> Use shortcuts in Embr.',
51 'more' => '<strong>Shortcuts available now:</strong><br>
59 'term' => 'User Di·rect View',
60 'def' => '<em>n.</em> Now you can view the user page of your interested more incentively.',
61 'more' => 'take @'.SITE_OWNER.' for example, you can visit his/her page via '.BASE_URL.'/'.SITE_OWNER,
64 'term' => 'Realtime Refresh',
65 'def' => '<em>v.</em> Now you can refresh your profile whenever you like!',
66 'more' => 'See the circle behind your username? Try to click it!'
69 'term' => 'Custom·Tips',
70 'def' => '<em>n.</em> Hate embr tips so much? Now you can edit me into your own tips!',
71 'more' => 'Your tips will be encrypted in your cookies all for your privacy!'
74 if(isset($_COOKIE['Tip_Title']) || isset($_COOKIE['Tip_Content']) || isset($_COOKIE['Tip_More'])){
76 'term' => getEncryptCookie('Tip_Title'),
77 'def' => getEncryptCookie('Tip_Content'),
78 'more' => getEncryptCookie('Tip_More'),
82 initSidebarTip($preset[3]);
89 <div class="clear"></div>
90 <ul id="primary_nav" class="sidebar-menu">
91 <li id="updates_tab"><a class="in-page-link" href="all.php"><span>Updates</span></a></li>
92 <li id="replies_tab"><a class="in-page-link" href="replies.php"><span>@<?php echo is_null(getEncryptCookie('twitese_name')) ? $t->screen_name : getEncryptCookie('twitese_name'); ?></span></a></li>
93 <li id="msgs_tab"><a class="in-page-link" href="message.php"><span>Direct Messages</span></a></li>
94 <li id="lists_tab"><a class="in-page-link" href="lists.php"><span>Lists</span></a></li>
95 <li id="favs_tab"><a class="in-page-link" href="favor.php"><span>Favorites</span></a></li>
96 <li id="retweets_tab"><a class="in-page-link" href="retweets.php"><span>Retweets</span></a></li>
98 <?php include ('sidepost.php') ?>
104 function initSidebarTip($entity){
105 echo '<a class="definition"><strong contenteditable="true">'.$entity['term'].'</strong><span contenteditable="true">'.$entity['def'].'</span></a><br><br><span>Click for more details.<span id="indicator">[+]</span></span><span id="sidebarTip_more"><span contenteditable="true">'.$entity['more'].'</span><br><br><a href="#" id="tip_reset" title="You will lose all customized Tips!">Reset to default</a></span>';