Revision 1157
Added by Luisehahne about 15 years ago
add.php | ||
---|---|---|
27 | 27 |
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } |
28 | 28 |
|
29 | 29 |
$header = '<table cellpadding=\"0\" cellspacing=\"0\" class=\"loop-header\">'."\n"; |
30 |
$post_loop = '<tr class=\"post_top\">
|
|
31 |
<td class=\"post_title\"><a href=\"[LINK]\">[TITLE]</a></td>
|
|
32 |
<td class=\"post_date\">[PUBLISHED_TIME], [PUBLISHED_DATE]</td>
|
|
30 |
$post_loop = '<tr class=\"post-top\">
|
|
31 |
<td class=\"post-title\"><a href=\"[LINK]\">[TITLE]</a></td>
|
|
32 |
<td class=\"post-date\">[PUBLISHED_DATE], [PUBLISHED_TIME]</td>
|
|
33 | 33 |
</tr> |
34 | 34 |
<tr> |
35 |
<td class=\"post_short\" colspan=\"2\">
|
|
35 |
<td class=\"post-short\" colspan=\"2\">
|
|
36 | 36 |
[SHORT] |
37 | 37 |
<span style=\"visibility:[SHOW_READ_MORE];\"><a href=\"[LINK]\">[TEXT_READ_MORE]</a></span> |
38 | 38 |
</td> |
... | ... | |
67 | 67 |
<td class="comment_info">[TEXT_BY] [DISPLAY_NAME] [TEXT_ON] [DATE] [TEXT_AT] [TIME]</td> |
68 | 68 |
</tr> |
69 | 69 |
<tr> |
70 |
<td colspan="2" class="comment_text">[COMMENT]</td>
|
|
70 |
<td colspan="2" class="comment-text">[COMMENT]</td>
|
|
71 | 71 |
</tr>'); |
72 | 72 |
$comments_footer = '</table> |
73 | 73 |
<br /><a href=\"[ADD_COMMENT_URL]\">[TEXT_ADD_COMMENT]</a>'; |
... | ... | |
76 | 76 |
<br />'; |
77 | 77 |
$commenting = 'none'; |
78 | 78 |
$use_captcha = true; |
79 |
|
|
79 | 80 |
$database->query("INSERT INTO ".TABLE_PREFIX."mod_news_settings (section_id,page_id,header,post_loop,footer,post_header,post_footer,comments_header,comments_loop,comments_footer,comments_page,commenting,use_captcha) VALUES ('$section_id','$page_id','$header','$post_loop','$footer','$post_header','$post_footer','$comments_header','$comments_loop','$comments_footer','$comments_page','$commenting','$use_captcha')"); |
80 | 81 |
|
81 | 82 |
?> |
Also available in: Unified diff
Ticket #770, #785, #792, #807, #809, fixes and recoded the news module