SILENT KILLERPanel

Current Path: > home > ivftiowh > greeceivf.com > wp-content > plugins > jetpack > modules > contact-form


Operation   : Linux premium88.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software     : Apache
Server IP    : 185.61.154.216 | Your IP: 216.73.216.44
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/ivftiowh/greeceivf.com/wp-content/plugins/jetpack/modules/contact-form

NameTypeSizeLast ModifiedActions
css Directory - -
images Directory - -
js Directory - -
admin.php File 27600 bytes October 14 2024 11:06:00.
class-grunion-contact-form-endpoint.php File 1418 bytes October 14 2024 11:06:00.
grunion-contact-form.php File 80707 bytes October 14 2024 11:06:00.
grunion-form-view.php File 17186 bytes October 14 2024 11:06:00.
grunion-omnisearch.php File 2562 bytes October 14 2024 11:06:00.

Reading File: /home/ivftiowh/greeceivf.com/wp-content/plugins/jetpack/modules/contact-form/grunion-omnisearch.php

<?php

if( ! class_exists( 'WP_List_Table' ) )
	require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );

class Jetpack_Omnisearch_Grunion extends WP_List_Table {
	static $instance;
	public $post_type = 'feedback';

	function __construct() {
		self::$instance = $this;
		add_filter( 'omnisearch_results', array( $this, 'search'), 12, 2 );

		// Push 'post_type_obj' to accepted fields for WP_List_Table (since WP 4.2)
		global $wp_version;
		if ( version_compare( $wp_version, '4.2-z', '>=' ) && $this->compat_fields && is_array( $this->compat_fields ) ) {
			array_push( $this->compat_fields, 'post_type_obj' );
		}
	}

	function search( $results, $search_term ) {
		parent::__construct();

		$this->post_type_obj = get_post_type_object( $this->post_type );

		$search_url = esc_url( admin_url( sprintf( 'edit.php?post_type=%s&s=%s', urlencode( $this->post_type_obj->name ), urlencode( $search_term ) ) ) );
		$search_link = sprintf( ' <a href="%s" class="add-new-h2">%s</a>', $search_url, esc_html( $this->post_type_obj->labels->search_items ) );
		$html = '<h2>' . esc_html( $this->post_type_obj->labels->name ) . $search_link .'</h2>';

		$this->prepare_items( $search_term );

		ob_start();
		$this->display();
		$html .= ob_get_clean();

		$results[ $this->post_type_obj->labels->name ] = $html;
		return $results;
	}

	function get_columns() {
		$columns = array(
			'feedback_from' => __('From', 'jetpack'),
			'feedback_message' => __('Message', 'jetpack'),
			'feedback_date' => __('Date', 'jetpack'),
		);
		return $columns;
	}

	function prepare_items( $search_term = '' ) {
		$this->_column_headers = array( $this->get_columns(), array(), array() );
		/** This action is documented in modules/omnisearch/omnisearch-core.php */
		$num_results = apply_filters( 'omnisearch_num_results', 5 );
		$this->items = get_posts( array(
			's' => $search_term,
			'post_type' => $this->post_type,
			'posts_per_page' => $num_results,
		) );
	}

	function column_default( $post, $column_name ) {
		// Make sure the global $post is our post.
		$_post           = $GLOBALS['post'];
		$GLOBALS['post'] = $post;
		setup_postdata( $post );

		switch ( $column_name ) {
			case 'feedback_from':
			case 'feedback_message':
			case 'feedback_date':
				ob_start();
				grunion_manage_post_columns( $column_name, $post->ID );
				$column_contents = ob_get_clean();
				break;
			default:
				$column_contents = '<pre>' . print_r( $post, true ) . '</pre>';
				break;
		}

		$GLOBALS['post'] = $_post;
		wp_reset_postdata();
		return $column_contents;
	}
}

SILENT KILLER Tool