aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/template/show_default.tpl
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-13 10:36:53 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-13 10:36:53 +0000
commitd2da26e467aec1347ae7c314c4c8279cb4618c34 (patch)
tree62593399f01a303f03608d910a98cce98cc8b664 /plugins/LocalFilesEditor/template/show_default.tpl
parentc01d0c1790613fd73efc3c78d0c12debdfb1cbc7 (diff)
Clean code
git-svn-id: http://piwigo.org/svn/trunk@10348 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/LocalFilesEditor/template/show_default.tpl')
-rw-r--r--plugins/LocalFilesEditor/template/show_default.tpl37
1 files changed, 37 insertions, 0 deletions
diff --git a/plugins/LocalFilesEditor/template/show_default.tpl b/plugins/LocalFilesEditor/template/show_default.tpl
new file mode 100644
index 000000000..cd6c3f318
--- /dev/null
+++ b/plugins/LocalFilesEditor/template/show_default.tpl
@@ -0,0 +1,37 @@
+{combine_script id="codemirror" path="plugins/LocalFilesEditor/codemirror/lib/codemirror.js"}
+{combine_script id="codemirror.xml" require="codemirror" path="plugins/LocalFilesEditor/codemirror/mode/xml/xml.js"}
+{combine_script id="codemirror.javascript" require="codemirror" path="plugins/LocalFilesEditor/codemirror/mode/javascript/javascript.js"}
+{combine_script id="codemirror.css" require="codemirror" path="plugins/LocalFilesEditor/codemirror/mode/css/css.js"}
+{combine_script id="codemirror.clike" require="codemirror" path="plugins/LocalFilesEditor/codemirror/mode/clike/clike.js"}
+{combine_script id="codemirror.htmlmixed" require="codemirror.xml,codemirror.javascript,codemirror.css" path="plugins/LocalFilesEditor/codemirror/mode/htmlmixed/htmlmixed.js"}
+{combine_script id="codemirror.php" require="codemirror.xml,codemirror.javascript,codemirror.css,codemirror.clike" path="plugins/LocalFilesEditor/codemirror/mode/php/php.js"}
+
+{combine_css path="plugins/LocalFilesEditor/codemirror/lib/codemirror.css"}
+{combine_css path="plugins/LocalFilesEditor/codemirror/mode/xml/xml.css"}
+{combine_css path="plugins/LocalFilesEditor/codemirror/mode/javascript/javascript.css"}
+{combine_css path="plugins/LocalFilesEditor/codemirror/mode/css/css.css"}
+{combine_css path="plugins/LocalFilesEditor/codemirror/mode/clike/clike.css"}
+{combine_css path="plugins/LocalFilesEditor/template/locfiledit.css"}
+
+{footer_script}
+var editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim}
+ readOnly: true,
+ mode: "application/x-httpd-php"
+});
+{/footer_script}
+
+{html_head}
+<style type="text/css">
+#headbranch, #theHeader, #copyright {ldelim} display: none; }
+</style>
+{/html_head}
+
+<div id="LocalFilesEditor">
+
+<div id="title_bar">
+ <span class="file_name">{$TITLE}</span>
+</div>
+
+<textarea id="text" rows="30" cols="90" class="show_default_area">{$DEFAULT_CONTENT}</textarea>
+
+</div>