{"id":164487,"date":"2022-11-08T05:36:04","date_gmt":"2022-11-08T05:36:04","guid":{"rendered":"https:\/\/ja.wordpress.org\/plugins\/wrapping-shortcode\/"},"modified":"2022-11-08T07:01:32","modified_gmt":"2022-11-08T07:01:32","slug":"wrapping-shortcode","status":"publish","type":"plugin","link":"https:\/\/da.wordpress.org\/plugins\/wrapping-shortcode\/","author":14164118,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.0","stable_tag":"0.1.0","tested":"6.1.10","requires":"5.9","requires_php":"7.4","requires_plugins":"","header_name":"Wrapping ShortCode","header_author":"Asumaru","header_description":"This plugin provides a shortcode block. It is not just a shortcode, it is a shortcode block that wraps other blocks.","assets_banners_color":"d3d5ca","last_updated":"2022-11-08 07:01:32","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/asumaru.com\/plugins\/asm-wrapping-shortcode-block\/","header_plugin_uri":"https:\/\/asumaru.com\/plugins\/asm-wrapping-shortcode-block\/","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2858,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.0":{"tag":"0.1.0","author":"Asumaru","date":"2022-11-08 07:01:32"}},"upgrade_notice":{"0.1.0":"<ul>\n<li>Release<\/li>\n<\/ul>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2813972,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2813972,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":2813972,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":2813972,"resolution":"1544x500","location":"assets","locale":""},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2813972,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2813972,"resolution":"772x250","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2813972,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"asm-wrapping-shortcode\/asm-wrapping-shortcode-block":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":2,"name":"asm-wrapping-shortcode\/asm-wrapping-shortcode-block","version":"0.1.0","title":"Wrapping ShortCode","category":"widgets","description":"This plugin provides a shortcode block. It is not just a shortcode, it is a shortcode block that wraps other blocks.","keywords":["asumaru","wrapping","shortcode"],"attributes":{"shortcode":{"type":"string","selector":".wrapping-sc","default":""},"comment":{"type":"string","selector":".wrapping-sc","default":""},"options":{"type":"string","selector":".wrapping-sc"}},"example":{"attributes":{"shortCode":"commentout","comment":"Please Comment"}},"supports":{"className":false,"customClassName":true,"html":true},"usesContext":["content"],"textdomain":"asm-wrapping-shortcode-block","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css","icon":""}},"tagged_versions":["0.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2813972,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2813972,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2813972,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2813972,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2813972,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2813972,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":2813972,"resolution":"7","location":"assets","locale":""},"screenshot-8.png":{"filename":"screenshot-8.png","revision":2813972,"resolution":"8","location":"assets","locale":""}},"screenshots":{"1":"Block icon in the block editor","2":"\"Wrapping ShortCode\" block immediately after placement","3":"Place \"headings\" and \"paragraphs\" in child blocks","4":"Select \"Shortcode\" and set \"Arguments\"","5":"Describe each content of the child block","6":"Add \"sample1\", \"sample2\" and \"sample3\" to custom fields","7":"Output result","8":"HTML source"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1220,215351,7486,4672,80],"plugin_category":[43],"plugin_contributors":[129966],"plugin_business_model":[],"class_list":["post-164487","plugin","type-plugin","status-publish","hentry","plugin_tags-block","plugin_tags-commentout","plugin_tags-group","plugin_tags-postmeta","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-asumaru","plugin_committers-asumaru"],"banners":{"banner":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/banner-772x250.png?rev=2813972","banner_2x":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/banner-1544x500.png?rev=2813972","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/icon.svg?rev=2813972","icon":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/icon.svg?rev=2813972","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/screenshot-1.png?rev=2813972","caption":"Block icon in the block editor"},{"src":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/screenshot-2.png?rev=2813972","caption":"\"Wrapping ShortCode\" block immediately after placement"},{"src":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/screenshot-3.png?rev=2813972","caption":"Place \"headings\" and \"paragraphs\" in child blocks"},{"src":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/screenshot-4.png?rev=2813972","caption":"Select \"Shortcode\" and set \"Arguments\""},{"src":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/screenshot-5.png?rev=2813972","caption":"Describe each content of the child block"},{"src":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/screenshot-6.png?rev=2813972","caption":"Add \"sample1\", \"sample2\" and \"sample3\" to custom fields"},{"src":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/screenshot-7.png?rev=2813972","caption":"Output result"},{"src":"https:\/\/ps.w.org\/wrapping-shortcode\/assets\/screenshot-8.png?rev=2813972","caption":"HTML source"}],"raw_content":"<!--section=description-->\n<p>Are you using shortcodes?\nThere is also a standard shortcode block in the default block editor.\nBut it can't be used without writing code.\nAlso, you can't enclose other blocks in shortcodes, so you have to write the HTML code.<\/p>\n\n<p>This plugin provides a shortcode block. It is not just a shortcode, it is a shortcode block that wraps other blocks.<\/p>\n\n<p>** Easy configuration **<\/p>\n\n<p>This is available by simply selecting a shortcode that you have enabled in WordPress.\nShortcode arguments are also configurable.\nThese are configurable in the block editor sidebar.\nAlso, the selected shortcode name is displayed in the block on the editor.<\/p>\n\n<p>** Nestable blocks **<\/p>\n\n<p>This block can place blocks such as \"paragraph\" and \"image\".\nThis blocks can also be nested.\nFor example, it is possible to repeat headings and paragraphs in combination with shortcodes that can list custom fields.<\/p>\n\n<p>This block can set a \"Comment Label\".\nWrite the specified HTML comment out before and after this block.\nUseful for design adjustments.\nIf you don't set it, it won't be written in the HTML source.<\/p>\n\n<p>** replacement keyword **<\/p>\n\n<p>This block has some replacement keywords.\nKeywords are used to display shortcode information.\nFor example, if you enter \"%shortcode%\" in the Additional CSS class, the selected shortcode name will be displayed in the CSS class.<\/p>\n\n<p>This block itself does not output HTML tags.\nPlease use it together with \"Group\" block.<\/p>\n\n<p>This plugin includes \"commentout\" and \"meta-loop\" as sample shortcodes.<\/p>\n\n<p>There are many other shortcodes in the world.\nTake advantage of useful shortcode assets in this block.<\/p>\n\n<h3>Usage<\/h3>\n\n<h4>Child blocks<\/h4>\n\n<p>Child blocks are optional.\nChild blocks can be placed inside the block.\nIt is also possible to use dynamic blocks.\nThe \"Wrapping ShortCode\" itself is also available for child blocks.\nIt is possible to use replacement keywords within child blocks.\n\"Wrapping ShortCode\" itself has no HTML tags.\nUse with \"Group\" block<\/p>\n\n<h4>ShortCode<\/h4>\n\n<p>List valid shortcodes within your WordPress site.\nSelect the shortcode you want to use.<\/p>\n\n<p>*In the Pro version (paid), a shortcode filtering function is under development.<\/p>\n\n<h4>Arguments<\/h4>\n\n<p>Arguments are optional.\nArguments can be set for the specified shortcode.\nIt is okay to mix unkeyed and keyed arguments.\nIt also supports the presence or absence of double quotes.\nIt is possible to use replacement keywords in arguments.<\/p>\n\n<h4>Commnet labels<\/h4>\n\n<p>Commnet labels are optional.\nWrite the specified HTML comment out before and after this block.\nIf you don't set it, it won't be written in the HTML source.\nIt is possible to use replacement keywords in comment labels.<\/p>\n\n<h4>Additional CSS Classes<\/h4>\n\n<p>Additional CSS classes are standard items.\nAdditional CSS classes are optional.\nIt is possible to use replacement keywords within additional CSS classes.<\/p>\n\n<h4>Replacement keywords<\/h4>\n\n<p>Replace any of the following replacement keywords in the block with the appropriate values.\nHowever, if the shortcodes or child blocks is nested, the replacement keyword will take precedence over the shortcodes or child blocks.\n* %shortcode%: Selected shortcode name\n* %shortcodeAttrs%: Arguments of the set shortcode\n* %shortcodeStr%: Generated shortcode string\n* %wscClass%: Additional CSS class<\/p>\n\n<h3>Shortcode: commentout<\/h3>\n\n<h4>Overview<\/h4>\n\n<p>[commentout (arguments) ]comment here[\/commentout]<\/p>\n\n<p>Writes the contents of the shortcode as HTML comments out.<\/p>\n\n<h4>Arguments<\/h4>\n\n<ul>\n<li>trim_br: Remove &lt; br &gt; before and after content. Default \"yes\"<\/li>\n<li>do_trim: Remove whitespace before and after content. Default \"no\"<\/li>\n<li>do_shortcode: Run a content shortcode. Default \"yes\"<\/li>\n<li>esc_html: Escape HTML tags in content. Default \"yes\"<\/li>\n<\/ul>\n\n<h3>Shortcode: meta-loop<\/h3>\n\n<h4>Overview<\/h4>\n\n<p>[meta-loop (arguments) ]template HTML[\/meta-loop]<\/p>\n\n<p>Template and repeat the content of her shortcode by listing the custom field keys for the post.<\/p>\n\n<p>eg. [meta-loop sample1 sample2 sample3 order=random]<\/p>\n\n<p>#%number%) %key%:%value%<\/p>\n\n<p>[\/meta-loop]<\/p>\n\n<h4>Arguments<\/h4>\n\n<ul>\n<li>(meta key): The key of the custom field to output. Multiple allowed. Sequential number if omitted.<\/li>\n<li>start: Output start position. 0 at the beginning. Default \"0\"<\/li>\n<li>end: Output end position. Number of keys if null. Default \"null\"<\/li>\n<li>step: position increment\/decrement value. Default \"1\"<\/li>\n<li>lines: Number of outputs. Default \"null\". null is output until the end. 0 is hidden.<\/li>\n<li>order: direction of sorting. default \"none\"\n** none: no sorting.\n** asc: Order sort.\n** desc: Reverse sort.\n** random: Random.<\/li>\n<li>orderby: what to sort\n** counter: output position\n** metakey: the key of the custom field\n** metavalue: custom field value<\/li>\n<li>replaceNumber: Replacement keyword for output order. Default \"%number%\"<\/li>\n<li>replaceCounter: replacement keyword for output position. Default \"%counter%\"<\/li>\n<li>repkaceKey: Replacement keyword for the key of custom field. Default \"%key%\"<\/li>\n<li>repkaceValue: Replacement keyword for custom field value. Default \"%value%\"<\/li>\n<li>noContent: Alternate content if no template is specified.<\/li>\n<li>nl2br: Whether to convert BR tags when there is a newline in the custom field value. Default \"yes\".<\/li>\n<\/ul>\n\n<h4>Alternate content<\/h4>\n\n<p>&lt; div class=\"no-%number%\"&gt;%key%:%value%<\/p>\n\n<h4>replacement keyword<\/h4>\n\n<ul>\n<li>%counter%: Repeated number starting from 0<\/li>\n<li>%number%: Repeated number starting from 1<\/li>\n<li>%key%: the key of the custom field<\/li>\n<li>%value%: custom field value<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/asm-wrapping-shortcode-block<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Edit a post or page, select Block Editor and add a \"Wrapping ShortCode\" block.<\/li>\n<li>Select the block and set \"Shortcode\" and \"Arguments\" from \"Settings\".<\/li>\n<li>Place some blocks inside the block.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20happens%20if%20i%20don%27t%20specify%20a%20shortcode%3F'><h3>What happens if I don't specify a shortcode?<\/h3><\/dt>\n<dd><p>The blocks placed within the block will be displayed.<\/p><\/dd>\n<dt id='what%20happens%20if%20you%20don%27t%20set%20the%20arguments%3F'><h3>What happens if you don't set the arguments?<\/h3><\/dt>\n<dd><p>Arguments are optional.\nFollow the shortcode you specify.<\/p><\/dd>\n<dt id='what%20happens%20if%20there%20are%20no%20child%20blocks%3F'><h3>What happens if there are no child blocks?<\/h3><\/dt>\n<dd><p>Child blocks are optional.\nnothing happens<\/p><\/dd>\n<dt id='what%20is%20the%20icon%3F'><h3>What is the icon?<\/h3><\/dt>\n<dd><p>It is a Japanese food \"Onigiri\"(rice ball).<\/p><\/dd>\n<dt id='why%20is%20the%20icon%20%22onigiri%22%3F'><h3>Why is the icon \"Onigiri\"?<\/h3><\/dt>\n<dd><p>Onigiri is often wrapped in seaweed.\nThe \"rice\" inside is the child blocks.\nThe \"seaweed\" that he wraps around is likened to the shortcode.<\/p><\/dd>\n<dt id='do%20you%20support%20unkeyed%20and%20keyed%20arguments%3F'><h3>Do you support unkeyed and keyed arguments?<\/h3><\/dt>\n<dd><p>It is okay to mix unkeyed and keyed arguments.\nThey are processed separately internally.\nIt also supports the presence or absence of double quotes.<\/p><\/dd>\n<dt id='can%20replacement%20keywords%20be%20used%20in%20arguments%2C%20comment%20labels%2C%20and%20additional%20css%20classes%3F'><h3>Can replacement keywords be used in arguments, comment labels, and additional CSS classes?<\/h3><\/dt>\n<dd><p>Yes.\nHowever, if you nest this block, the replacement keyword takes precedence over the child blocks.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Release<\/li>\n<\/ul>","raw_excerpt":"This plugin provides a shortcode block. It is not just a shortcode, it is a shortcode block that wraps other blocks.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/164487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=164487"}],"author":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/asumaru"}],"wp:attachment":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=164487"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=164487"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=164487"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=164487"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=164487"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=164487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}