mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
- 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. git-svn-id: http://piwigo.org/svn/trunk@2588 68402e56-0260-453c-a942-63ccdbb3a9ee
41 lines
1.2 KiB
Smarty
41 lines
1.2 KiB
Smarty
{* $Id$ *}
|
|
{html_head}<link rel="stylesheet" type="text/css" href="{$LOCALEDIT_PATH}locfiledit.css">{/html_head}
|
|
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
|
|
{known_script id="editarea" src=$LOCALEDIT_PATH|@cat:"editarea/edit_area_full.js"}
|
|
<script type="text/javascript">
|
|
var editarea = "{$LOAD_EDITAREA}";
|
|
|
|
function loadEditarea() {ldelim}
|
|
editAreaLoader.init({ldelim}
|
|
id: "text"
|
|
{foreach from=$EDITAREA_OPTIONS key=option item=value}
|
|
, {$option}: {$value|editarea_quote}
|
|
{/foreach}
|
|
});
|
|
jQuery("#showedit").hide();
|
|
jQuery("#hideedit").show();
|
|
}
|
|
|
|
function unloadEditarea() {ldelim}
|
|
editAreaLoader.delete_instance("text");
|
|
jQuery("#hideedit").hide();
|
|
jQuery("#showedit").show();
|
|
}
|
|
</script>
|
|
|
|
<div id="LocalFilesEditor">
|
|
|
|
<textarea id="text" rows="30" cols="90">{$DEFAULT_CONTENT}</textarea>
|
|
|
|
<div id="editarea_buttons">
|
|
<a href="javascript:loadEditarea();" id="showedit">[{'locfiledit_enable_editarea'|@translate}]</a>
|
|
<a href="javascript:unloadEditarea();" id="hideedit">[{'locfiledit_disable_editarea'|@translate}]</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
jQuery("#editarea_buttons").show();
|
|
if (editarea == "on") loadEditarea();
|
|
</script>
|