|
@@ -937,36 +937,39 @@ endif;
|
|
if (!class_exists("plug_classic")) {
|
|
if (!class_exists("plug_classic")) {
|
|
class plug_classic {
|
|
class plug_classic {
|
|
function plug_classic($ns) {
|
|
function plug_classic($ns) {
|
|
- $this->title = __("Admin bar","dagsopt");
|
|
|
|
|
|
+ $this->title = __("Classic Editor","dagsopt");
|
|
$this->pluginname = $ns->pluginname;
|
|
$this->pluginname = $ns->pluginname;
|
|
$this->file = $ns->file;
|
|
$this->file = $ns->file;
|
|
$this->ns = $ns;
|
|
$this->ns = $ns;
|
|
|
|
|
|
}
|
|
}
|
|
function start() {
|
|
function start() {
|
|
- // add_filter('body_class', array(&$this,'extended_body_class') );
|
|
|
|
- add_action( 'plugins_loaded', array( 'Classic_Editor', 'init_actions' ) );
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ if ( class_exists( 'Classic_Editor' ) ) {
|
|
|
|
+ add_action( 'plugins_loaded', array( 'Classic_Editor', 'init_actions' ) );
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
- function help(){
|
|
|
|
- ?>
|
|
|
|
- Classic Editor
|
|
|
|
- <?php
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- function admin_line(){
|
|
|
|
- ?>
|
|
|
|
- <?php
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- global $plug_classic;
|
|
|
|
- $plug_classic = new plug_classic($this);
|
|
|
|
- $this->dagsopt['plug_classic'] = $plug_classic;
|
|
|
|
-
|
|
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ function help(){
|
|
|
|
+ ?>
|
|
|
|
+ Classic Editor
|
|
|
|
+ <?php
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ function admin_line(){
|
|
|
|
+ ?>
|
|
|
|
+ <?php
|
|
|
|
+}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+global $plug_classic;
|
|
|
|
+$plug_classic = new plug_classic($this);
|
|
|
|
+ $this->dagsopt['plug_classic'] = $plug_classic;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|