https://t.me/ARX49
Server : LiteSpeed
System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : apotdzgr ( 7060)
PHP Version : 8.0.30
Disable Function : NONE
Directory :  /home/apotdzgr/public_html/wp-content/plugins/mycryptocheckout/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/apotdzgr/public_html/wp-content/plugins/mycryptocheckout/src/menu_trait.php
<?php

namespace mycryptocheckout;

/**
	@brief		Handles the setup of menus.
	@since		2017-12-09 07:05:04
**/
trait menu_trait
{
	/**
		@brief		Init!
		@since		2017-12-07 19:34:05
	**/
	public function init_menu_trait()
	{
		$this->add_action( 'admin_menu' );
		$this->add_action( 'network_admin_menu' );
	}

	/**
		@brief		Admin menu callback.
		@since		2017-12-07 19:35:46
	**/
	public function admin_menu()
	{
		$this->enqueue_js();

		// For normal admin.
		add_submenu_page(
			'options-general.php',
			// Page heading
			__( 'MyCryptoCheckout Settings', 'mycryptocheckout' ),
			// Menu item name
			__( 'MyCryptoCheckout', 'mycryptocheckout' ),
			'manage_options',
			'mycryptocheckout',
			[ &$this, 'admin_menu_tabs' ]
		);

	}

	public function admin_menu_tabs()
	{
		$tabs = $this->tabs();

		if ( ! defined( 'MYCRYPTOCHECKOUT_DISABLE_WALLET_EDITOR' ) )
		{
			$tabs->tab( 'currencies' )
				->callback_this( 'admin_currencies' )
				// Tab heading
				->heading( __( 'MyCryptoCheckout Currencies', 'mycryptocheckout' ) )
				// Name of tab
				->name( __( 'Currencies', 'mycryptocheckout' ) );

			if ( $tabs->get_is( 'edit_wallet' ) )
			{
				$wallet_id = $_GET[ 'wallet_id' ];
				$wallets = $this->wallets();
				$wallet = $wallets->get( $wallet_id );
				$tabs->tab( 'edit_wallet' )
					->callback_this( 'admin_edit_wallet' )
					// Editing BTC wallet
					->heading( sprintf(  __( 'Editing %s wallet', 'mycryptocheckout' ), $wallet->get_currency_id() ) )
					// Name of tab
					->name( __( 'Edit wallet', 'mycryptocheckout' ) )
					->parameters( $wallet_id );
			}
		}

		$tabs->tab( 'account' )
			->callback_this( 'admin_account' )
			// Tab heading
			->heading( __( 'MyCryptoCheckout Account', 'mycryptocheckout' ) )
			// Name of tab
			->name( __( 'Account', 'mycryptocheckout' ) );

		$tabs->tab( 'autosettlements' )
			->callback_this( 'autosettlement_admin' )
			// Tab heading
			->heading( __( 'MyCryptoCheckout Autosettlement Settings', 'mycryptocheckout' ) )
			// Name of tab
			->name( __( 'Autosettlements', 'mycryptocheckout' ) );

		if ( $tabs->get_is( 'autosettlement_edit' ) )
		{
			$autosettlement_id = $_GET[ 'autosettlement_id' ];
			$autosettlements = $this->autosettlements();
			$autosettlement = $autosettlements->get( $autosettlement_id );
			$tabs->tab( 'autosettlement_edit' )
				->callback_this( 'autosettlement_edit' )
				// Editing autosettlement TYPE
				->heading( sprintf( __( 'Editing autosettlement %s', 'mycryptocheckout' ), $autosettlement->get_type() ) )
				// Name of tab
				->name( __( 'Edit autosettlement', 'mycryptocheckout' ) )
				->parameters( $autosettlement_id );
		}

		$tabs->tab( 'donations' )
			->callback_this( 'admin_donations' )
			// Tab heading
			->heading( __( 'MyCryptoCheckout Donations', 'mycryptocheckout' ) )
			// Name of tab
			->name( __( 'Donations', 'mycryptocheckout' ) );

		if ( $this->is_network )
			$tabs->tab( 'local_settings' )
				->callback_this( 'admin_local_settings' )
				// Tab heading
				->heading( __( 'MyCryptoCheckout Local Settings', 'mycryptocheckout' ) )
				// Name of tab
				->name( __( 'Local Settings', 'mycryptocheckout' ) );

		$tabs->tab( 'global_settings' )
			->callback_this( 'admin_global_settings' )
			// Tab heading
			->heading( __( 'MyCryptoCheckout Global Settings', 'mycryptocheckout' ) )
			// Name of tab
			->name( __( 'Global Settings', 'mycryptocheckout' ) );

		$tabs->tab( 'tools' )
			->callback_this( 'admin_tools' )
			// Tab heading
			->heading( __( 'MyCryptoCheckout Tools', 'mycryptocheckout' ) )
			// Name of tab
			->name( __( 'Tools', 'mycryptocheckout' ) );

		$tabs->tab( 'uninstall' )
			->callback_this( 'admin_uninstall' )
			// Tab heading
			->heading( __( 'Uninstall MyCryptoCheckout', 'mycryptocheckout' ) )
			// Name of tab
			->name( __( 'Uninstall', 'mycryptocheckout' ) )
			->sort_order( 90 );		// Always last.

		echo $tabs->render();
	}

	/**
		@brief		network_admin_menu
		@since		2017-12-30 20:51:49
	**/
	public function network_admin_menu()
	{
		add_submenu_page(
			'settings.php',
			// Page heading
			__( 'MyCryptoCheckout Settings', 'mycryptocheckout' ),
			// Menu item name
			__( 'MyCryptoCheckout', 'mycryptocheckout' ),
			'manage_options',
			'mycryptocheckout',
			[ &$this, 'admin_menu_tabs' ]
		);
	}

}

https://t.me/ARX49 - 2025