{"id":21357,"date":"2023-01-23T05:13:25","date_gmt":"2023-01-22T20:13:25","guid":{"rendered":"https:\/\/motoki-design.co.jp\/wordpress\/?p=21357"},"modified":"2024-10-09T17:54:17","modified_gmt":"2024-10-09T08:54:17","slug":"swell-table-schroll-hint","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/swell-table-schroll-hint\/","title":{"rendered":"SWELL\u2502\u30c6\u30fc\u30d6\u30eb\u306e\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\u300d\u306e\u6587\u8a00\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>SWELL\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\uff08\u7ffb\u8a33\uff09\u3067\u82f1\u8a9e\u30b5\u30a4\u30c8\u3092\u4f5c\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u305f\u307e\u306b\u65e5\u672c\u8a9e\u8868\u8a18\u304c\u6b8b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c6\u30fc\u30d6\u30eb\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u30d2\u30f3\u30c8\u3082\u305d\u306e\u4e00\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-border_left\">\u901a\u5e38\u306e\u8868\u8a18<\/p>\n\n\n\n<p>\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3067\u30c6\u30fc\u30d6\u30eb\u306e\u53f3\u5074\u306b\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\u300d\u306e\u6587\u8a00\u304c\u65e5\u672c\u8a9e\u3067\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"812\" height=\"151\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-01-23_04h59_30-812x151.png\" alt=\"\" class=\"wp-image-21361\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-01-23_04h59_30-812x151.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-01-23_04h59_30-382x71.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-01-23_04h59_30-768x143.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-01-23_04h59_30.png 924w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u30c6\u30fc\u30d6\u30eb\u306e\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\u300d\u306e\u6587\u8a00\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SWELL\u3067\u30c6\u30fc\u30d6\u30eb\u306e\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\u300d\u306e\u6587\u8a00\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u3084\u308a\u65b9\u306f\u7c21\u5358\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u7ba1\u7406\u753b\u9762\uff1e\u5916\u89b3\uff1e\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u30a8\u30c7\u30a3\u30bf\uff1efunctions.php\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203b\u30b3\u30fc\u30c9\u306e\u4e2d\u306b\u6587\u8a00\u304c\u3042\u308b\u306e\u3067\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u203b\u4e0d\u5b89\u306a\u65b9\u306fCode Snippets\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5165\u308c\u3066\u3001\u305d\u3053\u306b\u633f\u5165\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>function motoki_table_schroll_hint(){\n\t\t  return &#39;&lt;div class=&quot;c-scrollHint sp_&quot;&gt;&lt;span&gt;\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u3061\u3083\u3044\u307e\u3059\u266a &lt;i class=&quot;icon-more_arrow&quot;&gt;&lt;\/i&gt;&lt;\/span&gt;&lt;\/div&gt;&#39;;\t  \n}\nadd_filter( &#39;swell_table_scroll_hint&#39;, &#39;motoki_table_schroll_hint&#39; );<\/code><\/pre><\/div>\n\n\n\n<p>\u307e\u305f\u6587\u8a00\u306e\u524d\u306e\u30af\u30e9\u30b9\u306e\u8868\u793a\u3092\u5909\u3048\u308b\u3068\u8868\u793a\u5f62\u5f0f\u3092\u8abf\u6574\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3060\u3051\u8868\u793a\u3059\u308b\u5834\u5408\u306f<code>c-scrollHint sp_<\/code><\/li>\n\n\n\n<li>\u3061\u306a\u307f\u306bPC\u3060\u3051\u8868\u793a\u3057\u305f\u3044\u6642\u306f<code>c-scrollHint pc_<\/code><\/li>\n\n\n\n<li>PC\u3068SP\u3092\u4e21\u65b9\u8868\u793a\u3057\u305f\u3044\u6642\u306f<code>c-scrollHint _<\/code><\/li>\n<\/ul>\n\n\n\n<p>\u3068\u30af\u30e9\u30b9\u306e\u8868\u8a18\u3092\u5909\u66f4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d5\u30c3\u30af\u300cswell_table_scroll_hint\u300d\u306e\u30b3\u30fc\u30c9\u306e\u5834\u6240<\/h3>\n\n\n\n<p>\u8272\u3005\u5909\u66f4\u3057\u305f\u3044\u65b9\u306f\u5143\u306e\u30b3\u30fc\u30c9\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-file=\"functions.php\" data-lang=\"PHP\"><code>function motoki_table_schroll_hint(){\n    $hint_class = &#39;both&#39; !== $scrollable ? &quot; {$scrollable}_&quot; : &#39;&#39;;\n    if ( str_contains( $className, &#39;sp_only&#39; ) ) {\n        $hint_class .= &#39; sp_only&#39;;\n    } elseif ( str_contains( $className, &#39;pc_only&#39; ) ) {\n        $hint_class .= &#39; pc_only&#39;;\n    }\n        $hint_src = &#39;&lt;div class=&quot;c-scrollHint&#39; . esc_attr( $hint_class ) . &#39;&quot;&gt;&lt;span&gt;&#39; . esc_html__( &#39;\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u3061\u3083\u3044\u307e\u3059\u266a&#39;, &#39;swell&#39; ) . &#39; &lt;i class=&quot;icon-more_arrow&quot;&gt;&lt;\/i&gt;&lt;\/span&gt;&lt;\/div&gt;&#39;;\n        return $hint_src;\n}\nadd_filter( &#39;swell_table_scroll_hint&#39;, &#39;motoki_table_schroll_hint&#39; );<\/code><\/pre><\/div>\n\n\n\n<p>\u30d5\u30c3\u30af\u306e\u8a18\u8f09\u5834\u6240\uff1awp-content\/themes\/swell\/lib\/gutenberg\/render_hook\/core_table.php<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"812\" height=\"114\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-01-23_05h14_59-812x114.png\" alt=\"\" class=\"wp-image-21375\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-01-23_05h14_59-812x114.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-01-23_05h14_59-382x54.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-01-23_05h14_59-768x108.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-01-23_05h14_59.png 924w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u3001\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-border_left\">\u6587\u8a00\u306e\u5909\u66f4\u5f8c<\/p>\n\n\n<div class=\"c-scrollHint pc_\"><span>\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059 <i class=\"icon-more_arrow\"><\/i><\/span><\/div>\n<figure data-table-scrollable=\"pc\" data-cell1-fixed=\"pc\" class=\"wp-block-table\"><table style=\"--table-width:1200px;\"><tbody><tr><td>\u82f1\u8a9e<\/td><td>ABCDEFGHIJKLMNOPQRSTUVWXYZ<\/td><\/tr><tr><td>\u65e5\u672c\u8a9e<\/td><td>\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3088\u3086\u3089\u308a\u308b\u308c\u308d\u308f\u3092\u3093\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3088\u3086\u3089\u308a\u308b\u308c\u308d\u308f\u3092\u3093<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">SWELL\u3067\u30ea\u30c3\u30c1\u30ab\u30e9\u30e0\u306e\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\u300d\u306e\u6587\u8a00\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u30ea\u30c3\u30c1\u30ab\u30e9\u30e0\u3067\u306f\u5c02\u7528\u306e\u30d5\u30c3\u30af\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u666e\u901a\u306b\u7f6e\u63db\u3057\u3066\u3042\u3052\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-file=\"functions.php\" data-lang=\"PHP\"><code>function motoki_columns_schroll_hint($text) {\n\t$text = str_replace(&#39;\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059&#39;, &#39;\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u308b\u3093\u3067\u3059\uff01&#39;, $text);\n\treturn $text;\n}\nadd_filter(&#39;the_content&#39;, &#39;motoki_columns_schroll_hint&#39;);<\/code><\/pre><\/div>\n\n\n\n<div class=\"swell-block-columns\" style=\"--clmn-w--pc:400px;--clmn-w--tab:400px;--clmn-w--mobile:300px\" data-scrollable=\"1\"><div class=\"c-scrollHint\"><span>\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059 <i class=\"icon-more_arrow\"><\/i><\/span><\/div><div class=\"swell-block-columns__inner\">\n<div class=\"swell-block-column swl-has-mb--s\">\n<p>\u3053\u3053\u306b\u306a\u306b\u304b\u6587\u8a00\u304c\u5165\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"swell-block-column swl-has-mb--s\">\n<p>\u3053\u3053\u306b\u306a\u306b\u304b\u6587\u8a00\u304c\u5165\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\u300d\u306e\u6587\u8a00\u3092\u6d88\u3057\u305f\u3044\u5834\u5408<\/h3>\n\n\n\n<p>\u77e2\u5370\u3082\u542b\u3081\u3066\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\u300d\u306e\u6587\u8a00\u3092\u6d88\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-file=\"functions.php\" data-lang=\"PHP\"><code>function motoki_columns_scroll_hint($text) {\n    \/\/ \u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u524a\u9664\n    $text = str_replace(&#39;\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059&#39;, &#39;&#39;, $text);\n    \/\/ \u30a2\u30a4\u30b3\u30f3\u90e8\u5206\u306eHTML\u3082\u524a\u9664\n    $text = str_replace(&#39;&lt;div class=&quot;c-scrollHint&quot;&gt;&lt;span&gt; &lt;i class=&quot;icon-more_arrow&quot;&gt;&lt;\/i&gt;&lt;\/span&gt;&lt;\/div&gt;&#39;, &#39;&#39;, $text);\n    return $text;\n}\nadd_filter(&#39;the_content&#39;, &#39;motoki_columns_scroll_hint&#39;);<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>SWELL\u306f\u6b63\u76f4\u3001\u591a\u8a00\u8a9e\u5bfe\u5fdc\u306b\u306f\u307e\u3060\u307e\u3060\u6574\u5099\u4e0d\u8db3\u306a\u3068\u3053\u308d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307b\u3093\u3068\u3046\u306f\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\uff08\u7ffb\u8a33\uff09\u306e\u5834\u6240\u3092\u3059\u3079\u3066\u8a18\u8f09\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068\u3065\u3064\u66f8\u3044\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SWELL\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\uff08\u7ffb\u8a33\uff09\u3067\u82f1\u8a9e\u30b5\u30a4\u30c8\u3092\u4f5c\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u305f\u307e\u306b\u65e5\u672c\u8a9e\u8868\u8a18\u304c\u6b8b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002 \u30c6\u30fc\u30d6\u30eb\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u30d2\u30f3\u30c8\u3082\u305d\u306e\u4e00\u3064\u3067\u3059\u3002 \u901a\u5e38\u306e\u8868\u8a18 \u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3067\u30c6\u30fc\u30d6\u30eb\u306e\u53f3\u5074\u306b\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\u300d\u306e\u6587\u8a00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21373,"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-21357","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\/21357","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=21357"}],"version-history":[{"count":2,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/21357\/revisions"}],"predecessor-version":[{"id":26119,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/21357\/revisions\/26119"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/21373"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=21357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=21357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=21357"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=21357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}