#customblocks
Explore tagged Tumblr posts
Text
Leveraging Gutenberg for WordPress Plugin Development
Hey there, fellow developers! If you're looking to level up your WordPress plugin development game, you've come to the right place. In this blog, we'll dive deep into Gutenberg, the revolutionary block-based editor that's changing the way we create content in WordPress. We'll explore how to harness Gutenberg's potential to build powerful and user-friendly plugins that elevate your websites to the next level. So, buckle up, and let's get started!

Understanding Gutenberg Blocks
Gutenberg is all about blocks - those neat little content elements that make up your web pages. From paragraphs to images, galleries to buttons, each piece of content is now a block. And guess what? You can create your custom blocks too! Embrace the future of content creation with this simple example of a custom "My Awesome Block":
import { registerBlockType } from '@wordpress/blocks';
registerBlockType('my-awesome-plugin/my-awesome-block', {
title: 'My Awesome Block',
icon: 'star-filled',
category: 'common',
edit: () => {
return <div>Hey there! I'm your custom block. Let's rock!</div>;
},
save: () => {
return <div>Hi, I'm the front-end version of your custom block!</div>;
},
});
Building Custom Gutenberg Blocks Creating custom Gutenberg blocks is a breeze. All you need is the Gutenberg Block API and some JavaScript magic. The API lets you define block attributes, settings, and UI components. Let's build a dynamic "Quote Block" with editable author and text:
const { __ } = wp.i18n;
const { registerBlockType } = wp.blocks;
const { RichText } = wp.editor;
registerBlockType('my-awesome-plugin/quote-block', {
title: __('Quote Block'),
icon: 'format-quote',
category: 'common',
attributes: {
quoteText: {
type: 'string',
source: 'html',
selector: 'p',
},
quoteAuthor: {
type: 'string',
source: 'text',
selector: 'cite',
},
},
edit: ({ attributes, setAttributes }) => {
const { quoteText, quoteAuthor } = attributes;
const onChangeQuoteText = (newText) => setAttributes({ quoteText: newText });
const onChangeQuoteAuthor = (newAuthor) => setAttributes({ quoteAuthor: newAuthor });
return (
<blockquote>
<RichText
tagName="p"
value={quoteText}
onChange={onChangeQuoteText}
placeholder="Enter your quote here..."
/>
<RichText
tagName="cite"
value={quoteAuthor}
onChange={onChangeQuoteAuthor}
placeholder="Author"
/>
</blockquote>
);
},
save: ({ attributes }) => {
const { quoteText, quoteAuthor } = attributes;
return (
<blockquote>
<p>{quoteText}</p>
<cite>{quoteAuthor}<;/cite>
</blockquote>
);
},
});
Extending Core Gutenberg Blocks
Gutenberg comes with a rich set of core blocks, but sometimes you need that extra oomph! Fear not, you can extend core blocks too. Let's add a custom color option to the default "Button Block":
const { createHigherOrderComponent } = wp.compose;
const { addFilter } = wp.hooks;
const withCustomButtonColor = createHigherOrderComponent((BlockEdit) => {
return (props) => {
const { name, attributes, setAttributes } = props;
const { backgroundColor } = attributes;
const onChangeBackgroundColor = (colorValue) => {
setAttributes({ backgroundColor: colorValue });
};
return (
<>
�� <BlockEdit {...props} />
<InspectorControls>
<PanelBody title="Button Settings" initialOpen={true}>
<ColorPicker
color={backgroundColor}
onChangeComplete={onChangeBackgroundColor}
/>
</PanelBody>
</InspectorControls>
</>
);
};
}, 'withCustomButtonColor');
wp.hooks.addFilter('editor.BlockEdit', 'my-awesome-plugin/custom-button-color', withCustomButtonColor);
Implementing Block Patterns
Block Patterns are pre-designed block combinations that simplify content creation. With a single click, you can add complex layouts to your pages. Let's create a "Hero Section" pattern with an image and a heading:
const { registerBlockPattern } = wp.blockPatterns;
const { Fragment } = wp.element;
const { useBlockProps, RichText } = wp.blockEditor;
const heroSectionPattern = {
title: 'Hero Section',
description: 'Add a stunning hero section to your website.',
categories: ['header'],
content: [
{
name: 'core/image',
attributes: {
align: 'center',
},
},
{
name: 'core/heading',
attributes: {
level: 2,
align: 'center',
placeholder: 'Enter your heading here...',
},
},
],
};
registerBlockPattern('my-awesome-plugin/hero-section-pattern', heroSectionPattern);
Testing and Debugging Gutenberg Blocks
Testing and debugging are essential in any development process. For Gutenberg blocks, you can use the Gutenberg Plugin Compatibility and Site Health tools. Additionally, unit testing with Jest and end-to-end testing with Cypress can ensure your blocks perform seamlessly.
Congratulations! You've unlocked the immense power of Gutenberg for WordPress Plugin Development. With custom blocks, core block extensions, block patterns, and more, you can now build feature-rich plugins that elevate user experiences. So go ahead, experiment, and create amazing Gutenberg-powered plugins that rock the WordPress world. To know more visit us at https://magnigeeks.com/
#Gutenberg#WordPressPluginDevelopment#GutenbergBlocks#CustomBlocks#BlockEditor#GutenbergDevelopment#WordPressDevelopment#PluginDevelopment#WebDevelopment
0 notes
Text
Programmatically Creating a Block in Drupal 9
Blocks are chunks of content that can be placed in various regions and can be easily moved around the web page of your Drupal 9 website. Learn how to create complete flexible and custom blocks programmatically in Drupal 9.
https://www.specbee.com/blogs/programmatically-creating-block-in-drupal-9

0 notes
Photo

I'm so happy that @coffee_break_crafts Shared this with me! I am such a fan of "oldfashioned" toys! And they actually tend to be what Guine is drawn to. ❤️ These #harrypotterblocks are the next #harrypottertoy I get to share 😍 so classy and fun for and #wizardintraining ・・・ The Potterhead in me is loving the latest addition to my etsy shop! Harry Potter [2 inch] Baby Block Set - Ready-to-ship, Baby Shower Gift, Nursery or Library Decor, Magic, add Name Letters for FREE! . . #shopsmall #harrypotterbabyshower #photoblocks #babyblocks #foundonetsy #etsygifting #etsylove #etsybaby #itsaboy #itsagirl #genderreveal #customblocks #customgift #harrypotternursery #potterhead #harrypottergift #nerdnursery #girlnursery #girlygirl #personalized #woodblocks #harrypotterbaby #modernnursery #babyshowergift #favoritegift #photogift #coffeebreakcrafts
#shopsmall#babyblocks#harrypottertoy#customgift#etsylove#modernnursery#itsagirl#harrypotterblocks#favoritegift#photogift#wizardintraining#etsygifting#woodblocks#harrypotterbaby#harrypottergift#personalized#etsybaby#genderreveal#harrypotterbabyshower#customblocks#girlnursery#girlygirl#itsaboy#foundonetsy#nerdnursery#coffeebreakcrafts#potterhead#photoblocks#harrypotternursery#babyshowergift
0 notes
Text
What’s new in ARES Commander 2020
What’s new in ARES Commander 2020. ARES Commander is a CAD software product from Graebert GmbH. Graebert GmbH is a leading developer of custom CAD software, solutions and services and has over 30 years of technology expertise…
Have a look on the What’s new in ARES Commander 2020: – Improved Licensing Workflow – Insert Base – Layers Manager Palette – New Dimension Style – Create 2D Entities from 3D Models – “OffsetEdges” and “ConvertEdges” – Customizable Blocks
Test Block
Convert Dynamic Blocks into CustomBlocks
Dependent of Independent Base Point for Rotate and Scale Activity
Distance Multiplier and Angle Offset…
View On WordPress
1 note
·
View note
Link
CorelCAD 2019 is launched with some extra 3D modeling tools and 3D printing capabilities along with supplementary STL support. The 3D modeling feature in CorelCAD becomes superior with the inclusion of Push and Pull editing and other tools for developing more advanced 3D solids.
CorelCAD 2019 also provides support for STL that facilitates 3D access to 3D printing files along with content accessible from sites like SketchFab and Shapeways.
Given below, the details of new features :-
1. New 3D modeling: With the inclusion of PolySolid, it becomes easier to draw 3D objects in the shape of polygonal walls. By applying Push and Pull tools, the users get the ability to include depth with extrusion. The new version also contains ChamferEdges for beveling as well as new face and loop options. CorelCAD provides support for helix to generate 3D models around a cylindrical shape and support for 3D primitives to be included and edited with Boolean operations.
2. Greater 2D drafting tools: CorelCAD provides extra support for CustomBlocks, a tool having similarity with AutoCAD. With this feature, the users can develop and reuse blocks. Symbols are defined with rules and constraints so that the users will be able to set them in drawings and resize, rotate when required.
3. Layer Palette: CorelCAD contains a new Layers Manager to substitute an earlier application for layers. It’s considerably simplified as a palette that can be put away, docked, and accessible directly within the UI. It also contains a new MergeLayer feature. 4. .STL file import: Import support for stereolithography (.STL) files to deal with ready-made 3D designs or insert contained 3D solid objects into a new design. Besides, get support for 3D printing or output associated with .STL export.
5. Improved selection tools: With CorelCAD 2019, it is possible to instantly click and cycle through entities in complex drawings and locate objects which are unseen under other objects. Preview and Selection Highlighting features are also included. Colored highlighting facilitates the users to distinguish selected and hovered-over elements. 6. Improved View options: New navigation features provide support to 3D mice and the users can view designs from several vantage points with RollView. 7. Improved File format support: The ODA DWG is upgraded to follow AutoCAD with full, native format support.
CorelCAD 2019 is accessible in English, German, Spanish, French, Italian, Brazilian-Portuguese, Czech, Polish, Russian, Turkish, Simplified Chinese, Traditional Chinese, Japanese, and Korean.
To get more details, click on the following link www.coreldraw.com

0 notes
Text
“
Twitterで、特定のハッシュタグを含んだツイートや特定のアプリから投稿されたツイートを全部隠す
Google の投稿に「NGワード機能」を追加する
ソーシャルブックマークで、不快な言葉や邪魔なタグを含んだ投稿を隠す
検索結果から、特定のドメインのものを取り除く
Facebookで、特定の言葉を含んだコメントをすべて非表示にする
2ちゃんねるで特定のキーワードを含んだ投稿を非表示にする
広告を非表示にする。普通の書き込みと同じ体裁で投稿された広告もブロック
” - Chrome ウェブストア - CustomBlocker (via otsune)
0 notes
Photo

Hey @comicbookhero84 almost done! #customblock #customlego #custommyframe #3dprint
2 notes
·
View notes
Photo

WIP Started #mybuild #customblockmecha today! #legomecha #customblockmech #customblock #customlego #customkreo #custommyframe #custommegabloks #custommegablok #customlegos #lego #kreo #megablok #megablocks #legos
#custommyframe#mybuild#customlego#customlegos#customkreo#custommegabloks#megablok#legos#megablocks#customblockmech#custommegablok#lego#kreo#customblockmecha#customblock#legomecha
0 notes