Changeset 788498
- Timestamp:
- 10/16/2013 02:23:39 AM (12 years ago)
- Location:
- wpaa/tags/0.9.0
- Files:
-
- 1 deleted
- 10 edited
-
MDBitz/Plugin.php (modified) (1 diff)
-
WPAA.php (modified) (3 diffs)
-
WPAA/Module/Banner.php (modified) (2 diffs)
-
WPAA/Module/Cache.php (modified) (2 diffs)
-
WPAA/Module/Compliance.php (modified) (2 diffs)
-
WPAA/Module/IP2Nation.php (modified) (2 diffs)
-
WPAA/Module/MultiUser.php (modified) (1 diff)
-
WPAA/Module/Template.php (modified) (2 diffs)
-
WPAA/Module/Widget.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
wordpress_advertising_associate.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
wpaa/tags/0.9.0/MDBitz/Plugin.php
r788493 r788498 153 153 $content .= '<strong>Share this plugin with others</strong><br/><br/>'; 154 154 //facebook 155 $content .= '<a href="http://www.facebook.com/sharer.php?u=http://mdbitz.com/wpaa/&t=Awesome%20WordPress%20Plugin:%20%20WordPress%Advertising%20Associate" target="_blank"><img src="' . WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/imgs/fb.png" alt="Facebook" /></a>';155 $content .= '<a href="http://www.facebook.com/sharer.php?u=http://mdbitz.com/wpaa/&t=Awesome%20WordPress%20Plugin:%20%20WordPress%Advertising%20Associate" target="_blank"><img src="' . WP_CONTENT_URL . '/plugins/wpaa/imgs/fb.png" alt="Facebook" /></a>'; 156 156 //digg 157 $content .= ' <a href="http://digg.com/submit?url=http://mdbitz.com/wpaa/" target="_blank"><img src="' . WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/imgs/digg.gif" alt="Digg" /></a>';157 $content .= ' <a href="http://digg.com/submit?url=http://mdbitz.com/wpaa/" target="_blank"><img src="' . WP_CONTENT_URL . '/plugins/wpaa/imgs/digg.gif" alt="Digg" /></a>'; 158 158 //stubmleupon 159 $content .= ' <a href="http://www.stumbleupon.com/badge/?url=http://mdbitz.com/wpaa/" target="_blank"><img src="' . WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/imgs/stumbleupon.gif" alt="Stumble Upon" /></a>';159 $content .= ' <a href="http://www.stumbleupon.com/badge/?url=http://mdbitz.com/wpaa/" target="_blank"><img src="' . WP_CONTENT_URL . '/plugins/wpaa/imgs/stumbleupon.gif" alt="Stumble Upon" /></a>'; 160 160 //delicious 161 $content .= ' <a href="http://delicious.com/save?v=5&noui&jump=close&url=http://mdbitz.com/wpaa/" target="_blank"><img src="' . WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/imgs/deli.gif" alt="Delicous" /></a>';161 $content .= ' <a href="http://delicious.com/save?v=5&noui&jump=close&url=http://mdbitz.com/wpaa/" target="_blank"><img src="' . WP_CONTENT_URL . '/plugins/wpaa/imgs/deli.gif" alt="Delicous" /></a>'; 162 162 //twitter 163 $content .= ' <a href="http://twitter.com/home/?status=WordPress+Advertising+Associate+%2C+the+all-in-one+Amazon+Associate+WordPress+Plugin+http://tinyurl.com/wpaaplugin" target="_blank"><img src="' . WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/imgs/twitter.gif" alt="Twitter" /></a>';163 $content .= ' <a href="http://twitter.com/home/?status=WordPress+Advertising+Associate+%2C+the+all-in-one+Amazon+Associate+WordPress+Plugin+http://tinyurl.com/wpaaplugin" target="_blank"><img src="' . WP_CONTENT_URL . '/plugins/wpaa/imgs/twitter.gif" alt="Twitter" /></a>'; 164 164 $content .= '</div>'; 165 165 $this->postbox("feedback", __("User Feedback",'wpaa'), $content); -
wpaa/tags/0.9.0/WPAA.php
r788493 r788498 1 1 <?php 2 /* 3 Plugin Name: WordPress Advertising Associate 4 Plugin URI: http://mdbitz.com/wpaa/ 5 Description: Quickly and easily monetize your website through the integration of Amazon products and widgets targeted by visitors' geo-location. 6 Author: MDBitz - Matthew John Denton 7 Version: 0.9.0 8 Requires at least: 3.2.1 9 Author URI: http://mdbitz.com 10 License: GPL v3 11 */ 2 12 /* 3 13 * copyright (c) 2010-2013 Matthew John Denton - mdbitz.com … … 19 29 * If not, see <http://www.gnu.org/licenses/>. 20 30 */ 31 32 // Plugin Version / Update Date 33 global $wpaa_version; 34 global $wpaa_update_date; 35 $wpaa_version = "0.9.0"; 36 $wpaa_update_date = "10-11-2013"; 37 38 39 /** 40 * Verify domain is in compliance with Amazon's Associates Program Operating Agreement 41 */ 42 function WPAA_on_activation() { 43 44 // Validate function is being called properly 45 if ( ! current_user_can( 'activate_plugins' ) ){ 46 return; 47 } 48 $plugin = isset( $_REQUEST['plugin'] ) ? $_REQUEST['plugin'] : ''; 49 check_admin_referer( "activate-plugin_{$plugin}" ); 50 51 // Amazon Trademarks and variants 52 $_blackList = array( 53 'amazon', 'amaz0n', 54 'azon', 'az0n', 'amzn', 55 'kindle', 56 'imdb' 57 ); 58 59 $urlparts = parse_url(site_url()); // Get WordPress address 60 $domain = strtolower($urlparts[host]); // Get domain section of address (wordpress could be in sub directory) 61 foreach($_blackList as $token) { 62 if (stripos($domain,$token) !== false) { 63 wp_die( __('<h1>Sorry, WPAA can not be installed on this domain.</h1><p>It has been determined that your domain (<em>' . $domain . '</em>) is in conflict with <strong>Section 2 item G</strong> of the <a href="https://affiliate-program.amazon.com/gp/associates/agreement" target="_blank">Associates Program Operating Agreement</a> by containing the Amazon Trademark or variant <strong><u>' . $token . '</u></strong>! Please review the operating agreement and modify your domain to enable use of the WPAA plugin.<p><p>A non-exhaustive list of Amazon Trademarks that cannot be included in domain names can be found <a href="http://www.amazon.com/gp/help/customer/display.html/?nodeId=200738910" target="_blank">here</a>.</p><p>Thank You ~Matthew J. Denton</p>') ); 64 } 65 } 66 67 } 68 69 register_activation_hook( __FILE__, 'WPAA_on_activation' ); 21 70 22 71 // load APaPi … … 1200 1249 1201 1250 } 1251 1252 spl_autoload_register(array('WPAA', 'autoload')); 1253 $wpaa = new WPAA( $wpaa_version, $wpaa_update_date ); -
wpaa/tags/0.9.0/WPAA/Module/Banner.php
r788493 r788498 266 266 wp_enqueue_style('global'); 267 267 wp_enqueue_style('wp-admin'); 268 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/css/admin.css');268 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/wpaa/css/admin.css'); 269 269 } 270 270 } … … 335 335 </script> 336 336 <div class="wrap"> 337 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('Banners', 'wpaa'); ?></h2>337 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/wpaa/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('Banners', 'wpaa'); ?></h2> 338 338 <div id="tabs"> 339 339 <ul class="tabNavigation"> -
wpaa/tags/0.9.0/WPAA/Module/Cache.php
r788493 r788498 217 217 wp_enqueue_style('global'); 218 218 wp_enqueue_style('wp-admin'); 219 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/css/admin.css');219 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/wpaa/css/admin.css'); 220 220 } 221 221 } … … 243 243 ?> 244 244 <div class="wrap"> 245 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('Product Cache', 'wpaa'); ?></h2>245 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/wpaa/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('Product Cache', 'wpaa'); ?></h2> 246 246 <div class="postbox-container" style="width:500px;padding-right:10px;" > 247 247 <div class="metabox-holder"> -
wpaa/tags/0.9.0/WPAA/Module/Compliance.php
r788493 r788498 259 259 wp_enqueue_style('global'); 260 260 wp_enqueue_style('wp-admin'); 261 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/css/admin.css');261 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/wpaa/css/admin.css'); 262 262 } 263 263 } … … 285 285 ?> 286 286 <div class="wrap"> 287 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('Plugin Compliance', 'wpaa'); ?></h2>287 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/wpaa/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('Plugin Compliance', 'wpaa'); ?></h2> 288 288 <div class="postbox-container" style="width:500px;padding-right:10px;" > 289 289 <div class="metabox-holder"> -
wpaa/tags/0.9.0/WPAA/Module/IP2Nation.php
r788493 r788498 351 351 wp_enqueue_style('global'); 352 352 wp_enqueue_style('wp-admin'); 353 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/css/admin.css');353 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/wpaa/css/admin.css'); 354 354 } 355 355 } … … 415 415 ?> 416 416 <div class="wrap"> 417 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('ip2nation', 'wpaa'); ?></h2>417 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/wpaa/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('ip2nation', 'wpaa'); ?></h2> 418 418 <div class="postbox-container" style="width:500px;padding-right:10px;" > 419 419 <div class="metabox-holder"> -
wpaa/tags/0.9.0/WPAA/Module/MultiUser.php
r788493 r788498 46 46 * @var String 47 47 */ 48 protected $hook = "w ordpress-advertising-associate-multi-user";48 protected $hook = "wpaa-multi-user"; 49 49 50 50 /** -
wpaa/tags/0.9.0/WPAA/Module/Template.php
r788493 r788498 103 103 wp_enqueue_style('global'); 104 104 wp_enqueue_style('wp-admin'); 105 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/css/admin.css');105 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/wpaa/css/admin.css'); 106 106 } 107 107 } … … 228 228 ?> 229 229 <div class="wrap"> 230 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('Template Manager', 'wpaa'); ?><a class="add-new-h2" href="<?php echo admin_url('admin.php?action=add&page=' . $this->hook ); ?>">Add New</a></h2>230 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/wpaa/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('Template Manager', 'wpaa'); ?><a class="add-new-h2" href="<?php echo admin_url('admin.php?action=add&page=' . $this->hook ); ?>">Add New</a></h2> 231 231 <?php if( $action != 'add' && $action != 'edit' ) { ?> 232 232 <div class="postbox-container" style="width:600px;padding-right:10px;"> -
wpaa/tags/0.9.0/WPAA/Module/Widget.php
r788493 r788498 274 274 wp_enqueue_style('global'); 275 275 wp_enqueue_style('wp-admin'); 276 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/css/admin.css');276 wp_enqueue_style('wpaa-admin-css', WP_CONTENT_URL . '/plugins/wpaa/css/admin.css'); 277 277 } 278 278 } … … 301 301 ?> 302 302 <div class="wrap"> 303 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/w ordpress-advertising-associate/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('Widgets', 'wpaa'); ?></h2>303 <h2><img src="<?php echo WP_CONTENT_URL . '/plugins/wpaa/imgs/WPAA.png'; ?>" alt="WPAA" /> : <?php _e('Widgets', 'wpaa'); ?></h2> 304 304 <div class="postbox-container" style="width:500px;padding-right:10px;" > 305 305 <div class="metabox-holder"> -
wpaa/tags/0.9.0/readme.txt
r788493 r788498 1 === W ordPress-Advertising-Associate ===1 === WP Advertising Associate === 2 2 Contributors: mdbitz 3 3 Donate Link: http://mdbitz.com/donate/
Note: See TracChangeset
for help on using the changeset viewer.