Premium Addons Pro.', 'premium-addons-for-elementor' );
echo wp_kses_post( $message );
?>
add_render_attribute(
'search_input',
array(
'id' => 'premium-search__input-' . $this->get_id(),
'type' => 'text',
'class' => 'premium-search__input',
'value' => '',
'placeholder' => esc_attr( $settings['placeholder_text'] ),
)
);
$search_settings = array(
'query' => $settings['query_type'],
'buttonAction' => $settings['button_action'],
);
if ( 'redirect' === $settings['button_action'] ) {
$search_settings['search_link'] = esc_url( $settings['search_page_link'] );
}
if ( 'elements' === $settings['query_type'] ) {
$search_settings['target'] = esc_attr( $settings['selector'] );
$search_settings['fadeout_target'] = esc_attr( $settings['fadeout_selector'] );
} else {
$search_settings['hideOnClick'] = 'yes' === $settings['hide_on_click'];
// Add page ID to be used later to get posts by AJAX.
$page_id = '';
if ( null !== Plugin::$instance->documents->get_current() ) {
$page_id = Plugin::$instance->documents->get_current()->get_main_id();
}
$this->add_render_attribute( 'container', 'data-page', $page_id );
if ( 'yes' === $settings['carousel'] ) {
$search_settings['carousel'] = true;
$search_settings['slidesToScroll'] = $settings['slides_to_scroll'];
$search_settings['rows'] = $settings['rows'];
$search_settings['spacing'] = $settings['carousel_spacing'];
$search_settings['arrows'] = 'yes' === $settings['carousel_arrows'];
$search_settings['fade'] = 'yes' === $settings['carousel_fade'];
$search_settings['center'] = 'yes' === $settings['carousel_center'];
$search_settings['dots'] = 'yes' === $settings['carousel_dots'];
$search_settings['speed'] = '' !== $settings['carousel_speed'] ? $settings['carousel_speed'] : 300;
}
}
$this->add_render_attribute(
'container',
array(
'class' => array(
'premium-search__container',
'premium-search__skin-' . $settings['skin'],
),
'data-settings' => wp_json_encode( $search_settings ),
)
);
?>
get_render_attribute_string( 'container' ) ); ?>>