Uname: Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.31.145
Your Ip: 216.73.216.182
User: homesquasz (91404) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : class-tielabs-sensei.php
<?php
/**
 * Sensei Plugin
 *
 */

defined( 'ABSPATH' ) || exit; // Exit if accessed directly



if( ! class_exists( 'TIELABS_SENSEI' ) ) {

	class TIELABS_SENSEI{

		/**
		 * __construct
		 *
		 * Class constructor where we will call our filter and action hooks.
		 */
		function __construct(){

			// Disable if the Sensei plugin is not active
			if( ! TIELABS_SENSEI_IS_ACTIVE ) return;

			// Unhook the default Sensei wrappers
			global $woothemes_sensei;
			remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ),     10 );
			remove_action( 'sensei_after_main_content',  array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ), 10 );

			// Before main content warapper
			add_action( 'sensei_before_main_content', array( $this, 'before_main_content' ), 10);

			// After main content warapper
			add_action( 'sensei_after_main_content', array( $this, 'after_main_content' ), 10);
		}


		/*
		 * Before main content warapper
		 */
		function before_main_content() {
			echo '<div '. tie_content_column_attr( false ) .'>';
			echo '<div class="container-wrapper">';
		}


		/*
		 * After main content warapper
		 */
		function after_main_content() {
			echo '</div>';
			echo '</div>';
			get_sidebar();
		}
	}


	// Instantiate the class
	new TIELABS_SENSEI();
}
© 2026 GrazzMean