Lines:
1 to 42 of 42
<?php /** * Jetpack Assets package. * * @package automattic/jetpack-assets */ namespace Automattic\Jetpack; use Automattic\Jetpack\Assets\Semver; use Automattic\Jetpack\Constants as Jetpack_Constants; use InvalidArgumentException; /* class Assets */ /* function Assets::__construct() – Constructor. */ /* function Assets::instance() – Get the singleton instance of the class. */ /* function Assets::init_hooks() – Initalize the hooks as needed. */ /* function Assets::add_async_script() – A public method for adding the async script. */ /* function Assets::script_add_async() – Add an async attribute to scripts that can be loaded deferred. */ /* function Assets::enqueue_async_script() – A helper function that lets you enqueue scripts in an async fashion. */ /* function Assets::get_file_url_for_environment() – Given a minified path, and a non-minified path, will return a minified or non-minified file URL based on whether SCRIPT_DEBUG is set and truthy. */ /* function Assets::add_resource_hint() – Passes an array of URLs to wp_resource_hints. */ /* function Assets::staticize_subdomain() – Serve a WordPress.com static resource via a randomized wp.com subdomain. */ /* function Assets::normalize_path() – Resolve ‘.’ and ‘. */ /* function Assets::register_script() – Register a Webpack-built script. */ /* function Assets::enqueue_script() – Enqueue a script registered with `Assets::register_script`. */ /* function Assets::wp_default_scripts_hook() – ‘wp_default_scripts’ action handler. */ /* function Assets::alias_textdomain() – Register a textdomain alias. */ /* function Assets::alias_textdomains_from_file() – Register textdomain aliases from a mapping file. */ /* function Assets::init_domain_map_hooks() – Register the hooks for textdomain aliasing. */ /* function Assets::filter_gettext() – Filter for `gettext`. */ /* function Assets::filter_ngettext() – Filter for `ngettext`. */ /* function Assets::filter_gettext_with_context() – Filter for `gettext_with_context`. */ /* function Assets::filter_ngettext_with_context() – Filter for `ngettext_with_context`. */ /* function Assets::filter_load_script_translation_file() – Filter for `load_script_translation_file`. */ // Enable section folding in vim: // vim: foldmarker=//\ region,//\ endregion foldmethod=marker // .