block.json
2 years ago
view.asset.php
2 years ago
view.css
4 years ago
view.js
2 years ago
view.rtl.css
4 years ago
block.json
66 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "jetpack/whatsapp-button", |
| 5 | "title": "WhatsApp Button", |
| 6 | "description": "Let your visitors send you a message on WhatsApp with the tap of a button.", |
| 7 | "keywords": [ |
| 8 | "whatsapp", |
| 9 | "messenger", |
| 10 | "contact", |
| 11 | "support" |
| 12 | ], |
| 13 | "version": "12.5.0", |
| 14 | "textdomain": "jetpack", |
| 15 | "category": "grow", |
| 16 | "icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/></svg>", |
| 17 | "supports": { |
| 18 | "html": false, |
| 19 | "reusable": false, |
| 20 | "align": [ |
| 21 | "left", |
| 22 | "center", |
| 23 | "right" |
| 24 | ] |
| 25 | }, |
| 26 | "parent": [ |
| 27 | "jetpack/send-a-message" |
| 28 | ], |
| 29 | "attributes": { |
| 30 | "countryCode": { |
| 31 | "type": "string" |
| 32 | }, |
| 33 | "phoneNumber": { |
| 34 | "type": "string" |
| 35 | }, |
| 36 | "firstMessage": { |
| 37 | "type": "string", |
| 38 | "default": "Hi, I got your WhatsApp information from your website." |
| 39 | }, |
| 40 | "buttonText": { |
| 41 | "type": "string", |
| 42 | "source": "html", |
| 43 | "selector": "a.whatsapp-block__button", |
| 44 | "default": "Chat on WhatsApp" |
| 45 | }, |
| 46 | "backgroundColor": { |
| 47 | "type": "string", |
| 48 | "default": "#25D366" |
| 49 | }, |
| 50 | "colorClass": { |
| 51 | "type": "string", |
| 52 | "default": "dark" |
| 53 | }, |
| 54 | "openInNewTab": { |
| 55 | "type": "boolean", |
| 56 | "default": false |
| 57 | } |
| 58 | }, |
| 59 | "example": { |
| 60 | "attributes": { |
| 61 | "countryCode": "1", |
| 62 | "phoneNumber": "555-123-4567" |
| 63 | } |
| 64 | }, |
| 65 | "editorScript": "file:../editor.js" |
| 66 | } |