调整模板编辑页面

This commit is contained in:
fen 2013-10-12 19:31:59 +08:00
parent 4d51721173
commit 1e2ad077f9
2 changed files with 5 additions and 3 deletions

View File

@ -8,12 +8,14 @@ include 'menu.php';
<div class="body container">
<?php include 'page-title.php'; ?>
<div class="col-group typecho-page-main">
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
<div class="col-mb-12">
<ul class="typecho-option-tabs clearfix">
<li><a href="<?php $options->adminUrl('themes.php'); ?>"><?php _e('可以使用的外观'); ?></a></li>
<li><a href="<?php $options->adminUrl('theme-editor.php'); ?>"><?php _e('编辑当前外观'); ?></a></li>
<li class="current"><a href="<?php $options->adminUrl('options-theme.php'); ?>"><?php _e('设置外观'); ?></a></li>
</ul>
</div>
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
<?php Typecho_Widget::widget('Widget_Themes_Config')->config()->render(); ?>
</div>
</div>

View File

@ -27,7 +27,7 @@ Typecho_Widget::widget('Widget_Themes_Files')->to($files);
</div>
<div class="typecho-edit-theme">
<div class="col-mb-9 content">
<div class="col-mb-12 col-tb-8 col-9 content">
<form method="post" name="theme" id="theme" action="<?php $options->index('/action/themes-edit'); ?>">
<textarea name="content" id="content" class="w-100 mono" <?php if(!$files->currentIsWriteable()): ?>readonly<?php endif; ?>><?php echo $files->currentContent(); ?></textarea>
<p class="submit">
@ -41,7 +41,7 @@ Typecho_Widget::widget('Widget_Themes_Files')->to($files);
</p>
</form>
</div>
<ul class="col-mb-3">
<ul class="col-mb-12 col-tb-4 col-3">
<li><strong>模板文件</strong></li>
<?php while($files->next()): ?>
<li<?php if($files->current): ?> class="current"<?php endif; ?>>