このコミットが含まれているのは:
守矢諏訪子 2022-08-25 22:19:21 +09:00
コミット 05b90acea2
6個のファイルの変更40行の追加40行の削除

ファイルの表示

@ -2,12 +2,12 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title><?php echo STORE_NAME; ?></title>
<title><?= STORE_NAME; ?></title>
<?php
if (!empty($styles)) {
foreach ($styles as $s) {
?>
<link rel="stylesheet" type="text/css" href="/static/<?php echo $s; ?>.css" />
<link rel="stylesheet" type="text/css" href="/static/<?= $s; ?>.css" />
<?php
}
}
@ -15,28 +15,28 @@
</head>
<body>
<div class="jswarning" id="jswarning">
<?php echo $eigo ?
<?= $eigo ?
'Warning: JavaScript is ON. For safety and security reasons, please turn JavaScript OFF.' : '注意JavsScriptはONです。安全・安心の為、JavaScriptをOFFにしてお願い致します。'; ?>
</div>
<script type="text/javascript">
document.getElementById('jswarning').style.display = 'block';
</script>
<h1><?php echo STORE_NAME; ?></h1>
<h1><?= STORE_NAME; ?></h1>
<div class="container">
<form method="post" action="/">
<input class="langchange" type="submit" name="langchange" value="<?php echo $eigo ? '日本語に戻る' : 'Switch to English'; ?>" />
<input class="langchange" type="submit" name="langchange" value="<?= $eigo ? '日本語に戻る' : 'Switch to English'; ?>" />
</form>
<h2><?php echo $pagetitle; ?></h2>
<h2><?= $pagetitle; ?></h2>
<?php $countcart = count(array_filter(explode(',', getcookie('cart')))); ?>
<div class="nav">
<ul>
<li><a href="/"><?php echo $eigo ? 'Home' : 'トップページ'; ?></a></li>
<li><a href="/"><?= $eigo ? 'Home' : 'トップページ'; ?></a></li>
<li>
<a href="/cart.php">
<?php echo $eigo ? 'Cart' : 'カート'; ?>
<?= $eigo ? 'Cart' : 'カート'; ?>
</a>
<?php if ($countcart > 0) { ?><div class="cart-count"><?php echo $countcart < 99 ? $countcart : '99'; ?></div> <?php } ?>
<?php if ($countcart > 0) { ?><div class="cart-count"><?= $countcart < 99 ? $countcart : '99'; ?></div> <?php } ?>
</li>
</ul>
</div>

ファイルの表示

@ -34,10 +34,10 @@
?>
<div class="item-card">
<?php $fname = null !== $b['filename'] ? $b['filename'] : 'nowprinting.png'; ?>
<a href="/item.php?slug=<?php echo $b['slug']; ?>"><img src="/img/<?php echo $fname; ?>" alt="<?php echo $fname; ?>" style="width: 200px;" /></a>
<h3><a href="/item.php?slug=<?php echo $b['slug']; ?>"><?php echo mb_strlen($b['name']) > 9 ? mb_substr($b['name'], 0, 9).'…' : $b['name']; ?></a></h3>
<p class="author"><?php echo $b['author']; ?></p>
<p class="price">XMR <?php echo $b['price']; ?> / <?php echo $eigo ? 'Quantity' : '商品数'; ?><?php echo $b['quantity']; ?></p>
<a href="/item.php?slug=<?= $b['slug']; ?>"><img src="/img/<?= $fname; ?>" alt="<?= $fname; ?>" style="width: 200px;" /></a>
<h3><a href="/item.php?slug=<?= $b['slug']; ?>"><?= mb_strlen($b['name']) > 9 ? mb_substr($b['name'], 0, 9).'…' : $b['name']; ?></a></h3>
<p class="author"><?= $b['author']; ?></p>
<p class="price">XMR <?= $b['price']; ?> / <?= $eigo ? 'Quantity' : '商品数'; ?><?= $b['quantity']; ?></p>
</div>
<?php
}

ファイルの表示

@ -29,21 +29,21 @@
<div class="item-container">
<?php $fname = null !== $filename ? $filename : 'nowprinting.png'; ?>
<div class="item-photo"><img src="/img/<?php echo $fname; ?>" alt="<?php echo $fname; ?>" /></div>
<div class="item-photo"><img src="/img/<?= $fname; ?>" alt="<?= $fname; ?>" /></div>
<div class="item-main">
<div class="item-header-container">
<div class="item-header-title"><?php echo $name; ?></div>
<div class="item-header-price"><img src="/static/monero.png" alt="XMR" /> <?php echo $price; ?></div>
<div class="item-header-title"><?= $name; ?></div>
<div class="item-header-price"><img src="/static/monero.png" alt="XMR" /> <?= $price; ?></div>
</div>
<div class="item-author"><?php echo $author; ?></div>
<div class="item-language"><?php echo $booklang; ?></div>
<div class="item-author"><?= $author; ?></div>
<div class="item-language"><?= $booklang; ?></div>
<p><?php echo $description; ?></p>
<p><?= $description; ?></p>
<p><?php echo $pagecount.($eigo ? ' pages' : 'ページ'); ?></p>
<p><?= $pagecount.($eigo ? ' pages' : 'ページ'); ?></p>
<form method="post" action="/cart.php">
<input type="hidden" name="item" value="<?php echo $slug; ?>" />
<input type="submit" name="addtocart" value="<?php echo $eigo ? 'Add to cart' : 'カートに追加'; ?>" />
<input type="hidden" name="item" value="<?= $slug; ?>" />
<input type="submit" name="addtocart" value="<?= $eigo ? 'Add to cart' : 'カートに追加'; ?>" />
</form>
</div>
</div>

ファイルの表示

@ -82,7 +82,7 @@
if ($err != '') {
?>
<div class="error"><?php echo $err; ?></div>
<div class="error"><?= $err; ?></div>
<?php
}
require_once('include/header.php');

ファイルの表示

@ -1,36 +1,36 @@
<form method="post" action="/shipping.php">
<table class="address-form" border="0">
<tr>
<td class="required"><?php echo $eigo ? 'Name (nickname OK)' : 'お名前(異名OK)'; ?></td>
<td><input type="text" name="name" placeholder="<?php echo $eigo ? 'Anonymous' : 'アノニマス'; ?>" value="<?php echo $tmpstore['name'] ?>" /></td>
<td class="required"><?= $eigo ? 'Name (nickname OK)' : 'お名前(異名OK)'; ?></td>
<td><input type="text" name="name" placeholder="<?= $eigo ? 'Anonymous' : 'アノニマス'; ?>" value="<?= $tmpstore['name'] ?>" /></td>
</tr>
<tr>
<td class="required"><?php echo $eigo ? 'ZIP Code' : '郵便番号'; ?></td>
<td><input type="text" name="zip" placeholder="100-0001" value="<?php echo $tmpstore['zip'] ?>" /></td>
<td class="required"><?= $eigo ? 'ZIP Code' : '郵便番号'; ?></td>
<td><input type="text" name="zip" placeholder="100-0001" value="<?= $tmpstore['zip'] ?>" /></td>
</tr>
<tr>
<td class="required"><?php echo $eigo ? 'State/Province/Prefecture' : '都道府県'; ?></td>
<td><input type="text" name="prefecture" placeholder="<?php echo $eigo ? 'Tokyo' : '東京都'; ?>" value="<?php echo $tmpstore['prefecture'] ?>" /></td>
<td class="required"><?= $eigo ? 'State/Province/Prefecture' : '都道府県'; ?></td>
<td><input type="text" name="prefecture" placeholder="<?= $eigo ? 'Tokyo' : '東京都'; ?>" value="<?= $tmpstore['prefecture'] ?>" /></td>
</tr>
<tr>
<td class="required"><?php echo $eigo ? 'City/Town' : '市区町村'; ?></td>
<td><input type="text" name="city" placeholder="<?php echo $eigo ? 'Shibuya' : '渋谷区'; ?>" value="<?php echo $tmpstore['city'] ?>" /></td>
<td class="required"><?= $eigo ? 'City/Town' : '市区町村'; ?></td>
<td><input type="text" name="city" placeholder="<?= $eigo ? 'Shibuya' : '渋谷区'; ?>" value="<?= $tmpstore['city'] ?>" /></td>
</tr>
<tr>
<td class="required"><?php echo $eigo ? 'Address 1 (street + number)' : '町名+番地'; ?></td>
<td><input type="text" name="address1" placeholder="<?php echo $eigo ? 'Ebisu 1-2-3' : '恵比寿丁目2-3'; ?>" value="<?php echo $tmpstore['address1'] ?>" /></td>
<td class="required"><?= $eigo ? 'Address 1 (street + number)' : '町名+番地'; ?></td>
<td><input type="text" name="address1" placeholder="<?= $eigo ? 'Ebisu 1-2-3' : '恵比寿丁目2-3'; ?>" value="<?= $tmpstore['address1'] ?>" /></td>
</tr>
<tr>
<td><?php echo $eigo ? 'Address 2 (optional)' : 'マンション(任意)'; ?></td>
<td><input type="text" name="address2" placeholder="<?php echo $eigo ? 'Moriya Shrine 200F' : '守谷神社 200階'; ?>" value="<?php echo $tmpstore['address2'] ?>" /></td>
<td><?= $eigo ? 'Address 2 (optional)' : 'マンション(任意)'; ?></td>
<td><input type="text" name="address2" placeholder="<?= $eigo ? 'Moriya Shrine 200F' : '守谷神社 200階'; ?>" value="<?= $tmpstore['address2'] ?>" /></td>
</tr>
<tr>
<td class="required"><?php echo $eigo ? 'Country' : '国'; ?></td>
<td><input type="text" name="country" placeholder="<?php echo $eigo ? 'Japan' : '日本'; ?>" value="<?php echo $tmpstore['country'] ?>" /></td>
<td class="required"><?~ $eigo ? 'Country' : '国'; ?></td>
<td><input type="text" name="country" placeholder="<?= $eigo ? 'Japan' : '日本'; ?>" value="<?= $tmpstore['country'] ?>" /></td>
</tr>
<tr>
<td class="required"><?php echo $eigo ? 'Email' : 'メール'; ?></td>
<td><input type="text" name="email" placeholder="weareanonymous@weare.legion" value="<?php echo $tmpstore['email'] ?>" /></td>
<td class="required"><?= $eigo ? 'Email' : 'メール'; ?></td>
<td><input type="text" name="email" placeholder="weareanonymous@weare.legion" value="<?= $tmpstore['email'] ?>" /></td>
</tr>
</table>

ファイルの表示

@ -1,4 +1,4 @@
<?php
$address = 'monero:'.MONERO_ADDRESS.'?tx_amount='.$sum;
?>
<img src="" alt="<?php echo $address; ?>" />
<img src="" alt="<?= $address; ?>" />