HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/mangomitra/public_html/wp-content/plugins/totalcontest-lite/src/Admin/Log/Page.php
<?php

namespace TotalContest\Admin\Log;

use TotalContestVendors\TotalCore\Admin\Pages\Page as AdminPageContract;
use TotalContestVendors\TotalCore\Helpers\Tracking;

/**
 * Class Page
 * @package TotalContest\Admin\Log
 */
class Page extends AdminPageContract {
	public function assets() {
		// TotalContest
		wp_enqueue_script( 'totalcontest-admin-log' );
		wp_enqueue_style( 'totalcontest-admin-log' );
		wp_localize_script( 'totalcontest-admin-log', 'TotalContestLog', [
			'contestId'    => $this->request->query( 'contest' ),
			'submissionId' => $this->request->query( 'submission' ),
		] );
	}

	public function render() {

        Tracking::trackScreens('log');

		/**
		 * Filters the list of columns in log browser.
		 *
		 * @param array $columns Array of columns.
		 *
		 * @since 2.0.0
		 * @return array
		 */
		$columns = apply_filters(
			'totalcontest/filters/admin/log/columns',
			[
				'status'     => [ 'label' => esc_html__( 'Status', 'totalcontest' ), 'default' => true, ],
				'action'     => [ 'label' => esc_html__( 'Action', 'totalcontest' ), 'default' => true, ],
				'date'       => [ 'label' => esc_html__( 'Date', 'totalcontest' ), 'default' => true, ],
				'ip'         => [ 'label' => esc_html__( 'IP', 'totalcontest' ), 'default' => true, ],
				'browser'    => [ 'label' => esc_html__( 'Browser', 'totalcontest' ), 'default' => false, ],
				'contest'    => [ 'label' => esc_html__( 'Contest', 'totalcontest' ), 'default' => true, ],
				'submission' => [ 'label' => esc_html__( 'Submission', 'totalcontest' ), 'default' => true, ],
				'user_name'  => [ 'label' => esc_html__( 'Name', 'totalcontest' ), 'default' => false, ],
				'user_id'    => [ 'label' => esc_html__( 'ID', 'totalcontest' ), 'default' => false, ],
				'user_login' => [ 'label' => esc_html__( 'Username', 'totalcontest' ), 'default' => true, ],
				'user_email' => [ 'label' => esc_html__( 'Email', 'totalcontest' ), 'default' => false, ],
				'details'    => [ 'label' => esc_html__( 'Details', 'totalcontest' ), 'default' => false, 'compact' => true ],
			]
		);

		/**
		 *
		 * Filters the list of available formats that can be used for export.
		 *
		 * @param array $formats Array of formats [id => label].
		 *
		 * @since 2.0.0
		 * @return array
		 */
		$formats = apply_filters(
			'totalcontest/filters/admin/log/formats',
			[
				'html' => esc_html__( 'HTML', 'totalcontestl' ),
				
			]
		);

		include_once __DIR__ . '/views/index.php';
	}
}