-
-
- this.setState({ tab: 'style' })}
+ {this.props.attributes.status !== 0 && (
+
+
+
+ {__('Load Feed', 'feedzy-rss-feeds')}
+
+
+
+ )}
+ {'fetched' === this.props.state.route && (
+
+
+
+
+
+ )}
+
+
+
-
-
- {__('Style', 'feedzy-rss-feeds')}
-
-
- this.setState({ tab: 'advanced' })}
+
+
+
+
+
+
+ {this.props.attributes.itemTitle && (
+
+ )}
+
+
+
+ {this.props.attributes.summary && (
+
+ )}
+
+
+ Pro
+ ),
+ ]}
+ initialOpen={false}
+ className={
+ window.feedzyjs.isPro
+ ? 'feedzy-item-filter'
+ : 'feedzy-item-filter fz-locked'
+ }
>
-
-
- {__('Advanced', 'feedzy-rss-feeds')}
-
-
-
- {'content' === this.state.tab && (
+ {!window.feedzyjs.isPro && (
+
+ {__(
+ 'Unlock this feature and more advanced options with',
+ 'feedzy-rss-feeds'
+ )}{' '}
+
+ {__('Feedzy Pro', 'feedzy-rss-feeds')}
+
+
+ )}
+
+
+
+
+
+ {__(
+ 'Filter feed item by date range.',
+ 'feedzy-rss-feeds'
+ )}
+
+
+
+
+
+ )}
+
+ {'fetched' === this.props.state.route &&
+ 'style' === this.state.tab && (
- {this.props.attributes.status !== 0 && (
+
+
+ {this.props.attributes.thumb !== 'no' && (
+ {this.props.attributes.thumb !==
+ 'auto' && (
+
+
+
(
+
+ {this.props
+ .attributes
+ .default !==
+ undefined && (
+
+
+
+
+
+
+ this.props.setAttributes(
+ {
+ default:
+ undefined,
+ }
+ )
+ }
+ style={{
+ marginTop:
+ '10px',
+ }}
+ >
+ {__(
+ 'Remove Image',
+ 'feedzy-rss-feeds'
+ )}
+
+
+ )}
+
+ {__(
+ 'Upload Image',
+ 'feedzy-rss-feeds'
+ )}
+
+
+ )}
+ />
+
+ )}
-
- {__(
- 'Load Feed',
- 'feedzy-rss-feeds'
- )}
-
-
-
- )}
- {'fetched' === this.props.state.route && (
-
-
-
-
)}
+ Pro
+
+ ),
+ ]}
initialOpen={false}
- className="feedzy-item-options"
+ className={
+ window.feedzyjs.isPro
+ ? 'feedzy-layout'
+ : 'feedzy-layout fz-locked'
+ }
>
-
+ {__(
+ 'Unlock this feature and more advanced options with',
+ 'feedzy-rss-feeds'
+ )}{' '}
+
+ {__(
+ 'Feedzy Pro',
+ 'feedzy-rss-feeds'
+ )}
+
+