- <?php foreach($this->out["out_pathes"] as $out_path) : ?>
- <option value="<?php echo $out_path; ?>"<?php echo $template == $out_path ? " selected=\"selected\"" : ""; ?>><?php echo $out_path; ?></option>
+ <?php
+
+ foreach($this->out["templates"] as $out_path => $template) :
+ $template_name = $template->get_template_info("name");
+ if(!$template_name) $template_name = $out_path;
+
+ ?>
+ <option value="<?php echo $out_path; ?>"<?php echo $current_out_path == $out_path ? " selected=\"selected\"" : ""; ?>><?php echo $template_name; ?></option>