- Change default URLs to blank;
- Fix image, button, social icon URL placeholders; - Remove links to example.org.
This commit is contained in:
@ -19,7 +19,7 @@ define([
|
|||||||
return this._getDefaults({
|
return this._getDefaults({
|
||||||
type: 'button',
|
type: 'button',
|
||||||
text: 'Button',
|
text: 'Button',
|
||||||
url: 'http://google.com',
|
url: '',
|
||||||
styles: {
|
styles: {
|
||||||
block: {
|
block: {
|
||||||
backgroundColor: '#ff0000',
|
backgroundColor: '#ff0000',
|
||||||
|
@ -17,8 +17,8 @@ define([
|
|||||||
defaults: function() {
|
defaults: function() {
|
||||||
return this._getDefaults({
|
return this._getDefaults({
|
||||||
type: 'image',
|
type: 'image',
|
||||||
link: 'http://example.org',
|
link: '',
|
||||||
src: 'no-image.png',
|
src: '',
|
||||||
alt: 'An image of...',
|
alt: 'An image of...',
|
||||||
fullWidth: true, // true | false
|
fullWidth: true, // true | false
|
||||||
width: '64px',
|
width: '64px',
|
||||||
|
@ -383,7 +383,7 @@ define([
|
|||||||
{
|
{
|
||||||
type: 'socialIcon',
|
type: 'socialIcon',
|
||||||
iconType: 'facebook',
|
iconType: 'facebook',
|
||||||
link: 'http://example.com',
|
link: 'http://www.facebook.com',
|
||||||
image: App.getAvailableStyles().get('socialIconSets.default.facebook'),
|
image: App.getAvailableStyles().get('socialIconSets.default.facebook'),
|
||||||
height: '32px',
|
height: '32px',
|
||||||
width: '32px',
|
width: '32px',
|
||||||
@ -392,7 +392,7 @@ define([
|
|||||||
{
|
{
|
||||||
type: 'socialIcon',
|
type: 'socialIcon',
|
||||||
iconType: 'twitter',
|
iconType: 'twitter',
|
||||||
link: 'http://example.com',
|
link: 'http://www.twitter.com',
|
||||||
image: App.getAvailableStyles().get('socialIconSets.default.twitter'),
|
image: App.getAvailableStyles().get('socialIconSets.default.twitter'),
|
||||||
height: '32px',
|
height: '32px',
|
||||||
width: '32px',
|
width: '32px',
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 26 KiB |
@ -102,7 +102,7 @@ class NewsletterBlank121Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://example.org",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo"),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
|
@ -102,7 +102,7 @@ class NewsletterBlank12Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://example.org",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake Logo"),
|
"alt" => __("Fake Logo"),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
|
@ -102,7 +102,7 @@ class NewsletterBlank13Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://example.org",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo"),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
|
@ -102,7 +102,7 @@ class NewsletterBlank1Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://example.org",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo"),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
|
@ -102,7 +102,7 @@ class PostNotificationsBlank1Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://example.org",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => "fake-logo",
|
"alt" => "fake-logo",
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
|
@ -61,7 +61,7 @@ class SimpleText {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://example.org",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo"),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
|
@ -102,7 +102,7 @@ class WelcomeBlank12Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://example.org",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo"),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
|
@ -102,7 +102,7 @@ class WelcomeBlank1Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://example.org",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo"),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
|
@ -990,7 +990,7 @@
|
|||||||
},
|
},
|
||||||
button: {
|
button: {
|
||||||
text: '<%= __('Button') %>',
|
text: '<%= __('Button') %>',
|
||||||
url: 'http://example.org',
|
url: '',
|
||||||
styles: {
|
styles: {
|
||||||
block: {
|
block: {
|
||||||
backgroundColor: '#2ea1cd',
|
backgroundColor: '#2ea1cd',
|
||||||
@ -1045,10 +1045,8 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
image: {
|
image: {
|
||||||
link: 'http://example.org',
|
link: '',
|
||||||
src: '<%= image_url(
|
src: '',
|
||||||
'newsletter_editor/pigeon.png'
|
|
||||||
) %>',
|
|
||||||
alt: '<%= __('An image of...') %>',
|
alt: '<%= __('An image of...') %>',
|
||||||
fullWidth: false,
|
fullWidth: false,
|
||||||
width: '281px',
|
width: '281px',
|
||||||
@ -1118,7 +1116,7 @@
|
|||||||
{
|
{
|
||||||
type: 'socialIcon',
|
type: 'socialIcon',
|
||||||
iconType: 'facebook',
|
iconType: 'facebook',
|
||||||
link: 'http://example.com',
|
link: 'http://www.facebook.com',
|
||||||
image: '<%= image_url(
|
image: '<%= image_url(
|
||||||
'newsletter_editor/social-icons/01-social/Facebook.png'
|
'newsletter_editor/social-icons/01-social/Facebook.png'
|
||||||
) %>',
|
) %>',
|
||||||
@ -1129,7 +1127,7 @@
|
|||||||
{
|
{
|
||||||
type: 'socialIcon',
|
type: 'socialIcon',
|
||||||
iconType: 'twitter',
|
iconType: 'twitter',
|
||||||
link: 'http://example.com',
|
link: 'http://www.twitter.com',
|
||||||
image: '<%= image_url(
|
image: '<%= image_url(
|
||||||
'newsletter_editor/social-icons/01-social/Twitter.png'
|
'newsletter_editor/social-icons/01-social/Twitter.png'
|
||||||
) %>',
|
) %>',
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<label>
|
<label>
|
||||||
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Link') %></div>
|
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Link') %></div>
|
||||||
<div class="mailpoet_form_field_input_option">
|
<div class="mailpoet_form_field_input_option">
|
||||||
<input type="text" name="url" class="mailpoet_input mailpoet_field_button_url" value="{{ model.url }}" />
|
<input type="text" name="url" class="mailpoet_input mailpoet_field_button_url" value="{{ model.url }}" placeholder="http://" />
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<label>
|
<label>
|
||||||
<div class="mailpoet_form_field_title"><%= __('Address') %></div>
|
<div class="mailpoet_form_field_title"><%= __('Address') %></div>
|
||||||
<div class="mailpoet_form_field_input_option">
|
<div class="mailpoet_form_field_input_option">
|
||||||
<input type="text" name="src" class="mailpoet_input mailpoet_field_image_address" value="{{ src }}" /><br />
|
<input type="text" name="src" class="mailpoet_input mailpoet_field_image_address" value="{{ src }}" placeholder="http://" /><br />
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<%= __('Image') %>
|
<%= __('Image') %>
|
||||||
</div>
|
</div>
|
||||||
<div class="mailpoet_social_icon_settings_form_element">
|
<div class="mailpoet_social_icon_settings_form_element">
|
||||||
<input type="text" name="image" class="mailpoet_social_icon_field_image" value="{{ model.image }}" />
|
<input type="text" name="image" class="mailpoet_social_icon_field_image" value="{{ model.image }}" placeholder="http://" />
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
@ -40,9 +40,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mailpoet_social_icon_settings_form_element">
|
<div class="mailpoet_social_icon_settings_form_element">
|
||||||
{{#ifCond iconType '==' 'email'}}
|
{{#ifCond iconType '==' 'email'}}
|
||||||
<input type="text" name="link" class="mailpoet_social_icon_field_link" value="{{emailFromMailto model.link }}" /><br />
|
<input type="text" name="link" class="mailpoet_social_icon_field_link" value="{{emailFromMailto model.link }}" placeholder="example@example.org" /><br />
|
||||||
{{else}}
|
{{else}}
|
||||||
<input type="text" name="link" class="mailpoet_social_icon_field_link" value="{{ model.link }}" /><br />
|
<input type="text" name="link" class="mailpoet_social_icon_field_link" value="{{ model.link }}" placeholder="http://" /><br />
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
|
Reference in New Issue
Block a user