現在「完了」、進捗 100%。工程は全11件中 11件完了。
うなぎ比較記事をアド用に複製をお願いします。
アド用LP複製
▼複製元
https://unagi-bestselect.com/top/index.php
▼複製後URL(/fbを追加)
https://unagi-bestselect.com/top/fb/index.php
メタリフについても「~/top/fb/web/~」でお願いします。
6/8
複製元
https://unagi-bestselect.com/top/
複製後URL(/fbを追加)
https://unagi-bestselect.com/top/fb/index.php
Claude Code
【6/9 本日の作業予定】
LP複製(fb/)は実装・本番反映済み。残りを本日対応します。
※ 2207 の検索動線要否はプラス様のご判断待ち。要否のみご教示ください。
Claude Code
[追加作業] fb/index.php のinclude展開。
- fb/_index.php に展開前(include版)をバックアップ
- fb/index.php の contents/parts 7つ(mv/productSlider/miniRanking/compareTable/ranking/education/matome)をインライン展開。LPページ内コンテンツのみ展開し、テンプレ系(common/data/head/gtm02/form/footer)はincludeのまま維持
- 展開境界に コメント付与(継続保持)
- 検証: _index.php(展開前)とindex.php(展開後)のHTML出力を比較し、差分は挿入コメントのみ=コンテンツ完全一致。php -l OK / CTA68件すべて/fb/web/+page=top_fb健全。33行→654行。
Claude Code
ローカル実装完了(本番反映はFumito手動)。MAMPローカルで実レンダリング検証済み。
【成果物】top/fb/ 一式(16ファイル) ※本体・共有template無改修
- fb/index.php(param_page=top_fb / include ../template / web_link_fb()定義)
- fb/data.php(直書きCTA /web/→/fb/web/・page=top→top_fb 各11)
- fb/contents/parts/ 7パーツ(web_link()→web_link_fb() 21箇所置換)
- fb/web/ メタリフ5案件+_base+style.css(include ../→../../、afi_url変更なし)
【重要・設計判断】当初CTAはdata.php集約と見たが、検証でCTAの大半は共有関数 web_link()(template/common.php) 経由と判明。本体common.phpを無改修に保つため、fb専用 web_link_fb()(/fb/web/版)を定義しfb/parts呼び出しを差替。本体LP(top/top_yss)は web_link()→/web/ のままで出力完全不変。
【検証】php -l 全15OK / Fatal0 / CTA68件すべて /fb/web/+page=top_fb(純粋/web/=0) / メタリフ5案件200・refresh先afi_url不変 / 本体index.php・data.php・web/5案件・parts shasum無改変=他ページ影響ゼロ
【本番反映手順】ローカル top/fb/ を本番 unagi-bestselect.com の /top/fb/ にアップロード。本番はSITE_URL自動正規化。
公開URL: https://unagi-bestselect.com/top/fb/index.php
メタリフ: https://unagi-bestselect.com/top/fb/web/
{misara,unafuji,manraku,hamanako,hoshi_unagi}.php
【保留】result_form検索結果ページが/web/・page=top固定でfb流入漏れ(#467 task467と同質)。検索動線の要否をプラス確認後に別途対応。
Claude Code
着手。方針: top/index.php を top/fb/ に完全複製(本体・共有template無編集)。CTA/afi_urlは全てdata.phpに集約のためfb/data.phpを複製し /web/→/fb/web/(11件)・?page=top→?page=top_fb(11件)置換。メタリフ5案件+_base+style.cssをfb/web/に複製(afi_url変更なし)。param_page=top_fb(yss=top_yssに倣う)。parts7個はリンク非保持だが完全複製方針で同梱。納期6/8。
注意: result_form検索結果ページが/web/・page=top固定で#467同様のfb流入漏れあり→検索動線の要否プラス確認後に別途対応(保留)。
【完了報告: うなぎ比較 LP アド用複製(/top/fb/)】
複製元 top/index.php を top/fb/ に複製し、アド成果分離(/fb/web/・page=top_fb)まで完了しました。本体・共有template は無改修。
■ 作業内容
- fb/ 構成新設(fb/contents/parts, fb/web)。
- fb/index.php 複製: param_page=top_fb / include階層調整 / contents/parts をインライン展開(_index.php に include版バックアップ)。
- fb/data.php 複製: 直書きリンク /web/→/fb/web/(11) ・ ?page=top→?page=top_fb(11)。
- fb/contents/parts/ 複製、fb/web/ メタリフ複製(include階層 ../→../../ 修正・afi_url変更なし)。
- CTAリンク: 共有 common.php の web_link() 経由が大半と判明 → fb側は web_link_fb() を定義し /fb/web/ 生成(本体 common.php 無改修を維持)。
■ 検証
- php -l 全fb構文OK。ローカルで表示・CTA(=/fb/web/)・page=top_fb・Fatal無を確認。
- 本体 index.php/data.php/web/ 無改変を確認。本番 fb/index.php 200 応答。
■ 絞り込み検索(result_form)
- プラス様判断により検索動線は対応不要 → 複製対象外として確定(クローズ)。
以上で複製タスクは完了です。(ページ修正・リンク差し替え等の追加依頼は別タスク 471 で対応)