anan 2019年10月2日号 No.2169 #伊藤純奈 #向井葉月 #遠藤さくら #筒井あやめ #和田まあや #吉田綾乃クリスティー #柴田柚菜

[PR]、記事内リンクはAmazonで商品検索を行います。

2019.09.25
白石麻衣(乃木坂46)表紙
齋藤飛鳥(乃木坂46)表紙
松村沙友理(乃木坂46)表紙
堀未央奈(乃木坂46)表紙
遠藤さくら(乃木坂46)表紙
賀喜遥香(乃木坂46)表紙
筒井あやめ(乃木坂46)表紙
与田祐希(乃木坂46)
山下美月(乃木坂46)
秋元真夏×賀喜遥香(乃木坂46)
井上小百合×新内眞衣×阪口珠美(乃木坂46)
久保史緒里×田村真佑(乃木坂46)
遠藤さくら×筒井あやめ(乃木坂46)
堀未央奈×岩本蓮加(乃木坂46)
大園桃子×樋口日奈(乃木坂46)
中田花奈×佐々木琴子×佐藤楓(乃木坂46)
星野みなみ×鈴木絢音×中村麗乃 (乃木坂46)
高山一実×金川紗耶×北川悠理(乃木坂46)
渡辺みり愛×伊藤理々杏(乃木坂46)
掛橋沙耶香×矢久保美緒(乃木坂46)
梅澤美波×寺田蘭世×早川聖来(乃木坂46)
北野日奈子×山崎怜奈×清宮レイ(乃木坂46)
和田まあや×吉田綾乃クリスティー×柴田柚菜(乃木坂46)
伊藤純奈×向井葉月 (乃木坂46)
IZ*ONE
知念侑李

伊藤純奈×向井葉月

遠藤さくら×筒井あやめ

和田まあや×吉田綾乃クリスティー×柴田柚菜

付録

購入特典

タイトルとURLをコピーしました
[ 'amazon' => ['label' => 'Amazon', 'color' => '#232f3e', 'base_url' => 'https://www.amazon.co.jp/s?k='], 'rakuten' => ['label' => '楽天市場', 'color' => '#bf0000', 'base_url' => 'https://search.rakuten.co.jp/search/mall/'], 'yahoo' => ['label' => 'Yahoo!', 'color' => '#ff0033', 'base_url' => 'https://shopping.yahoo.co.jp/search?p='], 'seven' => ['label' => 'セブンネット', 'color' => '#18943c', 'base_url' => 'https://7net.omni7.jp/search/?keyword='], ], 'ebook' => [ 'kindle' => ['label' => 'Kindle', 'color' => '#ff9900', 'base_url' => 'https://www.amazon.co.jp/s?k='], 'kobo' => ['label' => '楽天Kobo', 'color' => '#cc0066', 'base_url' => 'https://search.rakuten.co.jp/search/mall/'], 'bookwalker' => ['label' => 'BookWalker', 'color' => '#0054a6', 'base_url' => 'https://bookwalker.jp/search/?word='], 'renta' => ['label' => 'Renta!', 'color' => '#e8bd16', 'base_url' => 'https://renta.papy.co.jp/renta/sc/frm/search?word='], 'booklive' => ['label' => 'BookLive', 'color' => '#ff6600', 'base_url' => 'https://booklive.jp/search/keyword?keyword='], 'ebookjapan' => ['label' => 'eBookJapan', 'color' => '#e60012', 'base_url' => 'https://ebookjapan.yahoo.co.jp/search/?keyword='], 'cmoa' => ['label' => 'コミックシーモア', 'color' => '#ff911b', 'base_url' => 'https://www.cmoa.jp/search/result/?word='], ] ]; } // --- 2. 管理画面の設定ページ作成 --- add_action( 'admin_menu', 'mal_add_admin_menu' ); function mal_add_admin_menu() { add_options_page( 'アフィリエイトID設定', 'アフィリエイトID設定', 'manage_options', 'mal_settings', 'mal_settings_page' ); } function mal_settings_page() { ?>

アフィリエイトID & LinkSwitch設定

1. LinkSwitch設定 (重要)

LinkSwitch JSタグ

バリューコマース管理画面から取得した <script> タグをそのままここに貼り付けてください。

2. 各種アフィリエイトID (Amazon/楽天など)

Amazon アソシエイトID
楽天 アフィリエイトID
に出力する機能 --- add_action( 'wp_head', 'mal_output_linkswitch_tag', 1 ); function mal_output_linkswitch_tag() { $tag = get_option('mal_linkswitch_tag'); if ( ! empty( $tag ) ) { echo "\n\n"; echo $tag; // ここで設定画面のタグが出力されます echo "\n\n"; } } // --- 4. ショートコード [shop_links id="商品ID"] --- add_action( 'wp_head', 'mal_custom_css' ); // CSSの出力 function mal_custom_css() { ?> '' ), $atts ); if ( empty( $atts['id'] ) ) return ''; $item_id = $atts['id']; $services = mal_get_services(); $amz_id = get_option('mal_id_amazon'); $rak_id = get_option('mal_id_rakuten'); $output = '
'; foreach ( $services as $group_key => $group_data ) { $label = ($group_key === 'physical') ? '【紙の本・総合通販】' : '【電子書籍】'; $output .= '
'.$label.'
'; foreach ( $group_data as $key => $data ) { $url = $data['base_url'] . urlencode($item_id); // Amazon/楽天だけは個別IDを付与(LinkSwitch対象外のため) if (($key === 'amazon' || $key === 'kindle') && $amz_id) $url .= "&tag=" . $amz_id; if (($key === 'rakuten' || $key === 'kobo') && $rak_id) $url = "https://hb.afl.rakuten.co.jp/hgc/{$rak_id}/?pc=" . urlencode($url); $output .= sprintf( '%s', esc_url($url), $data['color'], $data['label'] ); } $output .= '
'; } $output .= '
'; return $output; }