58 | 59 |
60 |

61 | 62 | WordPress 63 | 64 |

65 | 77 |
`; 78 | 79 | // Add a link to pages for know words, or a link to the google search for unknown words. 80 | if (isKnownWord) { 81 | output += `

This article is part of the 82 | WordPress.org Code Reference. 83 | You can also open this article 84 | in your browser.

`; 85 | } else { 86 | output += `

Sorry, the term you searched for isn't 87 | recognized by the SearchWordPressDocs extension. You are seeing Google's 88 | first result for your search. If you prefer, you can 90 | open Google's search results in your browser.

`; 91 | } 92 | 93 | return output; 94 | } 95 | 96 | /** 97 | * Generate footer for the webview, and add closing tags. 98 | */ 99 | export function getHtmlFooter() { 100 | return `