1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 20:21:51 +02:00

preparing for overall template/markup cleanup, reline decorated (JS) user list

This commit is contained in:
secretr 2008-11-21 16:40:48 +00:00
parent da8d98c3c8
commit 5c99758db5
3 changed files with 55 additions and 45 deletions

View File

@ -10,14 +10,14 @@
.left { text-align: left }
.right { text-align: right }
.center { text-align: center }
.leftF { float: left }
.rightF { float: right }
.f-left { float: left }
.f-right { float: right }
.top { vertical-align: top }
.middle { vertical-align: middle }
.bottom { vertical-align: bottom }
.clear { clear: both }
.clearL { clear: right }
.clearR { clear: left }
.clear-l { clear: right }
.clear-r { clear: left }
/* Core Icons */
.icon { border: 0 }
@ -31,30 +31,32 @@
.odd { }
.even { background-color: #F5F5F5 }
.first, .last { }
.e-list { /* core selector - can be used per theme (JS) to decorate list blocks */ }
/* e107 Tabs - see core/tabs.js */
ul.e-tabs { list-style-type: none; }
ul.e-tabs li { display: inline; margin: 0px; border: 0 none; background-color: transparent; }
ul.e-tabs li a { text-decoration: none; padding: 5px; }
ul.e-tabs li a:link,
ul.e-tabs li a:visited { border: 1px solid #C0C0C0; }
ul.e-tabs li a:hover,
ul.e-tabs li.active a:link,
ul.e-tabs li.active a:visited { background-color: #EEEEEE; border: 1px solid #808080; }
/* Page Loading Status default style */
#loading-mask { color: #556B2F; font-size: 1.2em; font-weight:bold; position:absolute; text-align: center; padding: 0; margin: 0; }
#loading-mask { color: #556B2F; font-size: 1.2em; font-weight:bold; position:absolute; text-align: center; padding: 0; margin: 0; background-color: transparent; }
#loading-mask .loader { position: fixed; top: 40%; left: 50%; width: 200px; text-align: center; background: #F0F9E3 none repeat scroll 0 0; border: 2px solid #556B2F; font-weight: bold; padding: 10px 5px; margin-left: -100px; margin-top: 0; }
#loading-mask img { margin: 10px auto; }
/* Element Loading Status default style */
.element-loading-mask { background-repeat: no-repeat; background-position: 50% 50%; background-color: #f5f5f5; }
/* Debug Console - this will be moved to debug.css */
#e-debug-console-cont { position: fixed; top: 0px; left: 5px; margin: 0px; padding: 0px; width: 600px; border: 1px solid #c0c0c0; background-color: white; color: black }
#e-debug-console-cont { position: fixed; top: 0px; left: 5px; margin: 0px; padding: 0px; width: 600px; border: 1px solid #c0c0c0; background-color: white; color: black; }
#e-debug-console { padding: 10px; margin: 0px; height: 100px; overflow: auto; text-align: left; }
#e-debug-console div div { padding: 5px }
#e-debug-console-controls { text-align: left; padding: 5px; border-top: 1px solid #c0c0c0; background-color: #fff; line-height: 0 }
#e-debug-console div div { padding: 5px; }
#e-debug-console-controls { text-align: left; padding: 5px; border-top: 1px solid #c0c0c0; background-color: #fff; line-height: 0; }
#e-debug-console-controls a { text-decoration: none; color: #000; background-color: #f5f5f5; border: 1px solid #f0f0f0; padding: 5px; margin: 2px 5px; }
#e-debug-console-input { width: 480px; border: 1px solid #f5f5f5; }
#e-debug-console .console-output { border-bottom: 1px solid #f5f5f5; padding: 5px }

View File

@ -83,7 +83,7 @@ table {
.forumheader, .forumheader2, .forumheader3, .forumheader4, .fcaption, .finfobar {
padding: 5px;
background-color: #fff;
/* background-color: #fff; - inherited from body */
border-bottom: 1px solid #bbb;
}

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_themes/templates/user_template.php,v $
| $Revision: 1.5 $
| $Date: 2008-01-06 21:26:32 $
| $Author: e107steved $
| $Revision: 1.6 $
| $Date: 2008-11-21 16:40:48 $
| $Author: secretr $
+----------------------------------------------------------------------------+
*/
@ -24,7 +24,7 @@ global $user_shortcodes, $pref, $user;
//Set this to TRUE if you would like any extended user field that is empty to NOT be shown on the profile page
define("HIDE_EMPTY_FIELDS", FALSE);
$EXTENDED_CATEGORY_START = "<tr><td colspan='2' class='forumheader' style='text-align:left'>{EXTENDED_NAME}</td></tr>";
$EXTENDED_CATEGORY_START = "<tr><td colspan='2' class='forumheader center'>{EXTENDED_NAME}</td></tr>";
$EXTENDED_CATEGORY_TABLE = "
<tr>
@ -38,9 +38,12 @@ $EXTENDED_CATEGORY_TABLE = "
$EXTENDED_CATEGORY_END = "";
/**
* Preparing for huge markup/css changes
*/
$USER_SHORT_TEMPLATE_START = "
<div style='text-align:center'>".LAN_138." {TOTAL_USERS}
<div class='content user-list'>
<div class='center'>".LAN_138." {TOTAL_USERS}
<br />
<br />
{USER_FORM_START}
@ -51,41 +54,46 @@ $USER_SHORT_TEMPLATE_START = "
</div>
<br />
<br />
<table style='".USER_WIDTH."' class='fborder'>
<table style='".USER_WIDTH."' class='fborder e-list'>
<thead>
<tr>
<td class='fcaption' style='width:2%'>&nbsp;</td>
<td class='fcaption' style='width:20%'>".LAN_142."</td>
<td class='fcaption' style='width:20%'>".LAN_112."</td>
<td class='fcaption' style='width:20%'>".LAN_145."</td>
</tr>
</thead>
<tbody>
";
$USER_SHORT_TEMPLATE_END = "
</tbody>
</table>
</div>
";
$USER_SHORT_TEMPLATE = "
<tr>
<td class='forumheader3' style='width:2%'>{USER_ICON_LINK}</td>
<td class='forumheader' style='width:20%'>{USER_ID}: {USER_NAME_LINK}</td>
<td class='forumheader3' style='width:20%'>{USER_ID}: {USER_NAME_LINK}</td>
<td class='forumheader3' style='width:20%'>{USER_EMAIL}</td>
<td class='forumheader3' style='width:20%'>{USER_JOIN}</td>
</tr>
";
$sc_style['USER_SIGNATURE']['pre'] = "<tr><td colspan='2' class='forumheader3' style='text-align:left'>";
$sc_style['USER_SIGNATURE']['pre'] = "<tr><td colspan='2' class='forumheader3 left'>";
$sc_style['USER_SIGNATURE']['post'] = "</td></tr>";
$sc_style['USER_COMMENTS_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3' style='text-align:left'>";
$sc_style['USER_COMMENTS_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3 left'>";
$sc_style['USER_COMMENTS_LINK']['post'] = "</td></tr>";
$sc_style['USER_FORUM_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3' style='text-align:left'>";
$sc_style['USER_FORUM_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3 left'>";
$sc_style['USER_FORUM_LINK']['post'] = "</td></tr>";
$sc_style['USER_UPDATE_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3' style='text-align:center'>";
$sc_style['USER_UPDATE_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3 center'>";
$sc_style['USER_UPDATE_LINK']['post'] = "</td></tr>";
$sc_style['USER_RATING']['pre'] = "<tr><td colspan='2' style='width:100%' class='forumheader3'><span style='float:left'>".LAN_406."</span></span><span style='float:right;'>";
$sc_style['USER_RATING']['post'] = "</span></td></tr>";
$sc_style['USER_RATING']['pre'] = "<tr><td colspan='2' class='forumheader3'><div class='f-left'>".LAN_406."</div><div class='f-right'>";
$sc_style['USER_RATING']['post'] = "</div></td></tr>";
$sc_style['USER_LOGINNAME']['pre'] = " : ";
@ -102,49 +110,49 @@ else
$main_colspan = " colspan = '2' ";
}
$sc_style['USER_SENDPM']['pre'] = "<tr><td colspan='2' style='width:100%' class='forumheader3'><span style='float:left'>";
$sc_style['USER_SENDPM']['post'] = "</span><span style='float:right;'>".LAN_425."</span></td></tr>";
$sc_style['USER_SENDPM']['pre'] = "<tr><td colspan='2' class='forumheader3'><div class='f-left'>";
$sc_style['USER_SENDPM']['post'] = "</div><div class='f-right'>".LAN_425."</div></td></tr>";
// Determine which other bits are installed; let photo span those rows (can't do signature - will vary with user)
$span = 4;
if ($tp->parseTemplate("{USER_SENDPM}", FALSE, $user_shortcodes)) $span++;
$span = " rowspan='".$span."' ";
$sc_style['USER_PICTURE']['pre']="<td {$span} class='forumheader3' style='width:20%; vertical-align:middle; text-align:center'>";
$sc_style['USER_PICTURE']['pre']="<td {$span} class='forumheader3 center middle' style='width:20%'>";
$sc_style['USER_PICTURE']['post']="</td>";
$USER_FULL_TEMPLATE = "
<div style='text-align:center'>
<div class='content user'>
<table style='".USER_WIDTH."' class='fborder'>
<tr>
<td colspan='2' class='fcaption' style='text-align:center'>".LAN_142." {USER_ID} : {USER_NAME}{USER_LOGINNAME}</td>
<td colspan='2' class='fcaption center'>".LAN_142." {USER_ID} : {USER_NAME}{USER_LOGINNAME}</td>
</tr>
<tr>
{$user_picture}
<td {$main_colspan} class='forumheader3' style='width:100%'>
<span style='float:left'>{USER_REALNAME_ICON} ".LAN_308."</span>
<span style='float:right; text-align:right'>{USER_REALNAME}</span>
<td {$main_colspan} class='forumheader3'>
<div class='f-left'>{USER_REALNAME_ICON} ".LAN_308."</div>
<div class='f-right right'>{USER_REALNAME}</div>
</td>
</tr>
<tr>
<td {$main_colspan} style='width:100%' class='forumheader3'>
<span style='float:left'>{USER_EMAIL_ICON} ".LAN_112."</span>
<span style='float:right; text-align:right'>{USER_EMAIL_LINK}</span>
<td {$main_colspan} class='forumheader3'>
<div class='f-left'>{USER_EMAIL_ICON} ".LAN_112."</div>
<div class='f-right right'>{USER_EMAIL_LINK}</div>
</td>
</tr>
<tr>
<td {$main_colspan} style='width:100%' class='forumheader3'>
<span style='float:left'>".LAN_406.":</span>
<span style='float:right; text-align:right'>{USER_LEVEL}</span>
<td {$main_colspan} class='forumheader3'>
<div class='f-left'>".LAN_406.":</div>
<div class='f-right right'>{USER_LEVEL}</div>
</td>
</tr>
<tr>
<td {$main_colspan} style='width:100%' class='forumheader3'>
<span style='float:left'>".LAN_404.":&nbsp;&nbsp;</span>
<span style='float:right; text-align:right'>{USER_LASTVISIT}<br />{USER_LASTVISIT_LAPSE}</span>
<td {$main_colspan} class='forumheader3'>
<div class='f-left'>".LAN_404.":&nbsp;&nbsp;</div>
<div class='f-right right'>{USER_LASTVISIT}<br />{USER_LASTVISIT_LAPSE}</div>
</td>
</tr>
{USER_SENDPM}
@ -183,11 +191,11 @@ $USER_FULL_TEMPLATE = "
{USER_EMBED_USERPROFILE}
{USER_UPDATE_LINK}
<tr>
<td colspan='2' class='forumheader3' style='text-align:center'>
<td colspan='2' class='forumheader3 center'>
<table style='width:95%'>
<tr>
<td style='width:50%'>{USER_JUMP_LINK=prev}</td>
<td style='width:50%; text-align:right'>{USER_JUMP_LINK=next}</td>
<td class='right' style='width:50%;'>{USER_JUMP_LINK=next}</td>
</tr>
</table>
</td>