I had begin noticing some weird alignment issue with Gallery’s Ajaxian Theme. On page 2 onwards of any album, the bottom next and last button links would be shifted a bit lower than it’s desired location:
I started a thread on Gallery’s forum: ajaxian theme and mis-alignment of next/last on page 2 onwards and pointed out that the top links look okay, while the bottom didn’t. I also noted the fact that source wise, the top had them in reverse order, where it wrote out the next/last links first, before writing out the first/previous:
top:
<div class="next-and-last">...</div>
<div class="first-and-previous">...</div>
bottom:
<div class="first-and-previous">...</div>
<div class="next-and-last">...</div>
I thought maybe if I can reverse the order of those statements, this might be fixed. I decided to see if I could figure this out. Looking at the style sheet (/themes/ajaxian/theme.css), it appears this is how the blocks are defined:
.next-and-last {
float: right;
}
.next-and-last.no-previous {
float: none;
text-align: right;
}
I started playing with the .next-and-last style, but didn’t really get anywhere unless I manually set it to be shifted up x-pixels.
I then found /modules/core/templates/blocks/Navigator.tpl, which actually uses this class and it just appears to be something simple that returns first-and-previous or next-and-last block.
Then I found /themes/ajaxian/templates/album.tpl, which actually calls the Navigator.
On the top, it showed:
{g->block type="core.Navigator" navigator=$theme.navigator reverseOrder=true}
but the bottom only shows:
{g->block type="core.Navigator" navigator=$theme.navigator}
I added the reverseOrder=true to the bottom, and that fixed it.
Enjoy!