Html fixes 24-10

Small html fixes

- Subcategory
- Edit topic/ New Topic
- code cleanup
It seems misplaced you endif on line 108, if $config->avataroncat is true then the avatar is showed. Before it was like that : 

```php
<?php if ($config->avataroncat) : ?>
<div class="span2">
<?php echo $avatar; ?>
</div>
<?php endif; ?>
```