![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/gg.corals.io/wp-content/themes/bugster/plugins/elegro-payment/ |
<?php /* Elegro Crypto Payment support functions ------------------------------------------------------------------------------- */ // Theme init priorities: // 9 - register other filters (for installer, etc.) if ( ! function_exists( 'bugster_elegro_payment_theme_setup9' ) ) { add_action( 'after_setup_theme', 'bugster_elegro_payment_theme_setup9', 9 ); function bugster_elegro_payment_theme_setup9() { if ( bugster_exists_elegro_payment() ) { add_action( 'wp_enqueue_scripts', 'bugster_elegro_payment_frontend_scripts', 1100 ); add_filter( 'bugster_filter_merge_styles', 'bugster_elegro_payment_merge_styles' ); } if ( is_admin() ) { add_filter( 'bugster_filter_tgmpa_required_plugins', 'bugster_elegro_payment_tgmpa_required_plugins' ); } } } // Filter to add in the required plugins list if ( ! function_exists( 'bugster_elegro_payment_tgmpa_required_plugins' ) ) { function bugster_elegro_payment_tgmpa_required_plugins( $list = array() ) { if ( bugster_storage_isset( 'required_plugins', 'woocommerce' ) && bugster_storage_isset( 'required_plugins', 'elegro-payment' ) && bugster_storage_get_array( 'required_plugins', 'elegro-payment', 'install' ) !== false ) { $list[] = array( 'name' => bugster_storage_get_array( 'required_plugins', 'elegro-payment', 'title' ), 'slug' => 'elegro-payment', 'required' => false, ); } return $list; } } // Check if this plugin installed and activated if ( ! function_exists( 'bugster_exists_elegro_payment' ) ) { function bugster_exists_elegro_payment() { return class_exists( 'WC_Elegro_Payment' ); } } // Merge custom styles if ( ! function_exists( 'bugster_elegro_payment_merge_styles' ) ) { function bugster_elegro_payment_merge_styles( $list ) { $list[] = 'plugins/elegro-payment/elegro-payment.scss'; return $list; } } // Enqueue styles for frontend if ( ! function_exists( 'bugster_elegro_payment_frontend_scripts' ) ) { function bugster_elegro_payment_frontend_scripts() { if ( bugster_is_on( bugster_get_theme_option( 'debug_mode' ) ) ) { $bugster_url = bugster_get_file_url( 'plugins/elegro-payment/elegro-payment.css' ); if ( '' != $bugster_url ) { wp_enqueue_style( 'bugster-elegro-payment', $bugster_url, array(), null ); } } } }