'settings-license',
'content' => 'lite-banner',
)
);
printf(
/* translators: %1$s: Start link HTML, %2$s: End link HTML */
esc_html__( 'You\'re using Formidable Forms Lite. To unlock more features consider %1$supgrading to PRO%2$s.', 'formidable' ),
'
',
''
);
?>
'',
'tosearch' => '',
'text' => __( 'Search', 'formidable' ),
'input_id' => '',
'value' => false,
);
$atts = array_merge( $defaults, $atts );
if ( $atts['input_id'] === 'template' && empty( $atts['tosearch'] ) ) {
$atts['tosearch'] = 'frm-card';
}
$class = 'frm-search-input';
if ( ! empty( $atts['tosearch'] ) ) {
$class .= ' frm-auto-search';
}
$input_id = $atts['input_id'] . '-search-input';
$input_atts = array(
'type' => 'search',
'id' => $input_id,
'name' => 's',
'placeholder' => $atts['placeholder'],
'class' => $class,
'data-tosearch' => $atts['tosearch'],
);
if ( is_string( $atts['value'] ) ) {
$input_atts['value'] = $atts['value'];
} elseif ( isset( $_REQUEST['s'] ) ) {
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
$input_atts['value'] = wp_unslash( $_REQUEST['s'] );
}
if ( ! empty( $atts['tosearch'] ) ) {
$input_atts['autocomplete'] = 'off';
}
?>