Fixed insecure credit card type images in the checkout page
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 11 Jun 2015 15:47:30 +0000 (11:47 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 11 Jun 2015 15:47:30 +0000 (11:47 -0400)
classes/glmMesGateway.php
defines.php

index 44ed9e8..43f2726 100644 (file)
@@ -259,12 +259,6 @@ class GlmMesGateway extends WC_Payment_Gateway
             $this->settings['cvv_required'] = $this->settings['cvv_required'];
 
             // Add credit cards available to the description
-            $this->description .= '<h4>Credit Cards Accepted</h4><p>' . ($this->settings['visa'] ==
-                     'yes' ? 'VISA&nbsp;&nbsp;' : '') . ($this->settings['mastercard'] ==
-                     'yes' ? 'MASTERCARD&nbsp;&nbsp;' : '') . ($this->settings['amex'] ==
-                     'yes' ? 'AMEX&nbsp;&nbsp;' : '') . ($this->settings['discover'] ==
-                     'yes' ? 'DISCOVER&nbsp;&nbsp;' : '') . '</p>';
-/*
             $this->description .= '<h4>Credit Cards Accepted</h4><p>' . ($this->settings['visa'] ==
                      'yes' ? '<img src="' . GLM_MES_ASSETS_URL . '/visa.png">' : '') . ($this->settings['mastercard'] ==
                      'yes' ? '<img src="' . GLM_MES_ASSETS_URL .
@@ -272,7 +266,7 @@ class GlmMesGateway extends WC_Payment_Gateway
                      'yes' ? '<img src="' . GLM_MES_ASSETS_URL . '/amex.png">' : '') . ($this->settings['discover'] ==
                      'yes' ? '<img src="' . GLM_MES_ASSETS_URL .
                      '/discover.png">' : '') . '</p>';
-*/
+
 
             // Check for SSL
             add_action('admin_notices', array(
index e937608..1700ed1 100644 (file)
@@ -30,9 +30,9 @@ $pageUri = explode('?', $_SERVER['REQUEST_URI']);               // Bust this up
 
 // URLs
 $pUrl = plugins_url( GLM_MES_DIR );
-
 define('GLM_MES_URL', $pUrl.'/wp-content/plugins/'.GLM_MES_DIR);
-define('GLM_MES_ASSETS_URL', GLM_MES_URL.'/assets');
+//define('GLM_MES_ASSETS_URL', plugins_url( 'assets', __FILE__ ));
+define('GLM_MES_ASSETS_URL', plugins_url( GLM_MES_DIR.'/assets' ));