{"id":1418,"date":"2016-04-23T13:21:35","date_gmt":"2016-04-23T04:21:35","guid":{"rendered":"http:\/\/tcd-manual.net\/?p=1418"},"modified":"2019-02-20T17:36:08","modified_gmt":"2019-02-20T08:36:08","slug":"%e5%ba%83%e5%91%8a%e3%81%ae%e3%83%aa%e3%83%b3%e3%82%af%e5%85%88%e3%82%92%e5%90%8c%e4%b8%80%e3%82%bf%e3%83%96%e5%86%85%e3%81%a7%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/tcd-manual.net\/?p=1418","title":{"rendered":"\u5e83\u544a\u306e\u30ea\u30f3\u30af\u5148\u3092\u540c\u4e00\u30bf\u30d6\u5185\u3067\u8868\u793a\u3059\u308b"},"content":{"rendered":"<h4 class=\"style_headline2\"><span>Q.<\/span>\u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u5e83\u544a\u306e\u30ea\u30f3\u30af\u5148\u3092\u540c\u4e00\u30bf\u30d6\u306e\u4e2d\u3067\u8868\u793a\u3057\u305f\u3044<\/h4>\n<p>\u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u8a73\u7d30\u8a18\u4e8b\u30da\u30fc\u30b8\u306e\u5e83\u544a\u3084\u30da\u30fc\u30b8\u4e0b\u90e8\u306e\u5e83\u544a\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u5e83\u544a\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u5225\u7a93\u3067\u958b\u304d\u307e\u3059\u304c\u3001\u540c\u4e00\u30bf\u30d6\u5185\u3067\u5c55\u958b\u3055\u305b\u308b\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4 class=\"style_headline2\"><span>A.<\/span>\u4e0b\u8a18\u306ephp\u30d5\u30a1\u30a4\u30eb\u306e\u8a72\u5f53\u7b87\u6240\u3092\u7de8\u96c6\u3057\u307e\u3059<\/h4>\n<h4>\u2460\u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\uff1e\u8a73\u7d30\u8a18\u4e8b\u306e\u5e83\u544a<\/h4>\n<p><b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<\/b>single.php<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b><br \/>\n\uff08\u4e0a\u90e8\u5e83\u544a\uff09<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n &lt;a href=&quot;&lt;?php esc_attr_e( $options&#x5B;'single_ad_url1'] ); ?&gt;&quot; class=&quot;target_blank&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'single_ad_image1'] ); ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;&lt;\/a&gt;\r\n<\/pre>\n<p>\u3000\u3000\u2193<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;a href=&quot;&lt;?php esc_attr_e( $options&#x5B;'single_ad_url1'] ); ?&gt;&quot; &gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'single_ad_image1'] ); ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;&lt;\/a&gt;\r\n<\/pre>\n<p>\uff08\u4e0b\u90e8\u5e83\u544a\uff09<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;a href=&quot;&lt;?php esc_attr_e( $options&#x5B;'single_ad_url2'] ); ?&gt;&quot; class=&quot;target_blank&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'single_ad_image2'] ); ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;&lt;\/a&gt;\r\n<\/pre>\n<p>\u3000\u3000\u2193<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;a href=&quot;&lt;?php esc_attr_e( $options&#x5B;'single_ad_url2'] ); ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'single_ad_image2'] ); ?&gt;&quot; alt=&quot;&quot; title=&quot;&quot; \/&gt;&lt;\/a&gt;\r\n<\/pre>\n<h4>\u2461\u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\uff1e\u30da\u30fc\u30b8\u4e0b\u90e8\u306e\u5e83\u544a<\/h4>\n<p><b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<\/b>index.php<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b><\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n     &lt;a href=&quot;&lt;?php esc_attr_e( $options&#x5B;'footer_ad_url'.$i] ); ?&gt;&quot; class=&quot;target_blank&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e(\r\n<\/pre>\n<p>\u3000\u3000\u2193<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n     &lt;a href=&quot;&lt;?php esc_attr_e( $options&#x5B;'footer_ad_url'.$i] ); ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e(\r\n<\/pre>\n<h4>\u2462\u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\uff1e\u5e83\u544a\u30d0\u30ca\u30fc\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8<\/h4>\n<p><b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<\/b>ad.php (widget\/ad.php)<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b><\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php if($random2==0){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side_ad1']) { echo $options&#x5B;'side_ad1']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side_ad_url1']; ?&gt;&quot; class=&quot;target_blank&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side_ad_image1'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php } elseif($random2==1){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side_ad2']) { echo $options&#x5B;'side_ad2']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side_ad_url2']; ?&gt;&quot; class=&quot;target_blank&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side_ad_image2'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php } elseif($random2==2){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side_ad3']) { echo $options&#x5B;'side_ad3']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side_ad_url3']; ?&gt;&quot; class=&quot;target_blank&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side_ad_image3'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php }; ?&gt;\r\n<\/pre>\n<p>\u3000\u3000\u2193<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php if($random2==0){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side_ad1']) { echo $options&#x5B;'side_ad1']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side_ad_url1']; ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side_ad_image1'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php } elseif($random2==1){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side_ad2']) { echo $options&#x5B;'side_ad2']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side_ad_url2']; ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side_ad_image2'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php } elseif($random2==2){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side_ad3']) { echo $options&#x5B;'side_ad3']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side_ad_url3']; ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side_ad_image3'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php }; ?&gt;\r\n<\/pre>\n<h4>\u2463\u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\uff1e\u5e83\u544a\u30d0\u30ca\u30fc\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\uff12<\/h4>\n<p><b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<\/b>ad2.php (widget\/ad2.php)<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b><\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php if($random2==0){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side2_ad1']) { echo $options&#x5B;'side2_ad1']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side2_ad_url1']; ?&gt;&quot; class=&quot;target_blank&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side2_ad_image1'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php } elseif($random2==1){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side2_ad2']) { echo $options&#x5B;'side2_ad2']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side2_ad_url2']; ?&gt;&quot; class=&quot;target_blank&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side2_ad_image2'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php } elseif($random2==2){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side2_ad3']) { echo $options&#x5B;'side2_ad3']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side2_ad_url3']; ?&gt;&quot; class=&quot;target_blank&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side2_ad_image3'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php }; ?&gt;\r\n<\/pre>\n<p>\u3000\u3000\u2193<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php if($random2==0){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side2_ad1']) { echo $options&#x5B;'side2_ad1']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side2_ad_url1']; ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side2_ad_image1'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php } elseif($random2==1){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side2_ad2']) { echo $options&#x5B;'side2_ad2']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side2_ad_url2']; ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side2_ad_image2'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php } elseif($random2==2){ ?&gt;\r\n&lt;?php if ($options&#x5B;'side2_ad3']) { echo $options&#x5B;'side2_ad3']; } else { ?&gt;&lt;a href=&quot;&lt;?php echo $options&#x5B;'side2_ad_url3']; ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php esc_attr_e( $options&#x5B;'side2_ad_image3'] ); ?&gt;&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;?php }; ?&gt;\r\n&lt;?php }; ?&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Q.\u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u5e83\u544a\u306e\u30ea\u30f3\u30af\u5148\u3092\u540c\u4e00\u30bf\u30d6\u306e\u4e2d\u3067\u8868\u793a\u3057\u305f\u3044 \u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u8a73\u7d30\u8a18\u4e8b\u30da\u30fc\u30b8\u306e\u5e83\u544a\u3084\u30da\u30fc\u30b8\u4e0b\u90e8\u306e\u5e83\u544a\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u5e83\u544a\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u5225\u7a93\u3067\u958b\u304d\u307e\u3059\u304c\u3001\u540c\u4e00\u30bf\u30d6\u5185\u3067\u5c55\u958b\u3055\u305b\u308b\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[87,66,662,105,80],"class_list":["post-1418","post","type-post","status-publish","format-standard","hentry","category-tcd013","tag-widget","tag-top-page","tag-662","tag-advertisement","tag-80"],"_links":{"self":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/1418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1418"}],"version-history":[{"count":0,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/1418\/revisions"}],"wp:attachment":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}