{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/locfiledit.css"} {footer_script} var editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim} matchBrackets: true, mode: "{$CODEMIRROR_MODE}", tabMode: "shift" }); {/footer_script}

LocalFiles Editor

{if isset ($create_tpl)}
{'locfiledit_new_filename'|@translate}
{'locfiledit_parent_directory'|@translate} {html_options name=tpl_parent options=$create_tpl.PARENT_OPTIONS selected=$create_tpl.PARENT_SELECTED}
{'locfiledit_model'|@translate} {html_options name=tpl_model options=$create_tpl.MODEL_OPTIONS selected=$create_tpl.MODEL_SELECTED}


{/if} {if isset ($css_lang_tpl)} {html_options name=file_to_edit options=$css_lang_tpl.OPTIONS selected=$css_lang_tpl.SELECTED}

{if isset ($css_lang_tpl.NEW_FILE_URL)} {'locfiledit_new_tpl'|@translate} {/if} {/if}
{* top bar buttons *} {if !empty($show_default)} {foreach from=$show_default item=file name=default_loop} {'locfiledit_show_default'|@translate} "{$file.FILE}" {if !($smarty.foreach.default_loop.last)}
{/if} {/foreach} {/if} {if isset ($zone_edit)} {$zone_edit.FILE_NAME}
{* top bar buttons *}
{if isset ($restore)} {/if} {if isset ($restore_infos)}

{'locfiledit_save_bak'|@translate} {/if} {/if}