forked from as-com/wp-katex
/
wp-katex.php
32 lines (28 loc) · 1.04 KB
/
wp-katex.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
<?php
/*
Plugin Name: WP-KaTeX
Plugin URI: http://andrewsun.com/projects/wp-katex/
Description: Embeds beautiful math in your posts with KaTeX, a very fast LaTeX typesetter.
Version: 1.3.0.1
Author: Andrew Sun
Author URI: http://andrewsun.com/
License: GPL2
*/
/* Copyright 2014 Andrew Sun
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if ( is_admin() && ( !defined( 'DOING_AJAX' ) || !DOING_AJAX ) ) {
require 'scripts/admin.php';
}
else {
require 'scripts/frontend.php';
}