Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 8th, 2013  |  syntax: PHP  |  size: 0.54 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. <?php
  3. function showHeader($title, $metaKeywords, $metaContent, $favIcon, $jsArray, $cssArray) {
  4. ?>
  5. <!DOCTYPE html>
  6. <html lang = 'en'>
  7. <head>
  8.         <meta charset = 'utf-8'>
  9.         <meta name = 'keywords' content = "<?php echo $metaKeywords; ?>">
  10.         <meta name = 'content' content = "<?php echo $metaContent; ?>">
  11.         <?php
  12.         foreach($cssArray as $cssSrc) { ?>
  13.                 <link rel = 'stylesheet' src = "<?php echo $cssSrc; ?>">
  14.         <?php } ?>
  15.         <?php
  16.         foreach($jsArray as $jsSrc) { ?>
  17.                 <script src = "<?php echo $jsSrc; ?>">
  18.         <?php } ?>
  19. </head>
  20. <body>
  21. <?php
  22. }
  23. ?>