-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add possibility to select banner position
- Loading branch information
1 parent
9070be0
commit 8365334
Showing
9 changed files
with
295 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
/** | ||
* A Magento 2 module named Magestat/CookieLawBanner | ||
* | ||
* This file included in Magestat/CookieLawBanner is licensed under OSL 3.0 | ||
* | ||
* http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
* Please see LICENSE.txt for the full text of the OSL 3.0 license | ||
*/ | ||
|
||
namespace Magestat\CookieLawBanner\Model\Config\Source; | ||
|
||
/** | ||
* Class ButtonPosition | ||
* @package Magestat\CookieLawBanner\Model\Config\Source | ||
*/ | ||
class BannerPosition implements \Magento\Framework\Option\ArrayInterface | ||
{ | ||
/** | ||
* Get options as array | ||
* | ||
* @return array | ||
*/ | ||
public function toOptionArray() | ||
{ | ||
return [ | ||
[ | ||
'value' => 'bottom-right', | ||
'label' => __('Footer Right Block') | ||
], | ||
[ | ||
'value' => 'bottom-left', | ||
'label' => __('Footer Left Block') | ||
], | ||
[ | ||
'value' => 'bottom-full', | ||
'label' => __('Footer Full Banner') | ||
], | ||
[ | ||
'value' => 'top-right', | ||
'label' => __('Head Right Block') | ||
], | ||
[ | ||
'value' => 'top-left', | ||
'label' => __('Head Left Block') | ||
], | ||
[ | ||
'value' => 'top-full', | ||
'label' => __('Head Full Banner') | ||
] | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.