PluginProbe
Materialis Companion / trunk
Materialis Companion vtrunk
trunk 1.3.40
materialis-companion / materialis-companion.php

materialis-companion.php in Materialis Companion trunk, at materialis-companion.php

29 lines 973 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Plugin Name: Materialis Companion
4 * Author: Extend Themes
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.57
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' );
22
23 function materialis_get_edit_in_materialis_label() {
24 $theme = get_template();
25 $theme_name = str_replace( ' PRO', '', wp_get_theme( $theme )->get( 'Name' ) );
26
27 return sprintf( __( 'Edit with %s', 'materialis-companion' ), $theme_name );
28 }
29