}
                    ?>

			<fieldset class="error">
				<?php 
                    if ('string' == $this->_tpl_vars['values'][$this->_tpl_vars['fieldName']]['type']) {
                        ?>
					<?php 
                        echo smarty_function_textfield(array('class' => 'text wide', 'name' => $this->_tpl_vars['fieldName'], 'id' => $this->_tpl_vars['fieldName']), $this);
                        ?>

				<?php 
                    } elseif ('image' == $this->_tpl_vars['values'][$this->_tpl_vars['fieldName']]['type']) {
                        ?>
					<?php 
                        echo smarty_function_filefield(array('name' => $this->_tpl_vars['fieldName'], 'id' => $this->_tpl_vars['fieldName']), $this);
                        ?>

					<image class="settingImage" src="<?php 
                        echo is_array($_tmp = $this->_tpl_vars['fieldName']) ? $this->_run_mod_handler('config', true, $_tmp) : $this->_plugins['modifier']['config'][0][0]->config($_tmp);
                        ?>
" />
				<?php 
                    } elseif ('longtext' == $this->_tpl_vars['values'][$this->_tpl_vars['fieldName']]['type']) {
                        ?>
					<?php 
                        echo smarty_function_textarea(array('class' => 'tinyMCE', 'name' => $this->_tpl_vars['fieldName'], 'id' => $this->_tpl_vars['fieldName']), $this);
                        ?>

				<?php 
                    } elseif ('num' == $this->_tpl_vars['values'][$this->_tpl_vars['fieldName']]['type'] || 'float' == $this->_tpl_vars['values'][$this->_tpl_vars['fieldName']]['type']) {
" />
	<input type="hidden" name="imageId" value="" />
		
	<fieldset class="addForm">	
		<legend><?php 
    echo smarty_function_translate(array('text' => '_add_new_title'), $this);
    ?>
</legend>
		<p class="required">
			<label for="image"><?php 
    echo smarty_function_translate(array('text' => '_image_file'), $this);
    ?>
</label>
			<fieldset class="error">
				<?php 
    echo smarty_function_filefield(array('name' => 'image', 'id' => 'image'), $this);
    ?>

				<span class="maxFileSize"><?php 
    echo smarty_function_maketext(array('text' => '_max_file_size', 'params' => $this->_tpl_vars['maxSize']), $this);
    ?>
</span>
				<div class="errorText" style="display: none;"></div>
			</fieldset>
		</p>
			
		<p>
			<label for="title"><?php 
    echo smarty_function_translate(array('text' => '_image_title'), $this);
    ?>
:</label>
	</fieldset>

	<fieldset>
		<legend><?php 
    echo smarty_function_translate(array('text' => '_select_file'), $this);
    ?>
</legend>

		<p class="required">
			
				<label for="upload"><span class="label"><?php 
    echo smarty_function_translate(array('text' => '_upload_file'), $this);
    ?>
 </span></label>
				<fieldset class="error"><?php 
    echo smarty_function_filefield(array('name' => 'upload'), $this);
    ?>

			
	<div class="errorText hidden<?php 
    $this->_tag_stack[] = array('error', array('for' => 'upload'));
    $_block_repeat = true;
    smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
    while ($_block_repeat) {
        ob_start();
        ?>
 visible<?php 
        $_block_content = ob_get_contents();
        ob_end_clean();
        $_block_repeat = false;
        echo smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
				<?php 
$this->_tag_stack[] = array('form', array('handle' => $this->_tpl_vars['importForm'], 'action' => "controller=backend.theme action=import", 'target' => 'themeImportTarget', 'method' => 'POST', 'enctype' => "multipart/form-data", 'autocomplete' => 'off'));
$_block_repeat = true;
smarty_block_form($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
    ob_start();
    ?>
					<span class="progressIndicator" style="display: none;"></span>
					<p class="required">
						
							<label for="file"><span class="label"><?php 
    echo smarty_function_translate(array('text' => '_select_file'), $this);
    ?>
: </span></label>
							<fieldset class="error"><?php 
    echo smarty_function_filefield(array('name' => 'theme', 'value' => ""), $this);
    ?>

							<br />
							<span class="maxFileSize"><?php 
    echo smarty_function_maketext(array('text' => '_max_file_size', 'params' => $this->_tpl_vars['maxSize']), $this);
    ?>
</span>
						
	<div class="errorText hidden<?php 
    $this->_tag_stack[] = array('error', array('for' => 'file'));
    $_block_repeat = true;
    smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
    while ($_block_repeat) {
        ob_start();
        ?>
                        echo $this->_tpl_vars['property']['name'];
                        ?>
</label>
					<?php 
                    } else {
                        ?>
						<label></label>
					<?php 
                    }
                    ?>

					<?php 
                    if ('upload' == $this->_tpl_vars['property']['type']) {
                        ?>
						<?php 
                        echo smarty_function_filefield(array('name' => $this->_tpl_vars['property']['var'], 'class' => 'file'), $this);
                        ?>

						- <?php 
                        echo smarty_function_translate(array('text' => '_or'), $this);
                        ?>
 -
						<?php 
                        echo smarty_function_textfield(array('class' => 'text'), $this);
                        ?>

						<div class="imageOptions">
							<div class="repeat"><?php 
                        echo smarty_function_translate(array('text' => '_repeat'), $this);
                        ?>
: <?php