Changeset 8526
- Timestamp:
- 03/25/2019 11:27:12 PM (7 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src
- Files:
-
- 11 edited
-
sessions/block-controls.js (modified) (2 diffs)
-
sessions/edit.js (modified) (1 diff)
-
sessions/index.js (modified) (1 diff)
-
sessions/sessions-select.js (modified) (5 diffs)
-
speakers/block-controls.js (modified) (2 diffs)
-
speakers/edit.js (modified) (1 diff)
-
speakers/index.js (modified) (1 diff)
-
speakers/speakers-select.js (modified) (4 diffs)
-
sponsors/block-controls.js (modified) (3 diffs)
-
sponsors/edit.js (modified) (2 diffs)
-
sponsors/index.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/block-controls.js
r8514 r8526 16 16 import SessionsBlockContent from './block-content'; 17 17 import SessionsSelect from './sessions-select'; 18 19 const LABEL = __( 'Sessions', 'wordcamporg' ); 18 import { LABEL } from './index'; 20 19 21 20 class SessionsBlockControls extends BlockControls { … … 83 82 <div className="wordcamp-block-edit-mode-option"> 84 83 <SessionsSelect 84 icon={ icon } 85 85 label={ __( 'Choose specific sessions, tracks, or categories', 'wordcamporg' ) } 86 86 { ...this.props } -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/edit.js
r8514 r8526 18 18 import SessionsInspectorControls from './inspector-controls'; 19 19 import GridToolbar from '../shared/grid-layout/toolbar'; 20 import { SESSIONS_ICON } from './index'; 20 21 21 22 const blockData = window.WordCampBlocks.sessions || {}; 22 23 const SESSIONS_ICON = 'list-view';24 23 const MAX_POSTS = 100; 25 24 -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/index.js
r8514 r8526 10 10 11 11 export const name = 'wordcamp/sessions'; 12 export const LABEL = __( 'Sessions', 'wordcamporg' ); 13 export const SESSIONS_ICON = 'list-view'; 12 14 13 15 export const settings = { 14 16 title : __( 'Sessions', 'wordcamporg' ), 15 17 description : __( 'Add a list of sessions.', 'wordcamporg' ), 16 icon : 'list-view',18 icon : SESSIONS_ICON, 17 19 category : 'wordcamp', 18 20 edit, -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/sessions-select.js
r8514 r8526 107 107 108 108 render() { 109 const { label, attributes, setAttributes } = this.props;109 const { icon, label, attributes, setAttributes } = this.props; 110 110 const { mode, item_ids } = attributes; 111 111 const options = this.buildSelectOptions( mode ); … … 140 140 formatOptionLabel: ( optionData ) => { 141 141 return ( 142 <SessionsOption { ...optionData } /> 142 <SessionsOption 143 icon={ icon } 144 { ...optionData } 145 /> 143 146 ); 144 147 }, … … 149 152 } 150 153 151 function SessionsOption( { type, label = '', image = '', count = 0 } ) {154 function SessionsOption( { type, icon, label = '', image = '', count = 0 } ) { 152 155 let optImage, optContent; 153 156 … … 169 172 <Dashicon 170 173 className="wordcamp-item-select-option-icon" 171 icon={ 'list-view'}174 icon={ icon } 172 175 size={ 16 } 173 176 /> … … 188 191 <Dashicon 189 192 className="wordcamp-item-select-option-icon" 190 icon={ 'list-view'}193 icon={ icon } 191 194 size={ 16 } 192 195 /> -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/block-controls.js
r8511 r8526 16 16 import SpeakersBlockContent from './block-content'; 17 17 import SpeakersSelect from './speakers-select'; 18 19 const LABEL = __( 'Speakers', 'wordcamporg' ); 18 import { LABEL } from './index'; 20 19 21 20 class SpeakersBlockControls extends BlockControls { … … 82 81 <div className="wordcamp-block-edit-mode-option"> 83 82 <SpeakersSelect 83 icon={ icon } 84 84 label={ __( 'Choose specific speakers or groups', 'wordcamporg' ) } 85 85 { ...this.props } -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/edit.js
r8511 r8526 18 18 import SpeakersInspectorControls from './inspector-controls'; 19 19 import SpeakersToolbar from './toolbar'; 20 import { SPEAKERS_ICON } from './index'; 20 21 21 22 const blockData = window.WordCampBlocks.speakers || {}; 22 23 23 const SPEAKERS_ICON = 'megaphone';24 24 const MAX_POSTS = 100; 25 25 -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/index.js
r8005 r8526 10 10 11 11 export const name = 'wordcamp/speakers'; 12 export const LABEL = __( 'Speakers', 'wordcamporg' ); 13 export const SPEAKERS_ICON = 'megaphone'; 12 14 13 15 export const settings = { 14 16 title : __( 'Speakers', 'wordcamporg' ), 15 17 description : __( 'Add a list of speakers.', 'wordcamporg' ), 16 icon : 'megaphone',18 icon : SPEAKERS_ICON, 17 19 category : 'wordcamp', 18 20 edit, -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/speakers-select.js
r8511 r8526 100 100 101 101 render() { 102 const { label, attributes, setAttributes } = this.props;102 const { label, icon, attributes, setAttributes } = this.props; 103 103 const { mode, item_ids } = attributes; 104 104 const options = this.buildSelectOptions( mode ); … … 133 133 formatOptionLabel: ( optionData ) => { 134 134 return ( 135 <SpeakersOption { ...optionData } /> 135 <SpeakersOption 136 icon={ icon } 137 { ...optionData } 138 /> 136 139 ); 137 140 }, … … 142 145 } 143 146 144 function SpeakersOption( { type, label = '', avatar = '', count = 0 } ) {147 function SpeakersOption( { type, icon, label = '', avatar = '', count = 0 } ) { 145 148 let image, content; 146 149 … … 167 170 <Dashicon 168 171 className="wordcamp-item-select-option-icon" 169 icon={ 'megaphone'}172 icon={ icon } 170 173 size={ 16 } 171 174 /> -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/block-controls.js
r8513 r8526 13 13 import SponsorBlockContent from './block-content'; 14 14 import ItemSelect from '../shared/item-select' 15 import { LABEL } from './index'; 16 15 17 const { Button, Placeholder } = wp.components; 16 17 const LABEL = __( 'Sponsors', 'wordcamporg' );18 18 19 19 function SponsorOption( option ) { … … 243 243 */ 244 244 render() { 245 const { sponsorPosts, attributes, setAttributes } = this.props;245 const { icon, attributes, setAttributes, sponsorPosts } = this.props; 246 246 const { mode, post_ids, term_ids } = attributes; 247 247 const { fetchedPosts, posts, terms, selectedPosts, sponsorTermOrder } = this.state; … … 290 290 {'all' !== mode && 291 291 <Placeholder 292 icon= 'heart'292 icon={ icon } 293 293 label = { __('Sponsors', 'wordcamporg') } 294 294 > -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/edit.js
r8513 r8526 5 5 import SponsorBlockControls from './block-controls'; 6 6 import GridToolbar from '../shared/grid-layout/toolbar'; 7 import { SPONSORS_ICON } from './index'; 7 8 8 9 /** … … 65 66 { 66 67 <SponsorBlockControls 68 icon={ SPONSORS_ICON } 67 69 sponsorPosts = { sponsorPosts } 68 70 sponsorLevels = { sponsorLevels } -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/index.js
r8513 r8526 10 10 11 11 export const name = 'wordcamp/sponsors'; 12 export const LABEL = __( 'Sponsors', 'wordcamporg' ); 13 export const SPONSORS_ICON = 'heart'; 12 14 13 15 export const settings = { 14 16 title : __( 'Sponsors', 'wordcamporg' ), 15 17 description : __( "We wouldn't have WordCamp without their support.", 'wordcamporg' ), 16 icon : 'heart',18 icon : SPONSORS_ICON, 17 19 category : 'wordcamp', 18 20 edit,
Note: See TracChangeset
for help on using the changeset viewer.