I just stumbled across what I assume to be a bug in the entrypaging plugin:
Code: Select all
if ($link = $this->makeLink($prevID, 'prev')) {
$links[] = '<span class="serendipity_entrypaging_left">< ' . $link . '</span>';
}
if ($link = $this->makeLink($nextID, 'next')) {
$links[] = '<span class="serendipity_entrypaging_left">' . $link . ' ></span>';
}
First of all, both links are assigned to the same class which makes it pretty much impossible to style them individually (which I'm trying to do in a new template). Second, these should be ids instead of classes in my humble opinion. Third (while I'm bitching

), it would be great if the hard coded arrows would be put into additional spans or something so they could be hidden using CSS. Same for the dividing |. This code really makes it hard to style the entrypaging.
Suggested code:
Code: Select all
<div id="serendipity_entrypaging">
<span id="serendipity_entrypaging_previous"><span id="serendipity_entrypaging_prevarrow">< </span>$link</span>
<span id="serendipity_entrypaging_divider"> | </span>
<span id="serendipity_entrypaging_next">$link<span id="serendipity_entrypaging_nextarrow"> ></span></span>
</div>
I'm aware that this is a minor plugin. I'm also aware that this code isn't exactly lean, but I'd still like to see those code changes since the code above at least a) is much more semantic and b) makes it much easier to style the entrypaging.
YL