Code Mirror 2.
* Author: RingZer0@freenode
* Author URI: http://ringzer0devel.wordpress.com/
* Version: 1.1
* Requires at least: 2.6
* Tested up to: 3.1
* Stable tag: 1.1
**/
if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
define('AES_LIBS',plugins_url('/lib/',__FILE__));
class wp_cm_syntax {
public function __construct(){
add_action('admin_init',array(&$this,'admin_init'));
add_action('admin_head',array(&$this,'admin_head'));
add_action('admin_footer',array(&$this,'admin_footer'));
}
public function admin_footer(){
if (!$this->is_editor())
return;
$filetype = $this->get_file_ext();
?>
is_editor())
return;
$filetype = $this->get_file_ext();
?>