|
if ($strips != "yes") { // if $news is not "yes", display nothing
} elseif (file_exists($comic_path . "/" . $todays_strip . $image_suffix)) {
?>
} else {
// new code, fix for date bug provided by Hyde (hyde@ultra-caffeinated.com)
$todays_strip = $previous;
$previous = previous_strip($todays_strip);
$next = next_strip($todays_strip);
?>
} // end of the Hyde Fix
?>
// This is the part of the script that displays your news posts from the dated
// files you put in your default news directory.
if ($news != "yes") { // if $news is not "yes", display nothing
} elseif (file_exists($news_path . "/" . $todays_strip . $news_suffix)) { // look for current news post
include $news_path . "/" . $todays_strip . $news_suffix; // if $news is "yes"
} else {
include $news_path . "/" . $previous . $news_suffix; // display previous news if no current news available
}
?>
 |
if ($previous) {
// The text following this comment will be displayed to point you to the next comic. You can
// change it to an image, or to say anything you like.
?>
} else {
// The text inside the ECHO command, after this comment, will be displayed if there is NO
// comic BEFORE the one currently on display. Feel free to change it to something else. If
// You want to include HTML instead of PHP, just delete the entire <* echo "Previous"; *>
// and put regular HTML, including images, there instead.
?>
}
?>
|
$next = next_strip($todays_strip);
if ($next) {
// The text following this comment will be displayed to point you to the next comic. You can
// change it to an image, or to say anything you like.
?>
} else {
// The text inside the ECHO command, after this comment, will be displayed if there is NO
// comic AFTER the one currently on display. Feel free to change it to something else. If
// You want to include HTML instead of PHP, just delete the entire <* echo "Next"; *>
// and put regular HTML, including images, there instead.
?>
}
?>
|
 |
|