Plugin Directory

Changeset 201519 for php-code-widget


Ignore:
Timestamp:
02/03/2010 07:21:24 PM (16 years ago)
Author:
Otto42
Message:
 
Location:
php-code-widget
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • php-code-widget/tags/2.1/execphp.php

    r170794 r201519  
    7777
    7878add_action('widgets_init', create_function('', 'return register_widget("PHP_Code_Widget");'));
     79
     80// donate link on manage plugin page
     81add_filter('plugin_row_meta', 'execphp_donate_link', 10, 2);
     82function execphp_donate_link($links, $file) {
     83    if ($file == plugin_basename(__FILE__)) {
     84        $donate_link = '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=otto%40ottodestruct%2ecom">Donate</a>';
     85        $links[] = $donate_link;
     86    }
     87    return $links;
     88}
  • php-code-widget/tags/2.1/readme.txt

    r170797 r201519  
    44Tags: php, widget, execphp
    55Requires at least: 2.8
    6 Tested up to: 2.9
     6Tested up to: 2.9.1
    77Stable tag: 2.1
    88
  • php-code-widget/trunk/execphp.php

    r170794 r201519  
    7777
    7878add_action('widgets_init', create_function('', 'return register_widget("PHP_Code_Widget");'));
     79
     80// donate link on manage plugin page
     81add_filter('plugin_row_meta', 'execphp_donate_link', 10, 2);
     82function execphp_donate_link($links, $file) {
     83    if ($file == plugin_basename(__FILE__)) {
     84        $donate_link = '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=otto%40ottodestruct%2ecom">Donate</a>';
     85        $links[] = $donate_link;
     86    }
     87    return $links;
     88}
  • php-code-widget/trunk/readme.txt

    r170797 r201519  
    44Tags: php, widget, execphp
    55Requires at least: 2.8
    6 Tested up to: 2.9
     6Tested up to: 2.9.1
    77Stable tag: 2.1
    88
Note: See TracChangeset for help on using the changeset viewer.