Changeset 756422
- Timestamp:
- 08/15/2013 12:13:11 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
iphods-itunes-top-products-rss-widget/trunk/iphods.php
r756236 r756422 19 19 define('APPLE_LANG_MEDIA_TYPES_JSON_URL','https://rss.itunes.apple.com/data/lang/en-US/media-types.json'); 20 20 define('APPLE_COUNTRIES_JSON_URL','https://rss.itunes.apple.com/data/countries.json'); 21 define('ACTIVATION_URL','http://iphods.com/activation.php'); 21 22 22 23 require(dirname(__FILE__)."/iphods_top_widget.php"); … … 30 31 public function __construct() 31 32 { 33 register_activation_hook( __FILE__, array( $this, 'register_iphods_plugin' ) ); 34 register_deactivation_hook( __FILE__, array( $this, 'deregister_iphods_plugin' ) ); 35 32 36 add_action( 'widgets_init', array($this,'register_iphods_widget') ); 33 37 add_action( 'wp_enqueue_scripts', array($this,'register_iphods_css') ); 34 38 } 39 40 public function register_iphods_plugin(){ 41 42 $post = wp_remote_post( ACTIVATION_URL, array( 'body' => array( 'op'=> 'activate', 'bu' => get_bloginfo('url') ) ) ); 43 44 } 45 46 public function deregister_iphods_plugin(){ 47 48 $post = wp_remote_post( ACTIVATION_URL, array( 'body' => array( 'op'=> 'activate', 'bu' => get_bloginfo('url') ) ) ); 49 50 } 35 51 36 52 // register iPhods_Widget widget
Note: See TracChangeset
for help on using the changeset viewer.