Title: Site Template
Author: michael_porter
Published: <strong>2010 年 7 月 21 日</strong>
Last modified: 2011 年 5 月 23 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/site-template.svg)

# Site Template

 作者：[michael_porter](https://profiles.wordpress.org/michael_porter/)

[下载](https://downloads.wordpress.org/plugin/site-template.zip)

 * [详情](https://cn.wordpress.org/plugins/site-template/#description)
 * [评价](https://cn.wordpress.org/plugins/site-template/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/site-template/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/site-template/#developers)

 [支持](https://wordpress.org/support/plugin/site-template/)

## 描述

Site Template is a plugin that allows site administrators to set up “site templates”
for their WPMU or wordpress 3 (with networking enabled) sites. When a user creates
a new blog, he or she will be prompted with a list of site templates to select from.
Each template specifies the theme, theme options, widgets, plugins, pages, posts,
categories, links, tags, menus, and link cateogries for the new site.

Creating a site template is a two step process:

First, create a site with the appropriate theme, theme options, widgets, active 
plugins, pages, posts, categories, tags, links, and link categories. This site will
serve as the template, and the site’s name will be the name of the template.

Second, an administrator needs to flag the site as a template. To flag a site as
a template the administrator needs to go to the admin blogs page (in wpmu) or the
sites page (in wp3), find the site, and click on the “Activate Template” link in
the rightmost column.

Once the template is created it will appear in the list of templates whenever a 
user creates a new site. Site templates are live meaning that any changes are made
to a profile’s template will be reflected in future sites users create with that
profile. Administrators can change the order templates appear on the “Site Template”
page by clicking on the “Site Templates” link in the “Super Admin” (wp3) or “Site
Admin” (wpmu) panel. The “Site Template” page lists all templates. In the right 
most column is the number of “children” of a given template or the number of sites
that have been created from the specified template. You can see the children sites
by clicking on the number.

 * added code to support templates when creating site at the same time as registering.

> > > > > > > .r387807

## 安装

 * Copy directory to wp-content, go to plugins and click on “Network Activate”
 * Edit wp-activate.php so that the first line reads:
    /** define( “WP_INSTALLING”,
   true ); **/ instead of: define( “WP_INSTALLING”, true );

## 评价

此插件暂无评价。

## 贡献者及开发者

「Site Template」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ michael_porter ](https://profiles.wordpress.org/michael_porter/)

[帮助将「Site Template」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/site-template)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/site-template/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/site-template/)，或通过[RSS](https://plugins.trac.wordpress.org/log/site-template/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/site-template/)。

## 更新日志

#### .3

 * allows for renamning template. If no name, error message appears. Confirmation
   on update.
 * adds default template to the last row of “Site Template” screen. Default option
   is anchored in the last row, but the name can change.
 * adds confirmation message when site is activated or deactivated in Sites screen.

#### .31

 * bug fix to support site template when new users register

#### .32

 * bug fix so that the site’s e-mail address is not replaced by the e-mail address
   of the template’s creator
 * removed “Create Blog” link because it exists in “My Sites” panel

#### .4

 * bug fix so delete site works more smoothly
 * adds support for deactivating and archiving sites
 * adds support for menus

#### 1.0

 * rewrote the copy site code so it skips the API and dips directly in the database.
   Should support custom content types, and fix bugs with menu creation, but not
   sure on either as I could not reproduce.
    <<<<<<< .mine
 * added code to support templates when creating site at the same time as registering.

#### 1.1

 * moved site template options into the sites menu on the network admin page

## 额外信息

 *  版本 **1.1**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.9.2 或更高版本 **
 *  已测试的最高版本为 **3.1.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/site-template/)
 * 标签
 * [education](https://cn.wordpress.org/plugins/tags/education/)[multiuser](https://cn.wordpress.org/plugins/tags/multiuser/)
   [templates](https://cn.wordpress.org/plugins/tags/templates/)[wpmu](https://cn.wordpress.org/plugins/tags/wpmu/)
 *  [高级视图](https://cn.wordpress.org/plugins/site-template/advanced/)

## 评级

 1 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/site-template/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/site-template/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/site-template/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/site-template/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/site-template/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/site-template/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/site-template/reviews/)

## 贡献者

 *   [ michael_porter ](https://profiles.wordpress.org/michael_porter/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/site-template/)