Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /home/tbolleke/public_html/index.php on line 11
Notice: Undefined index: HTTP_REFERER in /home/tbolleke/public_html/index.php on line 12
_border',
'type' => 'border',
'label' => esc_html__( 'Border', 'jet-smart-filters' ),
'css_selector' => array(
'{{WRAPPER}} ' . $this->css_scheme['apply-filters-button'] =>'border-style: {{STYLE}}; border-width: {{WIDTH}}; border-radius: {{RADIUS}}; border-color: {{COLOR}}',
),
]);
$this->controls_manager->add_control([
'id' => 'filter_apply_button_padding',
'type' => 'dimensions',
'label' => esc_html__( 'Padding', 'jet-smart-filters' ),
'units' => array( 'px', '%' ),
'css_selector' => array(
'{{WRAPPER}} ' . $this->css_scheme['apply-filters-button'] => 'padding: {{TOP}} {{RIGHT}} {{BOTTOM}} {{LEFT}};',
),
'separator' => 'before',
]);
$this->controls_manager->add_control([
'id' => 'filter_apply_button_margin',
'type' => 'dimensions',
'label' => esc_html__( 'Margin', 'jet-smart-filters' ),
'units' => array( 'px', '%' ),
'css_selector' => array(
'{{WRAPPER}} ' . $this->css_scheme['apply-filters-button'] => 'margin: {{TOP}} {{RIGHT}} {{BOTTOM}} {{LEFT}};',
),
'separator' => 'before',
]);
$this->controls_manager->add_control([
'id' => 'filter_apply_button_alignment',
'type' => 'choose',
'label' => esc_html__( 'Alignment', 'jet-smart-filters' ),
'separator' => 'before',
'options' =>[
'flex-start' => [
'shortcut' => esc_html__( 'Left', 'jet-smart-filters' ),
'icon' => 'dashicons-editor-alignleft',
],
'center' => [
'shortcut' => esc_html__( 'Center', 'jet-smart-filters' ),
'icon' => 'dashicons-editor-aligncenter',
],
'flex-end' => [
'shortcut' => esc_html__( 'Right', 'jet-smart-filters' ),
'icon' => 'dashicons-editor-alignright',
],
'stretch' => [
'shortcut' => esc_html__( 'Stretch', 'jet-smart-filters' ),
'icon' => 'dashicons-editor-justify',
],
],
'css_selector' => [
'{{WRAPPER}} ' . $this->css_scheme['apply-filters-button'] => 'align-self: {{VALUE}};',
],
'attributes' => [
'default' => [
'value' => 'flex-start',
]
]
]);
$this->controls_manager->end_section();
}
/**
* Return callback
*/
public function render_callback( $settings = array() ) {
jet_smart_filters()->set_filters_used();
if ( empty( $settings['content_provider'] ) || $settings['content_provider'] === 'not-selected' ) {
return $this->is_editor() ? __( 'Please select a provider', 'jet-smart-filters' ) : false;
}
$base_class = 'jet-smart-filters-' . $this->get_name();
$data_atts = '';
$redirect = ! empty( $settings['apply_redirect'] ) ? $settings['apply_redirect'] : false;
$redirectPath = ! empty( $settings['redirect_path'] ) ? $settings['redirect_path'] : false;
$query_id = ! empty( $settings['query_id'] ) ? $settings['query_id'] : 'default';
$additional_providers = jet_smart_filters()->utils->get_additional_providers( $settings );
$atts = array(
'data-content-provider' => $settings['content_provider'],
'data-apply-type' => $settings['apply_type'],
'data-query-id' => $query_id,
'data-additional-providers' => $additional_providers,
'data-redirect' => $redirect
);
if ( $redirect && $redirectPath ) {
$atts['data-redirect-path'] = $redirectPath;
}
foreach ( $atts as $key => $value ) {
$data_atts .= sprintf( ' %1$s="%2$s"', $key, $value );
}
$settings['apply_button'] = true;
ob_start();
echo '';
include jet_smart_filters()->get_template( 'common/apply-filters.php' );
echo '
';
$filter_layout = ob_get_clean();
return $filter_layout;
}
}
}
Fatal error: Uncaught Error: Class 'Jet_Smart_Filters_Block_Apply_Button' not found in /home/tbolleke/public_html/wp-content/plugins/jet-smart-filters/includes/blocks.php:160
Stack trace:
#0 /home/tbolleke/public_html/wp-content/plugins/jet-smart-filters/includes/blocks.php(30): Jet_Smart_Filters_Blocks_Manager->register_block_types()
#1 /home/tbolleke/public_html/wp-content/plugins/jet-smart-filters/jet-smart-filters.php(159): Jet_Smart_Filters_Blocks_Manager->__construct()
#2 /home/tbolleke/public_html/wp-includes/class-wp-hook.php(341): Jet_Smart_Filters->init('')
#3 /home/tbolleke/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#4 /home/tbolleke/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#5 /home/tbolleke/public_html/wp-settings.php(742): do_action('init')
#6 /home/tbolleke/public_html/wp-config.php(96): require_once('/home/tbolleke/...')
#7 /home/tbolleke/public_html/wp-load.php(50): require_once('/home/tbolleke/...')
#8 /home/tbolleke/public_html/wp-blog-he in /home/tbolleke/public_html/wp-content/plugins/jet-smart-filters/includes/blocks.php on line 160