| @@ -150,14 +150,23 @@ | ||
| 150 | 150 | * |
| 151 | 151 | * @access protected |
| 152 | 152 | */ |
| 153 | 153 | protected function _renderAdvancedSettings() { |
| 154 | - self::_renderGroupStart( esc_html__( 'Frontend Actions', 'visualizer' ) ); | |
| 154 | + if ( Visualizer_Module_Admin::proFeaturesLocked() ) { | |
| 155 | + self::_renderGroupStart( esc_html__( 'Frontend Actions', 'visualizer' ) ); | |
| 156 | + } else { | |
| 157 | + self::_renderGroupStart( esc_html__( 'Frontend Actions', 'visualizer' ) . '<span class="dashicons dashicons-lock"></span>', '', apply_filters( 'visualizer_pro_upsell_class', 'only-pro-feature', 'chart-frontend-actions' ), 'vz-frontend-actions' ); | |
| 158 | + echo '<div style="position: relative">'; | |
| 159 | + } | |
| 155 | 160 | self::_renderSectionStart(); |
| 156 | 161 | self::_renderSectionDescription( esc_html__( 'Configure frontend actions that need to be shown.', 'visualizer' ) ); |
| 157 | 162 | self::_renderSectionEnd(); |
| 158 | 163 | |
| 159 | 164 | $this->_renderActionSettings(); |
| 165 | + if ( ! Visualizer_Module_Admin::proFeaturesLocked() ) { | |
| 166 | + echo apply_filters( 'visualizer_pro_upsell', '', 'chart-permissions' ); | |
| 167 | + echo '</div>'; | |
| 168 | + } | |
| 160 | 169 | self::_renderGroupEnd(); |
| 161 | 170 | |
| 162 | 171 | self::_renderGroupStart( esc_html__( 'Manual Configuration', 'visualizer' ) ); |
| 163 | 172 | $this->_renderManualConfigDescription(); |