Skip to content

Commit

Permalink
Theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
lincanbin committed Nov 17, 2014
1 parent 446d139 commit 00339d9
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 55 deletions.
9 changes: 6 additions & 3 deletions styles/default/template/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@
<!--a href="<?php echo $Config['WebsitePath']; ?>/explore"<?php echo $UrlPath=='explore'?' class="buttons-active"':''; ?>>发现</a-->
<?php if($CurUserID){ ?>
<a href="<?php echo $Config['WebsitePath']; ?>/new"<?php echo $UrlPath=='new'?' class="buttons-active"':''; ?>>发新帖</a>
<a href="<?php echo $Config['WebsitePath']; ?>/settings"<?php echo $UrlPath=='settings'?' class="buttons-active"':''; ?> style="float:right;"><span class="icon icon-action-settings"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
<a href="<?php echo $Config['WebsitePath']; ?>/notifications#notifications2"<?php echo $UrlPath=='notifications'?' class="buttons-active"':''; ?> style="float:right;"><span style="position: relative;"><span class="icon icon-action-newmessages"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $CurUserInfo['NewMessage']?'<span style="color:#FFFFFF;position: absolute;left: 60%;margin-left: 1px;top: -8px;font-size: 10px;line-height: 1.4;background-color: #ff3b30;padding: 1px 5px !important;border-radius: 50%;">'.$CurUserInfo['NewMessage'].'</span>':'';?></span></a>
<a href="<?php echo $Config['WebsitePath']; ?>/tags/following"<?php echo $UrlPath=='favorite_tags'?' class="buttons-active"':''; ?>>关注的话题</a>
<a href="<?php echo $Config['WebsitePath']; ?>/users/following"<?php echo $UrlPath=='favorite_users'?' class="buttons-active"':''; ?>>关注的用户</a>

<a href="<?php echo $Config['WebsitePath']; ?>/settings"<?php echo $UrlPath=='settings'?' class="buttons-active"':''; ?> title="个人设置" style="float:right;"><span class="icon icon-action-settings"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
<a href="<?php echo $Config['WebsitePath']; ?>/notifications#notifications2"<?php echo $UrlPath=='notifications'?' class="buttons-active"':''; ?> title="站内提醒" style="float:right;"><span style="position: relative;"><span class="icon icon-action-newmessages"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $CurUserInfo['NewMessage']?'<span style="color:#FFFFFF;position: absolute;left: 60%;margin-left: 1px;top: -8px;font-size: 10px;line-height: 1.4;background-color: #ff3b30;padding: 1px 5px !important;border-radius: 50%;">'.$CurUserInfo['NewMessage'].'</span>':'';?></span></a>
<?php if($CurUserRole==5){?>
<a href="<?php echo $Config['WebsitePath']; ?>/dashboard"<?php echo $UrlPath=='dashboard'?' class="buttons-active"':''; ?> style="float:right;"><span class="icon icon-action-dashboard"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
<a href="<?php echo $Config['WebsitePath']; ?>/dashboard"<?php echo $UrlPath=='dashboard'?' class="buttons-active"':''; ?> title="系统设置" style="float:right;"><span class="icon icon-action-dashboard"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
<?php }
} ?>
</div>
Expand Down
3 changes: 2 additions & 1 deletion styles/default/template/topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<div class="c"></div>
<p><?php echo $post['Content']; ?></p>
</div>

<?php if($CurUserID){ ?>
<div class="commont-button">
<div class="float-left">
<?php if($CurUserRole>=4){ ?><a href="###" onclick="javascript:Manage(<?php echo $post['ID']; ?>, 2, 'Delete', true, this);">删除</a><?php } ?>
Expand All @@ -106,6 +106,7 @@
</div>
<div class="c"></div>
</div>
<?php } ?>
<div class="c"></div>
</div>
<div class="c"></div>
Expand Down
10 changes: 5 additions & 5 deletions styles/default/template/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
</div>
<!-- User Infomation start -->
<div class="main-box">
<div class="member-avatar"><?php echo GetAvatar($UserInfo['ID'], $UserInfo['UserName'], 'large'); ?></div>
<div class="member-avatar btn"><?php echo GetAvatar($UserInfo['ID'], $UserInfo['UserName'], 'large'); ?>
<?php
if($CurUserID){ ?>
<p></p><p></p><p><a href="###" onclick="javascript:Manage(<?php echo $UserInfo['ID']; ?>, 4, 3, false, this);"><?php echo $IsFavorite?'取消关注':'关注他'; ?></a></p>
<?php } ?></div>
<div class="member-detail">
<p>会员:<strong><?php echo $UserInfo['UserName']; ?></strong> (第<?php echo $UserInfo['ID']; ?>号会员,<?php echo FormatTime($UserInfo['UserRegTime']); ?>加入)
<?php
if($CurUserID){ ?>
<a href="###" onclick="javascript:Manage(<?php echo $UserInfo['ID']; ?>, 4, 3, false, this);"><?php echo $IsFavorite?'取消关注':'关注他'; ?></a>
<?php } ?>
</p>
<p>主贴: <?php echo $UserInfo['Topics']; ?> &nbsp;&nbsp;&nbsp; 回贴: <?php echo $UserInfo['Replies']; ?></p>
<p>网站: <a href="<?php echo $UserInfo['UserHomepage']; ?>" target="_blank" rel="nofollow"><?php echo $UserInfo['UserHomepage']; ?></a></p>
Expand Down
80 changes: 34 additions & 46 deletions styles/default/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ input.textbtn {
border: none;
background-color: #D6D7D7;
-webkit-appearance: button;
transition:background-color 0.5s ease-in-out;
cursor: pointer;
display: inline-block;
margin-bottom: 0;
Expand Down Expand Up @@ -509,7 +510,7 @@ img.avatar {
.item-content {
width:525px;
min-height:48px;
margin: 0 0 10px 10px;
margin: 0 0 7px 7px;
float:left;
}
.item-date {
Expand Down Expand Up @@ -547,26 +548,25 @@ img.avatar {
}
.item-content h2 {
font-size: 16px;
padding:0 0 5px 0;
padding:0 0 3px 0;
margin: 0;
min-height:28px;
}
.item-tags a {
display:inline;
padding:0 4px;
padding:1px 4px;
font-size:12px;
border:1px solid #C0BBB4;
float:left;
margin:0 2px;
color:#736751;
background-color:#F9F9F9;
color:#262626;
border: 1px solid #bfbfbf;
background-color:#fff;
white-space: nowrap;
transition:background-color 0.2s ease-in-out;
}
.item-tags a:hover {
border:1px solid #DAD6CB;
text-decoration:none;
color:#4F7500;
background-color:#F4FBE1;
background-color:#E5E5E5;
}
/* pagination */
.pagination {
Expand All @@ -575,50 +575,32 @@ img.avatar {
text-align:center;
}
.pagination a {
font-size:12px;
font-size:14px;
line-height:1.5em;
padding:2px 5px 2px 5px;
padding:2px 6px;
margin:0 3px;
border:1px solid #DAD6CB;
background-color: #f5f5f5;
color: #736751;
color:#262626;
border: 1px solid #bfbfbf;
background-color:#fff;
text-shadow: 0px 1px 1px #fff;
text-decoration: none;
font-weight: bold;
-moz-box-shadow: 0px 1px 2px rgba(66, 66, 77, 0.3);
}
.currentpage {
font-size:12px;
.currentpage{
font-size:14px;
line-height:1.5em;
padding:2px 5px 2px 5px;
border: 1px solid #bfbfbf;
padding:2px 6px;
margin:0 3px;
border:1px solid #DAD6CB;
background-color: #F4FBE1;
color: #4F7500;
text-shadow: 0px 1px 1px #fff;
text-decoration: none;
font-weight: bold;
-moz-box-shadow: 0px 1px 2px rgba(66, 66, 77, 0.3);
}
.pagination a:hover {
background-color: #F4FBE1;
color: #4F7500;
.pagination a:hover, .pagination a:active,.currentpage {
background-color: #E5E5E5;
text-shadow: 0px 1px 1px #fff;
text-decoration: none;
text-decoration: none;
font-weight: bold;
cursor: pointer;
-moz-box-shadow: 0px 1px 2px rgba(66, 66, 77, 0.2);
}
.pagination a:active {
background-color: #e2e2e2;
color: #333;
text-shadow: 0px 1px 1px #fff;
text-decoration: none;
text-decoration: none;
font-weight: bold;
cursor: pointer;
-moz-box-shadow: 0px 1px 2px rgba(66, 66, 77, 0.2);
transition:background-color 0.2s ease-in-out;
}
.commont-item {
border-bottom: 1px solid #EFEFEF;
Expand Down Expand Up @@ -698,24 +680,27 @@ img.avatar {
display:inline;
padding:4px 8px;
font-size:12px;
border:1px solid #C0BBB4;
float:left;
margin:0 4px 6px 0;
color:#736751;
background-color:#F9F9F9;
color:#262626;
border: 1px solid #bfbfbf;
background-color:#fff;
white-space: nowrap;
transition:background-color 0.2s ease-in-out;
}
.btn a:hover {
border:1px solid #DAD6CB;
text-decoration:none;
color:#4F7500;
background-color:#F4FBE1;
background-color:#E5E5E5;
}
.member-avatar {
float:left;
margin:10px;
width:128px;
height:128px;
height:160px;
}
.member-avatar a{
margin:0 auto;
float: none;
}
.member-avatar img{
border-radius: 4px;
Expand Down Expand Up @@ -824,6 +809,9 @@ img.avatar {
font-size: 12px !important;
color:#808080;
}
.User-Pannel li strong:hover{
color: #33b5e5;
}
/* FORM end*/
.tall {
height: 350px;
Expand Down

0 comments on commit 00339d9

Please sign in to comment.