{"id":152252,"date":"2022-01-19T05:42:32","date_gmt":"2022-01-19T05:42:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/k2-core-block-image-styles\/"},"modified":"2022-01-19T06:22:21","modified_gmt":"2022-01-19T06:22:21","slug":"k2-core-block-image-styles","status":"publish","type":"plugin","link":"https:\/\/test.wordpress.org\/plugins\/k2-core-block-image-styles\/","author":10419369,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"5.8.13","requires":"5.8","requires_php":"7.0","requires_plugins":"","header_name":"K2 Core Block Image Styles","header_author":"Mahesh M. Waghmare","header_description":"This plugin adds a new image styles for the Core Image block.","assets_banners_color":"b1b2b2","last_updated":"2022-01-19 06:22:21","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/mwaghmare7\/","header_plugin_uri":"https:\/\/maheshwaghmare.com\/k2-core-block-image-styles\/","header_author_uri":"https:\/\/maheshwaghmare.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3638,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"Mahesh901122","date":"2022-01-19 06:22:21"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":2659774,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2659774,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2659774,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Image Styles."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[206914,133,206912,206911,206913],"plugin_category":[50],"plugin_contributors":[89175],"plugin_business_model":[],"class_list":["post-152252","plugin","type-plugin","status-publish","hentry","plugin_tags-block-image","plugin_tags-image","plugin_tags-image-designs","plugin_tags-image-styles","plugin_tags-image-variation","plugin_category-media","plugin_contributors-mahesh901122","plugin_committers-mahesh901122"],"banners":{"banner":"https:\/\/ps.w.org\/k2-core-block-image-styles\/assets\/banner-772x250.png?rev=2659774","banner_2x":"https:\/\/ps.w.org\/k2-core-block-image-styles\/assets\/banner-1544x500.png?rev=2659774","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/k2-core-block-image-styles\/assets\/icon-256x256.png?rev=2659774","icon_2x":"https:\/\/ps.w.org\/k2-core-block-image-styles\/assets\/icon-256x256.png?rev=2659774","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin adds a new image styles for the Core Image block.<\/p>\n\n<p><\/p>\n\n<p>Read more in <a href=\"https:\/\/maheshwaghmare.com\/k2-core-block-image-styles\/\">one page quick documentation<\/a>.<\/p>\n\n<h4>Features:<\/h4>\n\n<ul>\n<li>Zero configuration<\/li>\n<li>Easy to use.<\/li>\n<li>25+ image styles.\n\n<ul>\n<li>Triangle<\/li>\n<li>Trapezoid<\/li>\n<li>Parallelogram<\/li>\n<li>Rhombus<\/li>\n<li>Pentagon<\/li>\n<li>Hexagon<\/li>\n<li>Heptagon<\/li>\n<li>Octagon<\/li>\n<li>Nonagon<\/li>\n<li>Decagon<\/li>\n<li>Bevel<\/li>\n<li>Rabbet<\/li>\n<li>Left Arrow<\/li>\n<li>Right Arrow<\/li>\n<li>Left Point<\/li>\n<li>Right Point<\/li>\n<li>Left Chevron<\/li>\n<li>Right Chevron<\/li>\n<li>Star<\/li>\n<li>Cross<\/li>\n<li>Message<\/li>\n<li>Close<\/li>\n<li>Frame<\/li>\n<li>Inset<\/li>\n<li>Custom Polygon<\/li>\n<li>Circle<\/li>\n<li>Ellipse<\/li>\n<\/ul><\/li>\n<li>Add new styles with filter.<\/li>\n<li>Remove existing styles with filter.<\/li>\n<li>Modify existing styles with filter.<\/li>\n<li>Quick support<\/li>\n<\/ul>\n\n<p><strong>Welcome for featured requests<\/strong><\/p>\n\n<p>If you have any suggestion or any featured request then don't hesitate to <a href=\"https:\/\/maheshwaghmare.com\/say-hello\/\">contact<\/a>.<\/p>\n\n<h3>Add new image style<\/h3>\n\n<pre><code>add_filter( 'k2cbis_get_styles', 'prefix_add_new_style' );\n\nfunction prefix_add_new_style( $styles = array() ) {\n    $styles[] = array(\n        'name' =&gt; 'prefix-new-style',\n        'label' =&gt; 'New Style',\n        'inline_style' =&gt; '.wp-block-image.is-style-prefix-new-style img { clip-path: polygon(40% 10%, 30% 50%, 83%  25%); }',\n    );\n\n    return $styles;\n}\n<\/code><\/pre>\n\n<h3>Bug reports<\/h3>\n\n<p>Bug reports for \"K2 Core Block Image Styles\" are welcomed in our <a href=\"https:\/\/github.com\/maheshwaghmare\/k2-core-block-image-styles\/\">repository on GitHub<\/a>. Please note that GitHub is not a support forum, and that issues that are not properly qualified as bugs will be closed.<\/p>\n\n<h3>Further reading<\/h3>\n\n<p>For more info check out the following:<\/p>\n\n<ul>\n<li>The <a href=\"https:\/\/maheshwaghmare.com\/\">maheshwaghmare.com<\/a> official website.<\/li>\n<li>The <a href=\"https:\/\/maheshwaghmare.com\/say-hello\/\">Contact Me<\/a>.<\/li>\n<li>The <a href=\"https:\/\/maheshwaghmare.com\/k2-core-block-image-styles\/\">Getting started guide<\/a>.<\/li>\n<li>Other my <a href=\"https:\/\/wordpress.org\/plugins\/search\/mahesh901122\/\">WordPress Plugins<\/a>.<\/li>\n<li>Contribute with <a href=\"https:\/\/github.com\/maheshwaghmare\/k2-core-block-image-styles\/\">development<\/a>.<\/li>\n<li>Make a <a href=\"https:\/\/www.paypal.me\/mwaghmare7\/\">small donation<\/a>.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id='can%20i%20use%20this%20plugin%20with%20any%20gutenberg%20block'><h3>Can I use this plugin with any Gutenberg Block<\/h3><\/dt>\n<dd><p>Nope, For now this plugin add the styles only for the Core Image Gutenberg blocks. We may add those styles for other Gutenberg blocks in future.<\/p><\/dd>\n<dt id='can%20i%20enable%20or%20disable%20any%20styles%3F'><h3>Can I enable or disable any styles?<\/h3><\/dt>\n<dd><p>Yes. For now you can use the filter <code>k2cbis_get_styles<\/code> to add, remove or modify styles.<\/p>\n\n<p>E.g.<\/p>\n\n<pre><code>add_filter( 'k2cbis_get_styles', 'prefix_add_new_style' );\nfunction prefix_add_new_style( $styles = array() ) {\n    $styles[] = array(\n        'name' =&gt; 'prefix-new-style',\n        'label' =&gt; 'New Style',\n        'inline_style' =&gt; '.wp-block-image.is-style-prefix-new-style img { clip-path: polygon(40% 10%, 30% 50%, 83%  25%); }',\n    );\n\n    return $styles;\n}\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"This plugin adds a new image styles for the Core Image block.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/152252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=152252"}],"author":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mahesh901122"}],"wp:attachment":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=152252"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=152252"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=152252"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=152252"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=152252"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=152252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}