[ Index ] |
PHP Cross Reference of YOURLS |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 1047 lines (40 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
yourls_html_logo() X-Ref |
Display <h1> header and logo return: void |
yourls_html_head( $context = 'index', $title = '' ) X-Ref |
Display HTML head and <body> tag param: string $context Context of the page (stats, index, infos, ...) param: string $title HTML title of the page return: void |
yourls_html_footer($can_query = true) X-Ref |
Display HTML footer (including closing body & html tags) Function yourls_die() will call this function with the optional param set to false: most likely, if we're using yourls_die(), there's a problem, so don't maybe add to it by sending another SQL query param: bool $can_query If set to false, will not try to send another query to DB server return: void |
yourls_html_addnew( $url = '', $keyword = '' ) X-Ref |
Display "Add new URL" box param: string $url URL to prefill the input with param: string $keyword Keyword to prefill the input with return: void |
yourls_html_tfooter( $params = array() X-Ref |
Display main table's footer The $param array is defined in /admin/index.php, check the yourls_html_tfooter() call param: array $params Array of all required parameters return: void |
yourls_html_select( $name, $options, $selected = '', $display = false, $label = '' ) X-Ref |
Return or display a select dropdown field param: string $name HTML 'name' (also use as the HTML 'id') param: array $options array of 'value' => 'Text displayed' param: string $selected optional 'value' from the $options array that will be highlighted param: boolean $display false (default) to return, true to echo param: string $label ARIA label of the element return: string HTML content of the select element since: 1.6 |
yourls_share_box( $longurl, $shorturl, $title = '', $text='', $shortlink_title = '', $share_title = '', $hidden = false ) X-Ref |
Display the Quick Share box param: string $longurl Long URL param: string $shorturl Short URL param: string $title Title param: string $text Text to display param: string $shortlink_title Optional replacement for 'Your short link' param: string $share_title Optional replacement for 'Quick Share' param: bool $hidden Optional. Hide the box by default (with css "display:none") return: void |
yourls_die( $message = '', $title = '', $header_code = 200 ) X-Ref |
Die die die param: string $message param: string $title param: int $header_code return: void |
yourls_table_edit_row( $keyword, $id ) X-Ref |
Return an "Edit" row for the main table param: string $keyword Keyword to edit param: string $id return: string HTML of the edit row |
yourls_table_add_row( $keyword, $url, $title, $ip, $clicks, $timestamp, $row_id = 1 ) X-Ref |
Return an "Add" row for the main table param: string $keyword Keyword (short URL) param: string $url URL (long URL) param: string $title Title param: string $ip IP param: string|int $clicks Number of clicks param: string $timestamp Timestamp param: int $row_id Numeric value used to form row IDs, defaults to one return: string HTML of the row |
yourls_table_head() X-Ref |
Echo the main table head return: void |
yourls_table_tbody_start() X-Ref |
Echo the tbody start tag return: void |
yourls_table_tbody_end() X-Ref |
Echo the tbody end tag return: void |
yourls_table_end() X-Ref |
Echo the table start tag return: void |
yourls_html_link( $href, $anchor = '', $element = '' ) X-Ref |
Echo HTML tag for a link param: string $href URL to link to param: string $anchor Anchor text param: string $element Element id return: void |
yourls_login_screen( $error_msg = '' ) X-Ref |
Display the login screen. Nothing past this point. param: string $error_msg Optional error message to display return: void |
yourls_html_menu() X-Ref |
Display the admin menu return: void |
yourls_add_notice( $message, $style = 'notice' ) X-Ref |
Wrapper function to display admin notices param: string $message Message to display param: string $style Message style (default: 'notice') return: void |
yourls_notice_box( $message, $style = 'notice' ) X-Ref |
Return a formatted notice param: string $message Message to display param: string $style CSS class to use for the notice return: string HTML of the notice |
yourls_page( $page ) X-Ref |
Display a page Includes content of a PHP file from the YOURLS_PAGEDIR directory, as if it were a standard short URL (ie http://sho.rt/$page) param: string $page PHP file to display return: void since: 1.0 |
yourls_html_language_attributes() X-Ref |
Display the language attributes for the HTML tag. Builds up a set of html attributes containing the text direction and language information for the page. Stolen from WP. return: void since: 1.6 |
yourls_l10n_calendar_strings() X-Ref |
Output translated strings used by the Javascript calendar return: void since: 1.6 |
yourls_new_core_version_notice($compare_with = null) X-Ref |
Display a notice if there is a newer version of YOURLS available param: string $compare_with Optional, YOURLS version to compare to return: void since: 1.7 |
yourls_bookmarklet_link( $href, $anchor, $echo = true ) X-Ref |
Display or return HTML for a bookmarklet link param: string $href bookmarklet link (presumably minified code with "javascript:" scheme) param: string $anchor link anchor param: bool $echo true to display, false to return the HTML return: string the HTML for a bookmarklet link since: 1.7.1 |
yourls_set_html_context($context) X-Ref |
Set HTML context (stats, index, infos, ...) param: string $context return: void since: 1.7.3 |
yourls_get_html_context() X-Ref |
Get HTML context (stats, index, infos, ...) return: string since: 1.7.3 |
yourls_html_favicon() X-Ref |
Print HTML link for favicon return: mixed|void since: 1.7.10 |
Generated: Fri Mar 28 05:10:25 2025 | Cross-referenced by PHPXref 0.7.1 |