Update plugin to version 1.7
git-svn-id: https://plugins.svn.wordpress.org/prismatic/trunk@1926507 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
c33d044377
commit
bf923b59ec
@ -22,6 +22,7 @@
|
||||
}
|
||||
.fa-code:before {
|
||||
content: "\f121";
|
||||
font-weight: 900;
|
||||
}
|
||||
.fa-cog:before {
|
||||
content: "\f013";
|
||||
|
@ -4,13 +4,13 @@ if (!defined('ABSPATH')) exit;
|
||||
|
||||
function prismatic_section_general() {
|
||||
|
||||
echo '<p>'. esc_html__('Thank you for using the free version of', 'prismatic') .' <a target="_blank" href="https://wordpress.org/plugins/prismatic/">'. esc_html__('Prismatic', 'prismatic') .'</a>.</p>';
|
||||
echo '<p>'. esc_html__('Thank you for using the free version of', 'prismatic') .' <a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/plugins/prismatic/">'. esc_html__('Prismatic', 'prismatic') .'</a>.</p>';
|
||||
|
||||
}
|
||||
|
||||
function prismatic_section_prism() {
|
||||
|
||||
echo '<p>'. esc_html__('Settings for syntax highlighting via', 'prismatic') .' <a target="_blank" href="http://prismjs.com/">'. esc_html__('Prism.js', 'prismatic') .'</a>.</p>';
|
||||
echo '<p>'. esc_html__('Settings for syntax highlighting via', 'prismatic') .' <a target="_blank" rel="noopener noreferrer" href="http://prismjs.com/">'. esc_html__('Prism.js', 'prismatic') .'</a>.</p>';
|
||||
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ function prismatic_section_prism_code() {
|
||||
|
||||
function prismatic_section_highlight() {
|
||||
|
||||
echo '<p>'. esc_html__('Settings for syntax highlighting via', 'prismatic') .' <a target="_blank" href="https://highlightjs.org/">'. esc_html__('Highlight.js', 'prismatic') .'</a>.</p>';
|
||||
echo '<p>'. esc_html__('Settings for syntax highlighting via', 'prismatic') .' <a target="_blank" rel="noopener noreferrer" href="https://highlightjs.org/">'. esc_html__('Highlight.js', 'prismatic') .'</a>.</p>';
|
||||
|
||||
}
|
||||
|
||||
@ -280,6 +280,6 @@ function prismatic_callback_rate($args) {
|
||||
$title = esc_attr__('Help keep Prismatic going strong! A huge THANK YOU for your support!', 'prismatic');
|
||||
$text = isset($args['label']) ? $args['label'] : esc_html__('Show support with a 5-star rating »', 'prismatic');
|
||||
|
||||
echo '<a target="_blank" class="prismatic-rate-plugin" href="'. $href .'" title="'. $title .'">'. $text .'</a>';
|
||||
echo '<a target="_blank" rel="noopener noreferrer" class="prismatic-rate-plugin" href="'. $href .'" title="'. $title .'">'. $text .'</a>';
|
||||
|
||||
}
|
||||
|
@ -23,9 +23,9 @@ function prismatic_register_settings() {
|
||||
add_settings_section('settings_prism', 'Prism.js settings', 'prismatic_section_prism', 'prismatic_options_prism');
|
||||
|
||||
add_settings_field('prism_theme', 'Theme', 'prismatic_callback_select', 'prismatic_options_prism', 'settings_prism', array('id' => 'prism_theme', 'section' => 'prism', 'label' => esc_html__('Prism theme', 'prismatic')));
|
||||
add_settings_field('line_highlight', 'Line Highlight', 'prismatic_callback_checkbox', 'prismatic_options_prism', 'settings_prism', array('id' => 'line_highlight', 'section' => 'prism', 'label' => esc_html__('Enable', 'prismatic') .' <a target="_blank" href="http://prismjs.com/plugins/line-highlight/">'. esc_html__('Line Highlight', 'prismatic') .'</a>'));
|
||||
add_settings_field('line_numbers', 'Line Numbers', 'prismatic_callback_checkbox', 'prismatic_options_prism', 'settings_prism', array('id' => 'line_numbers', 'section' => 'prism', 'label' => esc_html__('Enable', 'prismatic') .' <a target="_blank" href="http://prismjs.com/plugins/line-numbers/">'. esc_html__('Line Numbers', 'prismatic') .'</a>'));
|
||||
add_settings_field('show_language', 'Show Language', 'prismatic_callback_checkbox', 'prismatic_options_prism', 'settings_prism', array('id' => 'show_language', 'section' => 'prism', 'label' => esc_html__('Enable', 'prismatic') .' <a target="_blank" href="http://prismjs.com/plugins/show-language/">'. esc_html__('Show Language', 'prismatic') .'</a>'));
|
||||
add_settings_field('line_highlight', 'Line Highlight', 'prismatic_callback_checkbox', 'prismatic_options_prism', 'settings_prism', array('id' => 'line_highlight', 'section' => 'prism', 'label' => esc_html__('Enable', 'prismatic') .' <a target="_blank" rel="noopener noreferrer" href="http://prismjs.com/plugins/line-highlight/">'. esc_html__('Line Highlight', 'prismatic') .'</a>'));
|
||||
add_settings_field('line_numbers', 'Line Numbers', 'prismatic_callback_checkbox', 'prismatic_options_prism', 'settings_prism', array('id' => 'line_numbers', 'section' => 'prism', 'label' => esc_html__('Enable', 'prismatic') .' <a target="_blank" rel="noopener noreferrer" href="http://prismjs.com/plugins/line-numbers/">'. esc_html__('Line Numbers', 'prismatic') .'</a>'));
|
||||
add_settings_field('show_language', 'Show Language', 'prismatic_callback_checkbox', 'prismatic_options_prism', 'settings_prism', array('id' => 'show_language', 'section' => 'prism', 'label' => esc_html__('Enable', 'prismatic') .' <a target="_blank" rel="noopener noreferrer" href="http://prismjs.com/plugins/show-language/">'. esc_html__('Show Language', 'prismatic') .'</a>'));
|
||||
add_settings_field('singular_only', 'Limit to Posts', 'prismatic_callback_checkbox', 'prismatic_options_prism', 'settings_prism', array('id' => 'singular_only', 'section' => 'prism', 'label' => esc_html__('Limit to Posts and Pages', 'prismatic')));
|
||||
|
||||
add_settings_section('settings_prism_code', 'Code Escaping', 'prismatic_section_prism_code', 'prismatic_options_prism');
|
||||
|
@ -3,72 +3,72 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-05-20 23:38+0000\n"
|
||||
"POT-Creation-Date: 2018-08-18 01:01+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: \n"
|
||||
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION\n"
|
||||
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Loco - https://localise.biz/"
|
||||
"X-Generator: Loco https://localise.biz/"
|
||||
|
||||
#: prismatic.php:149
|
||||
#: prismatic.php:168
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:163
|
||||
#: prismatic.php:182
|
||||
msgid "Click here to rate and review this plugin on WordPress.org"
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:164
|
||||
#: prismatic.php:183
|
||||
msgid "Rate this plugin"
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:167
|
||||
#: prismatic.php:186
|
||||
msgid "Get Prismatic Pro!"
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:168
|
||||
#: prismatic.php:187
|
||||
msgid "Go Pro"
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:188
|
||||
#: prismatic.php:207
|
||||
msgid "Warning:"
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:189
|
||||
#: prismatic.php:208
|
||||
msgid ""
|
||||
"Pro version of Prismatic currently active. Free and Pro versions cannot be "
|
||||
"activated at the same time. "
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:190 prismatic.php:215
|
||||
#: prismatic.php:209 prismatic.php:234
|
||||
msgid "Please return to the"
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:190 prismatic.php:216
|
||||
#: prismatic.php:209 prismatic.php:235
|
||||
msgid "WP Admin Area"
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:191
|
||||
#: prismatic.php:210
|
||||
msgid "and try again."
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:213
|
||||
#: prismatic.php:232
|
||||
msgid "requires WordPress "
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:214
|
||||
#: prismatic.php:233
|
||||
msgid " or higher, and has been deactivated! "
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:216
|
||||
#: prismatic.php:235
|
||||
msgid "to upgrade WordPress and try again."
|
||||
msgstr ""
|
||||
|
||||
#: prismatic.php:236 prismatic.php:242
|
||||
#: prismatic.php:255 prismatic.php:261
|
||||
msgid "Cheatin’ huh?"
|
||||
msgstr ""
|
||||
|
||||
@ -163,35 +163,39 @@ msgstr ""
|
||||
msgid "Solarized"
|
||||
msgstr ""
|
||||
|
||||
#: inc/settings-callbacks.php:123
|
||||
#: inc/settings-callbacks.php:123 lib/highlight/themes.php:293
|
||||
msgid "Tomorrow Night"
|
||||
msgstr ""
|
||||
|
||||
#: inc/settings-callbacks.php:127
|
||||
msgid "Twilight"
|
||||
msgstr ""
|
||||
|
||||
#: inc/settings-callbacks.php:269
|
||||
#: inc/settings-callbacks.php:273
|
||||
msgid "Restore default plugin options"
|
||||
msgstr ""
|
||||
|
||||
#: inc/settings-callbacks.php:276
|
||||
#: inc/settings-callbacks.php:280
|
||||
msgid "Help keep Prismatic going strong! A huge THANK YOU for your support!"
|
||||
msgstr ""
|
||||
|
||||
#: inc/settings-callbacks.php:277 inc/settings-register.php:17
|
||||
#: inc/settings-callbacks.php:281 inc/settings-register.php:17
|
||||
msgid "Show support with a 5-star rating »"
|
||||
msgstr ""
|
||||
|
||||
#: inc/resources-enqueue.php:53
|
||||
#: inc/resources-enqueue.php:77
|
||||
msgid "Confirm Reset"
|
||||
msgstr ""
|
||||
|
||||
#: inc/resources-enqueue.php:54
|
||||
#: inc/resources-enqueue.php:78
|
||||
msgid "Restore default options?"
|
||||
msgstr ""
|
||||
|
||||
#: inc/resources-enqueue.php:55
|
||||
#: inc/resources-enqueue.php:79
|
||||
msgid "Yes, make it so."
|
||||
msgstr ""
|
||||
|
||||
#: inc/resources-enqueue.php:56
|
||||
#: inc/resources-enqueue.php:80
|
||||
msgid "No, abort mission."
|
||||
msgstr ""
|
||||
|
||||
@ -527,10 +531,6 @@ msgstr ""
|
||||
msgid "Tomorrow Night Eighties"
|
||||
msgstr ""
|
||||
|
||||
#: lib/highlight/themes.php:293
|
||||
msgid "Tomorrow Night"
|
||||
msgstr ""
|
||||
|
||||
#: lib/highlight/themes.php:297
|
||||
msgid "Tomorrow"
|
||||
msgstr ""
|
||||
|
@ -7,11 +7,11 @@
|
||||
Author: Jeff Starr
|
||||
Contributors: specialk
|
||||
Author URI: https://plugin-planet.com/
|
||||
Donate link: https://m0n.co/donate
|
||||
Donate link: https://monzillamedia.com/donate.html
|
||||
Requires at least: 4.1
|
||||
Tested up to: 4.9
|
||||
Stable tag: 1.6.1
|
||||
Version: 1.6.1
|
||||
Stable tag: 1.7
|
||||
Version: 1.7
|
||||
Requires PHP: 5.2
|
||||
Text Domain: prismatic
|
||||
Domain Path: /languages
|
||||
@ -137,7 +137,7 @@ if (!class_exists('Prismatic')) {
|
||||
|
||||
private function constants() {
|
||||
|
||||
if (!defined('PRISMATIC_VERSION')) define('PRISMATIC_VERSION', '1.6.1');
|
||||
if (!defined('PRISMATIC_VERSION')) define('PRISMATIC_VERSION', '1.7');
|
||||
if (!defined('PRISMATIC_REQUIRE')) define('PRISMATIC_REQUIRE', '4.1');
|
||||
if (!defined('PRISMATIC_NAME')) define('PRISMATIC_NAME', 'Prismatic');
|
||||
if (!defined('PRISMATIC_AUTHOR')) define('PRISMATIC_AUTHOR', 'Jeff Starr');
|
||||
@ -187,8 +187,8 @@ if (!class_exists('Prismatic')) {
|
||||
$pro_text = esc_html__('Go Pro', 'prismatic');
|
||||
$pro_style = 'padding:1px 5px;color:#eee;background:#333;border-radius:1px;';
|
||||
|
||||
$links[] = '<a target="_blank" href="'. $rate_href .'" title="'. $rate_title .'">'. $rate_text .'</a>';
|
||||
// $links[] = '<a target="_blank" href="'. $pro_href .'" title="'. $pro_title .'" style="'. $pro_style .'">'. $pro_text .'</a>';
|
||||
$links[] = '<a target="_blank" rel="noopener noreferrer" href="'. $rate_href .'" title="'. $rate_title .'">'. $rate_text .'</a>';
|
||||
// $links[] = '<a target="_blank" rel="noopener noreferrer" href="'. $pro_href .'" title="'. $pro_title .'" style="'. $pro_style .'">'. $pro_text .'</a>';
|
||||
|
||||
}
|
||||
|
||||
|
24
readme.txt
24
readme.txt
@ -7,11 +7,11 @@ Tags: code, snippets, syntax, highlight, language, snippet, pre, prettify, pris
|
||||
Author: Jeff Starr
|
||||
Contributors: specialk
|
||||
Author URI: https://plugin-planet.com/
|
||||
Donate link: https://m0n.co/donate
|
||||
Donate link: https://monzillamedia.com/donate.html
|
||||
Requires at least: 4.1
|
||||
Tested up to: 4.9
|
||||
Stable tag: 1.6.1
|
||||
Version: 1.6.1
|
||||
Stable tag: 1.7
|
||||
Version: 1.7
|
||||
Requires PHP: 5.2
|
||||
Text Domain: prismatic
|
||||
Domain Path: /languages
|
||||
@ -23,8 +23,6 @@ Display beautiful syntax-highlighted code snippets with Prism.js or Highlight.js
|
||||
|
||||
== Description ==
|
||||
|
||||
> GDPR-compliant: Prismatic does not collect any user data
|
||||
|
||||
__The only 3-in-1 syntax highlighter!__
|
||||
|
||||
Display beautiful code snippets with Prism.js, Highlight.js, or plain code escaping:
|
||||
@ -82,6 +80,10 @@ _Prismatic escapes only the essentials to keep your code clean._
|
||||
|
||||
[Check out the screenshots](https://wordpress.org/plugins/prismatic/screenshots/) for more details!
|
||||
|
||||
**GDPR**
|
||||
|
||||
This plugin does not collect any user data. So it does _not_ do anything to make your site _less_ compliant with GDPR. I have done my best to ensure that this plugin is 100% GDPR compliant, but I'm not a lawyer so can't guarantee anything. To determine if your site is GDPR compliant, please consult an attorney.
|
||||
|
||||
|
||||
|
||||
== Screenshots ==
|
||||
@ -178,7 +180,7 @@ Basically, the prefix of the class names (i.e., "lang-" or "language-") are the
|
||||
|
||||
__Note:__ In addition to detecting the `language-` and `lang-` prefixes, Highlight.js also will try to auto-detect the language without it being specified. Plus as an option, you can enable the Highlight.js setting, "Support no-prefix class names" to enable use of language identifiers without any `language-` or `lang-` prefix.
|
||||
|
||||
> Pro Tip: For both Prism.js and Highlight.js, language class names also work when added to the <pre> tag.
|
||||
> Pro Tip: Language class names work when added to the <pre> tag for both Prism.js and Highlight.js.
|
||||
|
||||
|
||||
|
||||
@ -411,7 +413,7 @@ Send any questions or feedback via my [contact form](https://perishablepress.com
|
||||
|
||||
== Support development of this plugin ==
|
||||
|
||||
I develop and maintain this free plugin with love for the WordPress community. To show support, you can [make a cash donation](https://m0n.co/donate), [bitcoin donation](https://m0n.co/bitcoin), or purchase one of my books:
|
||||
I develop and maintain this free plugin with love for the WordPress community. To show support, you can [make a donation](https://monzillamedia.com/donate.html) or purchase one of my books:
|
||||
|
||||
* [The Tao of WordPress](https://wp-tao.com/)
|
||||
* [Digging into WordPress](https://digwp.com/)
|
||||
@ -431,6 +433,14 @@ Links, tweets and likes also appreciated. Thank you! :)
|
||||
|
||||
== Changelog ==
|
||||
|
||||
**1.7 (2018/08/17)**
|
||||
|
||||
* Adds `rel="noopener noreferrer"` to all [blank-target links](https://perishablepress.com/wordpress-blank-target-vulnerability/)
|
||||
* Updates GDPR blurb and donate link
|
||||
* Tweaks appearance of plugin settings page
|
||||
* Regenerates default translation template
|
||||
* Further tests on WP versions 4.9 and 5.0 (alpha)
|
||||
|
||||
**1.6/1.6.1 (2018/05/07)**
|
||||
|
||||
* Updates Prism.js from 1.11 to 1.14
|
||||
|
Loading…
Reference in New Issue
Block a user