[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 /** 2 * WordPress dependencies. 3 */ 4 const { 5 i18n: { 6 __, 7 }, 8 blocks: { 9 registerBlockType, 10 }, 11 } = wp; 12 13 /** 14 * Internal dependencies. 15 */ 16 import editEmbedActivityBlock from './embed-activity/edit'; 17 import saveEmbedActivityBlock from './embed-activity/save'; 18 19 registerBlockType( 'bp/embed-activity', { 20 title: __( 'Embed an activity', 'buddypress' ), 21 description: __( 'Add a block that displays the activity content pulled from this or other community sites.', 'buddypress' ), 22 icon: { 23 background: '#fff', 24 foreground: '#d84800', 25 src: 'buddicons-activity', 26 }, 27 category: 'buddypress', 28 attributes: { 29 url: { 30 type: 'string', 31 }, 32 caption: { 33 type: 'string', 34 source: 'html', 35 selector: 'figcaption', 36 }, 37 }, 38 supports: { 39 align: true, 40 }, 41 edit: editEmbedActivityBlock, 42 save: saveEmbedActivityBlock, 43 } );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri May 5 01:01:24 2023 | Cross-referenced by PHPXref 0.7.1 |