noindex === false ) { $content = apply_filters( 'the_content', $data->post_content ); $content = apply_filters( 'the_real_content', $content, $data ); return str_replace( ']]>', ']]>', $content ); } return ''; } function field_name() { return 'post_content'; } function highlight( $post, $words, $content ) { $high = new Highlighter( $content, $words, true ); if ( $this->noindex === false ) { global $search_spider; $search_spider->has_highlighted_content = true; $content = apply_filters( 'search_unleashed_content', $content, $post ); $high->zoom( $this->before, $this->after ); $high->mark_words(); } else $high->zoom( $this->before, $this->after ); return $high->reformat( $high->get() ); } function name() { return __( 'Post/page content', 'search-unleashed' ); } function load( $config ) { if ( isset( $config['before'] ) ) $this->before = $config['before']; if ( isset( $config['after'] ) ) $this->after = $config['after']; if ( isset( $config['noindex'] ) ) $this->noindex = $config['noindex']; } function edit() { ?> : : noindex ) echo ' checked="checked"' ?>/> intval( $data['before'] ), 'after' => intval( $data['after'] ), 'noindex' => isset( $data['noindex'] ) ? true : false); } }