Skip to content

Commit 54ccfde

Browse files
committed
Merge remote-tracking branch 'trigger/MC-41603' into MC-41701
2 parents 4276224 + fb1e4fc commit 54ccfde

17 files changed

+601
-11
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
use Magento\Framework\Data\OptionSourceInterface;
11+
12+
/**
13+
* Source model for PayLater flex banner color
14+
*/
15+
class Color implements OptionSourceInterface
16+
{
17+
/**
18+
* PayLater colors source
19+
*
20+
* @return array
21+
*/
22+
public function toOptionArray(): array
23+
{
24+
return [
25+
['value' => 'blue', 'label' => __('Blue')],
26+
['value' => 'black', 'label' => __('Black')],
27+
['value' => 'white', 'label' => __('White')],
28+
['value' => 'white-no-border', 'label' => __('White No Border')],
29+
['value' => 'gray', 'label' => __('Gray')],
30+
['value' => 'monochrome', 'label' => __('Monochrome')],
31+
['value' => 'grayscale', 'label' => __('Grayscale')]
32+
];
33+
}
34+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
use Magento\Framework\Data\OptionSourceInterface;
11+
12+
/**
13+
* Source model for PayLater banner logo position
14+
*/
15+
class LogoPosition implements OptionSourceInterface
16+
{
17+
/**
18+
* PayLater logo positions source
19+
*
20+
* @return array
21+
*/
22+
public function toOptionArray(): array
23+
{
24+
return [
25+
['value' => 'left', 'label' => __('Left')],
26+
['value' => 'right', 'label' => __('Right')],
27+
['value' => 'top', 'label' => __('Top')]
28+
];
29+
}
30+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
use Magento\Framework\Data\OptionSourceInterface;
11+
12+
/**
13+
* Source model for PayLater banner logo type
14+
*/
15+
class LogoType implements OptionSourceInterface
16+
{
17+
/**
18+
* PayLater logo types source
19+
*
20+
* @return array
21+
*/
22+
public function toOptionArray(): array
23+
{
24+
return [
25+
['value' => 'primary', 'label' => __('Primary')],
26+
['value' => 'alternative', 'label' => __('Alternative')],
27+
['value' => 'inline', 'label' => __('Inline')],
28+
['value' => 'none', 'label' => __('None')]
29+
];
30+
}
31+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
/**
11+
* Source model for PayLater banner position
12+
*/
13+
class Position
14+
{
15+
/**
16+
* PayLater positions source getter for Catalog Product Page
17+
*
18+
* @return array
19+
*/
20+
public function getPositionsCPP(): array
21+
{
22+
return [
23+
'header' => __('Header (center)'),
24+
'sidebar' => __('Near PayPal Credit checkout button')
25+
];
26+
}
27+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
use Magento\Framework\Data\OptionSourceInterface;
11+
12+
/**
13+
* Source model for PayLater banner ratio
14+
*/
15+
class Ratio implements OptionSourceInterface
16+
{
17+
/**
18+
* PayLater ratios source
19+
*
20+
* @return array
21+
*/
22+
public function toOptionArray(): array
23+
{
24+
return [
25+
['value' => '1x1', 'label' => '1x1'],
26+
['value' => '1x4', 'label' => '1x4'],
27+
['value' => '8x1', 'label' => '8x1'],
28+
['value' => '20x1', 'label' => '20x1']
29+
];
30+
}
31+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
use Magento\Framework\Data\OptionSourceInterface;
11+
12+
/**
13+
* Source model for PayLater banner style layout
14+
*/
15+
class StyleLayout implements OptionSourceInterface
16+
{
17+
/**
18+
* PayLater style layouts source
19+
*
20+
* @return array
21+
*/
22+
public function toOptionArray(): array
23+
{
24+
return [
25+
['value' => 'text', 'label' => __('Text')],
26+
['value' => 'flex', 'label' => __('Flex')]
27+
];
28+
}
29+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
use Magento\Framework\Data\OptionSourceInterface;
11+
12+
/**
13+
* Source model for PayLater banner text color
14+
*/
15+
class TextColor implements OptionSourceInterface
16+
{
17+
/**
18+
* PayLater text colors source
19+
*
20+
* @return array
21+
*/
22+
public function toOptionArray(): array
23+
{
24+
return [
25+
['value' => 'black', 'label' => __('Black')],
26+
['value' => 'white', 'label' => __('White')],
27+
['value' => 'monochrome', 'label' => __('Monochrome')],
28+
['value' => 'grayscale', 'label' => __('Grayscale')]
29+
];
30+
}
31+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Paypal\Model\System\Config\Source\PayLater;
9+
10+
use Magento\Framework\Data\OptionSourceInterface;
11+
12+
/**
13+
* Source model for PayLater banner text size
14+
*/
15+
class TextSize implements OptionSourceInterface
16+
{
17+
/**
18+
* PayLater text sizes source
19+
*
20+
* @return array
21+
*/
22+
public function toOptionArray(): array
23+
{
24+
return [
25+
['value' => '10', 'label' => '10px'],
26+
['value' => '11', 'label' => '11px'],
27+
['value' => '12', 'label' => '12px'],
28+
['value' => '13', 'label' => '13px'],
29+
['value' => '14', 'label' => '14px'],
30+
['value' => '15', 'label' => '15px'],
31+
['value' => '16', 'label' => '16px']
32+
];
33+
}
34+
}

0 commit comments

Comments
 (0)