{"id":391,"date":"2011-08-06T00:25:55","date_gmt":"2011-08-05T15:25:55","guid":{"rendered":"http:\/\/www23.atpages.jp\/~inoni\/?p=391"},"modified":"2011-08-06T00:25:55","modified_gmt":"2011-08-05T15:25:55","slug":"391","status":"publish","type":"post","link":"http:\/\/anada.cloudfree.jp\/?p=391","title":{"rendered":"WordPress\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba"},"content":{"rendered":"<p>\u6298\u89d2\u306a\u306e\u3067Wordpress\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u3057\u3066\u307f\u308b\u3002<br \/>\n\u672c\u5f53\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3084\u308b\u3079\u304d\u3060\u30b1\u30c9\u3001\u305d\u308c\u306f\u307e\u305f\u5225\u306e\u6a5f\u4f1a\u306b\u3002<\/p>\n<p>\u524d\u304b\u3089\u3084\u308a\u305f\u304b\u3063\u305f\u306e\u304c\u3001\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u571f\u65e5\u306e\u8272\u3065\u3051\u3002<\/p>\n<p><strong>calendar<\/strong>\u3067\u30bd\u30fc\u30b9\u3092Grep\u3059\u308b\u3068\u3001<br \/>\n<strong>wp-includes\/general-template.php<\/strong>\u306b\u51e6\u7406\u304c\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u3002<br \/>\n\u305d\u306e\u4e2d\u306efor\u6587\u30671\u65e5\uff5e\u672b\u65e5\u3092\u30b0\u30eb\u30b0\u30eb\u307e\u308f\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u306b\u3001\u571f\u65e5\u305d\u308c\u305e\u308c\u306e\u30bb\u30eb\u306bsaturday,sunday\u306eID\u3092\u632f\u308b\u51e6\u7406\u3092\u8ffd\u52a0\u3002<br \/>\n<code><br \/>\nfor ( $day = 1; $day &lt;= $daysinmonth; ++$day ) {<br \/>\n<\/code><br \/>\n\u307e\u305a\u306f\u3001$weeknum\u3063\u3066\u5909\u6570\u3092\u4f5c\u3063\u3066\u66dc\u65e5\u3092\u6570\u5024\u5316\u3057\u305f\u3082\u306e\u3092\u53d6\u5f97\u3002<br \/>\n\u6b21\u306b\u3001if\u6587\u306b\u5206\u5c90\u3092\u5897\u3084\u3057\u3066\u3001\u571f\u66dc\u3001\u65e5\u66dc\u5206\u306eID\u3092\u632f\u3063\u3066\u3084\u308b\u3002<br \/>\n<code><br \/>\n<span style=\"color: #ff0000;\">$weeknum = calendar_week_mod(date('w', mktime(0, 0 , 0, $thismonth, $day, $thisyear)));<\/span><\/code><\/p>\n<p><code>if ( $day == gmdate('j', current_time('timestamp')) &amp;&amp; $thismonth == gmdate('m', current_time('timestamp'))<br \/>\n&amp;&amp; $thisyear == gmdate('Y', current_time('timestamp')) )<br \/>\n$calendar_output .= '&lt;td id=\"today\"&gt;';<br \/>\n<span style=\"color: #339966;\">\/\/ add 2011\/08\/05 from ----------------------<\/span><br \/>\n<span style=\"color: #ff0000;\">elseif ($weeknum == 0)<\/span><br \/>\n<span style=\"color: #ff0000;\"> \u00a0\u00a0\u00a0\u00a0$calendar_output .= '&lt;td id=\"sunday\"&gt;';<\/span><br \/>\n<span style=\"color: #ff0000;\"> elseif ($weeknum == 6)<\/span><br \/>\n<span style=\"color: #ff0000;\"> \u00a0\u00a0\u00a0\u00a0$calendar_output .= '&lt;td id=\"saturday\"&gt;';<\/span><br \/>\n<span style=\"color: #339966;\">\/\/ add 2011\/08\/05 to ----------------------<\/span><br \/>\nelse<br \/>\n$calendar_output .= '&lt;td&gt;';<br \/>\n<\/code><\/p>\n<p>\u3042\u3068\u306f\u3001\u4f7f\u7528\u4e2d\u306etheme\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308b<strong>style.css<\/strong>\u306e<strong>#today<\/strong>\u3042\u305f\u308a\u306b\u3001saturday,sunday\u7528\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u304a\u3051\u3070OK\u3002<\/p>\n<p>\u4ee5\u4e0a\u3001\u30aa\u30b7\u30de\u30a4\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/anada.cloudfree.jp\/wp-includes\/images\/smilies\/w03.gif\" alt=\"w03.gif\" \/>\u3067\u3051\u305f\u3088\uff5e\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6298\u89d2\u306a\u306e\u3067Wordpress\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u3057\u3066\u307f\u308b\u3002 \u672c\u5f53\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3084\u308b\u3079\u304d\u3060\u30b1\u30c9\u3001\u305d\u308c\u306f\u307e\u305f\u5225\u306e\u6a5f\u4f1a\u306b\u3002 \u524d\u304b\u3089\u3084\u308a\u305f\u304b\u3063\u305f\u306e\u304c\u3001\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u571f\u65e5\u306e\u8272\u3065\u3051\u3002 calendar\u3067\u30bd\u30fc\u30b9\u3092Grep\u3059\u308b\u3068\u3001 wp-in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":521,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,14],"tags":[35],"class_list":["post-391","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-wordpress","tag-calender"],"_links":{"self":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts\/391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=391"}],"version-history":[{"count":0,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts\/391\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/media\/521"}],"wp:attachment":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=391"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}