Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
' . esc_html__('Support', 'subscriptio') . '';
array_unshift($links, $link);
// Settings
if (self::check_environment()) {
$link = '' . esc_html__('Settings', 'subscriptio') . '';
array_unshift($links, $link);
}
return $links;
}
/**
* Check if environment meets requirements
*
* @access public
* @return bool
*/
public static function check_environment()
{
$is_ok = true;
// Check PHP version
if (!RightPress_Help::php_version_gte(RP_SUB_SUPPORT_PHP)) {
add_action('admin_notices', array('RP_SUB', 'php_version_notice'));
return false;
}
// Check WordPress version
if (!RightPress_Help::wp_version_gte(RP_SUB_SUPPORT_WP)) {
add_action('admin_notices', array('RP_SUB', 'wp_version_notice'));
$is_ok = false;
}
// Check if WooCommerce is enabled
if (!class_exists('WooCommerce')) {
add_action('admin_notices', array('RP_SUB', 'wc_disabled_notice'));
$is_ok = false;
}
else if (!RightPress_Help::wc_version_gte(RP_SUB_SUPPORT_WC)) {
add_action('admin_notices', array('RP_SUB', 'wc_version_notice'));
$is_ok = false;
}
return $is_ok;
}
/**
* Display PHP version notice
*
* @access public
* @return void
*/
public static function php_version_notice()
{
echo '' . sprintf(esc_html__('%1$s requires PHP %2$s or later. Please update PHP on your server to use this plugin.', 'subscriptio'), 'Subscriptio', RP_SUB_SUPPORT_PHP) . ' ' . sprintf(esc_html__('If you have any questions, please contact %s.', 'subscriptio'), ('' . esc_html__('RightPress Support', 'subscriptio') . '')) . '
';
}
/**
* Display WP version notice
*
* @access public
* @return void
*/
public static function wp_version_notice()
{
echo '' . sprintf(esc_html__('%1$s requires WordPress version %2$s or later. Please update WordPress to use this plugin.', 'subscriptio'), 'Subscriptio', RP_SUB_SUPPORT_WP) . ' ' . sprintf(esc_html__('If you have any questions, please contact %s.', 'subscriptio'), ('' . esc_html__('RightPress Support', 'subscriptio') . '')) . '
';
}
/**
* Display WC disabled notice
*
* @access public
* @return void
*/
public static function wc_disabled_notice()
{
echo '';
}
/**
* Display WC version notice
*
* @access public
* @return void
*/
public static function wc_version_notice()
{
echo '' . sprintf(esc_html__('%1$s requires WooCommerce version %2$s or later. Please update WooCommerce to use this plugin.', 'subscriptio'), 'Subscriptio', RP_SUB_SUPPORT_WC) . ' ' . sprintf(esc_html__('If you have any questions, please contact %s.', 'subscriptio'), ('' . esc_html__('RightPress Support', 'subscriptio') . '')) . '
';
}
}
RP_SUB::get_instance();