Design changes in entrypaging-Plugin
Posted: Sun Oct 23, 2005 12:25 am
Hi folks.
I really liked the entrypaging-plugin, but I disliked the fact that the two links were always shown directly centered at the page.
I modified the plugin just a bit to change this: Now the link to the previous page is shown on the left margin and the link to the next page is shown on the right margin.
If you want to have a look at the new look of the plugin, visit my (german) Blog: http://www.fabianonline.de
Attention: The changed plugin is working fine for me. I successfully tested it with Opera, Firefox and Internet Explorer. I'm quite sure there are some things to optimize... but it's working for me. But I can't guarantee that it will be working for you as well. Try it, if you want, but make a backup of the file before you change it
The file needed to change is "\plugins\serendipity_event_entrypaging\serendipity_event_entrypaging.php".
At line ~104 remove
At line ~183 replace
At line ~187 replace
At line ~192 replace
At line ~194 replace
Perhaps it's possible to add this design into the plugin via a dropdown-list or something... I'm sorry, but I don't have enough time to do this myself.
I really liked the entrypaging-plugin, but I disliked the fact that the two links were always shown directly centered at the page.
I modified the plugin just a bit to change this: Now the link to the previous page is shown on the left margin and the link to the next page is shown on the right margin.
If you want to have a look at the new look of the plugin, visit my (german) Blog: http://www.fabianonline.de
Attention: The changed plugin is working fine for me. I successfully tested it with Opera, Firefox and Internet Explorer. I'm quite sure there are some things to optimize... but it's working for me. But I can't guarantee that it will be working for you as well. Try it, if you want, but make a backup of the file before you change it
The file needed to change is "\plugins\serendipity_event_entrypaging\serendipity_event_entrypaging.php".
At line ~104 remove
Code: Select all
text-align: center;Code: Select all
$links[] = '< ' . $link;
by
$prevLink = '< ' . $link;Code: Select all
$links[] = $link . ' >';
by
$nextLink = $link . ' >';Code: Select all
echo '<div class="serendipity_entrypaging">' . $randomlink . implode(' | ', $links) . '</div>';
by
echo '<div style="float: left;">' . $prevLink . ' </div><div style="text-align: right;"> '. $nextLink . '</div>';Code: Select all
$eventData[0]['add_footer'] .= sprintf('</div><div class="serendipity_entrypaging">' . $randomlink . implode(' | ', $links) . '</div><div>');
by
$eventData[0]['add_footer'] .= sprintf('</div><div style="float: left;">' . $prevLink . ' </div><div style="text-align: right;"> '. $nextLink . '</div><div>');