index_opt = IS_Index_Options::getInstance(); $this->index_manager = IS_Index_Manager::getInstance(); } /** * Gets the instance of this class. * * @since 5.0 * @return self */ public static function getInstance() { if ( !self::$_instance instanceof self ) { self::$_instance = new self(); } return self::$_instance; } /** * Displays index section description text. * * @since 5.0 */ public function index_section_desc() { ?>

build_settings(); } /** * Build index settings panel. * * @since 5.0 */ public function build_settings() { $id = IS_Index_Options::$ID; $option = 'auto_index_enabled'; $saved_opt = $this->index_opt->{$option}; $opt_id = "{$id}_{$option}"; $opt_name = "{$id}[{$option}]"; $checked = !empty($saved_opt); $label = __( 'Automatically index content, when posts or comments are created (or updated).', 'add-search-to-menu' ); ?>

build_index_panel(); ?>

index_manager->get_index_status(); $create_data = $this->index_manager->get_ajax_create_index_data(); $btn_label = $create_data['btn_labels'][$create_data['idx_status']]; $create_data = json_encode( $create_data ); $delete_data = $this->index_manager->get_ajax_delete_index_data(); $delete_data = json_encode( $delete_data ); ?>

index_debug_panel(); ?>

Search Forms -> Edit Search Form -> Options -> Search Engine -> Inverted Index Search Engine', 'add-search-to-menu' ); IS_Help::help_info( esc_html( $content ) ); ?>
index_manager->get_ajax_index_post_data(); $index_data = json_encode( $index_data ); ?> true, ), 'objects' ); $saved_opt = $this->index_opt->{$option}; ?>
labels->name ) ; ?>
$post_type ) { $checked = ( in_array( $key, $saved_opt ) ? esc_attr( $key ) : 0 ); $id_attr = "{$id}-{$option}-{$key}"; $name_attr = "{$id}[{$option}][]"; $label = ucfirst( $post_type->labels->name ); ?>
taxonomies_options(); $this->taxonomies_select(); } /** * Show taxonomies indexing options. * * @since 5.0 */ protected function taxonomies_options() { $id = IS_Index_Options::$ID; $opt = 'tax_index_opt'; $saved_opt = $this->index_opt->{$opt}; $options = $this->index_opt->get_taxonomies_index_options(); $content = __( 'Index selected taxonomies.', 'add-search-to-menu' ); IS_Help::help_info( esc_html( $content ) ); foreach ( $options as $option => $label ) { $opt_id = "{$id}-{$opt}-{$option}"; $opt_name = "{$id}[{$opt}]"; ?>

index_opt->{$option}; ?>
labels->name ) ; ?>
$tax ) { $checked = ( in_array( $key, $saved_opt ) ? esc_attr( $key ) : 0 ); $id_attr = "{$id}-{$option}-{$key}"; $name_attr = "{$id}[{$option}][]"; $label = ucfirst( $tax->labels->name ); ?>
index_opt->get_meta_keys( IS_Index_Options::META_OPT_ALL ); if ( !empty($meta_keys) ) { $this->meta_fields_options(); $this->meta_fields_select(); } } /** * Show meta fields indexing options. * * @since 5.0 */ public function meta_fields_options() { $id = IS_Index_Options::$ID; $meta_options = $this->index_opt->get_meta_fields_options(); $option = 'meta_fields_opt'; $saved_opt = $this->index_opt->{$option}; $content = __( 'Index selected custom fields.', 'add-search-to-menu' ); IS_Help::help_info( esc_html( $content ) ); ?> $title ) { ?>

index_opt->{$option}; $name_attr = "{$id}[{$option}][]"; $meta_keys = $this->index_opt->get_meta_keys(); ?>


index_opt->get_extra_options(); $content = __( 'Index selected content.', 'add-search-to-menu' ); IS_Help::help_info( esc_html( $content ) ); foreach ( $options as $option => $label ) { $opt_id = "{$id}_{$option}"; $opt_name = "{$id}[{$option}]"; $checked = $this->index_opt->{$option}; ?>

index_opt->get_advanced_options(); ?> $title ) { if ( 'min_word_length' == $field ) { ?> " value="index_opt->{$field} ); ?>" min="1" max="40" >


$label ) { $opt_id = "{$id}-{$field}-{$option}"; $opt_name = "{$id}[{$field}]"; ?>