From: <var...@us...> - 2014-07-07 08:52:57
|
Revision: 8956 http://sourceforge.net/p/phpwiki/code/8956 Author: vargenau Date: 2014-07-07 08:52:53 +0000 (Mon, 07 Jul 2014) Log Message: ----------- Make highlight.js work for all themes Modified Paths: -------------- trunk/themes/Crao/templates/bottom.tmpl trunk/themes/Crao/templates/head.tmpl trunk/themes/Portland/templates/body.tmpl trunk/themes/Wordpress/templates/body.tmpl trunk/themes/blog/templates/bottom.tmpl trunk/themes/default/templates/bottom.tmpl trunk/themes/default/templates/head.tmpl trunk/themes/fusionforge/templates/bottom.tmpl trunk/themes/wikilens/templates/head.tmpl Modified: trunk/themes/Crao/templates/bottom.tmpl =================================================================== --- trunk/themes/Crao/templates/bottom.tmpl 2014-07-04 11:58:20 UTC (rev 8955) +++ trunk/themes/Crao/templates/bottom.tmpl 2014-07-07 08:52:53 UTC (rev 8956) @@ -1,3 +1,8 @@ <!-- Add your Disclaimer here --> <?php echo $GLOBALS['ErrorManager']->getPostponedErrorsAsHTML() ?> <?php if (defined('DEBUG') and DEBUG) { ?><?php echo Template('debug') ?><?php } ?> +<script type="text/javascript" src="<?php echo DATA_PATH ?>/highlight.js/highlight.pack.js"></script> +<script> + hljs.tabReplace = ' '; + hljs.initHighlightingOnLoad(); +</script> Modified: trunk/themes/Crao/templates/head.tmpl =================================================================== --- trunk/themes/Crao/templates/head.tmpl 2014-07-04 11:58:20 UTC (rev 8955) +++ trunk/themes/Crao/templates/head.tmpl 2014-07-07 08:52:53 UTC (rev 8956) @@ -11,6 +11,7 @@ <meta name="generator" content="PhpWiki" /> <base href="<?php echo PHPWIKI_BASE_URL?>" /> <link rel="shortcut icon" href="<?php echo $WikiTheme->getImageURL('favicon.ico')?>" /> +<link rel="stylesheet" type="text/css" href="<?php echo DATA_PATH ?>/highlight.js/styles/github.css"/> <?php /* The next few lines are wrapped in an odd manner to allow gettext string extraction: cd locale;make */ ?> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> <link rel="help" title="<?php echo Modified: trunk/themes/Portland/templates/body.tmpl =================================================================== --- trunk/themes/Portland/templates/body.tmpl 2014-07-04 11:58:20 UTC (rev 8955) +++ trunk/themes/Portland/templates/body.tmpl 2014-07-07 08:52:53 UTC (rev 8956) @@ -12,4 +12,5 @@ <?php echo $GLOBALS['ErrorManager']->getPostponedErrorsAsHTML() ?> <?php if (defined('DEBUG') && DEBUG) { ?><?php echo Template('debug') ?><?php } ?> +<?php echo Template('bottom') ?> </body> Modified: trunk/themes/Wordpress/templates/body.tmpl =================================================================== --- trunk/themes/Wordpress/templates/body.tmpl 2014-07-04 11:58:20 UTC (rev 8955) +++ trunk/themes/Wordpress/templates/body.tmpl 2014-07-07 08:52:53 UTC (rev 8956) @@ -10,4 +10,6 @@ <?php echo $GLOBALS['ErrorManager']->getPostponedErrorsAsHTML() ?> +<?php echo Template('bottom') ?> + </body> Modified: trunk/themes/blog/templates/bottom.tmpl =================================================================== --- trunk/themes/blog/templates/bottom.tmpl 2014-07-04 11:58:20 UTC (rev 8955) +++ trunk/themes/blog/templates/bottom.tmpl 2014-07-07 08:52:53 UTC (rev 8956) @@ -4,3 +4,8 @@ <?php if (DEBUG & _DEBUG_VERBOSE) { ?><?php echo Template('debug') ?><?php } ?> <?php } ?> <!--/span--> +<script type="text/javascript" src="<?php echo DATA_PATH ?>/highlight.js/highlight.pack.js"></script> +<script> + hljs.tabReplace = ' '; + hljs.initHighlightingOnLoad(); +</script> Modified: trunk/themes/default/templates/bottom.tmpl =================================================================== --- trunk/themes/default/templates/bottom.tmpl 2014-07-04 11:58:20 UTC (rev 8955) +++ trunk/themes/default/templates/bottom.tmpl 2014-07-07 08:52:53 UTC (rev 8956) @@ -4,3 +4,8 @@ <?php echo $GLOBALS['ErrorManager']->getPostponedErrorsAsHTML() ?> <?php if (defined('DEBUG') and DEBUG & 1) { ?><?php echo Template('debug') ?><?php } ?> <?php } ?> +<script type="text/javascript" src="<?php echo DATA_PATH ?>/highlight.js/highlight.pack.js"></script> +<script> + hljs.tabReplace = ' '; + hljs.initHighlightingOnLoad(); +</script> Modified: trunk/themes/default/templates/head.tmpl =================================================================== --- trunk/themes/default/templates/head.tmpl 2014-07-04 11:58:20 UTC (rev 8955) +++ trunk/themes/default/templates/head.tmpl 2014-07-07 08:52:53 UTC (rev 8956) @@ -15,6 +15,7 @@ <meta name="generator" content="PhpWiki" /> <base href="<?php echo PHPWIKI_BASE_URL?>" /> <link rel="shortcut icon" href="<?php echo $WikiTheme->getImageURL('favicon.ico')?>" /> +<link rel="stylesheet" type="text/css" href="<?php echo DATA_PATH ?>/highlight.js/styles/github.css"/> <?php /* The next few lines are wrapped in an odd manner to allow gettext string extraction: cd locale;make */ ?> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> <link rel="help" title="<?php echo Modified: trunk/themes/fusionforge/templates/bottom.tmpl =================================================================== --- trunk/themes/fusionforge/templates/bottom.tmpl 2014-07-04 11:58:20 UTC (rev 8955) +++ trunk/themes/fusionforge/templates/bottom.tmpl 2014-07-07 08:52:53 UTC (rev 8956) @@ -5,7 +5,6 @@ <?php echo Template('debug') ?> <?php } ?> <?php } ?> - <script type="text/javascript" src="/wiki/highlight.js/highlight.pack.js"></script> <script> hljs.tabReplace = ' '; Modified: trunk/themes/wikilens/templates/head.tmpl =================================================================== --- trunk/themes/wikilens/templates/head.tmpl 2014-07-04 11:58:20 UTC (rev 8955) +++ trunk/themes/wikilens/templates/head.tmpl 2014-07-07 08:52:53 UTC (rev 8956) @@ -11,6 +11,7 @@ <meta name="generator" content="PhpWiki" /> <base href="<?php echo PHPWIKI_BASE_URL?>" /> <link rel="shortcut icon" href="<?php echo $WikiTheme->getImageURL('favicon.ico')?>" /> +<link rel="stylesheet" type="text/css" href="<?php echo DATA_PATH ?>/highlight.js/styles/github.css"/> <?php /* The next few lines are wrapped in an odd manner to allow gettext string extraction: cd locale;make */ ?> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> <link rel="help" title="<?php echo _("HowToUseWiki")?>" href="<?php echo WikiURL( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |