-
-
Notifications
You must be signed in to change notification settings - Fork 449
New feature: Added "Newsletter Subscription Form" widget #4095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
elidrissidev
merged 13 commits into
OpenMage:main
from
empiricompany:widget-newsletter-form
Jul 31, 2024
Merged
Changes from 5 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8a86c97
add newsletter subscribe form widget
empiricompany cf01dc5
add translation
empiricompany 387699b
fix php cs
empiricompany 45d8502
update copyright
empiricompany edb9542
newline at the end
fballiano 2d09151
Update app/code/core/Mage/Newsletter/Block/Widget/Subscribe.php
empiricompany b37b5f4
Merge branch 'main' into widget-newsletter-form
empiricompany f934391
Merge branch 'main' into widget-newsletter-form
empiricompany 1f08822
Merge branch 'main' into widget-newsletter-form
kiatng 4e63543
Merge branch 'main' into widget-newsletter-form
empiricompany 1f3d6b4
update labels
empiricompany 3f3b42c
update translation
empiricompany d67bfc4
add translation default template
empiricompany File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,31 @@ | ||
<?php | ||
/** | ||
* OpenMage | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available at https://opensource.org/license/osl-3-0-php | ||
* | ||
* @category Mage | ||
* @package Mage_Newsletter | ||
* @copyright Copyright (c) 2006-2020 Magento, Inc. (https://www.magento.com) | ||
* @copyright Copyright (c) 2024 The OpenMage Contributors (https://www.openmage.org) | ||
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
/** | ||
* Newsletter subscribe form Widget | ||
* | ||
* @category Mage | ||
* @package Mage_Newsletter | ||
* @method string getSuccessMessage() | ||
* @method string getErrorMessage() | ||
* @method string getFormActionUrl() | ||
*/ | ||
class Mage_Newsletter_Block_Widget_Subscribe extends Mage_Newsletter_Block_Subscribe implements Mage_Widget_Block_Interface | ||
{ | ||
protected function _construct() | ||
{ | ||
parent::_construct(); | ||
} | ||
} |
This file contains hidden or 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,38 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
/** | ||
* OpenMage | ||
* | ||
* This source file is subject to the Academic Free License (AFL 3.0) | ||
* that is bundled with this package in the file LICENSE_AFL.txt. | ||
* It is also available at https://opensource.org/license/afl-3-0-php | ||
* | ||
* @category Mage | ||
* @package Mage_Newsletter | ||
* @copyright Copyright (c) 2006-2020 Magento, Inc. (https://www.magento.com) | ||
* @copyright Copyright (c) 2024 The OpenMage Contributors (https://www.openmage.org) | ||
* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) | ||
*/ | ||
--> | ||
<widgets> | ||
<newsletter_subscribe type="newsletter/widget_subscribe" translate="name description" module="newsletter"> | ||
<name>Newsletter Subscribe Form</name> | ||
empiricompany marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<description>Newsletter Subscribe Form</description> | ||
<is_email_compatible>0</is_email_compatible> | ||
<parameters> | ||
<template translate="label"> | ||
<label>Template</label> | ||
<visible>1</visible> | ||
<type>select</type> | ||
<value>newsletter/subscribe.phtml</value> | ||
<values> | ||
<default translate="label"> | ||
<value>newsletter/subscribe.phtml</value> | ||
<label>Newsletter Form Default Template</label> | ||
empiricompany marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</default> | ||
</values> | ||
<sort_order>10</sort_order> | ||
</template> | ||
</parameters> | ||
</newsletter_subscribe> | ||
</widgets> |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.