ID ); if ( $tags ) { foreach ( (array)$tags AS $tag ) { $newtags[] = $tag->name; } } return implode( ' ', $newtags ); } function highlight( $post, $words, $content ) { if ( $this->show ) { $highlight = new Highlighter( $this->gather( $post ), $words, true ); if ( $highlight->has_matches() ) { $highlight->mark_words(); return '

'.__( 'Tags', 'search-unleashed' ).': '.$highlight->get().'

'; } } return ''; } function name() { return __( 'Tags', 'search-unleashed' ); } function field_name() { return 'post_tags'; } function load( $config ) { if ( isset( $config['show'] ) ) $this->show = $config['show']; } function edit() { ?> : show) echo ' checked="checked"' ?>/> isset( $data['show'] ) ? true : false ); } }