Skip to content

Commit 864ebe6

Browse files
author
Rich Leland
committed
Tweak language for templates and api key fields
1 parent dda90ff commit 864ebe6

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

trunk/admin.widget.class.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public function render_password_field()
222222

223223
printf(
224224
'<input type="text" id="password" name="sp_settings[password]" class="regular-text" value="%s" /><br/>
225-
<small><ul><li>For SMTP, use a SparkPost API key with <strong>Send via SMTP</strong> permission</li> <li>For HTTP API, use API Key with <strong>Transmissions: Read/Write</strong> permission</li><a href="https://support.sparkpost.com/customer/portal/articles/1933377-create-api-keys" target="_blank">Need help creating a SparkPost API key?</a></small>',
225+
<small><ul><li>For SMTP, set up an API key with the <strong>Send via SMTP</strong> permission</li> <li>For HTTP API, set up an API Key with the <strong>Transmissions: Read/Write</strong> permission</li><a href="https://support.sparkpost.com/customer/portal/articles/1933377-create-api-keys" target="_blank">Need help creating a SparkPost API key?</a></small>',
226226
isset($api_key) ? $api_key : ''
227227
);
228228
}
@@ -232,14 +232,13 @@ public function render_template_field()
232232
?>
233233
<input type="text" id="template" name="sp_settings[template]" class="regular-text"
234234
value="<?php echo $this->options['template']; ?>"/><br/>
235-
<small><strong>Important Notes</strong>
235+
<small>
236236
<ul>
237-
<li>- Leave blank not to use Template.</li>
238-
<li>- Only valid for HTTP API.</li>
239-
<li>- The template must have a variable in it named <code>{{{content}}}</code>. Note the triple curly braces, which are required to include non-escaped HTML.
240-
</li>
241-
<li>- Use <code>{{subject}}</code> and <code>{{from_name}}</code> to substitute Subject and From Name respectively</li>
242-
<li>- From email override has no effect.</li>
237+
<li>- Templates can only be used with the HTTP API.</li>
238+
<li>- Leave this field blank to disable use of a template.</li>
239+
<li>- The template must have a variable in it named <code>{{{content}}}</code>. Note the triple curly braces, which are required to include non-escaped HTML.</li>
240+
<li>- Use <code>{{subject}}</code> and <code>{{from_name}}</code> in your template to allow substitution of Subject and From Name respectively.</li>
241+
<li>- From email override has no effect when using a template.</li>
243242
</ul>
244243
</small>
245244
<?php

0 commit comments

Comments
 (0)