Browse Source

add post opener after title

master
Gitea 8 months ago
parent
commit
6d9fa09c18
2 changed files with 9 additions and 5 deletions
  1. +7
    -4
      index.php
  2. +2
    -1
      mods.txt

+ 7
- 4
index.php View File

@@ -228,9 +228,12 @@ if ($threads || @$stickies) {
) if ( //get the last post in the thread
$last = &$xml->channel->item[0]
//apply the data to the template
) $item->set (array (
//thread title and URL
'a.nnf_thread-name' => $xml->channel->title,
)
$item->set (array (
//thread title and URL
'a.nnf_thread-name' => $xml->channel->title . " (by " . $xml->channel->item[count($xml->channel->item)-1]->author . ")" ,
'a.nnf_thread-name@href' => url (PATH_URL, pathinfo ($file, PATHINFO_FILENAME)),
//number of replies
'.nnf_thread-replies' => count ($xml->channel->item) - 1,
@@ -306,4 +309,4 @@ if (CAN_POST) $template->set (array (
theme_custom ($template);
exit ($template);

?>
?>

+ 2
- 1
mods.txt View File

@@ -1 +1,2 @@
laborejo
nils
lss

Loading…
Cancel
Save