add_dashboard_js_translations(); } /** * Getting the full path to given $asset * * @param string $asset * * @return string */ public static function get_asset_path( $asset ) { static $plugin_directory; if ( $plugin_directory == null ) { $plugin_directory = plugin_dir_url( GAWP_FILE ); } $return = $plugin_directory . $asset; return $return; } /** * Check whether we can include the minified version or not * * @param string $ext * * @return string */ private static function file_ext( $ext ) { if ( ! defined( 'SCRIPT_DEBUG' ) || ! SCRIPT_DEBUG ) { $ext = '.min' . $ext; } return $ext; } }