nk-crew / ghostkit Goto Github PK
View Code? Open in Web Editor NEWGutenberg blocks for WordPress
Home Page: https://www.ghostkit.io/
License: GNU General Public License v2.0
Gutenberg blocks for WordPress
Home Page: https://www.ghostkit.io/
License: GNU General Public License v2.0
Countdown
Additional style for default headings - Numbered
Table of Contents
Badge (inline block). The same as used in Changelog block
Customizer
Custom CSS
Bootstrap Grid
Button
Progress Bar
Icon Box
Counter
Tabs
Accordion
Alert
Carousel
Github Gist
Video
Testimonial
Changelog
Widgetized area
Google Maps
Pricing
News (We can use Visual Portfolio plugin, it is highly functional now)
Spacer (already added in Gutenberg core)
Team Members (Use simple images + text blocks and Grid)
Categories / Tags
Related topic: https://wordpress.org/support/topic/cant-insert-tab-titles/
In the same way as Tabs.
Related topic: https://wordpress.org/support/topic/suggested-option-to-scroll-to-opened-accordion-on-click/
Hello ghostkit team,
After the update i encountered an Error. The grid column content made with gk 2.3 can't be displayed.
Message: "This block has encountered an error and cannot be previewed."
There is also a message in the console:
in wp-content/plugins/ghostkit/gutenberg/index.min.js?ver=1558978561
react-dom.min.js?ver=16.6.3:104 TypeError: Cannot read property 'getBlockOrder' of undefined at index.min.js?ver=1558978561:62 at n (data.min.js?ver=4.2.1:1) at new r (data.min.js?ver=4.2.1:1) at zf (react-dom.min.js?ver=16.6.3:69) at Mf (react-dom.min.js?ver=16.6.3:87) at ph (react-dom.min.js?ver=16.6.3:98) at eg (react-dom.min.js?ver=16.6.3:125) at fg (react-dom.min.js?ver=16.6.3:126) at wc (react-dom.min.js?ver=16.6.3:138) at fa (react-dom.min.js?ver=16.6.3:137) Pf @ react-dom.min.js?ver=16.6.3:104
Did i forgot something?
Thanks in advance
Spencer
Hi nk-o,
This is a great plugin. Thank you for this huge work. I am trying to add some custom styles to the Grid block using the following code:
wp.blocks.registerBlockStyle( 'ghostkit/grid', {
name: 'slideshow-align-right',
label: 'Align slide content right',
} );
I see the tyles dropdown in the inspector but when I click on it, the editor crashes.
Default Gutenberg blocks now use Material Icons, so we also need to use it https://material.io/tools/icons/?style=outline
Would be great if there would be an option at grid row/section where the nested columns have a maximum width setting. Like section structure setting under Maximum Content Width" in Otter blocks... but better set only boxed content -> default container width or individual max content in px/%/vw . So there is no need to nest row/section blocks
Regards Spencer
For now creates a lot of additional attributes for extensions:
Current additional attributes:
{
"ghostkitId": "Z1Jjxoc",
"ghostkitClassname": "core-paragraph-Z1Jjxoc",
"ghostkitStyles": {
".core-paragraph-Z1Jjxoc": {
"paddingTop": "20",
"paddingBottom": "20",
"marginLeft": "30",
"marginRight": "30"
}
},
"ghostkitSpacings": {
"paddingTop": "20",
"paddingBottom": "20",
"marginLeft": "30",
"marginRight": "30"
},
"ghostkitDisplay": {
"all": "block",
"md": "none"
},
"ghostkitSR": "fade-up"
}
Better structure:
{
"ghostkit": {
"id": "Z1Jjxoc",
"className": "core-paragraph-Z1Jjxoc",
"styles": {
".core-paragraph-Z1Jjxoc": {
"paddingTop": "20",
"paddingBottom": "20",
"marginLeft": "30",
"marginRight": "30"
}
},
"spacings": {
"paddingTop": "20",
"paddingBottom": "20",
"marginLeft": "30",
"marginRight": "30"
},
"display": {
"all": "block",
"md": "none"
},
"scrollReveal": "fade-up"
}
}
Block code from example:
<!-- wp:paragraph {"ghostkitStyles":{".core-paragraph-Z1Jjxoc":{"paddingTop":"20","paddingBottom":"20","marginLeft":"30","marginRight":"30"}},"ghostkitClassname":"core-paragraph-Z1Jjxoc","ghostkitId":"Z1Jjxoc","ghostkitSpacings":{"paddingTop":"20","paddingBottom":"20","marginLeft":"30","marginRight":"30"},"ghostkitDisplay":{"all":"block","md":"none"},"ghostkitSR":"fade-up"} -->
<p class="core-paragraph-Z1Jjxoc ghostkit-d-block ghostkit-d-md-none" data-ghostkit-styles=".core-paragraph-Z1Jjxoc { padding-top: 20px; padding-bottom: 20px; margin-left: 30px; margin-right: 30px; }" data-ghostkit-sr="fade-up">Paragraph Test</p>
<!-- /wp:paragraph -->
Block in Editor:
Related topic: https://wordpress.org/support/topic/translating-tabs/
Templates:
Features:
Better to make visual grid builder without dropdowns and range sliders. Something like this one: http://shoelace.io/
Twenty Nineteen:
Use this octocat SVG https://octicons.github.com/icon/octoface/
When I try to use the carousel it says "Start writing/typing to choose a block". When I do, the only options are "Preformatted", "List", "Verse", "Heading" and "Quote". I would like to use images. I can not seem to figure out how to get that option.
Thanks in advance.
The plugin gives the following error in the editor. Seems like it happens when plugins using the create-guten-block toolkit are also activated.
react-dom.min.js?ver=16.6.3:104 TypeError: this.activateMode is not a function
at media-views.min.js?ver=5.0.3:1
at arrayEach (lodash.js?3387:516)
at Function.forEach (lodash.js?3387:9344)
at n._createModes (media-views.min.js?ver=5.0.3:1)
at n.initialize (media-views.min.js?ver=5.0.3:1)
at n.initialize (media-views.min.js?ver=5.0.3:1)
at n.initialize (media-views.min.js?ver=5.0.3:1)
at n.e.View (backbone.min.js?ver=1.2.3:1)
at n.constructor (wp-backbone.min.js?ver=5.0.3:1)
at n.constructor (media-views.min.js?ver=5.0.3:1)
+
Button to add accordion block-
Button to remove blockCollapsed
option in toolbar and inspectorIcon
dropdown in block previewIcon
dropdown in block preview+
Button to add button blockGap
option in Toolbar-
Button to remove blockIcon
dropdown in block previewSize
option in ToolbarIcon Position
option in icon picker dropdownNumber Position
option in ToolbarIcon
dropdown in block previewType
option in ToolbarAdd Marker
option in ToolbarStyle
option in ToolbarStyle
selector with image preview (probably from Snazzy Maps API)Gap
option in ToolbarSticky
option in ToolbarIcon
dropdown in block previewIcon Position
option in toolbar+
Button to add pricing blockGap
option in Toolbar-
Button to remove blockShow Count
option in ToolbarStriped
option in Toolbarheight and width by draggingAlign
option in Toolbar+
Button to add tab-
Button to remove blockIcon
dropdown in block previewImage
option in ToolbarIcon
dropdown in block previewAspect Ratio
image selector instead of selectorURL
for YouTube/Vimeo option in ToolbarAspect Ratio
option in ToolbarType
option in ToolbarClick Action
option in ToolbarPoster Image
option in ToolbarFor now user may add only Custom CSS on the current page, need to add more freedom:
While trying to build ghostkit, I found that:
event-stream is a dependency of gulp-vinyl-zip
event-stream is no longer available after it was discovered that malware had slipped into it.
See https://blog.npmjs.org/post/180565383195/details-about-the-event-stream-incident
and dominictarr/event-stream#116
Thank for this awesome blocks, its a cool feature that there is only minimal styling options on the block editor side.
Sometimes it would be cool if the editor could adjust rendering tag for SEO or semantic reasons
Example: set accordion title to h2, h3, h4, h5, h6, p, span tag
What do you think?
Kind regards Spencer
Return this error on open new post or page
Uncaught TypeError: Cannot read property 'ghostkitStyles' of undefined at index.min.js?ver=1539144848:23 at Array.forEach (<anonymous>) at index.min.js?ver=1539144848:23 at hooks.min.js?ver=2.0.3:1 at Q (blocks.min.js?ver=6.0.3:2) at block-library.min.js?ver=2.2.9:12 at Array.forEach (<anonymous>) at no (block-library.min.js?ver=2.2.9:12) at Module.Jn (edit-post.min.js?ver=3.1.4:12) at HTMLDocument.<anonymous> (post-new.php?post_type=page:238)
The API key is accepted and map loads correctly without a search query. When I try to enter a search query for either the map or for markers I get an error message that the map didn't load correctly.
Wordpress version: 5.2.1
GhostKit version: 2.4.2
Add effects on all blocks using https://github.com/scrollreveal/scrollreveal
Thanks for the nice (an quite unique blocks, like Instagram and Changelog!).
Would you be interested in providing your blocks on GutenbergCloud.org before it launches?
Docs are here: https://github.com/front/cloud-blocks/tree/master/docs Let me know if you are interested! Would love to help.
Already changed in AWB: nk-crew/awb@218bee2
Need to register block individually and separate styles and script for each block, so when the block will be disabled, assets will not be loaded on the frontend.
The same as in native Column block:
Add these options under additional settings of URL input:
✔ | From | To | Backwards | Additional info |
---|---|---|---|---|
✔ | [gkt] Alert [gkt] Number Box [gkt] Icon Box |
[gkt] Alert [gkt] Number Box [gkt] Icon Box |
✔ | |
❌ | Paragraph Heading List |
[gkt] Alert [gkt] Number Box [gkt] Icon Box |
Not sure it is really needed | |
✔ | Video Embed YouTube Embed Vimeo |
[gkt] Video | ✔ | |
✔ | Quote Pullquote |
[gkt] Testimonial | ✔ | |
✔ | Columns | [gkt] Grid | ||
✔ | Button | [gkt] Buttons | ||
✔ | Separator | [gkt] Divider | ✔ | |
✔ | [gkt] Tabs | [gkt] Accordion | ✔ | |
Code Preformatted |
[gkt] GitHub Gist | ✔ | PRO only |
Hello,
First of all great plugin, keep up the good work!
I have a problem where the color of button is wrong when it has been :visited.
Usually this is in the hands of the stylesheet, but when using frameworks such as bootstrap, this is set in their css. I cannot overwrite the color without specifying it to a certain color, and it should be dynamic based on what is chosen in admin.
What I would suggest is :visited (and maybe :active) with the chosen color be added to the class of the button, what do you think?
Hi ,
this software has "GNU GENERAL PUBLIC LICENSE". That means: I can modify and use "Ghost-Kit" in my own project. I can add new functions or remove the "Go Pro" link?
Do you have any objections to this?
Best Regards
JQ
unable to disable block.
Return
Unhandled promise rejection : “failed to update disabled blocks”
In Gutenberg 4.7 will be added a new method updateCategory
. Will work something like that:
import GhostKitIcon from './_icons/ghostkit-black.svg';
if ( wp.blocks.updateCategory ) {
wp.blocks.updateCategory( 'ghostkit', { icon: GhostKitIcon } );
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.