' . __('Settings', 'ogrealert') . ''); return $links; } // Plugin File Path Calculations private static function get_path($file) { return trailingslashit(dirname($file)); } private static function get_dir($file) { $dir = trailingslashit(dirname($file)); $count = 0; // Sanitize for Win32 installs $dir = str_replace('\\', '/', $dir); // If file is in plugins folder $wp_plugin_dir = str_replace('\\', '/', WP_PLUGIN_DIR); $dir = str_replace($wp_plugin_dir, plugins_url(), $dir, $count); if ($count < 1) { // If file is in wp-content folder $wp_content_dir = str_replace('\\', '/', WP_CONTENT_DIR); $dir = str_replace($wp_content_dir, content_url(), $dir, $count); } if ($count < 1) { // If file is in ??? folder $wp_dir = str_replace('\\', '/', ABSPATH); $dir = str_replace($wp_dir, site_url('/'), $dir); } return $dir; } private static function get_hook($file) { return basename(dirname($file)) . '/' . basename($file); } } \OgreAlert\Plugin::init();