PDA

View Full Version : Showing a blank when no previous image


zac
03-03-2009, 01:47 AM
Hi ,

In my template I have replaced the next and previous images with graphic links. When on the home page the next link disappears but there is no placeholder so it shifts the nav over. I want to have a blank image fill in when there is no link. Can someone please tell me how to achieve this? Right now in my lang-english.php I have this:

$lang_previous = "<img src='./../../style_images/nav/righty.gif' alt='next image' />";
$lang_next = "<img src='./../../style_images/nav/lefty.gif' alt='previous image'/>";
$lang_no_previous = "<img src='./../../style_images/nav/blanknav.gif' alt='no previous image'/>";
$lang_no_next = "<img src='./../../style_images/nav/blanknav.gif' alt='no next image'/>";