Changeset 1198520
- Timestamp:
- 07/14/2015 06:07:49 AM (11 years ago)
- Location:
- woocommerce-improved-external-products
- Files:
-
- 14 added
- 1 deleted
- 2 edited
-
assets/banner-772x250.jpg (deleted)
-
assets/banner-772x250.png (added)
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (added)
-
tags/1.1.2 (added)
-
tags/1.1.2/improved_external_prod.php (added)
-
tags/1.1.2/readme.txt (added)
-
tags/1.1.2/woocommerce (added)
-
tags/1.1.2/woocommerce/single-product (added)
-
tags/1.1.2/woocommerce/single-product/add-to-cart (added)
-
tags/1.1.2/woocommerce/single-product/add-to-cart/external.php (added)
-
trunk/improved_external_prod.php (modified) (2 diffs)
-
trunk/includes (added)
-
trunk/includes/images (added)
-
trunk/includes/images/wpo-helper.png (added)
-
trunk/includes/settings.php (added)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-improved-external-products/trunk/improved_external_prod.php
r1073627 r1198520 4 4 Plugin URI: https://wpovernight.com/ 5 5 Description: Opens External/Affiliate products in a new tab. 6 Version: 1. 1.26 Version: 1.2 7 7 Author: Jeremiah Prummer 8 8 Author URI: https://wpovernight.com/ … … 26 26 */ 27 27 public function __construct() { 28 add_filter( 'woocommerce_loop_add_to_cart_link', array(&$this,'shop_loop_link'), 10, 2 ); 29 add_filter( 'woocommerce_locate_template', array(&$this,'myplugin_woocommerce_locate_template'), 10, 3 ); 30 add_action('wp_footer', array(&$this,'javascript_backup')); 28 if(!class_exists('ImprovedExternalProductsPro')){ 29 add_filter( 'woocommerce_loop_add_to_cart_link', array($this,'shop_loop_link'), 10, 2 ); 30 add_filter( 'woocommerce_locate_template', array($this,'myplugin_woocommerce_locate_template'), 10, 3 ); 31 add_action('wp_footer', array($this,'javascript_backup')); 32 } 33 $this->includes(); 34 $this->settings = new ImprovedExternalProducts_Settings(); 35 36 // Redirect to the Settings Page 37 // Settings Page URL 38 define("IEPP_SETTINGS_URL", "admin.php?page=iepp_options_page"); 39 // Redirect to settings page on activation 40 register_activation_hook(__FILE__, array(&$this,'iepp_activate')); 41 add_action('admin_init', array(&$this,'iepp_redirect')); 42 } 43 44 /** 45 * Redirect: Make It So 46 * 47 */ 48 function iepp_activate() { 49 add_option('iepp_do_activation_redirect', true); 50 } 51 52 function iepp_redirect() { 53 if (get_option('iepp_do_activation_redirect', false)) { 54 delete_option('iepp_do_activation_redirect'); 55 if(!isset($_GET['activate-multi'])){ 56 wp_redirect(IEPP_SETTINGS_URL); 57 } 58 } 59 } 60 61 function includes(){ 62 require_once( 'includes/settings.php' ); 31 63 } 32 64 -
woocommerce-improved-external-products/trunk/readme.txt
r1073627 r1198520 4 4 Tags: woocommerce, affiliate, external product, link, new tab, external/affiliate 5 5 Requires at least: 3.0.1 6 Tested up to: 4. 17 Stable tag: 1. 1.26 Tested up to: 4.2.2 7 Stable tag: 1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 28 28 == Changelog == 29 29 30 = 1.2 = 31 32 * Added support for Improved External Products Pro 33 30 34 = 1.1.2 = 31 35 … … 47 51 == Upgrade Notice == 48 52 53 = 1.2 = 54 55 * Added support for Improved External Products Pro 56 49 57 = 1.1.2 = 50 58
Note: See TracChangeset
for help on using the changeset viewer.