Changeset 8527
- Timestamp:
- 03/25/2019 11:27:17 PM (6 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/sessions/block-content.js
r8519 r8527 53 53 </div> 54 54 ); 55 }56 57 function SessionImage( { session } ) {58 let image;59 60 const url = get( session, '_embedded[\'wp:featuredmedia\'].media_details.sizes.thumbnail.source_url', '' );61 62 if ( url ) {63 image = (64 <img65 src={ url }66 alt={ decodeEntities( session.title.rendered.trim() ) }67 className={ classnames( 'wordcamp-session-image' ) }68 />69 );70 } else {71 image = (72 <div className="wordcamp-session-default-image" />73 );74 }75 76 return image;77 55 } 78 56 … … 158 136 render() { 159 137 const { attributes, sessionPosts } = this.props; 160 const { className,show_speaker, show_images, image_align, featured_image_height, featured_image_width, content, excerpt_more, show_meta, show_category } = attributes;138 const { show_speaker, show_images, image_align, featured_image_height, featured_image_width, content, excerpt_more, show_meta, show_category } = attributes; 161 139 const featuredImageSize = { height: featured_image_height, width: featured_image_width }; 162 140 -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/blocks/assets/src/speakers/inspector-controls.js
r8511 r8527 2 2 * WordPress dependencies 3 3 */ 4 const { PanelBody, PanelRow, RangeControl,SelectControl, ToggleControl } = wp.components;4 const { PanelBody, PanelRow, SelectControl, ToggleControl } = wp.components; 5 5 const { InspectorControls } = wp.editor; 6 6 const { Component, Fragment } = wp.element;
Note: See TracChangeset
for help on using the changeset viewer.