/** * OGP 出力用の値を決定し、$og にまとめて Smarty に渡す * - og:type: product (商品詳細) / website (一覧/その他) * - og:title/description: 既存の $pagetitle/$description を優先 * - og:url: クリーンURL(utm/フィルタ除去)、商品は canonical と同等に * - og:image: 商品>カテゴリ>共通 /gekirock_clothing.jpg */ $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http'; $host = $_SERVER['HTTP_HOST'] ?? 'shop.gekirock.com'; $base = $scheme . '://' . $host; // 現在のパスとクエリ $req_path = parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH) ?: '/'; $req_query