fix missplaced
This commit is contained in:
parent
c2a36e4e6c
commit
888c3ef085
1 changed files with 4 additions and 2 deletions
|
@ -28,7 +28,6 @@ SOFTWARE.
|
|||
|
||||
*/
|
||||
|
||||
$config = include('config.php');
|
||||
|
||||
function plugin_syntaxhighlighter_add($lang=null) {
|
||||
static $languages = array();
|
||||
|
@ -46,6 +45,8 @@ function plugin_syntaxhighlighter_add($lang=null) {
|
|||
|
||||
|
||||
function plugin_syntaxhighlighter_head() {
|
||||
|
||||
$config = include('config.php');
|
||||
$pdir=plugin_geturl('syntaxhighlighter');
|
||||
echo <<<PRISMJS
|
||||
<!-- start of prism.js header -->
|
||||
|
@ -62,6 +63,7 @@ add_action('wp_head', 'plugin_syntaxhighlighter_head');
|
|||
|
||||
function plugin_syntaxhighlighter_foot() {
|
||||
|
||||
$config = include('config.php');
|
||||
// convert the returned array into a json one, to have an easier time
|
||||
// giving it to the javascript below
|
||||
$used_languages = json_encode(plugin_syntaxhighlighter_add());
|
||||
|
@ -71,7 +73,7 @@ function plugin_syntaxhighlighter_foot() {
|
|||
echo <<<PRISMBOX
|
||||
<!-- start of prism.js footer -->
|
||||
|
||||
<script type="text/javascript" src="{$pdir}res/prism.$config['size'].js"></script>
|
||||
<script type="text/javascript" src="{$pdir}res/prism.{$config['size']}.js"></script>
|
||||
|
||||
<!-- include wrapping-function to wrap content of pre html-tags into code-tags, as said in https://prismjs.com/index.html#basic-usage -->
|
||||
<script type="text/javascript" src="{$pdir}res/syntaxhighlighter-ng.js"></script>
|
||||
|
|
Loading…
Reference in a new issue