芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/ebpt.pulsehost.co.uk/wp-content/plugins/thememove-payment/inc/load.php
settings->get( $this->id . '.enable' ) ) { $settings = LP()->settings(); wp_enqueue_script( 'stripe', 'https://js.stripe.comv3/', '', '3.0', true ); wp_enqueue_script( 'thememove-payment-stripe', $this->get_plugin_url( 'assets/js/stripe.js' ), array( 'stripe' ), TM_ADDON_PAYMENT_VER, true ); wp_enqueue_style( 'thememove-payment-stripe', $this->get_plugin_url( 'assets/css/style.css' ), array(), TM_ADDON_PAYMENT_VER, 'all' ); $test_publish_key = $settings->get( "{$this->id}.test_publish_key" ); $live_publish_key = $settings->get( "{$this->id}.live_publish_key" ); $publish_key = $settings->get( "{$this->id}.test_mode" ) == 'yes' ? $test_publish_key : $live_publish_key; $data = array( 'publish_key' => $publish_key, 'plugin_url' => plugins_url( '', TM_ADDON_PAYMENT_FILE ), 'button_verify' => esc_html__( 'Updating', 'thememove-payment' ), 'error_verify' => esc_html__( 'Unable to process this payment, please try again or use alternative method.', 'thememove-payment' ), ); wp_localize_script( 'thememove-payment-stripe', '$thememovePayment', $data ); } } /** * Add Stripe to payment system. * * @param $methods * * @return mixed */ public function add_payment( $methods ) { $methods['stripe'] = 'TM_Gateway_Stripe'; return $methods; } /** * Plugin links. * * @return array */ public function plugin_links() { $links[] = '
' . esc_html__( 'Settings', 'thememove-payment' ) . '
'; return $links; } } }