WordPress.org

Plugin Directory

Changeset 529401


Ignore:
Timestamp:
04/10/12 08:37:53 (2 years ago)
Author:
ldebrouwer
Message:

Version 0.3.2. Some minor improvements.

Location:
affiliate-press
Files:
4 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • affiliate-press/tags/0.3.2/affiliate-press.php

    r529259 r529401  
    22/** 
    33 * @package Affiliate_Press 
    4  * @version 0.3.1 
     4 * @version 0.3.2 
    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.1 
     11Version: 0.3.2 
    1212Author URI: http://lucdebrouwer.nl/ 
    1313*/ 
     
    3131function AP_activation() { 
    3232    include( LDB_AP_PATH . 'affiliate-press-upgrade.php' ); 
    33     update_option( 'LDB_Affiliate_Press_Version', '0.3.1' ); 
     33    update_option( 'LDB_Affiliate_Press_Version', '0.3.2' ); 
    3434    wp_schedule_event( time(), 'hourly', 'AP_cronjob' ); 
    3535} 
  • affiliate-press/tags/0.3.2/includes/class-affiliate-press.php

    r529259 r529401  
    6464        function AP_loadStyle() { 
    6565            wp_enqueue_style( 'APstyle', LDB_AP_URL . 'styles.css' ); 
     66            wp_enqueue_script( 'ap_message', LDB_AP_SCRIPTS_URL . 'message.js' ); 
    6667            wp_enqueue_script( 'postbox' ); 
    6768            wp_enqueue_script( 'dashboard' ); 
     
    287288        function AP_editFeed() { 
    288289            wp_enqueue_script( 'ap_expand', LDB_AP_SCRIPTS_URL . 'expand.js' ); 
     290            wp_enqueue_script( 'ap_message', LDB_AP_SCRIPTS_URL . 'message.js' ); 
    289291            if( isset( $_GET['feed'] ) && isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'edit' . $_GET['feed'] ) ) { 
    290292                $feed = @$this->AP_getFeed( $_REQUEST['feed'] ); 
     
    300302        function AP_viewFeed() { 
    301303            wp_enqueue_script( 'ap_expand', LDB_AP_SCRIPTS_URL . 'expand.js' ); 
     304            wp_enqueue_script( 'ap_message', LDB_AP_SCRIPTS_URL . 'message.js' ); 
    302305            if( isset( $_GET['post'] ) ) { 
    303306                $postinfo = get_post( $_GET['post'] ); 
     
    319322        function AP_linkToProduct() { 
    320323            wp_enqueue_script( 'ap_expand', LDB_AP_SCRIPTS_URL . 'expand.js' ); 
     324            wp_enqueue_script( 'ap_message', LDB_AP_SCRIPTS_URL . 'message.js' ); 
    321325            if( isset( $_GET['identifier'] ) && isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'linkto' . $_GET['identifier'] ) ) { 
    322326                $products = array(); 
     
    412416            $messages = ''; 
    413417            foreach( $this->messages as $message ){ 
    414                 $messages.= '<div class="message ' . $message[1] . '">' . $message[0] . '</div>' . "\n"; 
     418                $messages.= '<div class="message ' . $message[1] . '">' . $message[0] . '<a class="ap_message_close" href="javascript:;">' . __( 'Close', 'LDB_AP' ) . '</a></div>' . "\n"; 
    415419            } 
    416420            $this->messages = array(); 
  • affiliate-press/tags/0.3.2/readme.txt

    r529261 r529401  
    55Requires at least: 3.3 
    66Tested up to: 3.4 
    7 Stable tag: 0.3.1 
     7Stable tag: 0.3.2 
    88 
    99Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 
     
    5353== Changelog == 
    5454 
     55= 0.3.2 = 
     56* Minor CSS change. 
     57* Alerts/Messages are now dismissible. 
     58 
    5559= 0.3.1 = 
    5660* Added support for cron jobs. They will process all prices every hour for now. Later I'll make this manageable through a settings page. 
  • affiliate-press/tags/0.3.2/styles.css

    r529259 r529401  
    7070    text-align: center; 
    7171} 
     72 
     73.ap_close { 
     74    padding-right: 15px; 
     75} 
     76 
     77.ap_message_close { 
     78    float: right; 
     79    display: block; 
     80    background: transparent url('images/close.png') no-repeat right top; 
     81    width: 16px; 
     82    height: 16px; 
     83    font-size: 0; 
     84    line-height: 0; 
     85    text-indent: -9999px; 
     86} 
  • affiliate-press/trunk/affiliate-press.php

    r529259 r529401  
    22/** 
    33 * @package Affiliate_Press 
    4  * @version 0.3.1 
     4 * @version 0.3.2 
    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.1 
     11Version: 0.3.2 
    1212Author URI: http://lucdebrouwer.nl/ 
    1313*/ 
     
    3131function AP_activation() { 
    3232    include( LDB_AP_PATH . 'affiliate-press-upgrade.php' ); 
    33     update_option( 'LDB_Affiliate_Press_Version', '0.3.1' ); 
     33    update_option( 'LDB_Affiliate_Press_Version', '0.3.2' ); 
    3434    wp_schedule_event( time(), 'hourly', 'AP_cronjob' ); 
    3535} 
  • affiliate-press/trunk/includes/class-affiliate-press.php

    r529259 r529401  
    6464        function AP_loadStyle() { 
    6565            wp_enqueue_style( 'APstyle', LDB_AP_URL . 'styles.css' ); 
     66            wp_enqueue_script( 'ap_message', LDB_AP_SCRIPTS_URL . 'message.js' ); 
    6667            wp_enqueue_script( 'postbox' ); 
    6768            wp_enqueue_script( 'dashboard' ); 
     
    287288        function AP_editFeed() { 
    288289            wp_enqueue_script( 'ap_expand', LDB_AP_SCRIPTS_URL . 'expand.js' ); 
     290            wp_enqueue_script( 'ap_message', LDB_AP_SCRIPTS_URL . 'message.js' ); 
    289291            if( isset( $_GET['feed'] ) && isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'edit' . $_GET['feed'] ) ) { 
    290292                $feed = @$this->AP_getFeed( $_REQUEST['feed'] ); 
     
    300302        function AP_viewFeed() { 
    301303            wp_enqueue_script( 'ap_expand', LDB_AP_SCRIPTS_URL . 'expand.js' ); 
     304            wp_enqueue_script( 'ap_message', LDB_AP_SCRIPTS_URL . 'message.js' ); 
    302305            if( isset( $_GET['post'] ) ) { 
    303306                $postinfo = get_post( $_GET['post'] ); 
     
    319322        function AP_linkToProduct() { 
    320323            wp_enqueue_script( 'ap_expand', LDB_AP_SCRIPTS_URL . 'expand.js' ); 
     324            wp_enqueue_script( 'ap_message', LDB_AP_SCRIPTS_URL . 'message.js' ); 
    321325            if( isset( $_GET['identifier'] ) && isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'linkto' . $_GET['identifier'] ) ) { 
    322326                $products = array(); 
     
    412416            $messages = ''; 
    413417            foreach( $this->messages as $message ){ 
    414                 $messages.= '<div class="message ' . $message[1] . '">' . $message[0] . '</div>' . "\n"; 
     418                $messages.= '<div class="message ' . $message[1] . '">' . $message[0] . '<a class="ap_message_close" href="javascript:;">' . __( 'Close', 'LDB_AP' ) . '</a></div>' . "\n"; 
    415419            } 
    416420            $this->messages = array(); 
  • affiliate-press/trunk/readme.txt

    r529261 r529401  
    55Requires at least: 3.3 
    66Tested up to: 3.4 
    7 Stable tag: 0.3.1 
     7Stable tag: 0.3.2 
    88 
    99Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 
     
    5353== Changelog == 
    5454 
     55= 0.3.2 = 
     56* Minor CSS change. 
     57* Alerts/Messages are now dismissible. 
     58 
    5559= 0.3.1 = 
    5660* Added support for cron jobs. They will process all prices every hour for now. Later I'll make this manageable through a settings page. 
  • affiliate-press/trunk/styles.css

    r529259 r529401  
    7070    text-align: center; 
    7171} 
     72 
     73.ap_close { 
     74    padding-right: 15px; 
     75} 
     76 
     77.ap_message_close { 
     78    float: right; 
     79    display: block; 
     80    background: transparent url('images/close.png') no-repeat right top; 
     81    width: 16px; 
     82    height: 16px; 
     83    font-size: 0; 
     84    line-height: 0; 
     85    text-indent: -9999px; 
     86} 
Note: See TracChangeset for help on using the changeset viewer.