header.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html lang="ja">
  3. <head>
  4. <meta content="text/html; charset=euc-jp" http-equiv="content-type" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <?php if (isset($out["desc"])) { ?>
  7. <meta property="og:site_name" content="vixip" />
  8. <meta property="og:title" content="vixip 〜 <?= htmlspecialchars($out["title"]) ?>" />
  9. <meta property="og:type" content="article" />
  10. <meta property="og:description" content="<?= htmlspecialchars($out["desc"]) ?>" />
  11. <meta property="og:url" content="<?= SITEURL.$cur ?>" />
  12. <link rel="canonical" href="<?= SITEURL.$cur ?>" />
  13. <meta property="twitter:card" content="summary_large_image" />
  14. <meta property="twitter:url" content="<?= SITEURL.$cur ?>" />
  15. <meta property="twitter:title" content="vixip 〜 <?= htmlspecialchars($out["title"]) ?>" />
  16. <meta property="twitter:description" content="<?= htmlspecialchars($out["desc"]) ?>" />
  17. <?php if (isset($out["img_sec"])) { ?>
  18. <meta property="twitter:image" content="<?= SITEURL."/".$out["img_sec"].".php?".($out["img_sec"] == "artwork" ? "illust_" : "")."id=".$out["img_id"] ?>" />
  19. <meta property="og:image" content="<?= SITEURL."/".$out["img_sec"].".php?".($out["img_sec"] == "artwork" ? "illust_" : "")."id=".$out["img_id"] ?>" />
  20. <?php } else { ?>
  21. <meta property="twitter:image" content="<?= SITEURL ?>/logo.png" />
  22. <meta property="og:image" content="<?= SITEURL ?>/logo.png" />
  23. <?php } ?>
  24. <meta name="robots" content="max-image-preview:large" />
  25. <meta name="description" content="<?= htmlspecialchars($out["desc"]) ?>" />
  26. <?php } ?>
  27. <?php if (isset($out["img"])) { ?><meta name="thumbnail" content="<?= $out["img"] ?>" /><?php } ?>
  28. <title>vixip 〜 <?= htmlspecialchars($out["title"]) ?></title>
  29. <link rel="stylesheet" type="text/css" href="/style.css" />
  30. </head>
  31. <body>
  32. <div class="header">
  33. <form action="/search" method="get">
  34. <a href="/" style="padding-right: 12px;">vixip</a>
  35. <input type="text" value="" class="searchbar" name="q" placeholder="商品を検索" />
  36. <button class="searchbtn">検索</button>
  37. </form>
  38. </div>
  39. <div class="container">