Skip to content

Instantly share code, notes, and snippets.

@aatanasovdev
Created July 19, 2018 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aatanasovdev/1fe3d0d7d9ae19bd1439d0d9d096af0c to your computer and use it in GitHub Desktop.
Save aatanasovdev/1fe3d0d7d9ae19bd1439d0d9d096af0c to your computer and use it in GitHub Desktop.
return (
<Fragment>
<InspectorControls>
<PanelBody title={ __( 'RSS Feed Settings' ) }>
<RangeControl
label={ __( 'Number of posts to be shown on the front-end' ) }
value={ numberOfPosts }
min='1'
max='50'
onChange={ onChangeNumber }
/>
<ToggleControl
label={ __('Display post description') }
checked={ showDescription }
onChange={ onChangeShowDescription }
/>
<ToggleControl
label={ __('Display post date') }
checked={ showDate}
onChange={ onChangeShowDate }
/>
</PanelBody>
</InspectorControls>
</Fragment>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment