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
'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-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();
$sorting_filter = jet_smart_filters()->filter_types->get_filter_types( 'sorting' );
$sorting_options = $sorting_filter->sorting_options( $settings['sorting_list'] );
$container_data_atts = $sorting_filter->container_data_atts( $settings );
$placeholder = ! empty( $settings['sorting_placeholder'] ) ? $settings['sorting_placeholder'] : __( 'Sort...', 'jet-smart-filters' );
$label = $settings['sorting_label'];
$settings['label_block'] = 'yes';
ob_start();
printf(
'',
$base_class,
$this->get_name()
);
include jet_smart_filters()->get_template( 'filters/sorting.php' );
if ( $settings['apply_button'] ) {
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_Sorting' not found in /home/tbolleke/public_html/wp-content/plugins/jet-smart-filters/includes/blocks.php:157
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-header. in /home/tbolleke/public_html/wp-content/plugins/jet-smart-filters/includes/blocks.php on line 157