SHARE
TWEET

Untitled

a guest Aug 8th, 2013 36 Never
  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. ?>
RAW Paste Data
Top