true ); $sectors = perch_content_custom('Sectors', $opts, true); $has_sectors = count($sectors); $the_sector = false; if( isset($_GET['s']) ) { $s = $_GET['s']; foreach( $sectors as $sector ) { if( $sector['slug'] == $s ) { $the_sector = $sector; break; } } } // Sector in GET does not exist, default to first sector if available if( !$sector && $has_sectors ) { $the_sector = $sectors[0]; } //echo '
'.print_r($sectors, true).'
'; ?> JAC Interiors - Sectors & Clients - <?php echo $the_sector['name'] ?>
Have a look at who we've been working with.

'; } ?>
$val) { $output[] = '
    '; foreach( $val as $client ) { $output[] = '
  • '.$client.'
  • '; } $output[] = '
'; } } else { $output[] = '

Sorry, no clients can be found.

'; } echo implode("\r\n", $output); ?>