X7ROOT File Manager
Current Path:
/home/okeydcqc/.trash/wp-content.5/plugins/extendify/app
home
/
okeydcqc
/
.trash
/
wp-content.5
/
plugins
/
extendify
/
app
/
ðŸ“
..
📄
AdminPageRouter.php
(10.22 KB)
📄
Affiliate.php
(2.45 KB)
📄
ApiRouter.php
(2.29 KB)
ðŸ“
Assist
📄
Config.php
(2.59 KB)
ðŸ“
Draft
ðŸ“
HelpCenter
📄
Insights.php
(3.97 KB)
ðŸ“
Launch
ðŸ“
Library
ðŸ“
PageCreator
📄
PartnerData.php
(10.49 KB)
ðŸ“
Recommendations
ðŸ“
Shared
📄
SiteSettings.php
(1.31 KB)
Editing: Config.php
<?php /** * The App details file */ namespace Extendify; defined('ABSPATH') || die('No direct access.'); use Extendify\Shared\Services\Sanitizer; /** * Controller for handling various app data */ class Config { /** * Plugin slug * * @var string */ public static $slug = 'extendify'; /** * The JS/CSS asset manifest (with hashes) * * @var array */ public static $assetManifest = []; /** * Plugin version * * @var string */ public static $version = ''; /** * Plugin API REST version * * @var string */ public static $apiVersion = 'v1'; /** * Partner Id * * @var string|null */ public static $partnerId = null; /** * Whether to load Launch * * @var boolean */ public static $showLaunch = false; /** * Plugin environment * * @var string */ public static $environment = ''; /** * Host plugin * * @var string */ public static $requiredCapability = EXTENDIFY_REQUIRED_CAPABILITY; /** * Plugin config * * @var array */ public static $config = []; /** * Whether Launch was finished * * @var boolean */ public static $launchCompleted = false; /** * Process the readme file to get version and name * * @return void */ public function __construct() { self::$partnerId = defined('EXTENDIFY_PARTNER_ID') ? constant('EXTENDIFY_PARTNER_ID') : null; $partnerData = PartnerData::getPartnerData(); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents $readme = file_get_contents(EXTENDIFY_PATH . 'readme.txt'); preg_match('/Stable tag: ([0-9.:]+)/', $readme, $matches); self::$version = $matches[1]; self::$assetManifest = wp_json_file_decode( EXTENDIFY_PATH . 'public/build/manifest.json', ['associative' => true] ); if (!get_option('extendify_first_installed_version')) { update_option('extendify_first_installed_version', Sanitizer::sanitizeText(self::$version)); } // An easy way to check if we are in dev mode is to look for a dev specific file. $isDev = is_readable(EXTENDIFY_PATH . '.devbuild'); self::$environment = $isDev ? 'DEVELOPMENT' : 'PRODUCTION'; self::$launchCompleted = (bool) get_option('extendify_onboarding_completed', false); self::$showLaunch = $isDev ? true : ((bool) ($partnerData['showLaunch'] ?? false)); } }
Upload File
Create Folder