1. Add this code between lines 104 and 106:
Code: Select all
if ($serendipity['view'] != 'entry') {
return false;
}
Since this only works when viewing an entry it should only be displayed there. An empty headline looks really stupid.
2. Change the SQL statement in line 144 to this:
Code: Select all
SELECT link, max(name) as name FROM {$serendipity['dbPrefix']}references WHERE entry_id = " . $id . " AND type = '' GROUP BY link ORDER BY id
The links are numbered in the database in the exact same order they appear in the entry. It's more logical if they get output in this order.
3. Remove all inline styles from the output (lines 146, 153, 172, 182).
Reason:
What’s the point of having external stylesheets when there are inline styles which have a higher priority? If I’m understanding right, it’s possible to add to the default stylesheet using a hook. This should be done to get the alignment right, since this can be overwritten using a later stylesheet.