Changeset 477405
- Timestamp:
- 12/19/2011 10:27:58 AM (14 years ago)
- Location:
- esaudioplayer
- Files:
-
- 30 added
- 2 edited
-
tags/1.5.2 (added)
-
tags/1.5.2/EsAudioPlayer.php (added)
-
tags/1.5.2/EsAudioPlayer_tt.php (added)
-
tags/1.5.2/binaryajax.js (added)
-
tags/1.5.2/esplayer_tes.js (added)
-
tags/1.5.2/esplayer_tes_min.js (added)
-
tags/1.5.2/esplayer_tt.js (added)
-
tags/1.5.2/excanvas.js (added)
-
tags/1.5.2/jquery.base64.min.js (added)
-
tags/1.5.2/mattfarina-farbtastic (added)
-
tags/1.5.2/mattfarina-farbtastic/CHANGELOG.html (added)
-
tags/1.5.2/mattfarina-farbtastic/LICENSE.txt (added)
-
tags/1.5.2/mattfarina-farbtastic/README.html (added)
-
tags/1.5.2/mattfarina-farbtastic/README.md (added)
-
tags/1.5.2/mattfarina-farbtastic/demo1.html (added)
-
tags/1.5.2/mattfarina-farbtastic/demo2.html (added)
-
tags/1.5.2/mattfarina-farbtastic/farbtastic.css (added)
-
tags/1.5.2/mattfarina-farbtastic/farbtastic.js (added)
-
tags/1.5.2/mattfarina-farbtastic/farbtastic.min.js (added)
-
tags/1.5.2/mattfarina-farbtastic/marker.png (added)
-
tags/1.5.2/mattfarina-farbtastic/mask.png (added)
-
tags/1.5.2/mattfarina-farbtastic/wheel.png (added)
-
tags/1.5.2/print_r.js (added)
-
tags/1.5.2/readme.txt (added)
-
tags/1.5.2/scrrenshot-1.png (added)
-
tags/1.5.2/soundmanager2-jsmin.js (added)
-
tags/1.5.2/swf (added)
-
tags/1.5.2/swf/soundmanager2.swf (added)
-
tags/1.5.2/swf/soundmanager2_flash9.swf (added)
-
tags/1.5.2/swf/soundmanager2_flash9_debug.swf (added)
-
trunk/EsAudioPlayer.php (modified) (12 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
esaudioplayer/trunk/EsAudioPlayer.php
r474610 r477405 4 4 Plugin URI: http://tempspace.net/plugins/?page_id=4 5 5 Description: This is an Extremely Simple Audio Player plugin. 6 Version: 1.5. 16 Version: 1.5.2 7 7 Author: Atsushi Ueda 8 8 Author URI: http://tempspace.net/plugins/ … … 241 241 global $esplayer_acc_scr_frew_unit; 242 242 global $esplayer_acc_scr_frew_msg; 243 global $esplayer_acc_scr_dmylnk_enable; 244 global $esplayer_acc_scr_dmylnk_msg; 245 243 246 $esplayer_acc_text_enable = get_option("esaudioplayer_acc_text_enable", "0"); 244 247 $esplayer_acc_msg_download = get_option("esaudioplayer_acc_msg_download", "download the audio"); … … 265 268 $esplayer_acc_scr_frew_unit = get_option("esaudioplayer_acc_scr_frew_unit", "pct"); 266 269 $esplayer_acc_scr_frew_msg = get_option("esaudioplayer_acc_scr_frew_msg", "rewind 10%"); 267 270 $esplayer_acc_scr_dmylnk_enable = get_option("esaudioplayer_acc_scr_dmylnk_enable", "0"); 271 $esplayer_acc_scr_dmylnk_msg = get_option("esaudioplayer_acc_scr_dmylnk_msg", "%title%"); 268 272 } 269 273 EsAudioPlayer_read_accessibility_setting(); … … 299 303 global $esplayer_acc_scr_frew_unit; 300 304 global $esplayer_acc_scr_frew_msg; 305 global $esplayer_acc_scr_dmylnk_enable; 306 global $esplayer_acc_scr_dmylnk_msg; 301 307 302 308 do_shortcode($content); … … 325 331 $acc_scr_enable=""; 326 332 $smartphonesize=-999; 333 $title=""; 327 334 328 335 … … 350 357 351 358 $id = "esplayer_" . (string)($player_number); 352 $js_var='esplayervar' . (string)($player_number);353 359 354 360 $acc_scr_enable = $esplayer_acc_scr_enable; … … 375 381 } 376 382 if ($acc_scr_enable == "1") { 383 $js_var_a = "Array_EsAudioPlayer[".($player_number-1)."]"; 377 384 $ret .= "<div style=\"position:absolute;left:-3000px;\">"; 385 if ($esplayer_acc_scr_dmylnk_enable=="1") { 386 $ret .= "<a href=\"#\" onclick=\"".$js_var_a.".func_acc_play();return -1;\">".str_replace("%title%",$title,$esplayer_acc_scr_dmylnk_msg)."</a>" ; 387 } 378 388 if ($acc_basic_btns == "playstop") { 379 $ret .= "<input type='button' title='" . $esplayer_acc_scr_msg_playstop_btn . "' onclick=\"".$js_var.".func_acc_play_stop();return -1;\"/>";389 $ret .= "<input type='button' title='" . str_replace("%title%",$title,$esplayer_acc_scr_msg_playstop_btn) . "' onclick=\"".$js_var_a.".func_acc_play_stop();return -1;\"/>"; 380 390 } 381 391 if ($acc_basic_btns == "play+stop") { 382 $ret .= "<input type='button' title='" . $esplayer_acc_scr_msg_play_btn . "' onclick=\"".$js_var.".func_acc_play();return -1;\"/>";392 $ret .= "<input type='button' title='" . str_replace("%title%",$title,$esplayer_acc_scr_msg_play_btn) . "' onclick=\"".$js_var_a.".func_acc_play();return -1;\"/>"; 383 393 } 384 394 if ($acc_basic_btns == "playpause+stop") { 385 $ret .= "<input type='button' title='" . $esplayer_acc_scr_msg_playpause_btn . "' onclick=\"".$js_var.".func_acc_play_pause();return -1;\"/>";395 $ret .= "<input type='button' title='" . str_replace("%title%",$title,$esplayer_acc_scr_msg_playpause_btn) . "' onclick=\"".$js_var_a.".func_acc_play_pause();return -1;\"/>"; 386 396 } 387 397 if ($acc_basic_btns == "play+stop" || $acc_basic_btns == "playpause+stop") { 388 $ret .= "<input type='button' title='" . $esplayer_acc_scr_msg_stop_btn . "' onclick=\"".$js_var.".func_acc_stop();return -1;\"/>";398 $ret .= "<input type='button' title='" . str_replace("%title%",$title,$esplayer_acc_scr_msg_stop_btn) . "' onclick=\"".$js_var_a.".func_acc_stop();return -1;\"/>"; 389 399 } 390 400 if ($acc_fwd_btn=="1") { 391 $ret .= "<input type='button' title='" . $esplayer_acc_scr_fw_msg . "' onclick=\"".$js_var.".func_acc_seek(".$esplayer_acc_scr_fw_amount.",'".$esplayer_acc_scr_fw_unit."');return -1;\"/>";401 $ret .= "<input type='button' title='" . str_replace("%title%",$title,$esplayer_acc_scr_fw_msg) . "' onclick=\"".$js_var_a.".func_acc_seek(".$esplayer_acc_scr_fw_amount.",'".$esplayer_acc_scr_fw_unit."');return -1;\"/>"; 392 402 } 393 403 if ($acc_rew_btn=="1") { 394 $ret .= "<input type='button' title='" . $esplayer_acc_scr_rew_msg . "' onclick=\"".$js_var.".func_acc_seek(-".$esplayer_acc_scr_rew_amount.",'".$esplayer_acc_scr_rew_unit."');return -1;\"/>";404 $ret .= "<input type='button' title='" . str_replace("%title%",$title,$esplayer_acc_scr_rew_msg) . "' onclick=\"".$js_var_a.".func_acc_seek(-".$esplayer_acc_scr_rew_amount.",'".$esplayer_acc_scr_rew_unit."');return -1;\"/>"; 395 405 } 396 406 if ($acc_ffwd_btn=="1") { 397 $ret .= "<input type='button' title='" . $esplayer_acc_scr_ffw_msg . "' onclick=\"".$js_var.".func_acc_seek(".$esplayer_acc_scr_ffw_amount.",'".$esplayer_acc_scr_ffw_unit."');return -1;\"/>";407 $ret .= "<input type='button' title='" . str_replace("%title%",$title,$esplayer_acc_scr_ffw_msg) . "' onclick=\"".$js_var_a.".func_acc_seek(".$esplayer_acc_scr_ffw_amount.",'".$esplayer_acc_scr_ffw_unit."');return -1;\"/>"; 398 408 } 399 409 if ($acc_frew_btn=="1") { 400 $ret .= "<input type='button' title='" . $esplayer_acc_scr_frew_msg . "' onclick=\"".$js_var.".func_acc_seek(-".$esplayer_acc_scr_frew_amount.",'".$esplayer_acc_scr_frew_unit."');return -1;\"/>";410 $ret .= "<input type='button' title='" . str_replace("%title%",$title,$esplayer_acc_scr_frew_msg) . "' onclick=\"".$js_var_a.".func_acc_seek(-".$esplayer_acc_scr_frew_amount.",'".$esplayer_acc_scr_frew_unit."');return -1;\"/>"; 401 411 } 402 412 … … 407 417 $title_utf8=""; 408 418 $artist_utf8=""; 409 419 420 $js_var='esplayervar' . (string)($player_number); 410 421 $esplayer_script_var .= "var " . $js_var . ";\n"; 411 422 … … 570 581 global $esplayer_acc_scr_frew_unit; 571 582 global $esplayer_acc_scr_frew_msg; 583 global $esplayer_acc_scr_dmylnk_enable; 584 global $esplayer_acc_scr_dmylnk_msg; 572 585 573 586 /* Save Changeボタン押下でコールされた場合、E_POSTに格納された設定情報を保?E */ … … 613 626 update_option('esaudioplayer_acc_scr_frew_unit', $_POST['esaudioplayer_acc_scr_frew_unit']); 614 627 update_option('esaudioplayer_acc_scr_frew_msg', $_POST['esaudioplayer_acc_scr_frew_msg']); 628 update_option('esaudioplayer_acc_scr_dmylnk_enable', isset($_POST['esaudioplayer_acc_scr_dmylnk_enable'])?"1":"0"); 629 update_option('esaudioplayer_acc_scr_dmylnk_msg', $_POST['esaudioplayer_acc_scr_dmylnk_msg']); 615 630 } 616 631 … … 676 691 $acc_scr_frew_unit = $esplayer_acc_scr_frew_unit; 677 692 $acc_scr_frew_msg = $esplayer_acc_scr_frew_msg; 693 $acc_scr_dmylnk_enable = $esplayer_acc_scr_dmylnk_enable; 694 $acc_scr_dmylnk_msg = $esplayer_acc_scr_dmylnk_msg; 678 695 ?> 679 696 … … 895 912 </tr> 896 913 897 914 <!-- <tr> 915 <th scope="row" style="text-align:right;">Dummy link to be listed by screen readers</th> 916 <td><input type="checkbox" name="esaudioplayer_acc_scr_dmylnk_enable" value="1" <?php echo $acc_scr_dmylnk_enable=="1"?"checked":""; ?> />Enable<br/> 917 Speech <input type="text" name="esaudioplayer_acc_scr_dmylnk_msg" value="<?php echo $acc_scr_dmylnk_msg; ?>" /> 918 </td> 919 </tr> 920 --> 898 921 </table> 899 922 -
esaudioplayer/trunk/readme.txt
r474610 r477405 5 5 Requires at least: 3.2.0 6 6 Tested up to: 3.3 7 Stable tag: 1.5. 17 Stable tag: 1.5.2 8 8 9 9 This is a simple, cross-browser, accessible audio player (MP3 player) plugin. … … 51 51 == Changelog == 52 52 53 = 1.5.2 = 54 * Solved the problem that accessibility features were broken. 55 53 56 = 1.5.1 = 54 57 * Solved the problem that player cannot be put in the sidebar text widget.
Note: See TracChangeset
for help on using the changeset viewer.