You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
3.7 KiB
69 lines
3.7 KiB
<?php |
|
include 'common.php'; |
|
include 'header.php'; |
|
include 'menu.php'; |
|
?> |
|
|
|
<div class="main"> |
|
<div class="body container"> |
|
<?php include 'page-title.php'; ?> |
|
<div class="row typecho-page-main" role="main"> |
|
<div class="col-mb-12"> |
|
<ul class="typecho-option-tabs fix-tabs clearfix"> |
|
<li class="current"><a href="<?php $options->adminUrl('themes.php'); ?>"><?php _e('可以使用的外观'); ?></a></li> |
|
<?php if (!defined('__TYPECHO_THEME_WRITEABLE__') || __TYPECHO_THEME_WRITEABLE__): ?> |
|
<li><a href="<?php $options->adminUrl('theme-editor.php'); ?>"><?php _e('编辑当前外观'); ?></a></li> |
|
<?php endif; ?> |
|
<?php if (Widget_Themes_Config::isExists()): ?> |
|
<li><a href="<?php $options->adminUrl('options-theme.php'); ?>"><?php _e('设置外观'); ?></a></li> |
|
<?php endif; ?> |
|
</ul> |
|
|
|
<div class="typecho-table-wrap"> |
|
<table class="typecho-list-table typecho-theme-list"> |
|
<colgroup> |
|
<col width="35%" /> |
|
<col /> |
|
</colgroup> |
|
|
|
<thead> |
|
<th><?php _e('截图'); ?></th> |
|
<th><?php _e('详情'); ?></th> |
|
</thead> |
|
|
|
<tbody> |
|
<?php Typecho_Widget::widget('Widget_Themes_List')->to($themes); ?> |
|
<?php while($themes->next()): ?> |
|
<tr id="theme-<?php $themes->name(); ?>" class="<?php if($themes->activated): ?>current<?php endif; ?>"> |
|
<td valign="top"><img src="<?php $themes->screen(); ?>" alt="<?php $themes->name(); ?>" /></td> |
|
<td valign="top"> |
|
<h3><?php '' != $themes->title ? $themes->title() : $themes->name(); ?></h3> |
|
<cite> |
|
<?php if($themes->author): ?><?php _e('作者'); ?>: <?php if($themes->homepage): ?><a href="<?php $themes->homepage() ?>"><?php endif; ?><?php $themes->author(); ?><?php if($themes->homepage): ?></a><?php endif; ?> <?php endif; ?> |
|
<?php if($themes->version): ?><?php _e('版本'); ?>: <?php $themes->version() ?><?php endif; ?> |
|
</cite> |
|
<p><?php echo nl2br($themes->description); ?></p> |
|
<?php if($options->theme != $themes->name): ?> |
|
<p> |
|
<?php if (!defined('__TYPECHO_THEME_WRITEABLE__') || __TYPECHO_THEME_WRITEABLE__): ?> |
|
<a class="edit" href="<?php $options->adminUrl('theme-editor.php?theme=' . $themes->name); ?>"><?php _e('编辑'); ?></a> |
|
<?php endif; ?> |
|
<a class="activate" href="<?php $security->index('/action/themes-edit?change=' . $themes->name); ?>"><?php _e('启用'); ?></a> |
|
</p> |
|
<?php endif; ?> |
|
</td> |
|
</tr> |
|
<?php endwhile; ?> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<?php |
|
include 'copyright.php'; |
|
include 'common-js.php'; |
|
include 'footer.php'; |
|
?>
|
|
|