X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mathjax%2Fmathjax.php;h=9bff86a2a56bf04f76c021bdd30a587fe66f71ae;hb=86b958e7962a3f22b50f504e836f37b57269dc9f;hp=33cdd43938af54c5c86b874100396779f85d8328;hpb=75f47b74d2295f82fa28abe06a3d18662cc42c5f;p=friendica-addons.git diff --git a/mathjax/mathjax.php b/mathjax/mathjax.php index 33cdd439..9bff86a2 100644 --- a/mathjax/mathjax.php +++ b/mathjax/mathjax.php @@ -4,7 +4,7 @@ * Name: MathJax * Description: Addon for Friendika to include MathJax (LaTeX math syntax) * Version: 1.0 - * Author: Tobias Diekershoff + * Author: Tobias Diekershoff * License: 3-clause BSD license */ @@ -32,14 +32,19 @@ function mathjax_settings (&$a, &$s) { return; $use = get_pconfig(local_user(),'mathjax','use'); $usetext = (($use) ? ' checked="checked" ' : ''); - $s .= '
'; + $s .= ''; $s .= '

MathJax '.t('Settings').'

'; + $s .= '
'; + $s .= ''; } /* we need to add one JavaScript include command to the html output @@ -71,12 +76,8 @@ function mathjax_plugin_admin (&$a, &$o) { set_config('mathjax','baseurl','http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'); } - $includes = array( - '$field_input' => 'field_input.tpl', - ); - $includes = set_template_includes($a->theme['template_engine'], $includes); - - $o = replace_macros( $t, $includes + array( + $o = replace_macros( $t, array( + '$submit' => t('Save Settings'), '$baseurl' => array('baseurl', t('MathJax Base URL'), get_config('mathjax','baseurl' ), t('The URL for the javascript file that should be included to use MathJax. Can be either the MathJax CDN or another installation of MathJax.')), )); }