diff options
author | friendica <info@friendica.com> | 2012-07-13 07:09:29 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-13 07:09:29 -0700 |
commit | a20a6377277a985fa596b0ea460d91b97f79b4a5 (patch) | |
tree | 1878d488143e2f0d698dc42ae924ab7be93ffb54 /mod/babel.php | |
parent | 599f3d29610b2cc509ab51df0f42d154dd70278d (diff) | |
download | volse-hubzilla-a20a6377277a985fa596b0ea460d91b97f79b4a5.tar.gz volse-hubzilla-a20a6377277a985fa596b0ea460d91b97f79b4a5.tar.bz2 volse-hubzilla-a20a6377277a985fa596b0ea460d91b97f79b4a5.zip |
merge upstream, slider work, refactor ping module, language selection work
Diffstat (limited to 'mod/babel.php')
-rw-r--r-- | mod/babel.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mod/babel.php b/mod/babel.php index 1c881a5bd..ca2c068f8 100644 --- a/mod/babel.php +++ b/mod/babel.php @@ -19,6 +19,12 @@ function babel_content(&$a) { $o .= '<br /><br />'; + $o .= '<form action="babel" method="post">'; + $o .= t('Source (Diaspora) text to convert to BBcode:') . EOL . '<textarea name="d2bbtext" >' . htmlspecialchars($_REQUEST['d2bbtext']) .'</textarea>' . EOL; + $o .= '<input type="submit" name="submit" value="Submit" /></form>'; + + $o .= '<br /><br />'; + if(x($_REQUEST,'text')) { $text = trim($_REQUEST['text']); @@ -52,5 +58,18 @@ function babel_content(&$a) { } + + if(x($_REQUEST,'d2bbtext')) { + + $d2bbtext = trim($_REQUEST['d2bbtext']); + $o .= t("Source input (Diaspora format): ") . EOL. EOL; + $o .= visible_lf($d2bbtext) . EOL. EOL; + + + $bb = diaspora2bb($d2bbtext); + $o .= t("diaspora2bb: ") . EOL. EOL; + $o .= visible_lf($bb) . EOL. EOL; + } + return $o; } |