WordPress.org

Plugin Directory

Changeset 532731


Ignore:
Timestamp:
04/18/12 08:46:15 (2 years ago)
Author:
ldebrouwer
Message:

Version 0.3.6. Added contextual help, confirmed TradeDoubler support for the wizard.

Location:
affiliate-press/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • affiliate-press/trunk/affiliate-press.php

    r532255 r532731  
    22/** 
    33 * @package Affiliate_Press 
    4  * @version 0.3.5 
     4 * @version 0.3.6 
    55 */ 
    66/* 
     
    99Description: Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 
    1010Author: ldebrouwer 
    11 Version: 0.3.5 
     11Version: 0.3.6 
    1212Author URI: http://lucdebrouwer.nl/ 
    1313*/ 
     
    2626include( LDB_AP_PATH . 'includes/class-affiliate-press.php' ); 
    2727include( LDB_AP_PATH . 'includes/class-pointers.php' ); 
     28include( LDB_AP_PATH . 'includes/class-help.php' ); 
    2829include( LDB_AP_PATH . 'includes/class-feeds-table.php' ); 
    2930include( LDB_AP_PATH . 'includes/class-items-table.php' ); 
     
    3132function AP_activation() { 
    3233    include( LDB_AP_PATH . 'affiliate-press-upgrade.php' ); 
    33     update_option( 'LDB_Affiliate_Press_Version', '0.3.5' ); 
     34    update_option( 'LDB_Affiliate_Press_Version', '0.3.6' ); 
    3435    wp_schedule_event( time(), 'hourly', 'AP_cronjob' ); 
    3536} 
  • affiliate-press/trunk/includes/class-affiliate-press.php

    r532255 r532731  
    2323        /* Add the menu items and add some hidden ones. */ 
    2424        function AP_menu() { 
     25            $help = new LDB_Affiliate_Press_Help; 
    2526            $pages = array(); 
    2627            $parent = add_menu_page( __( 'Affiliate Press', 'LDB_AP' ), __( 'Affiliate Press', 'LDB_AP' ), 'manage_options', 'affiliate_press', array( &$this, 'AP_dashboard' ), LDB_AP_URL . 'images/icon16.png' ); 
     
    3031            $pages[] = add_submenu_page( 'affiliate_press', __( 'Add New Feed', 'LDB_AP' ), __( 'Add New Feed', 'LDB_AP' ), 'manage_options', 'affiliate_press_add', array( &$this, 'AP_addFeed' ) ); 
    3132            $pages[] = add_submenu_page( 'affiliate_press', __( 'Add New Feed Wizard', 'LDB_AP' ), __( 'Add New Feed Wizard', 'LDB_AP' ), 'manage_options', 'affiliate_press_add_wizard', array( &$this, 'AP_addFeedWizard' ) ); 
    32             foreach( $pages as $page ) 
     33            foreach( $pages as $page ) { 
    3334                add_action( 'admin_print_styles-' . $page, array( &$this, 'AP_loadStyle' ) ); 
     35                add_action('load-' . $page, array( &$help, 'AP_loadHelp' ) ); 
     36            } 
    3437 
    3538            $hiddenpages = array( 
     
    4447        function AP_registerHiddenPages( $pages, $parent ) { 
    4548            global $_registered_pages; 
     49            $help = new LDB_Affiliate_Press_Help; 
    4650            foreach( $pages as $slug => $function ) { 
    4751                $hookname = get_plugin_page_hookname( $slug, $parent ); 
     
    5256                $_registered_pages[ $hookname ] = true; 
    5357                add_action( 'admin_print_styles-' . $hookname, array( &$this, 'AP_loadStyle' ) ); 
     58                add_action('load-' . $hookname, array( &$help, 'AP_loadHelp' ) ); 
    5459            } 
    5560            if( isset( $_GET['page'] ) && isset( $pages[ $_GET['page'] ] ) && isset( $pages[ $_GET['page'] ][1] ) ) 
     
    436441                    $productsarray[ sprintf( __('Products with %s already set', 'LDB_AP' ), $_GET['matches'] ) ] = $setproducts; 
    437442 
    438                 $view_referer = $_SERVER['HTTP_REFERER']; 
     443                $view_referer = $_GET['referer']; 
    439444                $linkto = $this->AP_buildSelect( 'product', $productsarray, false, true ); 
    440445                include( LDB_AP_VIEW_PATH . 'feed-linkto.php' ); 
  • affiliate-press/trunk/includes/class-items-table.php

    r529259 r532731  
    131131                    ) 
    132132                ); 
    133                 $actions['additem'] = sprintf( '<a href="%s">%s</a>', wp_nonce_url( '?page=affiliate_press_linktoproduct&identifier=' .$item['identifier'] . '&matches=' . $item['matches'] . '&name=' . $item['name'], 'linkto' . $item['identifier'] ), __( 'Link to an existing product', 'LDB_AP' ) ); 
     133                $actions['additem'] = sprintf( '<a href="%s">%s</a>', wp_nonce_url( '?page=affiliate_press_linktoproduct&identifier=' .$item['identifier'] . '&matches=' . $item['matches'] . '&name=' . $item['name'] . '&referer=' . urlencode( $_SERVER['REQUEST_URI'] ), 'linkto' . $item['identifier'] ), __( 'Link to an existing product', 'LDB_AP' ) ); 
    134134                return sprintf( '%1$s %2$s', $item['name'], $this->row_actions( $actions ) ); 
    135135            } 
  • affiliate-press/trunk/readme.txt

    r532255 r532731  
    55Requires at least: 3.3 
    66Tested up to: 3.4 
    7 Stable tag: 0.3.5 
     7Stable tag: 0.3.6 
    88 
    99Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 
     
    5757== Changelog == 
    5858 
     59= 0.3.6 = 
     60* Added contextual help to all the pages of the plugin. I'll try to expand these in the near future. 
     61* Removed a dependency on the $_SERVER['HTTP_REFERER'] variable. 
     62* Confirmed that the wizard works perfectly with TradeDoubler product feeds. 
     63 
    5964= 0.3.5 = 
    6065* Confirmed that the wizard also works with tradetracker.net product feeds. 
Note: See TracChangeset for help on using the changeset viewer.