-
Notifications
You must be signed in to change notification settings - Fork 0
/
psource-branding.php
77 lines (59 loc) · 2.11 KB
/
psource-branding.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/*
Plugin Name: PSOURCE Toolkit
Plugin URI: https://cp-psource.github.io/psource-branding/
Description: Eine komplette White-Label- und Branding-Lösung für Multisite. Adminbar, Loginsreens, Wartungsmodus, Favicons, Entfernen von ClassicPress-Links und Branding und vielem mehr.
Author: PSOURCE
Version: 2.3.3
Author URI: https://github.com/cp-psource
Text Domain: ub
Domain Path: /languages
Copyright 2020-2024 PSOURCE (https://github.com/cp-psource)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License (Version 2 - GPLv2) as published by
the Free Software Foundation.
*/
/**
* @@@@@@@@@@@@@@@@@ PS UPDATER 1.3 @@@@@@@@@@@
**/
require 'psource/psource-plugin-update/plugin-update-checker.php';
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
$myUpdateChecker = PucFactory::buildUpdateChecker(
'https://github.com/cp-psource/psource-branding',
__FILE__,
'psource-branding'
);
//Set the branch that contains the stable release.
$myUpdateChecker->setBranch('master');
/**
* @@@@@@@@@@@@@@@@@ ENDE PS UPDATER 1.3 @@@@@@@@@@@
**/
/**
* PSOURCE CP Toolkit Version
*/
$ub_version = null;
require_once 'build.php';
// Include the configuration library.
require_once dirname( __FILE__ ) . '/etc/config.php';
// Include the functions library.
if ( file_exists( 'inc/deprecated-functions.php' ) ) {
require_once 'inc/deprecated-functions.php';
}
require_once 'inc/functions.php';
require_once 'inc/class-pstoolkit-helper.php';
// Set up my location.
set_pstoolkit( __FILE__ );
/**
* Set ub Version.
*/
function pstoolkit_set_ub_version() {
global $ub_version;
$data = get_plugin_data( __FILE__, false, false );
$ub_version = $data['Version'];
}
if ( ! defined( 'PSTOOLKIT_SUI_VERSION' ) ) {
define( 'PSTOOLKIT_SUI_VERSION', '2.9.6' );
}
register_activation_hook( __FILE__, 'pstoolkit_register_activation_hook' );
register_deactivation_hook( __FILE__, 'pstoolkit_register_deactivation_hook' );
register_uninstall_hook( __FILE__, 'pstoolkit_register_uninstall_hook' );