Skip to content

Commit ebff0f9

Browse files
authored
Merge pull request #6 from paynl/feature/PLUG-3689
PLUG-3689 - Update in3 logo
2 parents 6437bbf + f030ac2 commit ebff0f9

File tree

6 files changed

+22
-5
lines changed

6 files changed

+22
-5
lines changed

app/code/community/Pay/Payment/Block/Adminhtml/Paymentmethods.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
3434
$output = '';
3535
foreach ($arrOptions as $option)
3636
{
37-
$output .= '<img src="' . $option->getImage() . '" /> ' . $option->getName() . '<br />';
37+
$output .= '<img src="' . $option->getImage() . '" width="20"/>' . $option->getName() . '<br />';
3838
}
3939
} catch (Exception $e)
4040
{

app/code/community/Pay/Payment/Block/Form/Abstract.php

+14-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,20 @@ protected function _construct()
3737
$mark = new $markClass;
3838
$mark->setTemplate('pay/payment/mark.phtml')
3939
->setPaymentMethodImageSrc('https://static.pay.nl/payment_profiles/' . $iconSize . '/' . $this->paymentMethodId . '.png')
40-
->setPaymentMethodName($this->paymentMethodName);
40+
->setPaymentMethodName($this->paymentMethodName)
41+
->setIconSizeWidth('')
42+
->setIconSizeHeight('');
43+
44+
if ($this->paymentMethodId == 1813) {
45+
$iconSize = explode("x", $iconSize);
46+
47+
$mark->setTemplate('pay/payment/mark.phtml')
48+
->setPaymentMethodImageSrc('https://static.pay.nl/payment_profiles/100x100/' . $this->paymentMethodId . '.svg')
49+
->setPaymentMethodName($this->paymentMethodName)
50+
->setIconSizeWidth($iconSize[0] + 10)
51+
->setIconSizeHeight($iconSize[1]);
52+
}
53+
4154

4255
$fee = $this->getPaymentCharge();
4356

app/code/community/Pay/Payment/Helper/Data.php

+4
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,10 @@ private function _saveOptions($paymentMethods, $store = null)
405405
foreach ($paymentMethods as $paymentMethod) {
406406
$image = 'https://static.pay.nl/payment_profiles/20x20/' . $paymentMethod['id'] . '.png';
407407

408+
if ($paymentMethod['id'] == 1813) {
409+
$image = 'https://static.pay.nl/payment_profiles/100x100/' . $paymentMethod['id'] . '.svg';
410+
}
411+
408412
/**
409413
* @var Pay_Payment_Model_Option $objOption
410414
*/

app/code/community/Pay/Payment/etc/config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<config>
33
<modules>
44
<Pay_Payment>
5-
<version>3.16.1</version>
5+
<version>3.16.2</version>
66
</Pay_Payment>
77
</modules>
88
<global>
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<img src="<?php echo $this->escapeHtml($this->getPaymentMethodImageSrc())?>" alt="<?php echo $this->getPaymentMethodName() ?>" class="v-middle" style="padding-right:10px;" />&nbsp;
1+
<img src="<?php echo $this->escapeHtml($this->getPaymentMethodImageSrc())?>" height="<?php echo $this->getIconSizeHeight()?>" width="<?php echo $this->getIconSizeWidth()?>" alt="<?php echo $this->getPaymentMethodName() ?>" class="v-middle" style="padding-right:10px;" />&nbsp;
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<img src="<?php echo $this->escapeHtml($this->getPaymentMethodImageSrc())?>" alt="<?php echo $this->getPaymentMethodName() ?>" class="v-middle" style="padding-right:10px;" />&nbsp;
1+
<img src="<?php echo $this->escapeHtml($this->getPaymentMethodImageSrc())?>" height="<?php echo $this->getIconSizeHeight()?>" width="<?php echo $this->getIconSizeWidth()?>" alt="<?php echo $this->getPaymentMethodName() ?>" class="v-middle" style="padding-right:10px;" />&nbsp;

0 commit comments

Comments
 (0)