function createUrl() { if (!$this->row['url']) { return FALSE; } $url = htmlspecialchars(stripslashes($this->row['url'])); unset($this->row['url']); return MISC::a('rLink', $url, $url, "_blank"); }
/** * Format hyperlinks and clean up citation * @author Mark Grimshaw * * @return string ready for printing to the output medium. */ function hyperLink($citation) { // Ensure we have no preliminary punctuation left over $citation = preg_replace("/^\\s*[.,;:]\\s*/U", "", $citation); if ($this->hyperlinkBase) { $citation = MISC::a("link", $this->export->format(trim($citation)), $this->hyperlinkBase . $this->item['id']); } return $citation; }
function display() { $this->pString = MISC::h($this->messages->text("heading", "helpStyles"), FALSE, 3); $this->pString .= MISC::aName("top"); $this->pString .= MISC::p(TEXT4); $this->pString .= MISC::p(TEXT5); $this->pString .= MISC::p(TEXT10); $this->pString .= MISC::p(TEXT6); $this->pString .= MISC::p(TEXT7); $this->pString .= MISC::p(MISC::hr()); $this->pString .= MISC::h(SYNTAX_HEADING); $this->pString .= MISC::p(SYNTAX1); $this->pString .= MISC::ol(MISC::li(SYNTAX2) . MISC::li(SYNTAX3) . MISC::li(MISC::b(SYNTAX4) . ' ' . SYNTAX5) . MISC::li(SYNTAX6) . MISC::li(SYNTAX7) . MISC::li(SYNTAX8) . MISC::li(SYNTAX9) . MISC::li(SYNTAX10) . MISC::li(SYNTAX11) . MISC::li(SYNTAX12) . MISC::li(SYNTAX13)); $this->pString .= MISC::p(TEXT11); $this->pString .= MISC::p(MISC::hr()); $this->pString .= MISC::h(EXAMPLE_HEADING); $this->pString .= MISC::p("<code>" . EXAMPLE1 . "</code>" . MISC::BR() . EXAMPLE2 . "</code>" . MISC::BR() . "<code>" . EXAMPLE3 . "</code>"); $this->pString .= MISC::p(EXAMPLE4 . MISC::BR() . "<code>" . EXAMPLE5 . "</code>"); $this->pString .= MISC::hr(); $this->pString .= MISC::p("<code>" . EXAMPLE7 . "</code>" . MISC::BR() . EXAMPLE2 . "</code>" . MISC::BR() . "<code>" . EXAMPLE8 . "</code>"); $this->pString .= MISC::p(EXAMPLE9 . MISC::BR() . "<code>" . EXAMPLE10 . "</code>"); $this->pString .= MISC::hr(); $this->pString .= MISC::p("<code>" . EXAMPLE11 . "</code>" . MISC::BR() . EXAMPLE2 . "</code>" . MISC::BR() . "<code>" . EXAMPLE12 . "</code>"); $this->pString .= MISC::p(EXAMPLE13 . MISC::BR() . "<code>" . EXAMPLE14 . "</code>"); $this->pString .= MISC::hr(); $this->pString .= MISC::p(EXAMPLE15 . MISC::BR() . "<code>" . EXAMPLE16 . "</code>" . MISC::BR() . EXAMPLE2 . MISC::BR() . "<code>" . EXAMPLE17 . "</code>" . MISC::br() . EXAMPLE18 . MISC::br() . "<code>" . EXAMPLE19 . "</code>"); $this->pString .= MISC::p(EXAMPLE20 . MISC::BR() . "<code>" . EXAMPLE21 . "</code>" . MISC::BR() . EXAMPLE2 . MISC::BR() . "<code>" . EXAMPLE22 . "</code>" . MISC::br() . EXAMPLE23 . MISC::br() . "<code>" . EXAMPLE24 . "</code>"); $this->pString .= MISC::p(EXAMPLE25); $this->pString .= MISC::hr(); $this->pString .= MISC::p(TEXT8); $this->pString .= MISC::p(TEXT9); $this->pString .= MISC::p(MISC::a("link", $this->utf8->decodeUtf8($this->messages->text("misc", "top")), "#top"), "small", "right"); return $this->pString; }
function createUrl() { if (!$this->row['url']) { return FALSE; } $url = $this->output == 'html' ? htmlspecialchars(stripslashes($this->row['url'])) : stripslashes($this->row['url']); unset($this->row['url']); if ($this->output == 'html') { return MISC::a('rLink', $url, $url, "_blank"); } else { return $url; } }