*
* @since 1.0.0
* @return Envato_Market The one true Envato_Market Instance
*/
function envato_market() {
return Envato_Market::instance();
}
endif;
/**
* Loads the main instance of Envato_Market to prevent
* the need to use globals.
*
* This doesn't fire the activation hook correctly if done in 'after_setup_theme' hook.
*
* @since 1.0.0
* @return object Envato_Market
*/
envato_market();
}
if ( ! function_exists( 'envato_market_fail_php_version' ) ) {
/**
* Show in WP Dashboard notice about the plugin is not activated.
*
* @since 2.0.0
*
* @return void
*/
function envato_market_fail_php_version() {
$message = esc_html__( 'The Envato Market plugin requires PHP version 5.4+, plugin is currently NOT ACTIVE. Please contact the hosting provider to upgrade the version of PHP.', 'envato-market' );
$html_message = sprintf( '
%s
', wpautop( $message ) );
echo wp_kses_post( $html_message );
}
}
if ( ! function_exists( 'envato_market_fail_installation_method' ) ) {
/**
* The plugin needs to be installed into the `envato-market/` folder otherwise it will not work correctly.
* This alert will display if someone has installed it into the incorrect folder (i.e. github download zip).
*
* @since 2.0.0
*
* @return void
*/
function envato_market_fail_installation_method() {
$message = sprintf( esc_html__( 'Envato Market plugin is not installed correctly. Please delete this plugin and get the correct zip file from %s.', 'envato-market' ), 'https://envato.com/market-plugin/' );
$html_message = sprintf( '