-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
61 lines (54 loc) · 1.53 KB
/
footer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package simplemd
*/
?>
<footer id="colophon" class="site-footer">
<div class="site-info mdui-typo">
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'simplemd' ) ); ?>">
<?php
/* translators: %s: CMS name, i.e. WordPress. */
printf( esc_html__( 'Proudly powered by %s', 'simplemd' ), 'WordPress' );
?>
</a>
<span class="sep"> | </span>
<?php
/* translators: 1: Theme name, 2: Theme author. */
echo 'Theme: SimpleMD by woshiluo based on <a href="http://underscores.me/">Underscores.me</a>';
?>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
<script>
document.addEventListener("DOMContentLoaded", function() {
Prism.plugins.autoloader.languages_path = '<?php echo get_template_directory_uri() . '/libs/prism/'; ?>components/'
const $ = mdui.$;
$('.entry-content > p').each( ( idx, elem ) => {
const text = elem.textContent;
if( text[0] === text[1] && text[0] === '$' ) {
$(elem).find('br').replaceWith('');
}
});
renderMathInElement(document.body, {
delimiters: [
{left: "$$", right: "$$", display: true},
{left: "$", right: "$", display: false}
],
macros: {
"\\ge": "\\geqslant",
"\\le": "\\leqslant",
"\\geq": "\\geqslant",
"\\leq": "\\leqslant"
}
});
});
</script>
</body>
</html>