Changeset 46421
- Timestamp:
- 05/17/08 04:22:49 (2 months ago)
- Files:
-
- wp-t-wap/trunk/index.php (modified) (3 diffs)
- wp-t-wap/trunk/readme.txt (modified) (2 diffs)
- wp-t-wap/trunk/wap-zh_CN.mo (modified) (previous)
- wp-t-wap/trunk/wap-zh_CN.po (modified) (7 diffs)
- wp-t-wap/trunk/wap.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-t-wap/trunk/index.php
r46415 r46421 46 46 <?php _wp_list_categories('show_count=1&title_li=<h2>' . __('Categories', 'wap') . '</h2>'); ?> 47 47 </ul> 48 48 49 <?php if ( get_option("wap_show_last_comments") == 'yes' ): ?> 49 50 <h2><?php _e("Last Comments","wap") ?></h2> 50 51 <?php … … 82 83 echo $output; 83 84 ?> 84 <?php if(function_exists('get_most_viewed')): ?> 85 <?php endif; ?> 86 87 <?php if( get_option("wap_show_hot_posts") == 'yes' and function_exists('get_most_viewed') ): ?> 85 88 <h2><?php _e('Hot Posts','wap'); ?></h2> 86 89 <ul> … … 133 136 </p> 134 137 135 <?php if( function_exists('wp23_related_posts')): ?>138 <?php if( get_option("wap_show_related_posts") == 'yes' and function_exists('wp23_related_posts')): ?> 136 139 <!-- Related Posts --> 137 140 <div class="similiar"> wp-t-wap/trunk/readme.txt
r46418 r46421 5 5 Requires at least: 2.3 6 6 Tested up to: 2.5 7 Stable tag: 1. 77 Stable tag: 1.8 8 8 9 9 Browse and manage your WordPress's blog on a mobile phone with web explorer. … … 15 15 features (ver 1.7): 16 16 17 browse, add and delete entries;17 browse, add and delete posts; 18 18 browse, publish, delete and approve comments; 19 19 previous post, next post; 20 20 last comments; 21 most viewed post( depend on 'WP-PostViews' plug );21 hot posts ( depend on 'WP-PostViews' plug ); 22 22 show related posts ( depend on 'WP 2.3 Related Posts' plug ); 23 entries list of a category;24 entries list of a tag;23 posts list of a category; 24 posts list of a tag; 25 25 define a title of the wap site; 26 26 bind domain name; wp-t-wap/trunk/wap-zh_CN.po
r46415 r46421 3 3 "Project-Id-Version: WP-T-WAP\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2008-05-1 2 12:14+0800\n"5 "PO-Revision-Date: 2008-05-17 12:17+0800\n" 6 6 "Last-Translator: tanggaowei <tanggaowei@gmail.com>\n" 7 7 "Language-Team: TangGaowei.com <tanggaowei@gmail.com>\n" … … 51 51 52 52 msgid "Hot Posts" 53 msgstr "热门 文章"53 msgstr "热门日志" 54 54 55 55 #: index.php:144 … … 83 83 #: index.php:153 84 84 msgid "No Posts Matched Your Criteria" 85 msgstr "没有符合条件的 文章"85 msgstr "没有符合条件的日志" 86 86 87 87 #: functions.php:560 … … 114 114 #: functions.php:836 115 115 msgid "Post" 116 msgstr " 文章"116 msgstr "日志" 117 117 118 118 #: functions.php:838 … … 182 182 183 183 msgid "You do not have sufficient permission to new posts." 184 msgstr "您没有添加 文章的权限。"184 msgstr "您没有添加日志的权限。" 185 185 186 186 msgid "Post saved." 187 msgstr " 文章已保存。"187 msgstr "日志已保存。" 188 188 189 189 msgid "View post »" 190 msgstr "查看 文章»"190 msgstr "查看日志 »" 191 191 192 192 msgid "Publish" … … 206 206 207 207 msgid "Not find related posts!<br> ( If you have any questions, please email to tanggaowei@gmail.com, and append the site url,thanks!)" 208 msgstr "未找到相关 文章!<br>(如有问题,请 email : tanggaowei@gmail.com,并注明可查看此页面的网址,谢谢!)"208 msgstr "未找到相关日志!<br>(如有问题,请 email : tanggaowei@gmail.com,并注明可查看此页面的网址,谢谢!)" 209 209 210 210 msgid "Successfully logged you out." … … 223 223 msgstr "注册完成。请查看邮件。" 224 224 225 msgid "Display" 226 msgstr "显示" 227 228 msgid "Display HTML" 229 msgstr "以HTML格式显示日志的详细信息" 230 231 msgid "Display related posts" 232 msgstr "显示相关日志" 233 234 msgid "Display hot posts" 235 msgstr "显示热门日志" 236 237 msgid "Display last comments" 238 msgstr "显示最新评论" 239 240 msgid "Wap Site Title" 241 msgstr "网站标题" 242 243 msgid "Copyright Information" 244 msgstr "版权信息" 245 246 msgid "WP-T-WAP Setup" 247 msgstr "WP-T-WAP 插件设置" 248 wp-t-wap/trunk/wap.php
r46414 r46421 3 3 Plugin Name: WP-T-Wap 4 4 Plugin URI: http://www.tanggaowei.com/2008/01/04/7.html 5 Description: 实现 WordPress 的WAP 手机浏览与管理.6 Version: 1. 77 Author: TangGaowei .com5 Description: Browse and manage your WordPress's blog on a mobile phone with web explorer. 6 Version: 1.8 7 Author: TangGaowei 8 8 Author URI: http://www.tanggaowei.com 9 9 */ … … 42 42 43 43 update_option('wap_show_detail', 'yes'); 44 update_option('wap_show_related_posts', 'yes'); 45 update_option('wap_show_hot_posts', 'yes'); 46 update_option('wap_show_last_comments', 'yes'); 44 47 update_option('wap_sitetitle', get_bloginfo('name')); 45 48 46 // 输出 .htaccess 文件 47 //global $wp_rewrite; 48 //$wp_rewrite->flush_rules(); 49 // 加载国际化文件 50 load_plugin_textdomain ("wap","/wap/"); 49 51 } 50 52 … … 86 88 function add_options_page(){ 87 89 if (function_exists('add_options_page')) { 88 add_options_page('WP-T-WAP','W AP 插件',8,'wap.php',array(&$this, 'mainpage'));90 add_options_page('WP-T-WAP','WP-T-WAP',8,'wap.php',array(&$this, 'mainpage')); 89 91 } 90 92 } … … 92 94 /* 显示插件管理页面时即调用此函数 */ 93 95 function mainpage(){ 96 load_plugin_textdomain ("wap","/wap/"); 97 94 98 /* 更新选项 */ 95 99 if (isset($_POST['submitted'])) { 96 100 update_option('wap_show_detail', $_POST['wap_show_detail']); 101 update_option('wap_show_related_posts',$_POST['wap_show_related_posts']); 102 update_option('wap_show_hot_posts',$_POST['wap_show_hot_posts']); 103 update_option('wap_show_last_comments',$_POST['wap_show_last_comments']); 97 104 update_option('wap_sitetitle', $_POST['wap_sitetitle']); 98 105 update_option('wap_copyright', $_POST['wap_copyright']); … … 104 111 105 112 <!-- 标题 --> 106 <h2> WP-T-WAP 插件配置</h2>113 <h2><?php _e('WP-T-WAP Setup','wap') ?></h2> 107 114 108 115 <!-- 表单 --> … … 117 124 <div id="msgall"> 118 125 <fieldset class="options"> 119 <legend>显示</legend> 120 <div style="padding-left:40px; padding-top:10px;"> 121 <?php if( get_option("wap_show_detail") == 'yes' ){ ?> 122 <input type=checkbox name="wap_show_detail" value="yes" checked> 123 <?php }else{ ?> 124 <input type=checkbox name="wap_show_detail" value="yes"> 125 <?php } ?> 126 以HTML格式显示文章的详细信息 126 <legend><?php _e('Display','wap') ?></legend> 127 <div style="padding-left:40px; padding-top:10px;"> 128 <?php if( get_option("wap_show_detail") == 'yes' ){ ?> 129 <input type=checkbox name="wap_show_detail" value="yes" checked> 130 <?php }else{ ?> 131 <input type=checkbox name="wap_show_detail" value="yes"> 132 <?php } ?> 133 <?php _e('Display HTML','wap') ?> 134 </div> 135 <div style="padding-left:40px; padding-top:10px;"> 136 <?php if( get_option("wap_show_related_posts") == 'yes' ){ ?> 137 <input type=checkbox name="wap_show_related_posts" value="yes" checked> 138 <?php }else{ ?> 139 <input type=checkbox name="wap_show_related_posts" value="yes"> 140 <?php } ?> 141 <?php _e('Display related posts','wap') ?> 142 </div> 143 <div style="padding-left:40px; padding-top:10px;"> 144 <?php if( get_option("wap_show_hot_posts") == 'yes' ){ ?> 145 <input type=checkbox name="wap_show_hot_posts" value="yes" checked> 146 <?php }else{ ?> 147 <input type=checkbox name="wap_show_hot_posts" value="yes"> 148 <?php } ?> 149 <?php _e('Display hot posts','wap') ?> 150 </div> 151 <div style="padding-left:40px; padding-top:10px;"> 152 <?php if( get_option("wap_show_last_comments") == 'yes' ){ ?> 153 <input type=checkbox name="wap_show_last_comments" value="yes" checked> 154 <?php }else{ ?> 155 <input type=checkbox name="wap_show_last_comments" value="yes"> 156 <?php } ?> 157 <?php _e('Display last comments','wap') ?> 127 158 </div> 128 159 </fieldset> 129 160 130 161 <fieldset class="options"> 131 <legend>网站标题</legend>162 <legend><?php _e('Wap Site Title','wap') ?></legend> 132 163 <div style="padding-left:40px; padding-top:10px;"> 133 164 <input name="wap_sitetitle" value="<?php … … 139 170 } 140 171 ?>" style="width:400px;"> 141 </div> 172 </div> 142 173 </fieldset> 143 174 144 175 <fieldset class="options"> 145 <legend> 版本信息</legend>176 <legend><?php _e('Copyright Information','wap') ?></legend> 146 177 <div style="padding-left:40px; padding-top:10px;"> 147 178 <input name="wap_copyright" value="<?php … … 157 188 158 189 <!-- 设置哪些选项需要更新 --> 159 <input type="hidden" name="page_options" value="wap_show_detail,wap_s itetitle,wap_copyright" />190 <input type="hidden" name="page_options" value="wap_show_detail,wap_show_related_posts,wap_show_hot_posts,wap_show_last_comments,wap_sitetitle,wap_copyright" /> 160 191 </div> 161 192
