| [ Index ] |
PHP Cross Reference of GlotPress |
[Source view] [Print] [Project Stats]
Functions, which deal with URLs: manipulation, generation
| File Size: | 117 lines (4 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| gp_url_path( $url = null ) X-Ref |
| Gives the path of an URL param: string $url Optional. The default is the GlotPress URL |
| gp_url_join() 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. param: mixed components... arbitrary number of string or path components return: string URL, built of all the components, separated with / |
| 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_base( $path = '/', $query = null ) X-Ref |
| No description |
| gp_url_add_path_and_query( $base, $path, $query ) X-Ref |
| No description |
| gp_url_ssl( $url ) X-Ref |
| Converts an absolute URL to the corresponding SSL URL if the GlotPress settings allow SSL |
| gp_url_base_root() X-Ref |
| No description |
| gp_url_public_root() X-Ref |
| No description |
| 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 |
| No description |
| gp_url_current() X-Ref |
| The URL of the current page |
| gp_url_project( $project_or_path = '', $path = '', $query = null ) X-Ref |
| No description |
| gp_url_login( $redirect_to = null ) X-Ref |
| No description |
| gp_url_logout() X-Ref |
| No description |
| Generated: Thu May 24 03:59:35 2012 | Hosted by follow the white rabbit. |