{* $Id: edit_dir.tpl,v 1.20.2.1 2003/04/03 11:33:36 svowl Exp $ *} {if ($what_to_edit eq "files")} {include file="location.tpl" last_location="Browse files"} This section allows you to browse, add, delete files which afterwards may be used in your store. {else} {include file="location.tpl" last_location="Browse templates"} This section allows you to edit templates from which your store is built. As the templates engine is very flexible and extremely configurable, you may change the store's look and feel so that it will fit any design layout. But be careful! The powerful flexibility requires basic HTML knowledge and experience. If "$admin_safe_mode" is set to "true" then template editor is write-protected. {if $smarty.get.dir eq ""}

Note: You will probably want to use 'X-Cart debug console' together with template editor. You can activate 'X-Cart debug console' under 'General settings' menu.

Config file ({$skin_config})
CSS file ({#CSSFile#})
Buttons
Help files
Error messages
Mail templates
Today News {/if} {/if}

{capture name=dialog}

{section name=dir_entry loop=$dir_entries} {if $dir_entries[dir_entry].filetype eq "dir"} {$dir_entries[dir_entry].file|truncate:25}/ {else} {if ($what_to_edit eq "files")} {$dir_entries[dir_entry].file|truncate:25} {else} {$dir_entries[dir_entry].file|truncate:25} {/if} {/if}
{if ($smarty.section.dir_entry.index eq $dir_entries_half)}
{/if} {/section}

{literal}

{/literal} {if ($what_to_edit ne "files")}

 

{/if}

 

 

  Overwrite file if exists

{if $what_to_edit eq "templates" and $smarty.get.dir eq ""}
If you wish to restore all templates from the repository click the button below.
WARNING: ALL CHANGES MADE TO ALL TEMPLATES WILL BE LOST

If you do not need the multi-language templates we recommend to perform compilation (i.e. automatically replacing language variables with the values). This would be very helpful in editing templates process.
Note: compilation process could take several minutes, please be patient.

  Language:

Note: if you wish to switch back to the multi-language templates, use "Restore All" function.
{/if}

{/capture} {if ($what_to_edit eq "files")} {include file="dialog.tpl" title="Browse files" content=$smarty.capture.dialog extra="width=100%"} {else} {include file="dialog.tpl" title="Browse templates" content=$smarty.capture.dialog extra="width=100%"} {/if}