Temporarily removed card images from checkout till http/https can be sorted out for...
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 11 Jun 2015 14:59:11 +0000 (10:59 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 11 Jun 2015 14:59:11 +0000 (10:59 -0400)
classes/glmMesGateway.php
defines.php

index 53458e5..44ed9e8 100644 (file)
@@ -259,6 +259,12 @@ 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 .
@@ -266,6 +272,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(
@@ -1059,4 +1066,4 @@ class GlmMesGateway extends WC_Payment_Gateway
     }
 }
 
-?>
\ No newline at end of file
+?>
index 77bca92..e937608 100644 (file)
@@ -29,12 +29,13 @@ $pageUri = explode('?', $_SERVER['REQUEST_URI']);               // Bust this up
 
 
 // URLs
-// $pUrl = plugins_url( GLM_MES_DIR );
-$pUrl = get_bloginfo('url');
+$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');
 
+
+
 // Optional Gateway Icon
 //define('GLM_MES_ICON', GLM_MES_ASSETS_URL.'/{place_icon_filename_here');
 define('GLM_MES_ICON', null);
@@ -42,4 +43,4 @@ define('GLM_MES_ICON', null);
 // Other Settings
 define('GLM_MES_EXPIRE_YEARS', 10);
 
-?>
\ No newline at end of file
+?>