= SL_INSTA_NAME ?>:
'',
'}}' => '',
]
);
} else {
echo strtr(
_x(
'You need to install and activate the free version in order to use the PRO version. {{Click here}} to install it.',
'Put {{ and }} around the text that should link to the free version download page',
'sl-insta'
),
[
'{{' => '',
'}}' => '',
]
);
}
?>
= __('Installing ...', 'sl-insta') ?>
=
strtr(
_x(
'Something went wrong! We couldn\'t install the plugin for you. Kindly download and install the free version from {{this page}}.',
'Put {{ and }} around the text that links to the plugin install page',
'sl-insta'
),
[
'{{' => '',
'}}' => '',
]
)
?>
=
strtr(
_x(
'Done! Click {{here}} to activate it!',
'Put {{ and }} around the text that activates the plugin',
'sl-insta'
),
[
'{{' => '',
'}}' => '',
]
)
?>
' . SL_INSTA_NAME . ''
)
?>
$data['Name'] ?? $plugin,
'reason' => __(
'Both plugins use the Guzzle HTTP library. This can cause fatal errors if the plugins use different versions of the library.',
'sl-insta'
),
];
}
?>
- = $info['name'] ?> — = $info['reason'] ?>
=
__(
'Spotlight has suspended itself to prevent your site from crashing until the conflict is resolved.',
'sl-insta'
)
?>
=
__(
'To resolve the conflict, disable either Spotlight or the conflicting plugin. Alternatively, you can choose to ignore the conflict(s), but only do so if you know what you\'re doing.',
'sl-insta'
)
?>
= __('Contact Spotlight support', 'sl-insta') ?>
= __('Ignore conflicts', 'sl-insta') ?>
basename;
}, $instances);
deactivate_plugins($plugins);
}
});
return true;
} else {
return false;
}
}
}
if (!function_exists('slInstaGetPluginMainFile')) {
function slInstaGetPluginMainFile($pluginDirName)
{
$phpFiles = glob(WP_CONTENT_DIR . '/plugins/' . $pluginDirName . '/*.php');
foreach ($phpFiles as $filePath) {
$fileName = basename($filePath);
if (!is_readable($filePath)) {
continue;
}
// Do not apply markup/translate as it will be cached.
$data = get_plugin_data($filePath, false, false);
if (empty($data['Name'])) {
continue;
}
return $fileName;
}
return null;
}
}