[ Index ] |
PHP Cross Reference of GlotPress |
[Source view] [Print] [Project Stats]
Functions, which deal with URLs: manipulation, generation
File Size: | 183 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
gp_url_path( $url = null ) X-Ref |
Returns the path of an URL. return: string Path of the URL. Empty string if no path was parsed. since: 1.0.0 param: string $url Optional. The URL to parse. Defaults to GlotPress URL. |
gp_url_join( ...$components ) X-Ref |
Joins paths, and takes care of slashes between them. Example: gp_url_join( '/project', array( 'wp', 'dev) ) -> '/project/wp/dev' The function will keep leading and trailing slashes of the whole URL, but won't allow more than consecutive slash inside. return: string URL, built of all the components, separated with /. param: mixed ...$components Arbitrary number of string or path components. |
gp_url( $path = '/', $query = null ) X-Ref |
Builds a URL relative to the GlotPress' domain root. param: mixed $path string path or array of path components param: array $query associative array of query arguments (optional) |
gp_url_add_path_and_query( $base, $path, $query ) X-Ref |
No description |
gp_url_public_root() X-Ref |
Retrieves the URL for the GlotPress root page. return: string GlotPress root page URL. since: 1.0.0 |
gp_url_project_locale( $project_or_path, $locale, $path = '', $query = null ) X-Ref |
Constructs URL for a project and locale. /<project-path>/<locale>/<path>/<page> |
gp_url_img( $file ) X-Ref |
Get the URL for an image file return: string param: string $file Image filename |
gp_url_current() X-Ref |
The URL of the current page |
gp_url_project( $project_or_path = '', $path = '', $query = null ) X-Ref |
Get the URL for a project A leading double-slash will avoid prepending /projects/ to the path. return: string param: GP_Project|string $project_or_path Project path or object. param: string|array $path Addition path to append to the base path. param: array $query Optional. Associative array of query arguments. |
gp_url_profile( $user_nicename = '' ) X-Ref |
No description |
gp_url_base_path() X-Ref |
No description |
gp_plugin_url( $path = '' ) X-Ref |
No description |
Generated: Sat Dec 21 01:01:08 2024 | Cross-referenced by PHPXref 0.7.1 |