summaryrefslogtreecommitdiff
path: root/_admin.php
diff options
context:
space:
mode:
authorPaul Kocialkowski2014-01-17 20:25:11 +0100
committerPaul Kocialkowski2014-01-17 20:25:11 +0100
commit47210a692288db805dc30f2940663efec074b339 (patch)
tree8f9898df8dd0c9ca5f13bde84afcc9656f5a3a6b /_admin.php
Initial commitHEADmaster
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to '_admin.php')
-rwxr-xr-x_admin.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/_admin.php b/_admin.php
new file mode 100755
index 0000000..43f23c4
--- /dev/null
+++ b/_admin.php
@@ -0,0 +1,29 @@
+<?php
+# -- BEGIN LICENSE BLOCK ---------------------------------------
+#
+# This file is part of Dotclear 2.
+#
+# Copyright (c) 2003-2010 Olivier Meunier & Association Dotclear
+# Licensed under the GPL version 2.0 license.
+# See LICENSE file or
+# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+#
+# -- END LICENSE BLOCK -----------------------------------------
+if (!defined('DC_CONTEXT_ADMIN')) { return; }
+
+$core->addBehavior('adminCommentHeaders',array('comment_answerBehaviors','jsLoad'));
+
+class comment_answerBehaviors
+{
+ public static function jsLoad()
+ {
+ return
+ '<script type="text/javascript" src="index.php?pf=comment_answer/post.js"></script>'.
+ '<script type="text/javascript">'."\n".
+ "//<![CDATA[\n".
+ dcPage::jsVar('jsToolBar.prototype.elements.comment_answer.title',__('Comment answer')).
+ "\n//]]>\n".
+ "</script>\n";
+ }
+}
+?>