| Server IP : 43.130.17.34 / Your IP : 216.73.217.6 Web Server : nginx/1.28.0 System : Linux VM-4-12-opencloudos 6.6.92-34.1.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 25 21:32:13 CST 2025 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/yespkg.com/wp-content/plugins/wpforms/src/Pro/Integrations/Divi/ |
Upload File : |
<?php
namespace WPForms\Pro\Integrations\Divi;
use WPForms_Field_Phone;
use WPForms_Field_File_Upload;
/**
* Class Divi.
*
* @since 1.6.3
*/
class Divi extends \WPForms\Integrations\Divi\Divi {
/**
* WPForms frontend styles special for Divi.
*
* @since 1.8.1
*/
protected function divi_frontend_styles() {
parent::divi_frontend_styles();
$min = wpforms_get_min_suffix();
// Deregister style 'wpforms-dropzone' already registered for Gutenberg.
wp_deregister_style( 'wpforms-dropzone' );
wp_register_style(
'wpforms-dropzone',
WPFORMS_PLUGIN_URL . "assets/pro/css/integrations/divi/dropzone{$min}.css",
[],
WPForms_Field_File_Upload::DROPZONE_VERSION
);
wp_enqueue_style(
'wpforms-smart-phone-field',
WPFORMS_PLUGIN_URL . "assets/pro/css/integrations/divi/intl-tel-input{$min}.css",
[],
WPForms_Field_Phone::INTL_VERSION
);
wp_enqueue_style(
'wpforms-richtext-field',
WPFORMS_PLUGIN_URL . "assets/pro/css/integrations/divi/richtext{$min}.css",
[],
WPFORMS_VERSION
);
wp_enqueue_style(
'wpforms-content-field',
WPFORMS_PLUGIN_URL . "assets/pro/css/integrations/divi/content{$min}.css",
[],
WPFORMS_VERSION
);
$styles_name = $this->get_current_styles_name();
if ( empty( $styles_name ) ) {
return;
}
wp_enqueue_style(
"wpforms-divi-pro-{$styles_name}",
WPFORMS_PLUGIN_URL . "assets/pro/css/integrations/divi/wpforms-{$styles_name}{$min}.css",
[],
WPFORMS_VERSION
);
}
/**
* Register frontend styles.
* Required for the plugin version of builder only.
*
* @since 1.6.3
*/
public function frontend_styles() {
if ( ! $this->is_divi_plugin_loaded() ) {
return;
}
parent::frontend_styles();
$this->divi_frontend_styles();
}
/**
* Load styles.
*
* @since 1.7.0
*/
public function builder_styles() {
parent::builder_styles();
$min = wpforms_get_min_suffix();
wp_enqueue_style(
'wpforms-pro-integrations',
WPFORMS_PLUGIN_URL . "assets/pro/css/admin-integrations{$min}.css",
[],
WPFORMS_VERSION
);
$this->divi_frontend_styles();
}
}