Btw something like this would also solve this:
then in the plugin use the $plugin_url instead:
This way plugins folder name is taken directly from GSPLUGINPATH so no need for manual rewrite if changed.
PHP Code:
$site_url = $SITEURL;
$plugin_folder = basename(GSPLUGINPATH);
$plugin_url = $site_url.$plugin_folder;
then in the plugin use the $plugin_url instead:
PHP Code:
$style = '<link rel="stylesheet" type="text/css" href="'.$plugin_url.'/simple_contact/css/simple_contact.css"></link>';
$script = '<script type="text/javascript" src="'.$plugin_url.'/simple_contact/js/jquery.validate.min.js"></script>';
This way plugins folder name is taken directly from GSPLUGINPATH so no need for manual rewrite if changed.