Created
July 19, 2018 18:24
-
-
Save aatanasovdev/1fe3d0d7d9ae19bd1439d0d9d096af0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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