Use a global variable for whether the banner images are being shown.
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
// Dynamic testing of whether new images around the banner is wanted.
|
// Dynamic testing of whether new images around the banner is wanted.
|
||||||
$show_pics = true;
|
if (!isset($GLOBALS["SHOW_BANNER_PICS"])) {
|
||||||
|
$GLOBALS["SHOW_BANNER_PICS"] = true;
|
||||||
|
}
|
||||||
|
$show_pics = $GLOBALS["SHOW_BANNER_PICS"];
|
||||||
$banner_width = $show_pics ? 6 : 12;
|
$banner_width = $show_pics ? 6 : 12;
|
||||||
?>
|
?>
|
||||||
<a href='/about/'>
|
<a href='/about/'>
|
||||||
|
Reference in New Issue
Block a user