Skip to content

Commit

Permalink
small sidebar design-update
Browse files Browse the repository at this point in the history
  • Loading branch information
Shen committed May 17, 2009
1 parent bab92a9 commit 4df1ccb
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 16 deletions.
25 changes: 10 additions & 15 deletions wp-content/themes/p2/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,36 +80,31 @@
?>
<?php if (!isset($request->params['nickname'])) : ?>

<li><img width="32" height="32" style="vertical-align:middle;width:32px;height:32px;" src="<?php echo $profile->avatar; ?>" alt="<?php echo $profile->fullname; ?>"><a style="font-size:16px;margin-left:8px;" href="<?php echo $profile->profile_url; ?>"><?php echo $profile->nickname; ?></a></li>
<li><img width="32" height="32" style="vertical-align:middle;width:32px;height:32px;" src="<?php echo $profile->avatar; ?>" alt="<?php echo $profile->fullname; ?>"><a style="font-size:20px;margin-left:8px;" href="<?php echo $profile->profile_url; ?>"><?php echo $profile->nickname; ?></a></li>
<?php endif; ?>

<li>
<table border="0" cellpadding="0" cellspacing="10">
<table style="border:0; margin-left:-10px;">
<tr>
<td><h2><?php echo $count1; ?></h2></td>
<td><h2><?php echo $count2; ?></h2></td>
<td class="sidebar_subscriptions_count"><?php echo $count1; ?></td>
<td class="sidebar_subscribers_count"><?php echo $count2; ?></td>
<?php if (!isset($request->params['nickname'])) : ?>
<td><h2><?php echo $count3; ?></h2></td>
<td class="sidebar_updates_count"><?php echo $count3; ?></td>
<?php endif; ?>
</tr>
<tr>
<td><a href="<?php echo $request->url_for(array("resource"=>$profile->nickname))."/subscriptions"; ?>"><?php echo $txt['sidebar_following']; ?></a></td>
<td><a href="<?php echo $request->url_for(array("resource"=>$profile->nickname))."/subscribers"; ?>"><?php echo $txt['sidebar_followers']; ?></a></td>
<td class="sidebar_subscriptions"><a href="<?php echo $request->url_for(array("resource"=>$profile->nickname))."/subscriptions"; ?>"><?php echo $txt['sidebar_following']; ?></a></td>
<td class="sidebar_subscribers"><a href="<?php echo $request->url_for(array("resource"=>$profile->nickname))."/subscribers"; ?>"><?php echo $txt['sidebar_followers']; ?></a></td>
<?php if (!isset($request->params['nickname'])) : ?>
<td><?php echo $txt['sidebar_updates']; ?></td>
<td class="sidebar_updates"><?php echo $txt['sidebar_updates']; ?></td>
<?php endif; ?>
</tr>
</table>
</li>
<?php if (isset($request->params['nickname'])) : ?>
<li>
<table border="0">
<tr>
<td><?php echo $txt['sidebar_Updates']; ?></td>
<td>&nbsp;&nbsp;</td>
<td><h2><?php echo $count3; ?></h2></td>
</tr>
</table>
<p class="sidebar_updates_nickname"><?php echo $txt['sidebar_Updates']; ?>
<span style="float:right;"><?php echo $count3; ?></span></p>
</li>
<?php endif; ?>

Expand Down
40 changes: 39 additions & 1 deletion wp-content/themes/p2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ h2 a.rss:hover {
list-style: none;
margin-bottom: 22px;
color: #888;
font-size: 1.1em;
font-size: 1.3em;
}
#sidebar ul ul {
margin-bottom: 0px;
Expand All @@ -504,6 +504,44 @@ margin-bottom: 0px;
margin-left: 10px;
font-size: 1em;
}
#sidebar td {
font-weight:bold;
font-size:16px;
padding-left:10px
}

#sidebar td.sidebar_subscriptions_count {
font-size:1.4em;
font-weight:bold;
}
#sidebar td.sidebar_subscribers_count {
font-weight:bold;
font-size:1.4em;
padding-left:10px;
}
#sidebar td.sidebar_updates_count {
font-weight:bold;
font-size:1.4em;
padding-left:10px;
}
#sidebar td.sidebar_subscribers {
font-weight:normal;
font-size:1em;
}
#sidebar td.sidebar_subscriptions {
font-weight:normal;
font-size:1em;
padding-left:10px;
}
#sidebar td.sidebar_updates {
font-weight:normal;
font-size:1em;
padding-left:10px;
}
#sidebar p.sidebar_updates_nickname {
font-weight:bold;
font-size:1.1em;
}

#sidebar ul li#authors ul li {
margin-bottom: 0;
Expand Down

0 comments on commit 4df1ccb

Please sign in to comment.