WordPress.org

Plugin Directory

Changeset 1685846


Ignore:
Timestamp:
06/26/17 23:06:29 (3 months ago)
Author:
j.conti
Message:
  • Added checkout logo customization
  • Updated spinner image
File:
1 edited

Legend:

Unmodified
Added
Removed
  • woo-redsys-gateway-light/trunk/woocommerce-redsys.php

    r1677930 r1685846  
    22/* 
    33Plugin Name: WooCommerce Redsys Gateway Light 
    4 Plugin URI: https://wordpress.org/plugins/woo-redsys-gateway-light/ 
    5 Description: Extends WooCommerce with a RedSys gateway, supported banks here: http://www.redsys.es/wps/wcm/connect/Redsys_es/redsys.es/areaCorporativa/nuestrosSocios/ 
    6 Version: 1.0.0 
     4Plugin URI: http://woothemes.com/woocommerce 
     5Description: Extends WooCommerce with a RedSys gateway, supported banks here: http://www.redsys.es/wps/wcm/connect/Redsys_es/redsys.es/areaCorporativa/nuestrosSocios/. Only support EUROS € currency. 
     6Version: 1.0.1 
    77Author: José Conti 
    88Author URI: https://www.joseconti.com/ 
     
    1616 
    1717 
    18 define( 'REDSYS_WOOCOMMERCE_VERSION', '1.0.0' ); 
     18define( 'REDSYS_WOOCOMMERCE_VERSION', '1.0.1' ); 
    1919define( 'REDSYS_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 
    2020 
     
    103103            global $woocommerce, $checkfor254; 
    104104            $this->id               = 'redsys'; 
    105             $this->icon             = apply_filters( 'woocommerce_redsys_icon', plugins_url( basename( plugin_dir_path(__FILE__) ), basename( __FILE__ ) ) . '/assets/images/redsys.png' ); 
     105            if ( ! empty( $this->get_option( 'logo' ) ) ) { 
     106                $logo_url           = $this->get_option( 'logo' ); 
     107                $this->icon         = apply_filters( 'woocommerce_redsys_icon', $logo_url ); 
     108            } else { 
     109                $this->icon         = apply_filters( 'woocommerce_redsys_icon', plugins_url( basename( plugin_dir_path(__FILE__) ), basename( __FILE__ ) ) . '/assets/images/redsys.png' ); 
     110            } 
    106111            $this->has_fields       = false; 
    107112            $this->liveurl          = 'https://sis.redsys.es/sis/realizarPago'; 
     
    118123            $this->title            = $this->get_option( 'title'            ); 
    119124            $this->description      = $this->get_option( 'description'      ); 
     125            $this->logo             = $this->get_option( 'logo'             ); 
    120126            $this->customer         = $this->get_option( 'customer'         ); 
    121127            $this->commercename     = $this->get_option( 'commercename'     ); 
     
    421427                wc_enqueue_js( ' 
    422428                jQuery("body").block({ 
    423                     message: "<img src=\"' . esc_url( apply_filters( 'woocommerce_ajax_loader_url', $woocommerce->plugin_url() . '/assets/images/ajax-loader.gif' ) ) . '\" alt=\"Redirecting&hellip;\" style=\"float:left; margin-right: 10px;\" />'.__( 'Thank you for your order. We are now redirecting you to Servired/RedSys to make the payment.', 'woo-redsys-gateway-light' ).'", 
     429                    message: "<img src=\"' . esc_url( apply_filters( 'woocommerce_ajax_loader_url', $woocommerce->plugin_url() . '/assets/images/select2-spinner.gif' ) ) . '\" alt=\"Redirecting&hellip;\" style=\"float:left; margin-right: 10px;\" />'.__( 'Thank you for your order. We are now redirecting you to Servired/RedSys to make the payment.', 'woo-redsys-gateway-light' ).'", 
    424430                    overlayCSS: 
    425431                    { 
     
    457463                wc_enqueue_js( ' 
    458464                jQuery("body").block({ 
    459                     message: "<img src=\"' . esc_url( apply_filters( 'woocommerce_ajax_loader_url', $woocommerce->plugin_url() . '/assets/images/ajax-loader.gif' ) ) . '\" alt=\"Redirecting&hellip;\" style=\"float:left; margin-right: 10px;\" />'.__( 'Thank you for your order. We are now redirecting you to Servired/RedSys to make the payment.', 'woo-redsys-gateway-light' ).'", 
     465                    message: "<img src=\"' . esc_url( apply_filters( 'woocommerce_ajax_loader_url', $woocommerce->plugin_url() . '/assets/images/select2-spinner.gif' ) ) . '\" alt=\"Redirecting&hellip;\" style=\"float:left; margin-right: 10px;\" />'.__( 'Thank you for your order. We are now redirecting you to Servired/RedSys to make the payment.', 'woo-redsys-gateway-light' ).'", 
    460466                    overlayCSS: 
    461467                    { 
Note: See TracChangeset for help on using the changeset viewer.