fetch_arguments( 'system-data', 'activation' );
// if activation and not just update
if ( $activation ) {
$system_options['notice-wp-version'] = true;
$system_options['notice-thumb'] = true;
} // if
$system_options['version'] = $version;
update_option( 'amo-team-showcase-system', $system_options );
// Save options data/values to database
$options = get_option( 'amo-team-showcase-options', array() );
update_option( 'amo-team-showcase-options', ( $options += $renderer->fetch_arguments( 'options-data', 'activation' ) ) );
// Save compiled/dynamic CSS styles to database
update_option( 'amo-team-showcase-css-styles', $renderer->assemble_css_styles_from_options( $options ) );
} // IF | new activation or update
} // FNC | settings_activation_and_update
public static function php_version_check() {
$php_version_warning = false;
$error_title = __( 'The plugin cannot be activated, due to the following:', 'amo-team' );
$back_link = sprintf( '
← %s', admin_url(), _x( 'Back to plugins', 'a URL link', 'amo-team' ) );
//$delimiter = '
__( 'And also,', 'amo-team' )
';
# The plugin only works properly in PHP 5.3 or later.
if ( PHP_VERSION_ID < 50300 ) {
$php_version_warning = sprintf( '%s: %s', __( 'Warning', 'amo-team' ), sprintf( __( 'Amo Team Showcase plugin requires at least PHP version 5.3. You are running version %s. Please contact your web hosting to upgrade/change PHP version.', 'amo-team' ), PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION ) );
} // IF | PHP version
// if PHP warning
if ( $php_version_warning ) {
wp_die( $php_version_warning . $back_link, $error_title );
}
} // php_version_check
} // CLASS