ru-se.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

materialis-companion.php (720B)


      1 <?php
      2 /*
      3  *	Plugin Name: Materialis Companion
      4  *  Author: Horea Radu
      5  *  Description: The Materialis Companion plugin adds drag and drop page builder functionality to the Materialis theme.
      6  *
      7  * License: GPLv3 or later
      8  * License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
      9  * Version: 1.3.20
     10  * TextDomain: materialis-companion
     11  */
     12 
     13 // Makse sure that the companion is not already active from another theme
     14 if ( ! defined("MATERIALIS_COMPANION_AUTOLOAD")) {
     15     require_once __DIR__ . "/vendor/autoload.php";
     16     define("MATERIALIS_COMPANION_AUTOLOAD", true);
     17 }
     18 
     19 require_once __DIR__ . "/support/wp-5.8.php";
     20 Materialis\Companion::load(__FILE__);
     21 add_filter('materialis_is_companion_installed', '__return_true');