Advertisement
Guest User

Untitled

a guest
May 27th, 2021
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= $language->language; ?>" version="XHTML+RDFa 1.0"
  3. dir="<?= $language->dir; ?>"
  4. <?= $rdf_namespaces; ?>>
  5. <? $site = node_load(4); ?>
  6. <head profile="<?= $grddl_profile; ?>">
  7. <?= $head; ?>
  8. <title itemprop="name"><?= $head_title; ?></title>
  9. <?= $styles; ?>
  10. <?= $scripts; ?>
  11. <meta name="format-detection" content="telephone=no">
  12. <? if (!empty($site->field_site_title['und'][0]['value'])): ?>
  13. <meta property="og:site_name" content="<?= $site->field_site_title['und'][0]['value']; ?>">
  14. <? endif; ?>
  15. <? if (!empty($site->field_favicon['und'][0]['uri'])): ?>
  16. <? $favIcon = file_create_url($site->field_favicon['und'][0]['uri']); ?>
  17. <link rel="icon" href="<?= $favIcon; ?>" type="image/x-icon">
  18. <link rel="shortcut icon" href="<?= $favIcon; ?>" type="image/x-icon">
  19. <? else: ?>
  20. <link rel="shortcut icon" href="http://<?= $_SERVER['HTTP_HOST'] ?>/sites/all/themes/main/favicon.ico"
  21. type="image/vnd.microsoft.icon">
  22. <? endif; ?>
  23. <? if (!empty($site->field_mobile_status['und'][0]['value'])): ?>
  24. <meta name="viewport" content="width=device-width, initial-scale=1">
  25. <? endif; ?>
  26. <meta property="og:type" content="website">
  27. <meta property="og:url" content="http://<?= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
  28. <link itemprop="url" href="http://<?= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>/">
  29. <link rel="home" href="http://<?= $_SERVER['HTTP_HOST']; ?>/">
  30. </head>
  31. <?
  32. $size_s = (isset($_COOKIE['size'])) ? $_COOKIE['size'] : 'medium';
  33. $color_s = (isset($_COOKIE['color'])) ? $_COOKIE['color'] : 'white';
  34. ?>
  35. <body class="<?= $color_s; ?> <?= $size_s; ?> <?= $classes; ?>" <?= $attributes; ?>>
  36. <?= $page_top; ?>
  37. <?= $page; ?>
  38. <?= $page_bottom; ?>
  39. </body>
  40. </html>
  41. <?
  42. if ($_SERVER['REQUEST_URI'] == '/node') {
  43. drupal_goto("/");
  44. }
  45. ?>
  46.  
  47.  
  48.  
  49.  
  50.  
  51. второй файл
  52.  
  53. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
  54. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= $language->language; ?>" version="XHTML+RDFa 1.0"
  55. dir="<?= $language->dir; ?>"
  56. <?= $rdf_namespaces; ?>>
  57. <? $site = node_load(4); ?>
  58. <head profile="<?= $grddl_profile; ?>">
  59. <?= $head; ?>
  60. <title itemprop="name"><?= $head_title; ?></title>
  61. <?= $styles; ?>
  62. <?= $scripts; ?>
  63. <meta name="format-detection" content="telephone=no">
  64. <? if (!empty($site->field_site_title['und'][0]['value'])): ?>
  65. <meta property="og:site_name" content="<?= $site->field_site_title['und'][0]['value']; ?>">
  66. <? endif; ?>
  67. <? if (!empty($site->field_favicon['und'][0]['uri'])): ?>
  68. <? $favIcon = file_create_url($site->field_favicon['und'][0]['uri']); ?>
  69. <link rel="icon" href="<?= $favIcon; ?>" type="image/x-icon">
  70. <link rel="shortcut icon" href="<?= $favIcon; ?>" type="image/x-icon">
  71. <? else: ?>
  72. <link rel="shortcut icon" href="http://<?= $_SERVER['HTTP_HOST'] ?>/sites/all/themes/main/favicon.ico"
  73. type="image/vnd.microsoft.icon">
  74. <? endif; ?>
  75. <? if (!empty($site->field_mobile_status['und'][0]['value'])): ?>
  76. <meta name="viewport" content="width=device-width, initial-scale=1">
  77. <? endif; ?>
  78. <meta property="og:type" content="website">
  79. <meta property="og:url" content="http://<?= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
  80. <link itemprop="url" href="http://<?= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>/">
  81. <link rel="home" href="http://<?= $_SERVER['HTTP_HOST']; ?>/">
  82. <meta name="yandex-verification" content="08d4e3b52d2acea9" />
  83. </head>
  84. <body class="<?= $classes; ?>" <?= $attributes; ?>>
  85. <?= $page_top; ?>
  86. <?= $page; ?>
  87. <?= $page_bottom; ?>
  88. </body>
  89. </html>
  90. <?
  91. if ($_SERVER['REQUEST_URI'] == '/node') {
  92. drupal_goto("/");
  93. }
  94. ?>
  95.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement