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

Last change on this file since 3282 was 3282, checked in by plg, 15 years ago

change: according to topic:15067, svn:keywords property was removed

  • Property svn:eol-style set to LF
File size: 1.4 KB
Line 
1{* $Id: /piwigo/trunk/plugins/LocalFilesEditor/show_default.tpl 7026 2009-03-11T16:39:44.956202Z patdenice  $ *}
2{html_head}
3<link rel="stylesheet" type="text/css" href="{$LOCALEDIT_PATH}locfiledit.css">
4<style type="text/css">#headbranch, #theHeader, #copyright {ldelim} display: none; }</style>
5{/html_head}
6{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
7{known_script id="editarea" src=$LOCALEDIT_PATH|@cat:"editarea/edit_area_full.js"}
8<script type="text/javascript">
9var editarea = "{$LOAD_EDITAREA}";
10
11function loadEditarea() {ldelim}
12  editAreaLoader.init({ldelim}
13    id: "text"
14    {foreach from=$EDITAREA_OPTIONS key=option item=value}
15    , {$option}: {$value|editarea_quote}
16    {/foreach}
17  });
18  jQuery("#showedit").hide();
19  jQuery("#hideedit").show();
20}
21
22function unloadEditarea() {ldelim}
23  editAreaLoader.delete_instance("text");
24  jQuery("#hideedit").hide();
25  jQuery("#showedit").show();
26}
27</script>
28
29<div id="LocalFilesEditor">
30<h1>{$TITLE}</h1>
31
32<textarea id="text" rows="30" cols="90">{$DEFAULT_CONTENT}</textarea>
33
34<div id="editarea_buttons">
35<a href="javascript:loadEditarea();" id="showedit">[{'locfiledit_enable_editarea'|@translate}]</a>
36<a href="javascript:unloadEditarea();" id="hideedit">[{'locfiledit_disable_editarea'|@translate}]</a>
37</div>
38
39</div>
40
41<script type="text/javascript">
42jQuery("#editarea_buttons").show();
43if (editarea == "on") loadEditarea();
44</script>
Note: See TracBrowser for help on using the repository browser.