{"id":716,"date":"2008-04-30T00:00:30","date_gmt":"2008-04-29T15:00:30","guid":{"rendered":"https:\/\/y2tech.net\/blog\/?p=716"},"modified":"2008-04-30T00:00:30","modified_gmt":"2008-04-29T15:00:30","slug":"wp-galley-sample-code","status":"publish","type":"post","link":"https:\/\/y2tech.net\/blog\/inet\/wp\/wp-galley-sample-code-716\/","title":{"rendered":"WordPress \u30ab\u30b9\u30bf\u30e0\u30ae\u30e3\u30e9\u30ea\u30fc\u306e\u53c2\u8003\u30b3\u30fc\u30c9"},"content":{"rendered":"<h4> \u30ab\u30b9\u30bf\u30e0\u30ae\u30e3\u30e9\u30ea\u30fc\u306e\u53c2\u8003\u30b3\u30fc\u30c9 <\/h4>\r\n<br>\r\n<p>\u524d\u56de\u7d39\u4ecb\u3057\u305f<a href=\"https:\/\/y2tech.net\/blog\/inet\/wp\/wp-gallery-grouping-619\/\">WordPress\u306e\u30ae\u30e3\u30e9\u30ea\u30fc\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/a>\u306e\u5185\u5bb9\u3067\u306f\u3001Wordpress \u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3063\u305f\u4e8b\u306e\u306a\u3044\u4eba\u306b\u306f\u96e3\u89e3\u3060\u3063\u305f\u3068\u601d\u3044\u307e\u3059\uff0e\u53c2\u8003\u7528\u3068\u3057\u3066\u30b7\u30f3\u30d7\u30eb\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\uff0e\u7c21\u5358\u306a\u65e5\u672c\u8a9e\u306e\u30b3\u30e1\u30f3\u30c8\u3082\u3044\u308c\u3066\u304a\u304d\u307e\u3057\u305f\u306e\u3067\u53c2\u8003\u306b\u3057\u3066\u4e0b\u3055\u3044\uff0e\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u30b7\u30f3\u30d7\u30eb\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u306e\u3067\u3001\u5f8c\u306f\u81ea\u5206\u3067\u8272\u3005\u3068\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\uff0e\u3053\u306e\u30b3\u30fc\u30c9\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u9762\u306b\u306f\u6b86\u3069\u914d\u616e\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u5341\u5206\u6ce8\u610f\u3057\u3066\u4e0b\u3055\u3044\uff0e<\/p>\r\n<br>\r\n<p>WordPress 2.5 \u3068 2.5.1 \u3067\u306f\u3001\u30ae\u30e3\u30e9\u30ea\u30fc\uff08\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\uff09\u5efb\u308a\u3067\u304b\u306a\u308a\u306e\u4fee\u6b63\u304c\u5165\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e\u4eca\u56de\u306e\u53c2\u8003\u30b3\u30fc\u30c9\u306f \u6700\u65b0\u7248\u306e 2.5.1 \u3092\u96db\u5f62\u306b\u3057\u3066\u3044\u307e\u3059\uff0e\r\n<br>\r\n\u5c1a\u3001\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001 display, gid \u3068\u3044\u3046\uff12\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u3042\u308a\u307e\u3059\uff0e<\/p>\r\n<br>\r\n<p>display \u3092\u6307\u5b9a\u3057\u306a\u3044\u3068Wordpress\u6a19\u6e96\u306e\u8868\u793a\u65b9\u5f0f\u3067\u753b\u50cf\u3092\u8868\u793a\u3057\u307e\u3059\uff0e display=&#8221;lightbox&#8221; \u3068\u6307\u5b9a\u3059\u308b\u3068 Lightbox \u3092\u7528\u3044\u3066\u753b\u50cf\u3092\u8868\u793a\u3057\u307e\u3059\uff0e\u4ed6\u306b Lightview \u3084 ThickBox \u306a\u3069\u3092\u52a0\u3048\u308b\u5834\u5408\u306f\u3001\u305d\u308c\u306b\u5408\u308f\u305b\u3066\u8868\u793a\u90e8\u5206\u3092\u62e1\u5f35\u3057\u3066\u4e0b\u3055\u3044\uff0e\r\n\r\n<br>\r\n<p>gid \u306f\u30b0\u30eb\u30fc\u30d7\u6307\u5b9a\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\uff0e\uff08\u6307\u5b9a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u524d\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u4e0b\u3055\u3044\uff09<\/p>\n<h4> \u30b9\u30bf\u30a4\u30eb\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f <\/h4>\r\n<br>\r\n<p>\u3053\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u3001\u3082\u3046\u5c11\u3057\u624b\u3092\u52a0\u3048\u308b\u3068\u30ae\u30e3\u30e9\u30ea\u30fc\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u306e\u8868\u793a\u65b9\u6cd5\u3092\u62e1\u5f35\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff0e\r\n<br>\r\n   bgs=&#8221;margin: 10px auto; background-color: #000;&#8221; \u306a\u3069\u306e\u3088\u3046\u306b\u8ffd\u52a0\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u30aa\u30fc\u30d0\u30e9\u30a4\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff0e\r\n<br>\r\n <pre><code class=\"language-Markup\">\n    extract( shortcode_atts( array(\n        'orderby'    =&gt; 'menu_order ASC, ID ASC',\n        'id'         =&gt; $post-&gt;ID,\n        'itemtag'    =&gt; 'dl',\n        'icontag'    =&gt; 'dt',\n        'captiontag' =&gt; 'dd',\n        'columns'    =&gt; 3,\n        'size'       =&gt; 'thumbnail',\n        'display'    =&gt; 'standard',      \/\/ \u4eca\u56de\u8ffd\u52a0\u3057\u305f\u30aa\u30d7\u30b7\u30e7\u30f3\uff08\u753b\u50cf\u8868\u793a\u306e\u65b9\u6cd5\uff09\n        'gid'        =&gt; '',              \/\/ \u4eca\u56de\u8ffd\u52a0\u3057\u305f\u30aa\u30d7\u30b7\u30e7\u30f3\uff08\u30b0\u30eb\u30fc\u30d7\u6307\u5b9a\uff09\n        'bgs'        =&gt; '',              \/\/ \u4eca\u56de\u8ffd\u52a0\u3057\u305f\u30aa\u30d7\u30b7\u30e7\u30f3\uff08\u80cc\u666f\u5168\u4f53\u306e\u8ffd\u52a0\u30b9\u30bf\u30a4\u30eb\uff09\r\n\r\n    ), $attr ) );\r\n<\/p>\r\n<br>\r\n<p>\u9014\u4e2d\u7701\u7565\r\n<\/p>\r\n<br>\r\n<p> $bgs = tag_escape($bgs)\uff1b\r\n\r\n    $output = apply_filters('gallery_style', \"\n        &lt;style type='text\/css'&gt;\n            .$myClassString {\n                margin: auto;\n                $bgs ;                 <=======  \u3053\u306e\u4f4d\u7f6e\u306b\u8ffd\u52a0\u30b9\u30bf\u30a4\u30eb\u3092\u5165\u308c\u308b\n            }\n            .$myClassString-item {\n                float: left;\n                margin-top: 10px;\n                text-align: center;\n                width: {$itemwidth}%;           }\n            .$myClassString img {\n                border: 2px solid #cfcfcf;\n            }\n            .$myClassString-caption {\n                margin-left: 0;\n            }\n        &lt;\/style&gt;\n        &lt;!-- see mygallery_shortcode() in wp-includes\/media.php --&gt;\n        &lt;div class='$myClassString'&gt;\");\r\n\r\n<\/code><\/pre>\r\n<br>\r\n<p>\u3010 \u524d\u56de\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089 \u4f59\u5206\u306a \".\" \u3092\u53d6\u308a\u9664\u304d\u307e\u3057\u305f  5\/3 2008 \u3011<\/p>\n<hr \/>\n<h4> \u30ab\u30b9\u30bf\u30e0\u30ae\u30e3\u30e9\u30ea\u30fc\u306e\u53c2\u8003\u30b3\u30fc\u30c9 <\/h4>\r\n<br>\r\n<br>\r\n<p>\u3053\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306eURL :  <a href=\"https:\/\/y2tech.net\/samples\/SampleFunctions.html\">https:\/\/y2tech.net\/samples\/SampleFunctions.html<\/a>\r\n<br>\r\n\r\n<iframe loading=\"lazy\" width=\"676\" height=\"980\" frameborder=\"1\" scrolling=\"yes\" marginheight=\"5\" marginwidth=\"2\" src=\"\/samples\/SampleFunctions.html\"><\/iframe><br>","protected":false},"excerpt":{"rendered":"\u3000\u524d\u56de\u7d39\u4ecb\u3057\u305fWordpress\u306e\u30ae\u30e3\u30e9\u30ea\u30fc\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306e\u5185\u5bb9\u3067\u306f\u3001Wordpress \u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3063\u305f\u4e8b\u306e\u306a\u3044\u4eba\u306b\u306f\u96e3\u89e3\u3060\u3063\u305f\u3068\u601d\u3044\u307e\u3059\uff0e\u53c2\u8003\u7528\u3068\u3057\u3066\u30b7\u30f3\u30d7\u30eb\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\uff0e\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u30b7\u30f3\u30d7\u30eb\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u306e\u3067\u3001\u5f8c\u306f\u81ea\u5206\u3067\u8272\u3005\u3068\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\uff0e","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[12],"tags":[688,119,124,127,132],"class_list":["post-716","post","type-post","status-publish","format-standard","hentry","category-wp","tag-wp","tag-119","tag-124","tag-127","tag-132"],"_links":{"self":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/comments?post=716"}],"version-history":[{"count":0,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/716\/revisions"}],"wp:attachment":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/media?parent=716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/categories?post=716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/tags?post=716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}