1
0

theme the profile profile page

This commit is contained in:
mamouneyya 2010-10-01 14:55:07 +03:00
parent 05228fd080
commit 27eced8c00
2 changed files with 67 additions and 8 deletions

View File

@ -1417,11 +1417,6 @@ div#g-action-status {
background-color: #fcf9ce !important;
}
#g-user-profile th,
#g-user-profile td {
border: 1px dotted #ccc !important;
}
/* /modules/gallery/css/l10n_client.css ~~ */
#l10n-client .labels {
@ -1445,9 +1440,52 @@ div#g-action-status {
/* User Profile ~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.g-avatar g-left {
width: 80px !important;
height: 80px !important;
#g-user-profile h1 {
color: #5A3007;
margin: 1.25em 0em 2em 4.4em;
}
#g-user-profile .g-avatar {
float: left;
position: absolute;
left: 0em;
top: 1.3em;
}
img.g-avatar.g-left {
width: 90px !important;
height: 90px !important;
}
#g-user-profile .g-block h2 {
background-color: #F5EFE6;
margin-bottom: .5em;
}
#g-user-profile .g-block-content h2 {
background-color: transparent;
margin-bottom: inherit;
}
#g-comment-detail .g-author img {
padding: .4em;
vertical-align: middle;
}
#g-comment-detail ul li {
border: .1em dotted #E8DCC8;
padding: .8em .5em;
margin-bottom: .5em;
}
.rtl #g-user-profile .g-avatar {
float: right;
right: 0em;
left: auto;
}
.rtl #g-user-profile h1 {
margin: 1.25em 4.4em 2em 0em;
}
/* Organize ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

View File

@ -0,0 +1,21 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-comment-detail">
<ul>
<? foreach ($comments as $comment): ?>
<li id="g-comment-<?= $comment->id ?>">
<p class="g-author">
<?= $comment->item()->thumb_img(array(), 65) ?>
<?= t("on %date for %title ",
array("date" => gallery::date_time($comment->created),
"title" => $comment->item()->title)); ?>
<a href="<?= $comment->item()->url() ?>">
</a>
</p>
<hr />
<div>
<?= nl2br(html::purify($comment->text)) ?>
</div>
</li>
<? endforeach ?>
</ul>
</div>