| Server IP : 209.16.87.222 / Your IP : 216.73.216.140 Web Server : Apache/2.4.68 (Debian) System : Linux 797b534c095b 6.18.38-Unraid #1 SMP PREEMPT_DYNAMIC Mon Jul 6 15:22:03 PDT 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/uncanny-automator/src/integrations/divi/ |
Upload File : |
<?php
namespace Uncanny_Automator;
/**
* Add Divi Integration
*/
class Add_Divi_Integration {
use Recipe\Integrations;
/**
* Add_Divi_Integration constructor.
*/
public function __construct() {
$this->setup();
}
/**
* Set up integration
*/
protected function setup() {
$this->set_integration( 'DIVI' );
$this->set_name( 'Divi' );
$this->set_icon( 'divi-icon.svg' );
$this->set_icon_path( __DIR__ . '/img/' );
$this->set_plugin_file_path( '' );
}
/**
* Check if Divi theme is active
*
* @return bool
*/
public function plugin_active() {
$theme = wp_get_theme(); // gets the current theme
if ( 'Divi' === $theme->get_template() ) {
return true;
}
return false;
}
}