WordPress.org

Plugin Directory


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-php-widget/trunk/wp-php-widget.php

    r310036 r310123  
    88Author URI: http://www.wpxue.com 
    99*/ 
     10###############WPxue_PayPal_Donate############### 
     11if(!function_exists('WPxue_PayPal_Donate')){ 
     12function WPxue_PayPal_Donate($number,$image="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif",$name='Donate WPxue.com,Thank you very much!'){ 
     13$name=urlencode($name); 
     14$number=urlencode($number); 
     15$image1="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif"; 
     16$image2="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif"; 
     17$image3="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif"; 
     18$image4="https://www.paypal.com/en_GB/i/btn/btn_donateCC_LG.gif"; 
    1019 
     20echo <<< html 
     21<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hnbwww%40qq%2ecom&lc=US&item_name=$name&item_number=$number&button_subtype=services&currency_code=USD&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted" > 
     22<img src="$image" border="0"   alt="If you like this Plugin , please Donate WPxue.com,Thank you very much!" title="If you like this Plugin , please Donate WPxue.com,Thank you very much!  
     23Make payments with PayPal - it's fast, free and secure!"/> 
     24 </a> 
     25html; 
     26} 
     27} 
     28###############WPxue_PayPal_Donate############### 
    1129class WPxuePhpWidget extends WP_Widget { 
    1230    function WPxuePhpWidget() { 
     
    6785 
    6886} 
    69 ###############WPxue_PayPal_Donate############### 
    70 if(!function_exists('WPxue_PayPal_Donate')){ 
    71 function WPxue_PayPal_Donate($number,$image='https://www.paypal.com/en_GB/i/btn/btn_donateCC_LG.gif',$name='Donate WPxue.com,Thank you very much!'){ 
    72 $name=urlencode($name); 
    73 $number=urlencode($number); 
    74 $image_small="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif"; 
    75 $image_big="https://www.paypal.com/en_GB/i/btn/btn_donateCC_LG.gif"; 
    76 echo <<< html 
    77 <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=hnbwww%40qq%2ecom&lc=US&item_name=$name&item_number=$number&button_subtype=services&currency_code=USD&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted" > 
    78 <img src="$image" border="0"   alt="If you like this Plugin , please Donate WPxue.com,Thank you very much!" title="If you like this Plugin , please Donate WPxue.com,Thank you very much!  
    79 Make payments with PayPal - it's fast, free and secure!"/> 
    80  </a> 
    81 html; 
    82 } 
    83 } 
    84 ###############WPxue_PayPal_Donate############### 
     87 
    8588 
    8689add_action('widgets_init', create_function('', 'return register_widget("WPxuePhpWidget");')); 
Note: See TracChangeset for help on using the changeset viewer.