{"id":20967,"date":"2022-12-17T15:24:35","date_gmt":"2022-12-17T06:24:35","guid":{"rendered":"https:\/\/motoki-design.co.jp\/wordpress\/?p=20967"},"modified":"2024-09-05T15:15:24","modified_gmt":"2024-09-05T06:15:24","slug":"swell-show-new-badge","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/swell-show-new-badge\/","title":{"rendered":"SWELL\u2502\u6295\u7a3f\u30ea\u30b9\u30c8\u306b\u65b0\u7740NEW\u30d0\u30c3\u30b8\u3092\u8868\u793a\u3059\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba"},"content":{"rendered":"\n<p>SWELL\u306e\u6295\u7a3f\u30ea\u30b9\u30c8\u3067NEW\u30d0\u30c3\u30b8\u3092\u8868\u793a\u3057\u305f\u3044\u3068\u3075\u3068\u601d\u3044\u307e\u3057\u305f\u306e\u3067\u3001<\/p>\n\n\n\n<p>JavaScript\u30677\u65e5\u4ee5\u5185\u306e\u8a18\u4e8b\u306b\u76ee\u5370\u3092\u4ed8\u3051\u3066\u8868\u793a\u3055\u305b\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"p-postListWrap\"><ul class=\"p-postList -type-card -pc-col3 -sp-col1\"><li class=\"p-postList__item\">\n\t<a href=\"https:\/\/motoki-design.co.jp\/wordpress\/wordpress-plugin-gumroad-license-authentication\/\" class=\"p-postList__link\">\n\t\t<div class=\"p-postList__thumb c-postThumb\">\n\t<figure class=\"c-postThumb__figure\">\n\t\t<img decoding=\"async\" width=\"812\" height=\"457\"  src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/wordpress-plugin-gumroad-license-authentication-812x457.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/wordpress-plugin-gumroad-license-authentication-812x457.jpg 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/wordpress-plugin-gumroad-license-authentication-382x215.jpg 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/wordpress-plugin-gumroad-license-authentication-768x432.jpg 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/wordpress-plugin-gumroad-license-authentication.jpg 924w\" sizes=\"auto, (min-width: 960px) 400px, 100vw\" loading=\"lazy\" >\t<\/figure>\n\t\t\t<span class=\"c-postThumb__cat icon-folder\" data-cat-id=\"111\">\u30d7\u30e9\u30b0\u30a4\u30f3<\/span>\n\t<\/div>\n\t\t\t\t\t<div class=\"p-postList__body\">\n\t\t\t\t<div class=\"p-postList__title\">WordPress\u2502\u81ea\u4f5c\u30d7\u30e9\u30b0\u30a4\u30f3\u306bGumroad\u30e9\u30a4\u30bb\u30f3\u30b9\u8a8d\u8a3c\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5<\/div>\t\t\t\t\t\t\t\t<div class=\"p-postList__meta\">\n\t\t\t\t\t<div class=\"p-postList__times c-postTimes u-thin\">\n\t<time class=\"c-postTimes__posted icon-posted\" datetime=\"2026-04-11\" aria-label=\"\u516c\u958b\u65e5\">2026.04.11<\/time><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<\/a>\n<\/li>\n<li class=\"p-postList__item\">\n\t<a href=\"https:\/\/motoki-design.co.jp\/wordpress\/v\/\" class=\"p-postList__link\">\n\t\t<div class=\"p-postList__thumb c-postThumb\">\n\t<figure class=\"c-postThumb__figure\">\n\t\t<img decoding=\"async\" width=\"812\" height=\"457\"  src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/subdomain-ssl-white-screen-812x457.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/subdomain-ssl-white-screen-812x457.jpg 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/subdomain-ssl-white-screen-382x215.jpg 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/subdomain-ssl-white-screen-768x432.jpg 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/subdomain-ssl-white-screen.jpg 924w\" sizes=\"auto, (min-width: 960px) 400px, 100vw\" loading=\"lazy\" >\t<\/figure>\n\t\t\t<span class=\"c-postThumb__cat icon-folder\" data-cat-id=\"102\">\u30a8\u30e9\u30fc\u30fb\u4e0d\u5177\u5408\u5bfe\u5fdc<\/span>\n\t<\/div>\n\t\t\t\t\t<div class=\"p-postList__body\">\n\t\t\t\t<div class=\"p-postList__title\">WordPress\u2502\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u8ffd\u52a0\u5f8c\u306bSSL\u672a\u53cd\u6620\u3067\u5168\u30b5\u30a4\u30c8\u304c\u771f\u3063\u767d\u306b\u306a\u3063\u305f\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5<\/div>\t\t\t\t\t\t\t\t<div class=\"p-postList__meta\">\n\t\t\t\t\t<div class=\"p-postList__times c-postTimes u-thin\">\n\t<time class=\"c-postTimes__posted icon-posted\" datetime=\"2026-04-11\" aria-label=\"\u516c\u958b\u65e5\">2026.04.11<\/time><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<\/a>\n<\/li>\n<li class=\"p-postList__item\">\n\t<a href=\"https:\/\/motoki-design.co.jp\/wordpress\/snow-monkey-forms-matome\/\" class=\"p-postList__link\">\n\t\t<div class=\"p-postList__thumb c-postThumb\">\n\t<figure class=\"c-postThumb__figure\">\n\t\t<img decoding=\"async\" width=\"812\" height=\"457\"  src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/snow-monkey-forms-matome-812x457.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/snow-monkey-forms-matome-812x457.jpg 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/snow-monkey-forms-matome-382x215.jpg 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/snow-monkey-forms-matome-768x432.jpg 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/snow-monkey-forms-matome.jpg 924w\" sizes=\"auto, (min-width: 960px) 400px, 100vw\" loading=\"lazy\" >\t<\/figure>\n\t\t\t<span class=\"c-postThumb__cat icon-folder\" data-cat-id=\"111\">\u30d7\u30e9\u30b0\u30a4\u30f3<\/span>\n\t<\/div>\n\t\t\t\t\t<div class=\"p-postList__body\">\n\t\t\t\t<div class=\"p-postList__title\">Snow Monkey Forms\u2502\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u30fb\u8a2d\u5b9a\u65b9\u6cd5\u307e\u3068\u3081\u3010\u516815\u8a18\u4e8b\u3011<\/div>\t\t\t\t\t\t\t\t<div class=\"p-postList__meta\">\n\t\t\t\t\t<div class=\"p-postList__times c-postTimes u-thin\">\n\t<time class=\"c-postTimes__posted icon-posted\" datetime=\"2026-03-29\" aria-label=\"\u516c\u958b\u65e5\">2026.03.29<\/time><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<\/a>\n<\/li>\n<\/ul><\/div>\n\n\n<p>\u5f53\u30b5\u30a4\u30c8\u306e\u66f4\u65b0\u304c\u4e0d\u5b9a\u671f\u306a\u306e\u3067\u3001\u753b\u50cf\u3082\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-border_left\">\u6295\u7a3f\u8a18\u4e8b\u30ea\u30b9\u30c8\u306e\u5834\u5408<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"812\" height=\"603\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2022-12-17_15h45_49-812x603.png\" alt=\"\" class=\"wp-image-20982\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2022-12-17_15h45_49-812x603.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2022-12-17_15h45_49-382x284.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2022-12-17_15h45_49-768x570.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2022-12-17_15h45_49.png 924w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p class=\"is-style-border_left\">\u95a2\u9023\u8a18\u4e8b\u306e\u5834\u5408<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"812\" height=\"744\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2022-12-17_15h44_30-812x744.png\" alt=\"\" class=\"wp-image-20983\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2022-12-17_15h44_30-812x744.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2022-12-17_15h44_30-382x350.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2022-12-17_15h44_30-768x704.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2022-12-17_15h44_30.png 924w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p class=\"is-style-icon_pen\">\u5fdc\u7528\u3059\u308c\u3070\u3001\u4ed6\u306e\u30c6\u30fc\u30de\u3067\u3082\u8868\u793a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u305d\u306e\u65b0\u7740NEW\u30d0\u30c3\u30b8\u306e\u8868\u793a\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SWELL\u3067\u6295\u7a3f\u8a18\u4e8b\u30ea\u30b9\u30c8\u3068\u95a2\u9023\u8a18\u4e8b\u30ea\u30b9\u30c8\u306bNEW\u30d0\u30c3\u30b8\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<p>JavaScript\u3067\u30af\u30e9\u30b9\u3092\u8ffd\u52a0\u3057\u3066CSS\u3067\u8868\u793a\u3059\u308b\u3068\u3044\u3063\u305f\u30b7\u30f3\u30d7\u30eb\u306a\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">functions.php\u306b\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3059\u308b<\/h3>\n\n\n\n<p>\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u5834\u6240\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>WordPress\u306e\u7ba1\u7406\u753b\u9762 \uff1e \u5916\u89b3 \uff1e \u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u30a8\u30c7\u30a3\u30bf\u30fc \uff1e functions.php<\/code><\/p>\n\n\n\n<p>functions.php\u306b\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_info\">\u203bCode Snippets\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u3068\u5b89\u5168\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"functions.php\" data-lang=\"JavaScript\"><code>add_action( &#39;wp_head&#39;, function () { ?&gt;\n&lt;script&gt;\n\tvar date = new Date();\n\tvar yyyy = date.getFullYear();\n\tvar mm = (&quot;00&quot; + (date.getMonth()+1)).slice(-2);\n\tvar dd = (&quot;00&quot; + (date.getDate())).slice(-2);\n\tvar today = new Date(yyyy + &quot;-&quot; + mm + &quot;-&quot; + dd );\n\t\ndocument.addEventListener(&#39;DOMContentLoaded&#39;, () =&gt; {\n\ttry {\n \u00a0 \u00a0\/\/\u6295\u7a3f\u30ea\u30b9\u30c8\n\tvar datetime = document.querySelectorAll( &quot;ul.p-postList time&quot; ) ;\t\t\n\tfor (var i = 0; datetime.length; i++) {\n\t\u3000var postime = new Date(datetime[i].getAttribute(&quot;datetime&quot;));\n\t  var dif = (today - postime) \/ (1000 * 24 * 3600);\t\t  \n\t  if(-1 &lt;= dif && dif &lt;= 7){\n\t\t datetime[i].classList.add(&quot;new&quot;);\n\t  };\t\t\n\t}\n \u00a0 \u00a0\/\/\u95a2\u9023\u8a18\u4e8b\n\tvar datetime = document.querySelectorAll( &quot;ul.c-postList time&quot; ) ;\t\t\n\tfor (var i = 0; datetime.length; i++) {\n\t\u3000var postime = new Date(datetime[i].getAttribute(&quot;datetime&quot;));\n\t  var dif = (today - postime) \/ (1000 * 24 * 3600);\t\t  \n\t  if(-1 &lt;= dif && dif &lt;= 7){\n\t\t datetime[i].classList.add(&quot;new&quot;);\n\t  };\t\t\n\t}\t\t\n\t}catch (e) {}\t\n});\n&lt;\/script&gt;\n&lt;?php } );<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u30677\u65e5\u4ee5\u5185\u306e\u65b0\u7740\u306e\u30d6\u30ed\u30b0\u30ab\u30fc\u30c9\u306bnew\u3068\u3044\u3046\u30af\u30e9\u30b9\u304c\u4ed8\u4e0e\u3055\u308c\u308b\u306e\u3067\u3001<\/p>\n\n\n\n<p>\u3042\u3068\u306f\u3053\u3061\u3089\u306bCSS\u3067\u88c5\u98fe\u3092\u8db3\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CSS\u306e\u633f\u5165<\/h3>\n\n\n\n<p><code>WordPress\u306e\u7ba1\u7406\u753b\u9762 \uff1e \u5916\u89b3 \uff1e \u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u30a8\u30c7\u30a3\u30bf\u30fc \uff1e style.css<\/code>\u3092\u958b\u3044\u3066\u3001\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-file=\"style.css\" data-lang=\"CSS\"><code>.c-postTimes__posted.new:after {\n    content: &quot;NEW&quot;;\n    display: inline-block;\n    vertical-align: middle;\n    margin-left: 6px;\n    height: 16px;\n    line-height: 13px;\n    padding: 1px 10px 0px 10px;\n    font-size: 8px;\n    background-color: var(--color_main);\n    color: #ffffff;\n    position: relative;\n    bottom: 2px;\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>SWELL\u306e\u6295\u7a3f\u30ea\u30b9\u30c8\u30d6\u30ed\u30c3\u30af\u3067\u65b0\u7740\u8a18\u4e8b\u3092\u8868\u793a\u3059\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001<\/p>\n\n\n\n<p>\u66f4\u65b0\u983b\u5ea6\u304c\u591a\u3044\u5834\u5408\u306f\u672c\u8a18\u4e8b\u306e\u3088\u3046\u306aNEW\u30d0\u30c3\u30b8\u304c\u3042\u308b\u3068\u3001\u6700\u8fd1\u306e\u66f4\u65b0\u304c\u4e00\u76ee\u3067\u308f\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6c17\u306b\u306a\u3063\u305f\u65b9\u306f\u662f\u975e\u8a66\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"[custom_field field=\"readtime\"]\n","protected":false},"author":1,"featured_media":20970,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pochipp_cv_data":"","swell_btn_cv_data":"","footnotes":""},"categories":[110],"tags":[],"area":[],"class_list":["post-20967","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-swell-customize"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/20967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=20967"}],"version-history":[{"count":2,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/20967\/revisions"}],"predecessor-version":[{"id":24859,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/20967\/revisions\/24859"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/20970"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=20967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=20967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=20967"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=20967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}