_head.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, minimum-scale=1.0" />
  6. <?php $_title = isset($title) ? $title . ' &mdash; Andrea Franceschini' : 'Andrea Franceschini' ?>
  7. <title><?=$_title?></title>
  8. <meta name="DC.Title" content="<?=$_title?>" />
  9. <meta property="og:title" content="<?=$_title?>" />
  10. <meta property="twitter:title" content="<?=$_title?>" />
  11. <?php if(isset($keywords)) : ?>
  12. <meta name="keywords" content="<?=$keywords?>" />
  13. <?php endif ?>
  14. <meta name="author" content="Andrea Franceschini" />
  15. <meta name="DC.Creator" content="Andrea Franceschini" />
  16. <!-- <meta name="DC.Contributor" content="Andrea Franceschini" /> -->
  17. <meta name="twitter:site" content="@morpheu5" />
  18. <meta name="twitter:creator" content="@morpheu5" />
  19. <?php if(isset($description)) : ?>
  20. <meta name="description" content="<?=$description?>" />
  21. <meta name="DC.Description" content="<?=$description?>" />
  22. <meta property="og:description" content="<?=$description?>" />
  23. <?php endif ?>
  24. <meta property="twitter:description" content="<?=isset($description) ? $description : 'PhD student at The Open University' ?>" />
  25. <!-- Twitter card extras -->
  26. <meta name="twitter:card" content="summary_large_image" />
  27. <?php if(isset($twitter_image)) : ?>
  28. <meta name="twitter:image:src" content="<?=$baseurl.$twitter_image?>" />
  29. <?php endif ?>
  30. <meta name="twitter:domain" content="<?=$baseurl?>" />
  31. <!-- / Twitter card extras -->
  32. <!-- Open Graph madness -->
  33. <meta property="og:type" content="website" />
  34. <?php if(isset($twitter_image)) : ?>
  35. <meta property="og:image" content="<?=$baseurl.$twitter_image?>" />
  36. <?php endif ?>
  37. <!-- / Open Graph madness -->
  38. <!-- Dublin Core extras -->
  39. <meta name="DC.Rights" content="CC BY-NC-SA 4.0" />
  40. <!-- / Dublin Core extras -->
  41. <meta name="robots" content="All" />
  42. <link rel="stylesheet" href="<?=$baseurl?>css/screen.css" type="text/css" media="screen" />
  43. <link rel="stylesheet" href="<?=$baseurl?>css/print.css" type="text/css" media="print" />
  44. <?php if(isset($css)) : ?>
  45. <?php foreach($css as $file) : ?>
  46. <link rel="stylesheet" href="<?=$baseurl?>css/<?=$file?>.css" type="text/css" media="screen" />
  47. <?php endforeach ?>
  48. <?php endif ?>
  49. <link href='//fonts.googleapis.com/css?family=Oswald:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
  50. <link href='//fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic&subset=latin,greek,greek-ext,latin-ext' rel='stylesheet' type='text/css'>
  51. <link href="//cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.css" type="text/css" rel="stylesheet" />
  52. <!-- <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"> -->
  53. <!--[if lt IE 9]>
  54. <script src="<?=$baseurl?>js/html5.min.js"></script>
  55. <![endif]-->
  56. <script type="text/javascript" src="<?=$baseurl?>js/js.cookie.js"></script>
  57. <script type="text/javascript" src="<?=$baseurl?>js/jquery.min.js"></script>
  58. <script type="text/javascript" src="<?=$baseurl?>js/picturefill.min.js"></script>
  59. <script src="//cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>
  60. <script src="https://kit.fontawesome.com/3960e26f79.js" crossorigin="anonymous"></script>
  61. <script type="text/javascript" src="<?=$baseurl?>js/scripts.js"></script>
  62. <?php if(isset($js)) : ?>
  63. <?php foreach($js as $file) : ?>
  64. <script type="text/javascript" src="<?=$baseurl?>js/<?=$file?>.js"></script>
  65. <?php endforeach ?>
  66. <?php endif ?>
  67. </head>