チェンジセット 2854: wordpress

差分発生行の前後
無視リスト:
コミット日時:
2009/06/30 14:15:39 (3 年前)
コミッタ:
alumican
ログメッセージ:

--

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • wordpress/WP-Al-SWFObject/trunk/wp-al-swfobject/2.2/swfobject.js

    r2620 r2854  
    1 /*      SWFObject v2.2 beta1 <http://code.google.com/p/swfobject/>  
     1/*      SWFObject v2.2 <http://code.google.com/p/swfobject/>  
    22        is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>  
    33*/ 
  • wordpress/WP-Al-SWFObject/trunk/wp-al-swfobject/wp-al-swfobject.php

    r2660 r2854  
    44Plugin URI: http://blog.alumican.net/2009/04/19_233117 
    55Description: WordPressのエントリにswfを簡単に貼り付けるためのプラグイン 
    6 Version: 2.0 
     6Version: 2.1 
    77Author: alumican.net 
    88Author URI: http://alumican.net/ 
     
    4040* global variables 
    4141***************************************************/ 
    42 $wp_al_swfobject_version = "2.0"; 
     42$wp_al_swfobject_version = "2.1"; 
    4343$wp_al_swfobject_random = substr(md5(uniqid(rand(), true)),0,4);        //create unique id for divs 
    4444$wp_al_swfobject_number = 0;                                                                            //number of swf into page 
     
    111111 
    112112/************************************************** 
     113* echo 
     114***************************************************/ 
     115function wp_al_swfobject_echo($text) { 
     116        echo wp_al_swfobject_parse($text); 
     117} 
     118 
     119/************************************************** 
    113120* embed swf 
    114121***************************************************/ 
     
    119126        $wp_al_swfobject_number++; 
    120127         
    121         //variables 
     128        //normalize variables 
    122129        $swf_url        = $match[1]; 
    123130        $swf_width      = ($match[3]  != "") ? $match[3]  : $wp_al_swfobject_config['swf_width']; 
     
    139146         
    140147        $merged_flashvars  = wp_al_swfobject_merge_object( array($wp_al_swfobject_config['swf_flashvars'] , $swf_flashvars                       ) ); 
    141         $marged_sp_params  = wp_al_swfobject_merge_object( array(implode(",",$swf_sp_params)              , $wp_al_swfobject_config['swf_params']) ); 
    142         $merged_params     = wp_al_swfobject_merge_object( array($marged_sp_params                        , $swf_params                          ) ); 
     148        $merged_sp_params  = wp_al_swfobject_merge_object( array(implode(",",$swf_sp_params)              , $wp_al_swfobject_config['swf_params']) ); 
     149        $merged_params     = wp_al_swfobject_merge_object( array($merged_sp_params                        , $swf_params                          ) ); 
    143150        $merged_attributes = wp_al_swfobject_merge_object( array($wp_al_swfobject_config['swf_attributes'], $swf_attributes                      ) ); 
    144151 
    145         $swf_content    = "swf".$wp_al_swfobject_random.$wp_al_swfobject_number; 
     152        $swf_content = "swf".$wp_al_swfobject_random.$wp_al_swfobject_number; 
    146153         
    147154        //content div 
     
    161168        } 
    162169        $swf_alt = "This movie requires Flash Player ".$swf_version; 
    163         $code .= "<div style=\"text-align: center; width:".$swf_width."px; height:".$swf_height."px; line-height:".$swf_height."px; ".$swf_align_css."background: #ffffff;\"><div id=\"".$swf_content."\">".$swf_alt."</div></div>\n"; 
     170         
     171        //generate code 
     172        $code = "<div style=\"text-align: center; width:".$swf_width."px; height:".$swf_height."px; line-height:".$swf_height."px; ".$swf_align_css."background: #ffffff;\"><div id=\"".$swf_content."\">".$swf_alt."</div></div>\n"; 
    164173         
    165174        switch ($wp_al_swfobject_config['swfobject_version']) { 
  • wordpress/WP-Al-SWFObject/trunk/wp-al-swfobject/wp-al-swfobject_en.php

    r2660 r2854  
    44Plugin URI: http://blog.alumican.net/2009/05/18_005204 
    55Description: This is powerful plug-in for embedding swf on WordPress. 
    6 Version: 2.0 
     6Version: 2.1 
    77Author: alumican.net 
    88Author URI: http://alumican.net/ 
     
    4040* global variables 
    4141***************************************************/ 
    42 $wp_al_swfobject_version = "2.0"; 
     42$wp_al_swfobject_version = "2.1"; 
    4343$wp_al_swfobject_random = substr(md5(uniqid(rand(), true)),0,4);        //create unique id for divs 
    4444$wp_al_swfobject_number = 0;                                                                            //number of swf into page 
     
    111111 
    112112/************************************************** 
     113* echo 
     114***************************************************/ 
     115function wp_al_swfobject_echo($text) { 
     116        echo wp_al_swfobject_parse($text); 
     117} 
     118 
     119/************************************************** 
    113120* embed swf 
    114121***************************************************/ 
     
    119126        $wp_al_swfobject_number++; 
    120127         
    121         //variables 
     128        //normalize variables 
    122129        $swf_url        = $match[1]; 
    123130        $swf_width      = ($match[3]  != "") ? $match[3]  : $wp_al_swfobject_config['swf_width']; 
     
    139146         
    140147        $merged_flashvars  = wp_al_swfobject_merge_object( array($wp_al_swfobject_config['swf_flashvars'] , $swf_flashvars                       ) ); 
    141         $marged_sp_params  = wp_al_swfobject_merge_object( array(implode(",",$swf_sp_params)              , $wp_al_swfobject_config['swf_params']) ); 
    142         $merged_params     = wp_al_swfobject_merge_object( array($marged_sp_params                        , $swf_params                          ) ); 
     148        $merged_sp_params  = wp_al_swfobject_merge_object( array(implode(",",$swf_sp_params)              , $wp_al_swfobject_config['swf_params']) ); 
     149        $merged_params     = wp_al_swfobject_merge_object( array($merged_sp_params                        , $swf_params                          ) ); 
    143150        $merged_attributes = wp_al_swfobject_merge_object( array($wp_al_swfobject_config['swf_attributes'], $swf_attributes                      ) ); 
    144151 
    145         $swf_content    = "swf".$wp_al_swfobject_random.$wp_al_swfobject_number; 
     152        $swf_content = "swf".$wp_al_swfobject_random.$wp_al_swfobject_number; 
    146153         
    147154        //content div 
     
    161168        } 
    162169        $swf_alt = "This movie requires Flash Player ".$swf_version; 
    163         $code .= "<div style=\"text-align: center; width:".$swf_width."px; height:".$swf_height."px; line-height:".$swf_height."px; ".$swf_align_css."background: #ffffff;\"><div id=\"".$swf_content."\">".$swf_alt."</div></div>\n"; 
     170         
     171        //generate code 
     172        $code = "<div style=\"text-align: center; width:".$swf_width."px; height:".$swf_height."px; line-height:".$swf_height."px; ".$swf_align_css."background: #ffffff;\"><div id=\"".$swf_content."\">".$swf_alt."</div></div>\n"; 
    164173         
    165174        switch ($wp_al_swfobject_config['swfobject_version']) {