<?php /* Smarty version 2.6.25, created on 2012-07-15 10:31:54
         compiled from DefaultAdmin/conf_templates_edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'DefaultAdmin/conf_templates_edit.tpl', 41, false),array('modifier', 'trim', 'DefaultAdmin/conf_templates_edit.tpl', 41, false),array('modifier', 'wordwrap', 'DefaultAdmin/conf_templates_edit.tpl', 138, false),array('modifier', 'nl2br', 'DefaultAdmin/conf_templates_edit.tpl', 138, false),array('function', 'cycle', 'DefaultAdmin/conf_templates_edit.tpl', 69, false),array('function', 'thumb', 'DefaultAdmin/conf_templates_edit.tpl', 117, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "messages.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo '<div class="block"><!-- Action Links --><ul class="page-action-list">'; ?><?php if ($this->_tpl_vars['edit_screen']): ?><?php echo '<li><a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/conf_templates_edit.php?r=1" title="Back to files" class="button"><span class="page-tpl">Back to files</span></a></li>'; ?><?php endif; ?><?php echo '<li><a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/conf_templates.php?r=1" title="Manage templates" class="button"><span class="manage-tpl">Manage Templates</span></a></li></ul><!-- /Action Links --></div>'; ?><?php if (isset ( $this->_tpl_vars['file_saved'] )): ?><?php echo ''; ?><?php if ($this->_tpl_vars['file_saved'] == 0): ?><?php echo '<div class="error block">An error occured while saving.!</div>'; ?><?php elseif ($this->_tpl_vars['file_saved'] == 1): ?><?php echo '<div class="success block">File saved!</div>'; ?><?php endif; ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['edit_screen']): ?><?php echo '<div class="block"><table class="list active-template"><thead><tr><th colspan="2">Current template</th></tr></thead><tbody><tr><td class="label">Title:</td><td class="smallDesc title">'; ?><?php if (! empty ( $this->_tpl_vars['current_template']['theme_uri'] )): ?><?php echo '<a href="'; ?><?php echo $this->_tpl_vars['current_template']['theme_uri']; ?><?php echo '" title="Browse template homepage" target="_blank">'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</a>'; ?><?php else: ?><?php echo ''; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo ''; ?><?php endif; ?><?php echo '</td></tr><tr><td class="label">Version:</td><td class="smallDesc">'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_version'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</td></tr><tr><td class="label">Author:</td><td class="smallDesc">'; ?><?php if (! empty ( $this->_tpl_vars['current_template']['theme_author_uri'] )): ?><?php echo '<a href="'; ?><?php echo $this->_tpl_vars['current_template']['theme_author_uri']; ?><?php echo '" title="Browse template author homepage" target="_blank">'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_author'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</a>'; ?><?php else: ?><?php echo ''; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_author'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo ''; ?><?php endif; ?><?php echo '</td></tr><tr><td class="label">Description:</td><td class="smallDesc">'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</td></tr></tbody></table></div><div class="block"><form method="post" action=""><table class="formPage"><thead><tr><th colspan="2">Edit file</th></tr></thead><tbody><tr class="'; ?><?php echo smarty_function_cycle(array('values' => "odd,even"), $this);?><?php echo '"><td class="label">'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['file_name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</td><td><textarea id="file_content" name="file_content" rows="30" cols="100" class="text code">'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['file_content'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</textarea></td></tr></tbody><tfoot><tr><td><input type="reset" id="reset-tpl-submit" name="reset" value="Reset" alt="Reset form" title="Reset form" class="button" /></td><td><input type="submit" id="send-link-submit" name="submit" value="Save" alt="Save form" title="Save template" class="button" /></td></tr></tfoot></table></form></div>'; ?><?php else: ?><?php echo '<div class="block"><table class="list active-template"><thead><tr><th colspan="2">Current template</th></tr></thead><tbody><tr><td class="label">Title:</td><td class="smallDesc title">'; ?><?php if (! empty ( $this->_tpl_vars['current_template']['theme_uri'] )): ?><?php echo '<a href="'; ?><?php echo $this->_tpl_vars['current_template']['theme_uri']; ?><?php echo '" title="Browse template homepage" target="_blank">'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</a>'; ?><?php else: ?><?php echo ''; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo ''; ?><?php endif; ?><?php echo '</td></tr><tr><td class="label">Version:</td><td class="smallDesc">'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_version'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</td></tr><tr><td class="label">Author:</td><td class="smallDesc">'; ?><?php if (! empty ( $this->_tpl_vars['current_template']['theme_author_uri'] )): ?><?php echo '<a href="'; ?><?php echo $this->_tpl_vars['current_template']['theme_author_uri']; ?><?php echo '" title="Browse template author homepage" target="_blank">'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_author'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</a>'; ?><?php else: ?><?php echo ''; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_author'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo ''; ?><?php endif; ?><?php echo '</td></tr><tr><td class="label">Description:</td><td class="smallDesc">'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current_template']['theme_description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</td></tr><tr><td class="label">Preview:</td><td class="smallDesc preview">'; ?><?php if (! empty ( $this->_tpl_vars['current_template']['theme_screenshot_file'] ) && $this->_tpl_vars['showPreview'] == '1'): ?><?php echo ''; ?><?php echo smarty_function_thumb(array('file' => $this->_tpl_vars['current_template']['theme_screenshot_file'],'width' => '250','link' => 'true','type' => $this->_tpl_vars['thumbType'],'cache' => "../temp/cache/"), $this);?><?php echo ''; ?><?php else: ?><?php echo 'No preview available'; ?><?php endif; ?><?php echo '</td></tr></tbody></table></div><div class="block"><table class="list"><thead><tr><th class="listHeader first-child">Filename</th><th class="listHeader">Full path</th><th class="listHeader last-child">Status</th></tr></thead><tbody>'; ?><?php $_from = $this->_tpl_vars['template_files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['file']):
?><?php echo '<tr class="'; ?><?php echo smarty_function_cycle(array('values' => "odd,even"), $this);?><?php echo '"><td class="label">'; ?><?php echo $this->_tpl_vars['file']['name']; ?><?php echo '</td><td>'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['file']['path'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('wordwrap', true, $_tmp, 80, "\n", 1) : smarty_modifier_wordwrap($_tmp, 80, "\n", 1)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?><?php echo '</td>'; ?><?php if (is_string ( $this->_tpl_vars['file']['permission'] )): ?><?php echo '<td class="error">'; ?><?php echo $this->_tpl_vars['file']['permission']; ?><?php echo '</td>'; ?><?php else: ?><?php echo '<td><a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/conf_templates_edit.php?action=edit&amp;filename='; ?><?php echo $this->_tpl_vars['file']['name']; ?><?php echo '" title="Edit: '; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['file']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '" class="button"><span class="edit-tpl">Edit</span></a></td>'; ?><?php endif; ?><?php echo '</tr>'; ?><?php endforeach; endif; unset($_from); ?><?php echo '</tbody></table></div>'; ?><?php endif; ?><?php echo ''; ?>