- Timestamp:
- 02/10/09 09:35:07 (3 years ago)
- Location:
- branches/portal_by_daris
- Files:
-
- 2 modified
-
panels/recent_posts.php (modified) (2 diffs)
-
style/style.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/portal_by_daris/panels/recent_posts.php
r5 r19 37 37 if ($forum_db->num_rows($result) > 0) 38 38 { 39 40 ?> 41 <ul class="recent-posts"> 42 <?php 43 39 44 while ($cur_topic = $forum_db->fetch_assoc($result)) 40 45 { … … 45 50 $subject = (utf8_strlen($cur_topic['subject']) > $subject_len ? utf8_substr($cur_topic['subject'], 0, $subject_len).'...' : $cur_topic['subject']); 46 51 $subject = forum_htmlencode($subject); 52 $title = forum_htmlencode($cur_topic['subject']); 53 $title .= ', '.$lang_portal['By'].': '.forum_htmlencode($cur_topic['last_poster']); 54 $title .= ', '.$lang_portal['Posted'].': '.format_time($cur_topic['last_post']) 55 47 56 ?> 48 <ul class="recent-post"> 49 <li><a href="<?php echo forum_link($forum_url['post'], array($cur_topic['last_post_id'])) ?>" title="<?php echo forum_htmlencode($cur_topic['subject']) ?>"><?php echo $subject ?></a></li> 50 <li class="by"><span><?php echo $lang_portal['By'].': '.forum_htmlencode($cur_topic['last_poster']) ?></span></li> 51 <li class="posted"><span><?php echo $lang_portal['Posted'].': '.format_time($cur_topic['last_post']) ?></span></li> 52 </ul> 57 <li><a href="<?php echo forum_link($forum_url['post'], array($cur_topic['last_post_id'])) ?>" title="<?php echo $title ?>"><?php echo $subject ?></a></li> 53 58 <?php 54 59 55 60 } 61 62 ?> 63 </ul> 64 <?php 56 65 } 57 // Else there are no posts 58 else 59 { 60 echo $lang_portal['No posts']; 61 } 66 // If there are no posts do not display panel -
branches/portal_by_daris/style/style.css
r18 r19 58 58 } 59 59 60 .portal font {61 line-height: normal62 }63 64 60 #rightside .panel { 65 61 margin-right: 0px !important … … 71 67 } 72 68 73 ul.recent-post li.by, ul.recent-post li.posted { 74 font-size: 0.9em; 69 /* For Active topics panel */ 70 .panel .main-options { 71 margin-bottom: 0; 75 72 } 76 73 77 /* needed by Firefox 3*/78 .brd .frm-newform .frm-textarea textarea {79 width: 100% !important;80 }81 74 82 . news-info-right {75 .panel .news .news-info-right { 83 76 float: right; 84 77 }