Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.30 KB | None | 0 0
  1. switch ($input['page']) {
  2.  
  3.     case 'achievements':
  4.    
  5.     $content_stylesheet = $stylesheets[$input['section']];
  6.     $content = 'content_pages/'. $input['section'] .'/achievements.php';
  7.     $page_title = $titles[$input['section']];
  8.     $teaser_img = $teasers[$input['section']];
  9.  
  10.     break;
  11.  
  12.     case 'references':
  13.  
  14.     $content_stylesheet = $stylesheets[$input['section']];
  15.     $content = 'content_pages/'. $input['section'] .'/references.php';
  16.     $page_title = $titles[$input['section']];
  17.     $teaser_img = $teasers[$input['section']];
  18.     $references = true;
  19.  
  20.     break;
  21.  
  22.     case 'partners':
  23.  
  24.     $content_stylesheet = $stylesheets[$input['section']];
  25.     $content = 'content_pages/'. $input['section'] .'/partners.php';
  26.     $page_title = $titles[$input['section']];
  27.     $teaser_img = $teasers[$input['section']];
  28.  
  29.     break;
  30.  
  31.     case 'contact':
  32.  
  33.     $content_stylesheet = $stylesheets[$input['section']];
  34.     $content = 'content_pages/'. $input['section'] .'/contact.php';
  35.     $page_title = $titles['contact'];
  36.     $contact = true;
  37.     $teaser_img = $teasers['eservice'];
  38.  
  39.     break;
  40.  
  41.     case 'about':
  42.  
  43.     $content_stylesheet = $stylesheets[$input['section']];
  44.     $content = 'content_pages/'. $input['section'] .'/about.php';
  45.     $page_title = $titles['about'];
  46.     $contact = true;
  47.     $teaser_img = $teasers['eservice'];
  48.  
  49.     break;
  50.  
  51.     default:
  52.     break;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement