Lines Matching refs:title
33 'title (optional)' => 'string',
61 * @param string $title - The title inside the tooltip.
62 * @param string $preTitle - Text to display before the title. Newlines will be rendered as line breaks.
67 public function forText($content, $tooltip, $title='', $preTitle = '', $classes = '', $textClasses = '') {
81 $partCount = (empty($title) ? 0 : 1) + (empty($preTitle) ? 0 : 1) + (empty($tooltip) ? 0 : 1);
97 if (!empty($title)) {
98 $contentParts[] = '<span class="plugin-autotooltip-title">' . $title . '</span>';
117 * Render a tooltip, with the title and abstract of a page.
120 * @param string $content - The on-page content. Newlines will be rendered as line breaks. Omit to use the page's title.
121 * @param string $preTitle - Text to display before the title in the tooltip. Newlines will be rendered as line breaks.
131 $title = $meta['title'];
133 $link = $this->localRenderer->internallink($id, $content ?: $title, null, true);
137 return $this->forText($link, $meta['abstract'], $title, $preTitle, $classes, $textClasses);
160 * Strip the native title= tooltip from an anchor tag.
166 return preg_replace('/title="[^"]*"/', '', $link);
176 * @return array - An array containing 'title' and 'abstract.'
190 'title' => p_get_metadata(cleanID($id), 'title'),
194 // By default, the abstract starts with the title. Remove it so it's not displayed twice, but still fetch
197 '/^' . self::_pregEscape($results['title']) . '(\r?\n)+/',