Changeset 194
- Timestamp:
- 01/23/09 22:01:52 (10 months ago)
- Files:
-
- elgg/trunk/mod/forum/css (modified) (5 diffs)
- elgg/trunk/mod/forum/forum.php (modified) (5 diffs)
- elgg/trunk/mod/forum/forum_view_thread.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
elgg/trunk/mod/forum/css
r176 r194 3 3 padding: 0; 4 4 margin: 0; 5 margin-top:2em; 5 6 } 6 7 … … 10 11 font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 11 12 background:url({{url}}mod/forum/images/toolbar_nav_grey.gif) repeat-x bottom; 13 /* 12 14 border-right: solid 1px #eeeeee; 13 15 border-bottom: 0; 14 16 border-top: solid 1px #eeeeee; 15 17 border-left: solid 1px #eeeeee; 18 */ 16 19 letter-spacing: 2px; 17 20 text-transform: uppercase; … … 21 24 22 25 #forum_table th.nobg { 26 /* 23 27 border-top: 0; 24 28 border-left: 0; 25 29 border-right: dotted 0px #eeeeee; 26 30 border-bottom: dotted 1px #eeeeee; 31 */ 27 32 background: none; 28 33 } … … 34 39 35 40 #forum_table td { 41 /* 36 42 border-right: dotted 1px #eeeeee; 37 43 border-bottom: dotted 1px #eeeeee; 38 44 border-left: dotted 0px #eeeeee; 39 45 border-top: dotted 0px #eeeeee; 46 */ 40 47 padding: 6px 6px 6px 6px; 41 48 } 49 50 #forum_table tr.odd { 51 background-color:#FBF6EA; 52 } 53 54 #forum_table tr.even { 55 /*background-color:#fcfcfc;*/ 56 } 57 58 #forum_table tr.odd td { 59 border-left: 0px #F6ECD1; 60 border-right: 0px #F6ECD1; 61 border:1px dotted #DDDDDD 62 } 63 #forum_table tr.even td { 64 border-left: 0px #fff; 65 border-right: 0px #fff; 66 border:1px dotted #DDDDDD 67 } 68 42 69 43 70 #forum_table td.cent { … … 52 79 53 80 #forum_table td.usercol { 81 /* 54 82 border-left: dotted 1px #eeeeee; 55 83 border-right: dotted 1px #eeeeee; 56 84 border-bottom: dotted 1px #eeeeee; 57 85 border-top: 0; 86 */ 58 87 font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 59 88 } elgg/trunk/mod/forum/forum.php
r176 r194 38 38 $num = $num + 1; 39 39 $PAGE->menu_sub[$num]['name'] = "forum:add_discussion"; 40 $PAGE->menu_sub[$num]['html'] = "<a href=\"{$CFG->wwwroot}{$weblog}/weblog/edit\">" . __gettext("Add New Item") . "</a>";40 $PAGE->menu_sub[$num]['html'] = "<a href=\"{$CFG->wwwroot}{$weblog}/weblog/edit\">" . __gettext("Add New Topic") . "</a>"; 41 41 } 42 42 … … 91 91 <table id=\"forum_table\" cellspacing=\"0\" summary=\"Forum Table\"> 92 92 <tr> 93 <th scope=\"col\" class=\"nobg\">" . __gettext("Discussion Topic") . "</th>93 <th class=\"cent\">" . __gettext("Discussion Topic") . "</th> 94 94 <th class=\"cent\">" . __gettext("Started by") . "</th> 95 95 <th class=\"cent\">" . __gettext("Comments") . "</th> … … 101 101 102 102 103 $row_class = 'odd'; 103 104 foreach($posts as $post) { 105 if ($row_class == 'odd') { 106 $row_class = 'even'; 107 } else { 108 $row_class = 'odd'; 109 } 104 110 105 111 $time = strftime("%B %d, %Y",$post->posted); … … 139 145 140 146 $body .= " 141 142 <tr scope=\"row\"> 147 <tr scope=\"row\" class=\"$row_class\"> 143 148 <td><a href=\"" . $CFG->wwwroot . "mod/forum/" . $post->ident . ".html\" title=\"" . __gettext("View full discussion...") . "\">" . $post->title . "</a></td> 144 149 <td class=\"cent\"><a href=\"" . $CFG->wwwroot . user_info("username",$post->owner) . "/" . "\" title=\"" . __gettext("View profile...") . "\">" . user_info("name",$post->owner) . "</a></td> … … 156 161 157 162 if (run("permissions:check", "weblog")) { 158 $body .= '< a href="' . $CFG->wwwroot . $weblog . '/weblog/edit" title="' . __gettext("Add New Item") . '">' . __gettext("Add New Item") . '...</a><br><br>';159 163 $body .= '<form action="'. $CFG->wwwroot . $weblog . '/weblog/edit">'; 164 $body .= '<input type="submit" value="'.__gettext("Add New Topic").'"/></form>'; 160 165 } 161 166 elgg/trunk/mod/forum/forum_view_thread.php
r176 r194 57 57 $num = count($PAGE->menu_sub) + 1; 58 58 $PAGE->menu_sub[$num]['name'] = "forum:blogview"; 59 $PAGE->menu_sub[$num]['html'] = "<a href=\"" . $CFG->wwwroot . $weblog . "/weblog/" . $post->ident . ".html#new_weblog_comment\" title=\"" . __gettext("Add a comment...") . "\">" . __gettext(" Add new comment") . "</a>";59 $PAGE->menu_sub[$num]['html'] = "<a href=\"" . $CFG->wwwroot . $weblog . "/weblog/" . $post->ident . ".html#new_weblog_comment\" title=\"" . __gettext("Add a comment...") . "\">" . __gettext("Post Reply") . "</a>"; 60 60 } 61 61 … … 128 128 129 129 130 $body .= "</table><br><a href=\"" . $CFG->wwwroot . user_info('username',$post->weblog) . "/weblog/" . $post->ident . ".html#new_weblog_comment\" title=\"" . __gettext("Add new comment...") . "\">" . __gettext("Add new comment...") . "</a><br><br>"; 130 $body .= "</table><br>"; 131 $body .= '<form action="'. $CFG->wwwroot . $weblog . user_info('username',$post->weblog) . "/weblog/" . $post->ident . '.html#new_weblog_comment" >'; 132 $body .= '<input type="submit" value="'.__gettext("Reply Post").'"/></form>'; 131 133 } 132 134

