深入介绍 Theme Codename H – 移动版

Theme Codename H 也包括为移动设备:手机、iPod Touch 等准备的移动版(之前也介绍过该移动版,在线演示: http://m.livesino.net)。该移动版是在 Wordpress 2.7 及以上版本测试,可以正常使用。

深入介绍 Theme Codename H - 移动版 photo2

Theme Codename H – 移动版 安装方法

  • 从这里选择下载移动版 zip 包(中文版英文版);
  • 解压,并将 m 文件夹上传至 Wordpress 安装根目录下;
  • 修改 m-config.php 文件中的 第 4 行,将 http://m.livesino.net 改为自己的移动版域名,推荐采用二级域名,比如:http://m.livesino.net

注意,Theme Codename H – 移动版默认不启用 mod_rewrite 功能,文章的地址为 http://***/?p=post_id 。若想使用 mod_rewrite,找到以下几行,按照我给出的语句修改即可:

1. m-core.php 文件中的

?p=". $comment->comment_post_ID ."

替换为

". $comment->comment_post_ID .".html

2. index.php 文件中的

?p=<?php the_id(); ?>

替换为

<?php the_id(); ?>.html

Zip 包中已经包括 .htaccess 规则文件,无需自己编写规则,即使要修改也不难的。寻求更多帮助?或帮助完善?留言,Email 或者 Twitter

下载:Theme Codename H Mobile 中文版英文版。情人节快乐。 :P

Deep Dive Introduction into Theme Codename H – Mobile

I am glad to share with you that I have added supports to mobile devices, such as iPhone and other cell phones for Theme Codename H. Theme Codename H Mobile allows visitors view your Wordpress blog on the go and it is friendly to the majority of mobile devices and mobile browsers, especially the smart phones.

Two screenshots for the Theme Codename H Mobile on iPod Touch ( live demo: http://m.livesino.net ):

深入介绍 Theme Codename H - 移动版 深入介绍 Theme Codename H - 移动版

Theme Codename H Mobile Installation Instructions

Note that I disable the mod_rewrite feature by default. As with mod_rewrite feature, the single post can be viewed via http://***/post_id.html or similar. You should modify 2 files before enable the mod_rewrite feature:

1. m-core.php – replace this

?p=". $comment->comment_post_ID ." 

with:

". $comment->comment_post_ID .".html

2. index.php – replace this

?p=<?php the_id(); ?>

with:

<?php the_id(); ?>.html

I have made the .htaccess file for you, so you don’t have to. Looking for more helps or Help improve the Theme Codename H? Leave a comment, contact Picturepan2 with Email or follow my Twitter.

Download: :Theme Codename H Mobile Chinese Version and English Version. Happy Valentine’s Day. :P

18 条评论

发表评论