Title: Thematic html5 plugin
Author: middlesister
Published: <strong>2012 年 8 月 15 日</strong>
Last modified: 2013 年 4 月 6 日

---

搜尋外掛

![](https://ps.w.org/thematic-html5/assets/banner-772x250.png?rev=656935)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# Thematic html5 plugin

 由 [middlesister](https://profiles.wordpress.org/middlesister/) 開發

[下載](https://downloads.wordpress.org/plugin/thematic-html5.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/thematic-html5/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/thematic-html5/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/thematic-html5/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/thematic-html5/#developers)

 [技術支援](https://wordpress.org/support/plugin/thematic-html5/)

## 外掛說明

This plugin will convert the markup of themes based on the Thematic theme framework
to use html5 elements. Requires Thematic 1.0 or later. New filters were introduced
in Thematic 1.0.2 that optimizes the use of this plugin, but it will work with Thematic
1.0 as well using an output buffer.

It uses the built in filters of Thematic to change the markup in desired places.
If you are using any `childtheme_override_*` functions they will still work, and
will override this plugin’s loops as well. You will then need to make sure that 
your override loops uses html5 yourself.

The markup changes are:

 * doctype changed to `<!doctype html>`
 * conditional comment classes from [html5boilerplate](http://html5boilerplate.com)
   are added to the opening `<html>` tag
 * meta tag “charset” added to `<head>`
 * defunkt meta tag http-equiv=Content-type removed (replaced by meta tag above)
 * #header uses `<header>` element
 * nav_menu and page_menu uses the `<nav>` element
 * post pagination links uses the `<nav>` element
 * nav-above and nav-below uses the `<nav>` element
 * the loops are using the `<article>` element for individual posts.
 * .entry-header uses the `<header>` element
 * the post title will always be a `<h1>`
 * .entry-utility uses the `<footer>` element
 * widget areas are `<aside>` elements, with individual widgets as `<section>` elements.
   The widget title is `<h1>`
 * #footer uses `<footer>` element

The plugin will also add a html5shiv javascript so the new elements will work with
older IE browsers. It tries to be detect if any other script has been enqueued, 
like modernizr, and will only add the script if necessary.

The plugin is intentionally very bare bones, no settings or checkboxes, just activate
and go. Ideas, bug reports and general feature requests are welcome at the [github issue tracker](https://github.com/middlesister/thematic-html5/issues).

## 安裝方式

 1. Upload the plugin folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. That’s it! No step three! You can verify that your site is using html5 elements
    with developer tools in chrome or firebug for firefox or similar.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Thematic html5 plugin〉的開發相關工作。

參與者

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

[將〈Thematic html5 plugin〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/thematic-html5)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/thematic-html5/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/thematic-html5/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/thematic-html5/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/thematic-html5/)。

## 變更記錄

#### 0.4.1

 * Fixed: Correctly closing of the `</aside>` widget areas. Props: emhr

#### 0.4

 * Added: conditional comments classes to opening `<html>` tag
 * Added: html5shiv javascript for older IE
 * Changed: Added a structural .inner div to the widget areas for styling flexibility
 * New filter: thematichtml5_use_html5shiv, defaults to true
 * New filter: thematichtml5_html5shiv_url
 * New filter: thematichtml5_use_ieconditionals, defaults to true

#### 0.3

 * Move plugin class to it’s own file

#### 0.2

 * Plugin rewrite to use OOP

#### 0.1

 * Initial release

## 中繼資料

 *  版本 **0.4.1**
 *  最後更新 **13 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 3.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.5.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/thematic-html5/)
 * 標籤:
 * [HTML5](https://tw.wordpress.org/plugins/tags/html5/)
 *  [進階檢視](https://tw.wordpress.org/plugins/thematic-html5/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/thematic-html5/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/thematic-html5/)