_load_plugins(array( array('modifier', 'escape', 'admin/main/edit_dir.tpl', 24, false), array('modifier', 'truncate', 'admin/main/edit_dir.tpl', 35, false), array('modifier', 'replace', 'admin/main/edit_dir.tpl', 39, false),)); ?> _tpl_vars['what_to_edit'] == 'files' )): ?> _tpl_vars; $this->_smarty_include("location.tpl", array('last_location' => 'Browse files')); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> This section allows you to browse, add, delete files which afterwards may be used in your store. _tpl_vars; $this->_smarty_include("location.tpl", array('last_location' => 'Browse templates')); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> 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.

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 (_tpl_vars['skin_config']; ?> )
CSS file (_config[0]['vars']['CSSFile']; ?> )
Buttons
Help files
Error messages
Mail templates
Today News

_run_mod_handler('escape', true, $GLOBALS['HTTP_GET_VARS']['dir'], 'html'); ?> _run_mod_handler('escape', true, $GLOBALS['HTTP_POST_VARS']['dir'], 'html'); ?> ">
_sections['dir_entry'])) unset($this->_sections['dir_entry']); $this->_sections['dir_entry']['name'] = 'dir_entry'; $this->_sections['dir_entry']['loop'] = is_array($this->_tpl_vars['dir_entries']) ? count($this->_tpl_vars['dir_entries']) : max(0, (int)$this->_tpl_vars['dir_entries']); $this->_sections['dir_entry']['show'] = true; $this->_sections['dir_entry']['max'] = $this->_sections['dir_entry']['loop']; $this->_sections['dir_entry']['step'] = 1; $this->_sections['dir_entry']['start'] = $this->_sections['dir_entry']['step'] > 0 ? 0 : $this->_sections['dir_entry']['loop']-1; if ($this->_sections['dir_entry']['show']) { $this->_sections['dir_entry']['total'] = $this->_sections['dir_entry']['loop']; if ($this->_sections['dir_entry']['total'] == 0) $this->_sections['dir_entry']['show'] = false; } else $this->_sections['dir_entry']['total'] = 0; if ($this->_sections['dir_entry']['show']): for ($this->_sections['dir_entry']['index'] = $this->_sections['dir_entry']['start'], $this->_sections['dir_entry']['iteration'] = 1; $this->_sections['dir_entry']['iteration'] <= $this->_sections['dir_entry']['total']; $this->_sections['dir_entry']['index'] += $this->_sections['dir_entry']['step'], $this->_sections['dir_entry']['iteration']++): $this->_sections['dir_entry']['rownum'] = $this->_sections['dir_entry']['iteration']; $this->_sections['dir_entry']['index_prev'] = $this->_sections['dir_entry']['index'] - $this->_sections['dir_entry']['step']; $this->_sections['dir_entry']['index_next'] = $this->_sections['dir_entry']['index'] + $this->_sections['dir_entry']['step']; $this->_sections['dir_entry']['first'] = ($this->_sections['dir_entry']['iteration'] == 1); $this->_sections['dir_entry']['last'] = ($this->_sections['dir_entry']['iteration'] == $this->_sections['dir_entry']['total']); ?> _tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['filetype'] == 'dir'): ?> _tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'] == ".."): ?> disabled value="_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['href']; ?> "> _run_mod_handler('truncate', true, $this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'], 25); ?> / _tpl_vars['what_to_edit'] == 'files' )): ?> "> _run_mod_handler('truncate', true, $this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'], 25); ?> _run_mod_handler('truncate', true, $this->_tpl_vars['dir_entries'][$this->_sections['dir_entry']['index']]['file'], 25); ?>
_sections['dir_entry']['index'] == $this->_tpl_vars['dir_entries_half'] )): ?>

_tpl_vars['is_writeable']): ?>

'; ?> _tpl_vars['what_to_edit'] != 'files' )): ?>

 

 

 

  Rewrite file if exists
_tpl_vars['upload_max_filesize']): ?>WARNING! Maximum file size that can be uploaded: _tpl_vars['upload_max_filesize']; ?> b.

WARNING! Writing to this directory is prohibited. Please check directory permissions.
_tpl_vars['what_to_edit'] == 'templates' && $GLOBALS['HTTP_GET_VARS']['dir'] == ""): ?>
_tpl_vars['is_writable']): ?> 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 you can 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.

_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean(); ?> _tpl_vars['what_to_edit'] == 'files' )): ?> _tpl_vars; $this->_smarty_include("dialog.tpl", array('title' => 'Browse files','content' => $this->_smarty_vars['capture']['dialog'],'extra' => "width=100%")); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> _tpl_vars; $this->_smarty_include("dialog.tpl", array('title' => 'Browse templates','content' => $this->_smarty_vars['capture']['dialog'],'extra' => "width=100%")); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?>