source: trunk/plugins/LocalFilesEditor/show_default.tpl @ 3182

Last change on this file since 3182 was 2588, checked in by patdenice, 16 years ago
  • Move get_extents function to include/functions.inc.php.
  • Change all plugins version to 2.0.
  • LocalFiles Editor can now edit and create template extension.
  • Editarea (for LocalFiles Editor) go to version 0.7.2.2 (chrome compatible)
  • Editarea activation is now saved in database with AJAX.
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
Line 
1{* $Id: show_default.tpl 2588 2008-09-25 17:46:27Z patdenice $ *}
2{html_head}<link rel="stylesheet" type="text/css" href="{$LOCALEDIT_PATH}locfiledit.css">{/html_head}
3{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
4{known_script id="editarea" src=$LOCALEDIT_PATH|@cat:"editarea/edit_area_full.js"}
5<script type="text/javascript">
6var editarea = "{$LOAD_EDITAREA}";
7
8function loadEditarea() {ldelim}
9  editAreaLoader.init({ldelim}
10    id: "text"
11    {foreach from=$EDITAREA_OPTIONS key=option item=value}
12    , {$option}: {$value|editarea_quote}
13    {/foreach}
14  });
15  jQuery("#showedit").hide();
16  jQuery("#hideedit").show();
17}
18
19function unloadEditarea() {ldelim}
20  editAreaLoader.delete_instance("text");
21  jQuery("#hideedit").hide();
22  jQuery("#showedit").show();
23}
24</script>
25
26<div id="LocalFilesEditor">
27
28<textarea id="text" rows="30" cols="90">{$DEFAULT_CONTENT}</textarea>
29
30<div id="editarea_buttons">
31<a href="javascript:loadEditarea();" id="showedit">[{'locfiledit_enable_editarea'|@translate}]</a>
32<a href="javascript:unloadEditarea();" id="hideedit">[{'locfiledit_disable_editarea'|@translate}]</a>
33</div>
34
35</div>
36
37<script type="text/javascript">
38jQuery("#editarea_buttons").show();
39if (editarea == "on") loadEditarea();
40</script>
Note: See TracBrowser for help on using the repository browser.