=== Ktai Style ===
Contributors: lilyfan
Tags: mobile, keitai, ktai, phone, admin, Japan, pictogram, docomo, i-mode, au, EZweb, SoftBank, iPhone
Requires at least: 2.8
Tested up to: 2.9.2
Stable tag: 1.82

"Ktai Style" provides lightweight pages and simple admin interfaces for mobile phones.

== Description ==

[日本語の説明を読む](http://wppluginsj.sourceforge.jp/ktai_style/)

"Ktai Style" is a plugin providing lightweight pages and simple admin interfaces for mobile phones. Especially, this plugin is optimized for Japanese mobile phone: NTT docomo, au by KDDI, SoftBank, E-MOBILE, and WILLCOM.

* Show lightweight output for mobile phones.
* Split web pages along the limit of page memory of the phone.
* Use pictograms at the points of output: numbers, arrows, clock, faces, etc)]
* Enable to contain pictograms in post contents, comment contents.
* Shrink image and creates small thumbnails for the phone.
* Show redirect notice page when you click a link to external websites which has no mobile pages. If the link target has mobile sites, no redirect page will appear.
* Can install some mobile themes and switch themes. Mobile theme is beyond the WordPress themes and easy to create.
* Has simple admin feature: new post/page, edit posts/pages/comments, etc
* Can login when you post a comment. Enable to post comments for registered usre only sites.
* Can switch mobile/PC mode for smartphones (iPhone, Windows Mobile, etc) and non-phone devices (PSP, Nintendo DS).

== Requirements ==

* WordPress 2.8 or later
* PHP 5.0 or later (NOT support PHP 4.x!!)
* Available phone/gadgets: NTT docomo, au by KDDI, SoftBank, E-MOBILE, WILLCOM, iPhone/iPod touch (need to configure), Nokia, BlackBerry, Windows Mobile terminals, Palm OS handheld, Sharp Zaurus, PSP, Nintendo DS

== Installation ==

1. Unzip the plugin archive and put `ktai-style` folder into your plugins directory (`wp-content/plugins/`) of the server. 
1. If you do NOT need simple admin feature, omit `admin` folder in `ktai-style` folder.
1. Activate the plugin.
1. Configure the plugin at "Mobile Output" menu at the WordPress admin panel. The default configuration is optimized for generic use.

= Moving wp-content, or wp-content/plugins directory to non-standard position =

After WordPress 2.6, you can move wp-content, or wp-content/plugins directory to non-standard position. If you move the directory, additional configuration is needed.

1. When installing the plugin, the permission of the `ktai-style` directory to 757 or 777, so that the webserver can touch the directory.
1. Activate the plugin, then `wp-load-conf.php` file is automatically created. It is OK.
1. If the file is not created, you need to edit `ktai-style/wp-load.php` manually. At line 20, change `$wp_root` variable to specify the absolute path to WordPress installed directory.

	e.g. WP diretory is `/home/foo/public_html/wp-core/` and wp-content directory is `/home/foo/public_html/wp-content/`
	`$wp_root = dirname(dirname(dirname(dirname(__FILE__)))) . '/wp-core/';`

= Combination with WP Suer Cache =
If you use [WP Super Cache](http://ocaoimh.ie/wp-super-cache/) by Donncha, additional configuration is needed.

1. Locate the file `ktai-style/patches/supercache-ktaistyle.php` into the directory under WP Super Cache. It will be ordinary `wp-content/plugins/wp-super-cache/plugins`.
1. Activate Ktai Style and WP Super Cache.
1. Enable `Ktai Style Support` option in the lower part of WP Super Cache admin panel.
1. Turn on `Mobile Device Support` at WP Super Cache admin panel. Or, set `Mod Rewrite Rules` while Mobile Device Support` is turned off. Make sure below two or three lines is included in the Rewrite rule.
  `RewriteCond %{HTTP_USER_AGENT} !^(DoCoMo/|J-PHONE/|J-EMULATOR/|Vodafone/|MOT(EMULATOR)?-|SoftBank/|[VS]emulator/|KDDI-|UP\.Browser|emobile/|Huawei/|Nokia|mixi-mobile-converter/)
  RewriteCond %{HTTP_USER_AGENT} !(DDIPOCKET;|WILLCOM;|Opera\ Mini|Opera\ Mobi|PalmOS|Windows\ CE;|PDA;\ SL-|PlayStation\ Portable;|SONY/COM|Nitro|Nintendo)`

= Combination with WP-Cache =
If you use [WP-Cache](http://mnm.uib.es/gallir/wp-cache-2/) by gallir, additional configuration is needed.

1. Create `wp-cache-config.php` file by duplicating `wp-cache-config-sample.php` file.
1. Around line 19 of `wp-cache-config.php`, next to the line setting `cache_rejected_user_agent`, add below code. If you move `wp-content` directory to non-standard position, adjust the path to the directory.
  `if (file_exists(ABSPATH. 'wp-content/plugins/ktai_style/patch-wpcache.php')) {
        include ABSPATH. 'wp-content/plugins/ktai_style/patch-wpcache.php';`
1. Locate `wp-cache-config.php` under `wp-content/` and activate WP-Cache plugin.

== Licence ==

The license of this plugin is GPL v2 or later.

== Getting a support ==

To get support for this plugin, please contact below methods:

1. Send an email to yuriko-ktaistyle _@_ YURIKO (dot) NET. (You need adjust to the valid address)
1. Use contact form at http://www.yuriko.net/contact/ (Japanese site)
1. Post WordPress forum with 'ktai-style' tag.

== Changelog ==

= 2.0.0 (2010-03-xx) =
* Limit supporting WordPress version into 2.8 and later.
* Distributed at the official WordPress plugin direcotry.
* You can select a mobile theme by list of screenshots.
* Enabled viewing mobile pages with logging-in if you use cookie available phones.
* You can post comments with logging-in.
* Show an "edit" link if you have the privilege to change a post/page/comment.
* Support "Trash" of WordPress 2.9.
* Fixed a problem that white screen of PHP error are sometimes shown by loading mobile theme in spite of viewing by PC.
* Fixed a problem the number of comments is invalid (two are shown for zero).
* Fixed a problem that delete process does not complete when you choose "yes" at a confirm screen.
* Reads functions.php of current PC theme.
* Abolish transferring path/URI of get_stylesheet(), get_templates(), load_theme_textdomain(), etc from PC themes to mobile themes. Theme functions now returns PC themes. Please use `ks_get_theme(), ks_get_theme_directory(), ks_get_theme_uri()` to get mobile theme.
* Abolish "redir/ktai_syle.php" filter. Please use redir.php template.
* Change the name of exclusive filters to "ktai_XXXXX" from "XXXXX/ktai_style.php"
* Change the name of constants to "KTAI_XXXXX" from "KS_XXXXX".

= --snip-- =

= 0.7.0 (2007-09-19) =
* Initial version.
