| Server IP : 213.186.33.4 / Your IP : 216.73.216.146 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www/wp-content/themes/Divi/includes/builder/plugin-compat/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Plugin compatibility for WP Responsive Table.
*
* @since 4.4.0
*
* @link https://wordpress.org/plugins/wp-responsive-table/
*/
class ET_Builder_Plugin_Compat_WPResponsiveTable extends ET_Builder_Plugin_Compat_Base {
/**
* Constructor
*/
public function __construct() {
$this->plugin_id = 'wp-responsive-table/wp-responsive-table.php';
$this->init_hooks();
}
/**
* Hook methods to WordPress
*
* Latest plugin version: 1.2.4
*/
public function init_hooks() {
// Bail if there's no version found
if ( ! $this->get_plugin_version() ) {
return;
}
add_filter( 'et_builder_render_layout', array( $this, 'add_content_wrapper' ) );
}
/**
* Equivalent of ResponsiveTable\Frontend\Frontend::addContentWrapper().
* We have no sensible way to get the instance reference and run its method
* so we just add the container it would've added manually.
*
* @since 4.4.0
*
* @param string $content
*
* @return string
*/
public function add_content_wrapper( $content ) {
return '<div class="wprt-container">' . $content . '</div>';
}
}
new ET_Builder_Plugin_Compat_WPResponsiveTable();