Code Snip

Images 1

$images = array('kinkakuji', 'maiko', 'maiko_phone', 'monk', 'fountains', 'ryoanji', 'menu', 'basin');
  

Images 2

$images = array(
  array('file'    => 'kinkakuji',
        'caption' => 'The Golden Pavilion in Kyoto'),
  array('file'    => 'maiko',
        'caption' => 'Maiko—trainee geishas in Kyoto'),
  array('file'    => 'maiko_phone',
        'caption' => 'Every maiko should have one—a mobile, of course'),
  array('file'    => 'monk',
        'caption' => 'Monk begging for alms in Kyoto'),
  array('file'    => 'fountains',
        'caption' => 'Fountains in central Tokyo'),
  array('file'    => 'ryoanji',
        'caption' => 'Autumn leaves at Ryoanji temple, Kyoto'),
  array('file'    => 'menu',
        'caption' => 'Menu outside restaurant in Pontocho, Kyoto'),
  array('file'    => 'basin',
        'caption' => 'Water basin at Ryoanji temple, Kyoto')
  );
  

Title

$title = basename($_SERVER['SCRIPT_NAME'], '.php');
<?php if (isset($title)) {echo "&#8212;{$title}";} ?>
  

Menu

 <?php if ($currentPage == 'index.php') {echo 'id="here"';} ?>