Changeset 1127769
- Timestamp:
- 04/04/2015 03:05:08 PM (11 years ago)
- Location:
- wp-plus/trunk
- Files:
-
- 3 edited
-
option.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-plus.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-plus/trunk/option.php
r1122960 r1127769 26 26 echo plus_version; 27 27 ?>版本更新日志:<br /> 28 [新增]低版本IE更新提示功能 28 [新增]启用WP原生链接管理器功能<br /> 29 [恢复]Google API替换功能 29 30 </div> 30 31 <form method="POST" action=""> … … 71 72 echo get_option("wp_plus_ietip"); 72 73 ?> /> 启用“提示IE10以下IE用户更换浏览器”功能<p> 74 <input type="checkbox" name="linkman" id="linkman" <?php 75 echo get_option("wp_plus_linkman"); 76 ?> /> 启用“WP原生链接管理器”功能<p> 77 <input type="checkbox" name="google" id="google" <?php 78 echo get_option("wp_plus_google"); 79 ?> /> 启用“替换Google API”功能<p> 73 80 <input type="submit" class="button-primary" value="保存设置" /> WP-Plus 版本 <?php 74 81 echo plus_version; … … 184 191 } 185 192 update_option('wp_plus_ietip', $display); 186 193 if ($_POST['linkman'] == 'on') { 194 $display = 'checked'; 195 } else { 196 $display = ''; 197 } 198 update_option('wp_plus_linkman', $display); 199 if ($_POST['google'] == 'on') { 200 $display = 'checked'; 201 } else { 202 $display = ''; 203 } 204 update_option('wp_plus_google', $display); 187 205 } 188 206 ?> -
wp-plus/trunk/readme.txt
r1122960 r1127769 29 29 30 30 == Changelog == 31 = 1.60 = 32 [新增]启用WP原生链接管理器功能 33 [恢复]Google API替换功能 31 34 = 1.59 = 32 35 [新增]低版本IE更新提示功能 … … 60 63 61 64 == Upgrade Notice == 65 [新增]启用WP原生链接管理器功能 66 [恢复]Google API替换功能 62 67 = 1.59 = 63 68 [新增]低版本IE更新提示功能 -
wp-plus/trunk/wp-plus.php
r1122960 r1127769 6 6 Author: liwanglin12 7 7 Author URI: http://lwl12.com 8 Version: 1. 598 Version: 1.60 9 9 */ 10 10 /*Exit if accessed directly:安全第一,如果是直接载入,就退出.*/ 11 11 defined('ABSPATH') or exit; 12 define("plus_version", "1. 59");12 define("plus_version", "1.60"); 13 13 /* 插件初始化*/ 14 14 register_activation_hook(__FILE__, 'plus_plugin_activate'); … … 313 313 <?php 314 314 require "welcomemsg.php"; 315 function plus_welcomemsg_css(){ 315 function plus_welcomemsg_css() 316 { 316 317 echo '<style type="text/css">#hellobaby { width: 200px; background:#000000; border:1px solid #B3B3B3; color:#FFFFFF; font-size:14px; opacity:0.7; filter:alpha(opacity=70); padding: 10px 10px 10px 10px; position:fixed; right:0; top:150px; z-index:999; } .closebox{float:left;text-align:center;font-size:26px;margin-top:0px;padding: 0 10px 0 0;} .closebox a{border-bottom: none;}</style>'; 317 318 } 318 function plus_welcomemsg(){ 319 function plus_welcomemsg() 320 { 319 321 $msg = welcome_msg(); 320 322 if ($msg !== false) { 321 echo "<script type=\"text/javascript\"> (function(){ var wait = 30; var interval = setInterval(function(){ var time = --wait; if(time <= 0) { $('#hellobaby').animate({right:'-20000px'}).hide(); clearInterval(interval); }; }, 1000); })(); </script>";322 echo '<div id="hellobaby"> <div class="closebox"><a href="javascript:void(0)" onclick="$(\'#hellobaby\').animate({right:\'-20000px\'});" title="关闭">x</a></div>';323 echo $msg;324 echo '</div>';325 } 323 echo "<script type=\"text/javascript\"> (function(){ var wait = 30; var interval = setInterval(function(){ var time = --wait; if(time <= 0) { $('#hellobaby').animate({right:'-20000px'}).hide(); clearInterval(interval); }; }, 1000); })(); </script>"; 324 echo '<div id="hellobaby"> <div class="closebox"><a href="javascript:void(0)" onclick="$(\'#hellobaby\').animate({right:\'-20000px\'});" title="关闭">x</a></div>'; 325 echo $msg; 326 echo '</div>'; 327 } 326 328 } 327 329 add_action('wp_head', 'plus_welcomemsg_css'); … … 335 337 ?> 336 338 <?php 337 function plus_ietip(){ 339 function plus_ietip() 340 { 338 341 echo '<!--[if lt IE 10]><script src="http://wuyongzhiyong.b0.upaiyun.com/iedie/v1.1/script.min.js"></script><![endif]-->'; 339 342 } … … 341 344 ?> 342 345 <?php 346 } 347 ?> 348 <?php 349 if (get_option('wp_plus_linkman') == 'checked') { 350 add_filter('pre_option_link_manager_enabled', '__return_true'); 351 } 352 /*谷歌替换*/ 353 if (get_option('wp_plus_google') == 'checked') { 354 add_filter('style_loader_tag', array( 355 $this, 356 'ohMyFont' 357 ), 888, 4); 358 function ohMyFont($text) 359 { 360 returnstr_replace('//fonts.googleapis.com/', '//fonts.geekzu.org/', $text); 361 returnstr_replace('//ajax.googleapis.com', '//sdn.geekzu.org/ajax', $text); 362 } 343 363 } 344 364 ?>
Note: See TracChangeset
for help on using the changeset viewer.