Version Description
- New option to exclude html code blocks (pre and code) from link processing
- Updated the text-domain to sem-external-links to match plugin's slug to support internationalization efforts
Download this release
Release Info
Developer | Mike_Koepke |
Plugin | External Links |
Version | 6.6 |
Comparing to | |
See all releases |
Code changes from version 6.5.1 to 6.6
- readme.txt +6 -0
- sem-external-links-admin.php +47 -30
- sem-external-links-info.php +2 -2
- sem-external-links.php +15 -8
- sem-external-links.pot +67 -28
readme.txt
CHANGED
@@ -59,6 +59,12 @@ The plugin supports a non-started rel="follow" attribute on links to override th
|
|
59 |
|
60 |
== Change Log ==
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
= 6.5.1 =
|
63 |
|
64 |
- No functionality changes in this release.
|
59 |
|
60 |
== Change Log ==
|
61 |
|
62 |
+
= 6.6 =
|
63 |
+
|
64 |
+
- New option to exclude html code blocks (pre and code) from link processing
|
65 |
+
- Updated the text-domain to sem-external-links to match plugin's slug to support internationalization efforts
|
66 |
+
|
67 |
+
|
68 |
= 6.5.1 =
|
69 |
|
70 |
- No functionality changes in this release.
|
sem-external-links-admin.php
CHANGED
@@ -80,7 +80,7 @@ class external_links_admin {
|
|
80 |
check_admin_referer('sem_external_links');
|
81 |
|
82 |
foreach ( array('global', 'icon', 'target', 'nofollow', 'text_widgets', 'autolinks',
|
83 |
-
'subdomains_local') as $var )
|
84 |
$$var = isset($_POST[$var]);
|
85 |
|
86 |
$exclude_domains = stripslashes($_POST['exclude_domains']);
|
@@ -103,12 +103,12 @@ class external_links_admin {
|
|
103 |
|
104 |
$version = sem_external_links_version;
|
105 |
update_option('external_links', compact('global', 'icon', 'target', 'nofollow', 'text_widgets',
|
106 |
-
'autolinks', 'subdomains_local', 'version', 'exclude_domains'));
|
107 |
|
108 |
echo "<div class=\"updated fade\">\n"
|
109 |
. "<p>"
|
110 |
. "<strong>"
|
111 |
-
. __('Settings saved.', 'external-links')
|
112 |
. "</strong>"
|
113 |
. "</p>\n"
|
114 |
. "</div>\n";
|
@@ -132,18 +132,18 @@ class external_links_admin {
|
|
132 |
if ( $options['nofollow'] && ( function_exists('strip_nofollow') || class_exists('sem_dofollow') ) ) {
|
133 |
echo "<div class=\"error\">\n"
|
134 |
. "<p>"
|
135 |
-
. __('Note: Your rel=nofollow preferences is being ignored because the dofollow plugin is enabled on your site.', 'external-links')
|
136 |
. "</p>\n"
|
137 |
. "</div>\n";
|
138 |
}
|
139 |
|
140 |
-
echo '<h2>' . __('External Links Settings', 'external-links') . '</h2>' . "\n";
|
141 |
|
142 |
echo '<table class="form-table">' . "\n";
|
143 |
|
144 |
echo '<tr>' . "\n"
|
145 |
. '<th scope="row">'
|
146 |
-
. __('Apply Globally', 'external-links')
|
147 |
. '</th>' . "\n"
|
148 |
. '<td>'
|
149 |
. '<label>'
|
@@ -151,14 +151,14 @@ class external_links_admin {
|
|
151 |
. checked($options['global'], true, false)
|
152 |
. ' />'
|
153 |
. ' '
|
154 |
-
. __('Apply these settings to all outbound links on the site except those in scripts, styles and the html head section.', 'external-links')
|
155 |
. '</label>'
|
156 |
. '</td>' . "\n"
|
157 |
. '</tr>' . "\n";
|
158 |
|
159 |
echo '<tr>' . "\n"
|
160 |
. '<th scope="row">'
|
161 |
-
. __('Apply to Text Widgets', 'external-links')
|
162 |
. '</th>' . "\n"
|
163 |
. '<td>'
|
164 |
. '<label>'
|
@@ -166,14 +166,14 @@ class external_links_admin {
|
|
166 |
. checked($options['text_widgets'], true, false)
|
167 |
. ' />'
|
168 |
. ' '
|
169 |
-
. __('Apply these settings to any text widgets in addition to post, page and comments content.', 'external-links')
|
170 |
. '</label>'
|
171 |
. '</td>' . "\n"
|
172 |
. '</tr>' . "\n";
|
173 |
|
174 |
echo '<tr>' . "\n"
|
175 |
. '<th scope="row">'
|
176 |
-
. __('Treat Subdomains as Local', 'external-links')
|
177 |
. '</th>' . "\n"
|
178 |
. '<td>'
|
179 |
. '<label>'
|
@@ -181,16 +181,16 @@ class external_links_admin {
|
|
181 |
. checked($options['subdomains_local'], true, false)
|
182 |
. ' />'
|
183 |
. ' '
|
184 |
-
. __('Treat any subdomains for this site as a local link.', 'external-links')
|
185 |
. '</label>'
|
186 |
. '<br />' . "\n"
|
187 |
-
. '<i>' . __('Example: If your site is at domain.com and you also have store.domain.com, any link to store.domain.com will be treated as local.', 'external-links') . '<i>'
|
188 |
. '</td>' . "\n"
|
189 |
. '</tr>' . "\n";
|
190 |
|
191 |
echo '<tr>' . "\n"
|
192 |
. '<th scope="row">'
|
193 |
-
. __('Auto Convert Text Urls', 'external-links')
|
194 |
. '</th>' . "\n"
|
195 |
. '<td>'
|
196 |
. '<label>'
|
@@ -198,18 +198,18 @@ class external_links_admin {
|
|
198 |
. checked($options['autolinks'], true, false)
|
199 |
. ' />'
|
200 |
. ' '
|
201 |
-
. __('Automatically converts text urls into clickable urls.', 'external-links')
|
202 |
. '</label>'
|
203 |
. '<br />' . "\n"
|
204 |
-
. '<i>' . __('Note: If this option is enabled then if www.example.com is found in your text, it will be converted to an html <a> link."', 'external-links')
|
205 |
. '<br />' . "\n"
|
206 |
-
. __('This conversion will occur first so external link treatment for nofollow, icon and target will be applied to this auto links.', 'external-links') . '</i>'
|
207 |
. '</td>' . "\n"
|
208 |
. '</tr>' . "\n";
|
209 |
|
210 |
echo '<tr>' . "\n"
|
211 |
. '<th scope="row">'
|
212 |
-
. __('Add No Follow', 'external-links')
|
213 |
. '</th>' . "\n"
|
214 |
. '<td>'
|
215 |
. '<label>'
|
@@ -217,16 +217,16 @@ class external_links_admin {
|
|
217 |
. checked($options['nofollow'], true, false)
|
218 |
. ' />'
|
219 |
. ' '
|
220 |
-
. __('Add a rel="nofollow" attribute to outbound links.', 'external-links')
|
221 |
. '</label>'
|
222 |
. '<br />' . "\n"
|
223 |
-
. '<i>' . __('Note: You can override this behavior by adding the attribute rel="follow" to individual links.', 'external-links')
|
224 |
. '</td>' . "\n"
|
225 |
. '</tr>' . "\n";
|
226 |
|
227 |
echo '<tr>' . "\n"
|
228 |
. '<th scope="row">'
|
229 |
-
. __('Add Icons', 'external-links')
|
230 |
. '</th>' . "\n"
|
231 |
. '<td>'
|
232 |
. '<label>'
|
@@ -234,16 +234,16 @@ class external_links_admin {
|
|
234 |
. checked($options['icon'], true, false)
|
235 |
. ' />'
|
236 |
. ' '
|
237 |
-
. __('Mark outbound links with an icon.', 'external-links')
|
238 |
. '</label>'
|
239 |
. '<br />' . "\n"
|
240 |
-
. '<i>' .__('Note: You can override this behavior by adding a class="no_icon" or "noicon" to individual links.', 'external-links') . '</i>'
|
241 |
. '</td>' . "\n"
|
242 |
. '</tr>' . "\n";
|
243 |
|
244 |
echo '<tr>' . "\n"
|
245 |
. '<th scope="row">'
|
246 |
-
. __('Open in New Windows', 'external-links')
|
247 |
. '</th>' . "\n"
|
248 |
. '<td>'
|
249 |
. '<label>'
|
@@ -251,26 +251,43 @@ class external_links_admin {
|
|
251 |
. checked($options['target'], true, false)
|
252 |
. ' />'
|
253 |
. ' '
|
254 |
-
. __('Open outbound links in new windows.', 'external-links')
|
255 |
. '</label>'
|
256 |
. '<br />' . "\n"
|
257 |
-
. '<i>' . __('Note: Some usability experts discourage this, claiming that <a href="http://www.useit.com/alertbox/9605.html">this can damage your visitors\' trust</a> towards your site. Others highlight that computer-illiterate users do not always know how to use the back button, and encourage the practice for that reason.', 'external-links') . '</i>'
|
258 |
. '</td>' . "\n"
|
259 |
. '</tr>' . "\n";
|
260 |
|
261 |
echo '<tr>' . "\n"
|
262 |
. '<th scope="row">'
|
263 |
-
. __('
|
264 |
. '</th>' . "\n"
|
265 |
. '<td>'
|
266 |
. '<label>'
|
267 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
. '<textarea name="exclude_domains" cols="58" rows="4" class="widefat">'
|
269 |
. esc_html($options['exclude_domains'])
|
270 |
. '</textarea>' . "\n"
|
271 |
-
. __('Domains and subdomains should be separated by a comma, space or carriage return. http://, https://, www. should not be included and will be stripped off.', 'external-links')
|
272 |
. '</label> '
|
273 |
-
. '<i>' .__('Example: domain.com, domain.net, sub.domain.com, somesite.com, external.org.', 'external-links') . '</i>'
|
274 |
. '<br />' . "\n"
|
275 |
. '</td>'
|
276 |
. '</tr>' . "\n";
|
@@ -279,7 +296,7 @@ class external_links_admin {
|
|
279 |
|
280 |
echo '<p class="submit">'
|
281 |
. '<input type="submit"'
|
282 |
-
. ' value="' . esc_attr(__('Save Changes', 'external-links')) . '"'
|
283 |
. ' />'
|
284 |
. '</p>' . "\n";
|
285 |
|
80 |
check_admin_referer('sem_external_links');
|
81 |
|
82 |
foreach ( array('global', 'icon', 'target', 'nofollow', 'text_widgets', 'autolinks',
|
83 |
+
'subdomains_local', 'exclude_code_blocks') as $var )
|
84 |
$$var = isset($_POST[$var]);
|
85 |
|
86 |
$exclude_domains = stripslashes($_POST['exclude_domains']);
|
103 |
|
104 |
$version = sem_external_links_version;
|
105 |
update_option('external_links', compact('global', 'icon', 'target', 'nofollow', 'text_widgets',
|
106 |
+
'autolinks', 'subdomains_local', 'version', 'exclude_domains', 'exclude_code_blocks'));
|
107 |
|
108 |
echo "<div class=\"updated fade\">\n"
|
109 |
. "<p>"
|
110 |
. "<strong>"
|
111 |
+
. __('Settings saved.', 'sem-external-links')
|
112 |
. "</strong>"
|
113 |
. "</p>\n"
|
114 |
. "</div>\n";
|
132 |
if ( $options['nofollow'] && ( function_exists('strip_nofollow') || class_exists('sem_dofollow') ) ) {
|
133 |
echo "<div class=\"error\">\n"
|
134 |
. "<p>"
|
135 |
+
. __('Note: Your rel=nofollow preferences is being ignored because the dofollow plugin is enabled on your site.', 'sem-external-links')
|
136 |
. "</p>\n"
|
137 |
. "</div>\n";
|
138 |
}
|
139 |
|
140 |
+
echo '<h2>' . __('External Links Settings', 'sem-external-links') . '</h2>' . "\n";
|
141 |
|
142 |
echo '<table class="form-table">' . "\n";
|
143 |
|
144 |
echo '<tr>' . "\n"
|
145 |
. '<th scope="row">'
|
146 |
+
. __('Apply Globally', 'sem-external-links')
|
147 |
. '</th>' . "\n"
|
148 |
. '<td>'
|
149 |
. '<label>'
|
151 |
. checked($options['global'], true, false)
|
152 |
. ' />'
|
153 |
. ' '
|
154 |
+
. __('Apply these settings to all outbound links on the site except those in scripts, styles and the html head section.', 'sem-external-links')
|
155 |
. '</label>'
|
156 |
. '</td>' . "\n"
|
157 |
. '</tr>' . "\n";
|
158 |
|
159 |
echo '<tr>' . "\n"
|
160 |
. '<th scope="row">'
|
161 |
+
. __('Apply to Text Widgets', 'sem-external-links')
|
162 |
. '</th>' . "\n"
|
163 |
. '<td>'
|
164 |
. '<label>'
|
166 |
. checked($options['text_widgets'], true, false)
|
167 |
. ' />'
|
168 |
. ' '
|
169 |
+
. __('Apply these settings to any text widgets in addition to post, page and comments content.', 'sem-external-links')
|
170 |
. '</label>'
|
171 |
. '</td>' . "\n"
|
172 |
. '</tr>' . "\n";
|
173 |
|
174 |
echo '<tr>' . "\n"
|
175 |
. '<th scope="row">'
|
176 |
+
. __('Treat Subdomains as Local', 'sem-external-links')
|
177 |
. '</th>' . "\n"
|
178 |
. '<td>'
|
179 |
. '<label>'
|
181 |
. checked($options['subdomains_local'], true, false)
|
182 |
. ' />'
|
183 |
. ' '
|
184 |
+
. __('Treat any subdomains for this site as a local link.', 'sem-external-links')
|
185 |
. '</label>'
|
186 |
. '<br />' . "\n"
|
187 |
+
. '<i>' . __('Example: If your site is at domain.com and you also have store.domain.com, any link to store.domain.com will be treated as local.', 'sem-external-links') . '<i>'
|
188 |
. '</td>' . "\n"
|
189 |
. '</tr>' . "\n";
|
190 |
|
191 |
echo '<tr>' . "\n"
|
192 |
. '<th scope="row">'
|
193 |
+
. __('Auto Convert Text Urls', 'sem-external-links')
|
194 |
. '</th>' . "\n"
|
195 |
. '<td>'
|
196 |
. '<label>'
|
198 |
. checked($options['autolinks'], true, false)
|
199 |
. ' />'
|
200 |
. ' '
|
201 |
+
. __('Automatically converts text urls into clickable urls.', 'sem-external-links')
|
202 |
. '</label>'
|
203 |
. '<br />' . "\n"
|
204 |
+
. '<i>' . __('Note: If this option is enabled then if www.example.com is found in your text, it will be converted to an html <a> link."', 'sem-external-links')
|
205 |
. '<br />' . "\n"
|
206 |
+
. __('This conversion will occur first so external link treatment for nofollow, icon and target will be applied to this auto links.', 'sem-external-links') . '</i>'
|
207 |
. '</td>' . "\n"
|
208 |
. '</tr>' . "\n";
|
209 |
|
210 |
echo '<tr>' . "\n"
|
211 |
. '<th scope="row">'
|
212 |
+
. __('Add No Follow', 'sem-sem-external-links')
|
213 |
. '</th>' . "\n"
|
214 |
. '<td>'
|
215 |
. '<label>'
|
217 |
. checked($options['nofollow'], true, false)
|
218 |
. ' />'
|
219 |
. ' '
|
220 |
+
. __('Add a rel="nofollow" attribute to outbound links.', 'sem-external-links')
|
221 |
. '</label>'
|
222 |
. '<br />' . "\n"
|
223 |
+
. '<i>' . __('Note: You can override this behavior by adding the attribute rel="follow" to individual links.', 'sem-external-links')
|
224 |
. '</td>' . "\n"
|
225 |
. '</tr>' . "\n";
|
226 |
|
227 |
echo '<tr>' . "\n"
|
228 |
. '<th scope="row">'
|
229 |
+
. __('Add Icons', 'sem-external-links')
|
230 |
. '</th>' . "\n"
|
231 |
. '<td>'
|
232 |
. '<label>'
|
234 |
. checked($options['icon'], true, false)
|
235 |
. ' />'
|
236 |
. ' '
|
237 |
+
. __('Mark outbound links with an icon.', 'sem-external-links')
|
238 |
. '</label>'
|
239 |
. '<br />' . "\n"
|
240 |
+
. '<i>' .__('Note: You can override this behavior by adding a class="no_icon" or "noicon" to individual links.', 'sem-external-links') . '</i>'
|
241 |
. '</td>' . "\n"
|
242 |
. '</tr>' . "\n";
|
243 |
|
244 |
echo '<tr>' . "\n"
|
245 |
. '<th scope="row">'
|
246 |
+
. __('Open in New Windows', 'sem-external-links')
|
247 |
. '</th>' . "\n"
|
248 |
. '<td>'
|
249 |
. '<label>'
|
251 |
. checked($options['target'], true, false)
|
252 |
. ' />'
|
253 |
. ' '
|
254 |
+
. __('Open outbound links in new windows.', 'sem-external-links')
|
255 |
. '</label>'
|
256 |
. '<br />' . "\n"
|
257 |
+
. '<i>' . __('Note: Some usability experts discourage this, claiming that <a href="http://www.useit.com/alertbox/9605.html">this can damage your visitors\' trust</a> towards your site. Others highlight that computer-illiterate users do not always know how to use the back button, and encourage the practice for that reason.', 'sem-external-links') . '</i>'
|
258 |
. '</td>' . "\n"
|
259 |
. '</tr>' . "\n";
|
260 |
|
261 |
echo '<tr>' . "\n"
|
262 |
. '<th scope="row">'
|
263 |
+
. __('Exclude HTML Code Blocks', 'sem-external-links')
|
264 |
. '</th>' . "\n"
|
265 |
. '<td>'
|
266 |
. '<label>'
|
267 |
+
. '<input type="checkbox" name="exclude_code_blocks"'
|
268 |
+
. checked($options['exclude_code_blocks'], true, false)
|
269 |
+
. ' />'
|
270 |
+
. ' '
|
271 |
+
. __('Do not process links in html code blocks.', 'sem-external-links')
|
272 |
+
. '</label>'
|
273 |
+
. '<br />' . "\n"
|
274 |
+
. '<i>' . __('Links found inside either <code> or <pre> html tags will be ignored.', 'sem-external-links') . '</i>'
|
275 |
+
. '</td>' . "\n"
|
276 |
+
. '</tr>' . "\n";
|
277 |
+
|
278 |
+
echo '<tr>' . "\n"
|
279 |
+
. '<th scope="row">'
|
280 |
+
. __('Domains to Exclude', 'sem-external-links')
|
281 |
+
. '</th>' . "\n"
|
282 |
+
. '<td>'
|
283 |
+
. '<label>'
|
284 |
+
. __('External site domains that should be excluded from processing:', 'sem-external-links')
|
285 |
. '<textarea name="exclude_domains" cols="58" rows="4" class="widefat">'
|
286 |
. esc_html($options['exclude_domains'])
|
287 |
. '</textarea>' . "\n"
|
288 |
+
. __('Domains and subdomains should be separated by a comma, space or carriage return. http://, https://, www. should not be included and will be stripped off.', 'sem-external-links')
|
289 |
. '</label> '
|
290 |
+
. '<i>' .__('Example: domain.com, domain.net, sub.domain.com, somesite.com, external.org.', 'sem-external-links') . '</i>'
|
291 |
. '<br />' . "\n"
|
292 |
. '</td>'
|
293 |
. '</tr>' . "\n";
|
296 |
|
297 |
echo '<p class="submit">'
|
298 |
. '<input type="submit"'
|
299 |
+
. ' value="' . esc_attr(__('Save Changes', 'sem-external-links')) . '"'
|
300 |
. ' />'
|
301 |
. '</p>' . "\n";
|
302 |
|
sem-external-links-info.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
<?php
|
2 |
-
__('External Links', 'external-links');
|
3 |
-
__('Marks outbound links as such, with various effects that are configurable under <a href="options-general.php?page=external-links">Settings / External Links</a>.', 'external-links');
|
4 |
?>
|
1 |
<?php
|
2 |
+
__('External Links', 'sem-external-links');
|
3 |
+
__('Marks outbound links as such, with various effects that are configurable under <a href="options-general.php?page=external-links">Settings / External Links</a>.', 'sem-external-links');
|
4 |
?>
|
sem-external-links.php
CHANGED
@@ -3,10 +3,10 @@
|
|
3 |
Plugin Name: External Links
|
4 |
Plugin URI: http://www.semiologic.com/software/external-links/
|
5 |
Description: Marks outbound links as such, with various effects that are configurable under <a href="options-general.php?page=external-links">Settings / External Links</a>.
|
6 |
-
Version: 6.
|
7 |
Author: Denis de Bernardy & Mike Koepke
|
8 |
Author URI: https://www.semiologic.com
|
9 |
-
Text Domain: external-links
|
10 |
Domain Path: /lang
|
11 |
License: Dual licensed under the MIT and GPLv2 licenses
|
12 |
*/
|
@@ -19,7 +19,7 @@ This software is copyright Denis de Bernardy & Mike Koepke, and is distributed u
|
|
19 |
|
20 |
**/
|
21 |
|
22 |
-
define('sem_external_links_version', '6.
|
23 |
|
24 |
/**
|
25 |
* external_links
|
@@ -97,7 +97,7 @@ class sem_external_links {
|
|
97 |
public function __construct() {
|
98 |
$this->plugin_url = plugins_url( '/', __FILE__ );
|
99 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
100 |
-
$this->load_language( 'external-links' );
|
101 |
|
102 |
add_action( 'plugins_loaded', array ( $this, 'init' ) );
|
103 |
}
|
@@ -285,14 +285,20 @@ class sem_external_links {
|
|
285 |
|
286 |
$exclusions = array();
|
287 |
|
288 |
-
if ( $context == 'global' )
|
289 |
$exclusions['head'] = "/
|
290 |
.*?
|
291 |
<\s*\/\s*head\s*>
|
292 |
/isx";
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
|
294 |
$exclusions['blocks'] = "/
|
295 |
-
<\s*(
|
296 |
.*?
|
297 |
<\s*\/\s*\\1\s*>
|
298 |
/isx";
|
@@ -800,6 +806,7 @@ class sem_external_links {
|
|
800 |
'subdomains_local' => true,
|
801 |
'version' => sem_external_links_version,
|
802 |
'exclude_domains' => '',
|
|
|
803 |
);
|
804 |
|
805 |
if ( !$o )
|
@@ -859,8 +866,8 @@ class sem_external_links {
|
|
859 |
|
860 |
function admin_menu() {
|
861 |
add_options_page(
|
862 |
-
__('External Links', 'external-links'),
|
863 |
-
__('External Links', 'external-links'),
|
864 |
'manage_options',
|
865 |
'external-links',
|
866 |
array('external_links_admin', 'edit_options')
|
3 |
Plugin Name: External Links
|
4 |
Plugin URI: http://www.semiologic.com/software/external-links/
|
5 |
Description: Marks outbound links as such, with various effects that are configurable under <a href="options-general.php?page=external-links">Settings / External Links</a>.
|
6 |
+
Version: 6.6
|
7 |
Author: Denis de Bernardy & Mike Koepke
|
8 |
Author URI: https://www.semiologic.com
|
9 |
+
Text Domain: sem-external-links
|
10 |
Domain Path: /lang
|
11 |
License: Dual licensed under the MIT and GPLv2 licenses
|
12 |
*/
|
19 |
|
20 |
**/
|
21 |
|
22 |
+
define('sem_external_links_version', '6.6');
|
23 |
|
24 |
/**
|
25 |
* external_links
|
97 |
public function __construct() {
|
98 |
$this->plugin_url = plugins_url( '/', __FILE__ );
|
99 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
100 |
+
$this->load_language( 'sem-external-links' );
|
101 |
|
102 |
add_action( 'plugins_loaded', array ( $this, 'init' ) );
|
103 |
}
|
285 |
|
286 |
$exclusions = array();
|
287 |
|
288 |
+
if ( $context == 'global' ) {
|
289 |
$exclusions['head'] = "/
|
290 |
.*?
|
291 |
<\s*\/\s*head\s*>
|
292 |
/isx";
|
293 |
+
}
|
294 |
+
|
295 |
+
$ignore_blocks = 'script|style|object|textarea';
|
296 |
+
if ( $this->opts['exclude_code_blocks'] ) {
|
297 |
+
$ignore_blocks .= '|pre|code';
|
298 |
+
}
|
299 |
|
300 |
$exclusions['blocks'] = "/
|
301 |
+
<\s*(" . $ignore_blocks . ")(?:\s.*?)?>
|
302 |
.*?
|
303 |
<\s*\/\s*\\1\s*>
|
304 |
/isx";
|
806 |
'subdomains_local' => true,
|
807 |
'version' => sem_external_links_version,
|
808 |
'exclude_domains' => '',
|
809 |
+
'exclude_code_blocks' => false,
|
810 |
);
|
811 |
|
812 |
if ( !$o )
|
866 |
|
867 |
function admin_menu() {
|
868 |
add_options_page(
|
869 |
+
__('External Links', 'sem-external-links'),
|
870 |
+
__('External Links', 'sem-external-links'),
|
871 |
'manage_options',
|
872 |
'external-links',
|
873 |
array('external_links_admin', 'edit_options')
|
sem-external-links.pot
CHANGED
@@ -2,9 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the External Links package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: External Links 6.
|
6 |
-
"Report-Msgid-Bugs-To:
|
7 |
-
"
|
|
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -17,7 +18,9 @@ msgid "Settings saved."
|
|
17 |
msgstr ""
|
18 |
|
19 |
#: sem-external-links-admin.php:135
|
20 |
-
msgid "
|
|
|
|
|
21 |
msgstr ""
|
22 |
|
23 |
#: sem-external-links-admin.php:140
|
@@ -29,7 +32,9 @@ msgid "Apply Globally"
|
|
29 |
msgstr ""
|
30 |
|
31 |
#: sem-external-links-admin.php:154
|
32 |
-
msgid "
|
|
|
|
|
33 |
msgstr ""
|
34 |
|
35 |
#: sem-external-links-admin.php:161
|
@@ -37,7 +42,9 @@ msgid "Apply to Text Widgets"
|
|
37 |
msgstr ""
|
38 |
|
39 |
#: sem-external-links-admin.php:169
|
40 |
-
msgid "
|
|
|
|
|
41 |
msgstr ""
|
42 |
|
43 |
#: sem-external-links-admin.php:176
|
@@ -49,7 +56,9 @@ msgid "Treat any subdomains for this site as a local link."
|
|
49 |
msgstr ""
|
50 |
|
51 |
#: sem-external-links-admin.php:187
|
52 |
-
msgid "
|
|
|
|
|
53 |
msgstr ""
|
54 |
|
55 |
#: sem-external-links-admin.php:193
|
@@ -61,11 +70,15 @@ msgid "Automatically converts text urls into clickable urls."
|
|
61 |
msgstr ""
|
62 |
|
63 |
#: sem-external-links-admin.php:204
|
64 |
-
msgid "
|
|
|
|
|
65 |
msgstr ""
|
66 |
|
67 |
#: sem-external-links-admin.php:206
|
68 |
-
msgid "
|
|
|
|
|
69 |
msgstr ""
|
70 |
|
71 |
#: sem-external-links-admin.php:212
|
@@ -77,7 +90,9 @@ msgid "Add a rel=\"nofollow\" attribute to outbound links."
|
|
77 |
msgstr ""
|
78 |
|
79 |
#: sem-external-links-admin.php:223
|
80 |
-
msgid "
|
|
|
|
|
81 |
msgstr ""
|
82 |
|
83 |
#: sem-external-links-admin.php:229
|
@@ -89,7 +104,9 @@ msgid "Mark outbound links with an icon."
|
|
89 |
msgstr ""
|
90 |
|
91 |
#: sem-external-links-admin.php:240
|
92 |
-
msgid "
|
|
|
|
|
93 |
msgstr ""
|
94 |
|
95 |
#: sem-external-links-admin.php:246
|
@@ -101,49 +118,71 @@ msgid "Open outbound links in new windows."
|
|
101 |
msgstr ""
|
102 |
|
103 |
#: sem-external-links-admin.php:257
|
104 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
105 |
msgstr ""
|
106 |
|
107 |
#: sem-external-links-admin.php:263
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
msgid "Domains to Exclude"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: sem-external-links-admin.php:
|
112 |
msgid "External site domains that should be excluded from processing:"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: sem-external-links-admin.php:
|
116 |
-
msgid "
|
|
|
|
|
|
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: sem-external-links-admin.php:
|
120 |
-
msgid "
|
|
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: sem-external-links-admin.php:
|
124 |
msgid "Save Changes"
|
125 |
msgstr ""
|
126 |
|
127 |
-
|
128 |
-
|
|
|
|
|
129 |
msgid "External Links"
|
130 |
msgstr ""
|
131 |
|
|
|
|
|
132 |
#: sem-external-links-info.php:3
|
133 |
-
msgid "
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
msgstr ""
|
138 |
|
139 |
#. Plugin URI of the plugin/theme
|
140 |
msgid "http://www.semiologic.com/software/external-links/"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#. Description of the plugin/theme
|
144 |
-
msgid "Marks outbound links as such, with various effects that are configurable under <a href=\"options-general.php?page=external-links\">Settings / External Links</a>."
|
145 |
-
msgstr ""
|
146 |
-
|
147 |
#. Author of the plugin/theme
|
148 |
msgid "Denis de Bernardy & Mike Koepke"
|
149 |
msgstr ""
|
2 |
# This file is distributed under the same license as the External Links package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: External Links 6.6\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sem-external-"
|
7 |
+
"links\n"
|
8 |
+
"POT-Creation-Date: 2015-09-25 16:41:00+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
18 |
msgstr ""
|
19 |
|
20 |
#: sem-external-links-admin.php:135
|
21 |
+
msgid ""
|
22 |
+
"Note: Your rel=nofollow preferences is being ignored because the dofollow "
|
23 |
+
"plugin is enabled on your site."
|
24 |
msgstr ""
|
25 |
|
26 |
#: sem-external-links-admin.php:140
|
32 |
msgstr ""
|
33 |
|
34 |
#: sem-external-links-admin.php:154
|
35 |
+
msgid ""
|
36 |
+
"Apply these settings to all outbound links on the site except those in "
|
37 |
+
"scripts, styles and the html head section."
|
38 |
msgstr ""
|
39 |
|
40 |
#: sem-external-links-admin.php:161
|
42 |
msgstr ""
|
43 |
|
44 |
#: sem-external-links-admin.php:169
|
45 |
+
msgid ""
|
46 |
+
"Apply these settings to any text widgets in addition to post, page and "
|
47 |
+
"comments content."
|
48 |
msgstr ""
|
49 |
|
50 |
#: sem-external-links-admin.php:176
|
56 |
msgstr ""
|
57 |
|
58 |
#: sem-external-links-admin.php:187
|
59 |
+
msgid ""
|
60 |
+
"Example: If your site is at domain.com and you also have store.domain.com, "
|
61 |
+
"any link to store.domain.com will be treated as local."
|
62 |
msgstr ""
|
63 |
|
64 |
#: sem-external-links-admin.php:193
|
70 |
msgstr ""
|
71 |
|
72 |
#: sem-external-links-admin.php:204
|
73 |
+
msgid ""
|
74 |
+
"Note: If this option is enabled then if www.example.com is found in your "
|
75 |
+
"text, it will be converted to an html <a> link.\""
|
76 |
msgstr ""
|
77 |
|
78 |
#: sem-external-links-admin.php:206
|
79 |
+
msgid ""
|
80 |
+
"This conversion will occur first so external link treatment for nofollow, "
|
81 |
+
"icon and target will be applied to this auto links."
|
82 |
msgstr ""
|
83 |
|
84 |
#: sem-external-links-admin.php:212
|
90 |
msgstr ""
|
91 |
|
92 |
#: sem-external-links-admin.php:223
|
93 |
+
msgid ""
|
94 |
+
"Note: You can override this behavior by adding the attribute rel=\"follow\" "
|
95 |
+
"to individual links."
|
96 |
msgstr ""
|
97 |
|
98 |
#: sem-external-links-admin.php:229
|
104 |
msgstr ""
|
105 |
|
106 |
#: sem-external-links-admin.php:240
|
107 |
+
msgid ""
|
108 |
+
"Note: You can override this behavior by adding a class=\"no_icon\" or "
|
109 |
+
"\"noicon\" to individual links."
|
110 |
msgstr ""
|
111 |
|
112 |
#: sem-external-links-admin.php:246
|
118 |
msgstr ""
|
119 |
|
120 |
#: sem-external-links-admin.php:257
|
121 |
+
msgid ""
|
122 |
+
"Note: Some usability experts discourage this, claiming that <a href=\"http://"
|
123 |
+
"www.useit.com/alertbox/9605.html\">this can damage your visitors' trust</a> "
|
124 |
+
"towards your site. Others highlight that computer-illiterate users do not "
|
125 |
+
"always know how to use the back button, and encourage the practice for that "
|
126 |
+
"reason."
|
127 |
msgstr ""
|
128 |
|
129 |
#: sem-external-links-admin.php:263
|
130 |
+
msgid "Exclude HTML Code Blocks"
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: sem-external-links-admin.php:271
|
134 |
+
msgid "Do not process links in html code blocks."
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: sem-external-links-admin.php:274
|
138 |
+
msgid ""
|
139 |
+
"Links found inside either <code> or <pre> html tags will be ignored."
|
140 |
+
msgstr ""
|
141 |
+
|
142 |
+
#: sem-external-links-admin.php:280
|
143 |
msgid "Domains to Exclude"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: sem-external-links-admin.php:284
|
147 |
msgid "External site domains that should be excluded from processing:"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: sem-external-links-admin.php:288
|
151 |
+
msgid ""
|
152 |
+
"Domains and subdomains should be separated by a comma, space or carriage "
|
153 |
+
"return. http://, https://, www. should not be included and will be "
|
154 |
+
"stripped off."
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: sem-external-links-admin.php:290
|
158 |
+
msgid ""
|
159 |
+
"Example: domain.com, domain.net, sub.domain.com, somesite.com, external.org."
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: sem-external-links-admin.php:299
|
163 |
msgid "Save Changes"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#. #-#-#-#-# sem-external-links.pot (External Links 6.6) #-#-#-#-#
|
167 |
+
#. Plugin Name of the plugin/theme
|
168 |
+
#: sem-external-links-info.php:2 sem-external-links.php:869
|
169 |
+
#: sem-external-links.php:870
|
170 |
msgid "External Links"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#. #-#-#-#-# sem-external-links.pot (External Links 6.6) #-#-#-#-#
|
174 |
+
#. Description of the plugin/theme
|
175 |
#: sem-external-links-info.php:3
|
176 |
+
msgid ""
|
177 |
+
"Marks outbound links as such, with various effects that are configurable "
|
178 |
+
"under <a href=\"options-general.php?page=external-links\">Settings / "
|
179 |
+
"External Links</a>."
|
180 |
msgstr ""
|
181 |
|
182 |
#. Plugin URI of the plugin/theme
|
183 |
msgid "http://www.semiologic.com/software/external-links/"
|
184 |
msgstr ""
|
185 |
|
|
|
|
|
|
|
|
|
186 |
#. Author of the plugin/theme
|
187 |
msgid "Denis de Bernardy & Mike Koepke"
|
188 |
msgstr ""
|