';
}
/**
* Generate options
*/
public function generate_options( $options ) {
$plugin_options = get_option( 'aws_settings' );
if ( empty( $options ) ) {
return;
}
foreach ( $options as $k => $value ) {
switch ( $value['type'] ) {
case 'text': ?>
$label ) { ?>
>
$label ) { ?>
>
0 ) {
foreach ($active_buttons as $button) {
if ( ! $button ) continue;
echo '
' . $button . '
';
}
}
?>
0 ) {
foreach ($inactive_buttons as $button) {
echo '
' . $button . '
';
}
}
?>
';
echo '
' . __( 'Activation', 'aws' ) . '
';
echo '
';
echo '
';
echo __( 'In case you need to add plugin search form on your website, you can do it in several ways:', 'aws' ) . ' ';
echo '
';
echo '1. ' . __( 'Enable a "Seamless integration" option ( may not work with some themes )', 'aws' ) . ' ';
echo '2. ' . sprintf( __( 'Add search form using shortcode %s', 'aws' ), "[aws_search_form]" ) . ' ';
echo '3. ' . __( 'Add search form as widget for one of your theme widget areas. Go to Appearance -> Widgets and drag&drop AWS Widget to one of your widget areas', 'aws' ) . ' ';
echo '4. ' . sprintf( __( 'Add PHP code to the necessary files of your theme: %s', 'aws' ), "<?php if ( function_exists( 'aws_get_search_form' ) ) { aws_get_search_form(); } ?>" ) . ' ';
echo '
';
echo '
';
echo '
';
echo '';
echo '
';
echo '
' . __( 'Reindex table', 'aws' ) . '
';
echo '
';
echo '
0%
';
echo '' .
sprintf( __( 'This action only need for %s one time %s - after you activate this plugin. After this all products changes will be re-indexed automatically.', 'aws' ), '', '' ) . ' ' .
__( 'Update all data in plugins index table. Index table - table with products data where plugin is searching all typed terms. Use this button if you think that plugin not shows last actual data in its search results. CAUTION: this can take large amount of time.', 'aws' ) . '