Pagination items for joomla 2.5.

I think this endif is not needed anymore, since you got it already in line 305