Version Description
- Changed translation text domain from a variable to strings, because apparently a variable doesn't universally work no matter how smart it makes me feel.
Download this release
Release Info
Developer | fourlightsweb |
Plugin | WP Gallery Custom Links |
Version | 1.10.5 |
Comparing to | |
See all releases |
Code changes from version 1.10.4 to 1.10.5
- languages/wp-gallery-custom-links.pot +15 -15
- readme.txt +7 -1
- wp-gallery-custom-links.php +16 -17
languages/wp-gallery-custom-links.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the WP Gallery Custom Links package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WP Gallery Custom Links 1.10.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-gallery-custom-"
|
7 |
"links\n"
|
8 |
-
"POT-Creation-Date: 2015-09-30 16:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -13,62 +13,62 @@ msgstr ""
|
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
|
16 |
-
#: wp-gallery-custom-links.php:
|
17 |
msgid "Gallery Link URL"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#: wp-gallery-custom-links.php:
|
21 |
msgid ""
|
22 |
"Will replace \"Image File\" or \"Attachment Page\" link for this image in "
|
23 |
"galleries. Use [none] to remove the link from this image in galleries."
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: wp-gallery-custom-links.php:
|
27 |
msgid "Gallery Link Target"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: wp-gallery-custom-links.php:
|
31 |
msgid ""
|
32 |
"This setting will be applied to this image in galleries regardless of "
|
33 |
"whether or not a Gallery Link URL has been specified."
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: wp-gallery-custom-links.php:
|
37 |
msgid "Do Not Change"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: wp-gallery-custom-links.php:
|
41 |
msgid "Same Window"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: wp-gallery-custom-links.php:
|
45 |
msgid "New Window"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: wp-gallery-custom-links.php:
|
49 |
msgid "Gallery Link OnClick Effect"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: wp-gallery-custom-links.php:
|
53 |
msgid ""
|
54 |
"Lightbox and other OnClick events are removed by default from this image in "
|
55 |
"galleries. This setting will only be applied to this image in galleries if "
|
56 |
"this image has a Gallery Link URL specified."
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: wp-gallery-custom-links.php:
|
60 |
msgid "Remove"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: wp-gallery-custom-links.php:
|
64 |
msgid "Keep"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: wp-gallery-custom-links.php:
|
68 |
msgid "Gallery Link Additional CSS Classes"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: wp-gallery-custom-links.php:
|
72 |
msgid ""
|
73 |
"Additional CSS classes specified here will be applied to the "
|
74 |
"<strong><em>link</em></strong> around this image in galleries regardless of "
|
2 |
# This file is distributed under the same license as the WP Gallery Custom Links package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WP Gallery Custom Links 1.10.5\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-gallery-custom-"
|
7 |
"links\n"
|
8 |
+
"POT-Creation-Date: 2015-09-30 16:28:32+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
|
16 |
+
#: wp-gallery-custom-links.php:85
|
17 |
msgid "Gallery Link URL"
|
18 |
msgstr ""
|
19 |
|
20 |
+
#: wp-gallery-custom-links.php:88
|
21 |
msgid ""
|
22 |
"Will replace \"Image File\" or \"Attachment Page\" link for this image in "
|
23 |
"galleries. Use [none] to remove the link from this image in galleries."
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: wp-gallery-custom-links.php:97
|
27 |
msgid "Gallery Link Target"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: wp-gallery-custom-links.php:100
|
31 |
msgid ""
|
32 |
"This setting will be applied to this image in galleries regardless of "
|
33 |
"whether or not a Gallery Link URL has been specified."
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: wp-gallery-custom-links.php:106
|
37 |
msgid "Do Not Change"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: wp-gallery-custom-links.php:107
|
41 |
msgid "Same Window"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: wp-gallery-custom-links.php:108
|
45 |
msgid "New Window"
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: wp-gallery-custom-links.php:114
|
49 |
msgid "Gallery Link OnClick Effect"
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: wp-gallery-custom-links.php:117
|
53 |
msgid ""
|
54 |
"Lightbox and other OnClick events are removed by default from this image in "
|
55 |
"galleries. This setting will only be applied to this image in galleries if "
|
56 |
"this image has a Gallery Link URL specified."
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: wp-gallery-custom-links.php:123
|
60 |
msgid "Remove"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: wp-gallery-custom-links.php:124
|
64 |
msgid "Keep"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: wp-gallery-custom-links.php:129
|
68 |
msgid "Gallery Link Additional CSS Classes"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: wp-gallery-custom-links.php:132
|
72 |
msgid ""
|
73 |
"Additional CSS classes specified here will be applied to the "
|
74 |
"<strong><em>link</em></strong> around this image in galleries regardless of "
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-li
|
|
4 |
Tags: gallery links, gallery link, gallery
|
5 |
Requires at least: 3.3.1
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 1.10.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -147,6 +147,9 @@ accomplish this, which is outside the scope of this plugin.
|
|
147 |
|
148 |
== Changelog ==
|
149 |
|
|
|
|
|
|
|
150 |
= 1.10.4 =
|
151 |
* Updated some text domain settings to be in accordance with the translate.wordpress.org translation system.
|
152 |
* Polished up some of the help message styles to make them easier to read
|
@@ -260,6 +263,9 @@ directly attached to the post.
|
|
260 |
|
261 |
== Upgrade Notice ==
|
262 |
|
|
|
|
|
|
|
263 |
= 1.10.4 =
|
264 |
* Updated some text domain settings to be in accordance with the translate.wordpress.org translation system.
|
265 |
* Polished up some of the help message styles to make them easier to read
|
4 |
Tags: gallery links, gallery link, gallery
|
5 |
Requires at least: 3.3.1
|
6 |
Tested up to: 4.3.1
|
7 |
+
Stable tag: 1.10.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
147 |
|
148 |
== Changelog ==
|
149 |
|
150 |
+
= 1.10.5 =
|
151 |
+
* Changed translation text domain from a variable to strings, because apparently a variable doesn't universally work no matter how smart it makes me feel.
|
152 |
+
|
153 |
= 1.10.4 =
|
154 |
* Updated some text domain settings to be in accordance with the translate.wordpress.org translation system.
|
155 |
* Polished up some of the help message styles to make them easier to read
|
263 |
|
264 |
== Upgrade Notice ==
|
265 |
|
266 |
+
= 1.10.5 =
|
267 |
+
* Changed translation text domain from a variable to strings, because apparently a variable doesn't universally work no matter how smart it makes me feel.
|
268 |
+
|
269 |
= 1.10.4 =
|
270 |
* Updated some text domain settings to be in accordance with the translate.wordpress.org translation system.
|
271 |
* Polished up some of the help message styles to make them easier to read
|
wp-gallery-custom-links.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Gallery Custom Links
|
|
4 |
Plugin URI: http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/
|
5 |
Text Domain: wp-gallery-custom-links
|
6 |
Description: Specify custom links for WordPress gallery images (instead of attachment or file only).
|
7 |
-
Version: 1.10.
|
8 |
Author: Four Lights Web Development
|
9 |
Author URI: http://www.fourlightsweb.com
|
10 |
License: GPL2
|
@@ -43,7 +43,6 @@ class WPGalleryCustomLinks {
|
|
43 |
// return same content passed in to this second recursive call
|
44 |
// return "filter" $output with replaced links to original $GLOBALS['shortcode_tags']['gallery'] call
|
45 |
private static $first_call = true;
|
46 |
-
private static $textdomain_id = 'wp-gallery-custom-links';
|
47 |
private static $class_name = 'WPGalleryCustomLinks';
|
48 |
|
49 |
public static function init() {
|
@@ -60,12 +59,12 @@ class WPGalleryCustomLinks {
|
|
60 |
add_action( 'wp_enqueue_scripts', array( self::$class_name, 'do_action_wp_enqueue_scripts' ) );
|
61 |
|
62 |
// Load translations
|
63 |
-
load_plugin_textdomain(
|
64 |
} // End function init()
|
65 |
|
66 |
public static function loadPluginTextDomain() {
|
67 |
// The codex says this is needed to load plugin language files
|
68 |
-
load_plugin_textdomain(
|
69 |
}
|
70 |
|
71 |
public static function do_action_wp_enqueue_scripts() {
|
@@ -83,10 +82,10 @@ class WPGalleryCustomLinks {
|
|
83 |
|
84 |
// Gallery Link URL field
|
85 |
$form_fields['gallery_link_url'] = array(
|
86 |
-
'label' => __( 'Gallery Link URL',
|
87 |
' <a href="#" onclick="jQuery(\'.wpgcl_gallery_link_help\').hide();jQuery(\'#wpgcl_gallery_link_url_help\').show(); return false;" onblur="jQuery(\'#wpgcl_gallery_link_url_help\').hide();">[?]</a>' .
|
88 |
'<div id="wpgcl_gallery_link_url_help" style="'.$help_css.'" class="wpgcl_gallery_link_help">' .
|
89 |
-
__( 'Will replace "Image File" or "Attachment Page" link for this image in galleries. Use [none] to remove the link from this image in galleries.',
|
90 |
' <a href="#" onclick="jQuery(\'#wpgcl_gallery_link_url_help\').hide(); return false;">[X]</a>' .
|
91 |
'</div>',
|
92 |
'input' => 'text',
|
@@ -95,42 +94,42 @@ class WPGalleryCustomLinks {
|
|
95 |
// Gallery Link Target field
|
96 |
$target_value = get_post_meta( $post->ID, '_gallery_link_target', true );
|
97 |
$form_fields['gallery_link_target'] = array(
|
98 |
-
'label' => __( 'Gallery Link Target',
|
99 |
' <a href="#" onclick="jQuery(\'.wpgcl_gallery_link_help\').hide();jQuery(\'#wpgcl_gallery_link_target_help\').show(); return false;" onblur="jQuery(\'#wpgcl_gallery_link_target_help\').hide();">[?]</a>' .
|
100 |
'<div id="wpgcl_gallery_link_target_help" style="'.$help_css.'" class="wpgcl_gallery_link_help">' .
|
101 |
-
__( 'This setting will be applied to this image in galleries regardless of whether or not a Gallery Link URL has been specified.',
|
102 |
' <a href="#" onclick="jQuery(\'#wpgcl_gallery_link_target_help\').hide(); return false;">[X]</a>' .
|
103 |
'</div>',
|
104 |
'input' => 'html',
|
105 |
'html' => '
|
106 |
<select name="attachments['.$post->ID.'][gallery_link_target]" id="attachments['.$post->ID.'][gallery_link_target]">
|
107 |
-
<option value="">'.__( 'Do Not Change',
|
108 |
-
<option value="_self"'.($target_value == '_self' ? ' selected="selected"' : '').'>'.__( 'Same Window',
|
109 |
-
<option value="_blank"'.($target_value == '_blank' ? ' selected="selected"' : '').'>'.__( 'New Window',
|
110 |
</select>'
|
111 |
);
|
112 |
// Gallery Link OnClick Effect field
|
113 |
$preserve_click_value = get_post_meta( $post->ID, '_gallery_link_preserve_click', true );
|
114 |
$form_fields['gallery_link_preserve_click'] = array(
|
115 |
-
'label' => __( 'Gallery Link OnClick Effect',
|
116 |
' <a href="#" onclick="jQuery(\'.wpgcl_gallery_link_help\').hide();jQuery(\'#wpgcl_gallery_link_preserve_click_help\').show(); return false;" onblur="jQuery(\'#wpgcl_gallery_link_preserve_click_help\').hide();">[?]</a>' .
|
117 |
'<div id="wpgcl_gallery_link_preserve_click_help" style="'.$help_css.'" class="wpgcl_gallery_link_help">' .
|
118 |
-
__( 'Lightbox and other OnClick events are removed by default from this image in galleries. This setting will only be applied to this image in galleries if this image has a Gallery Link URL specified.',
|
119 |
' <a href="#" onclick="jQuery(\'#wpgcl_gallery_link_preserve_click_help\').hide(); return false;">[X]</a>' .
|
120 |
'</div>',
|
121 |
'input' => 'html',
|
122 |
'html' => '
|
123 |
<select name="attachments['.$post->ID.'][gallery_link_preserve_click]" id="attachments['.$post->ID.'][gallery_link_preserve_click]">
|
124 |
-
<option value="remove">'.__( 'Remove',
|
125 |
-
<option value="preserve"'.($preserve_click_value == 'preserve' ? ' selected="selected"' : '').'>'.__( 'Keep',
|
126 |
</select>'
|
127 |
);
|
128 |
// Gallery Link additional css classes field
|
129 |
$form_fields['gallery_link_additional_css_classes'] = array(
|
130 |
-
'label' => __( 'Gallery Link Additional CSS Classes',
|
131 |
' <a href="#" onclick="jQuery(\'.wpgcl_gallery_link_help\').hide();jQuery(\'#wpgcl_gallery_link_additional_css_classes_help\').show(); return false;" onblur="jQuery(\'#wpgcl_gallery_link_additional_css_classes_help\').hide();">[?]</a>' .
|
132 |
'<div id="wpgcl_gallery_link_additional_css_classes_help" style="'.$help_css.'" class="wpgcl_gallery_link_help">' .
|
133 |
-
__( 'Additional CSS classes specified here will be applied to the <strong><em>link</em></strong> around this image in galleries regardless of whether or not a Gallery Link URL has been specified.',
|
134 |
' <a href="#" onclick="jQuery(\'#wpgcl_gallery_link_additional_css_classes_help\').hide(); return false;">[X]</a>' .
|
135 |
'</div>',
|
136 |
'input' => 'text',
|
4 |
Plugin URI: http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/
|
5 |
Text Domain: wp-gallery-custom-links
|
6 |
Description: Specify custom links for WordPress gallery images (instead of attachment or file only).
|
7 |
+
Version: 1.10.5
|
8 |
Author: Four Lights Web Development
|
9 |
Author URI: http://www.fourlightsweb.com
|
10 |
License: GPL2
|
43 |
// return same content passed in to this second recursive call
|
44 |
// return "filter" $output with replaced links to original $GLOBALS['shortcode_tags']['gallery'] call
|
45 |
private static $first_call = true;
|
|
|
46 |
private static $class_name = 'WPGalleryCustomLinks';
|
47 |
|
48 |
public static function init() {
|
59 |
add_action( 'wp_enqueue_scripts', array( self::$class_name, 'do_action_wp_enqueue_scripts' ) );
|
60 |
|
61 |
// Load translations
|
62 |
+
load_plugin_textdomain( 'wp-gallery-custom-links', false, basename( dirname( __FILE__ ) ) . '/languages' );
|
63 |
} // End function init()
|
64 |
|
65 |
public static function loadPluginTextDomain() {
|
66 |
// The codex says this is needed to load plugin language files
|
67 |
+
load_plugin_textdomain( 'wp-gallery-custom-links', false, basename( dirname( __FILE__ ) ) . '/languages' );
|
68 |
}
|
69 |
|
70 |
public static function do_action_wp_enqueue_scripts() {
|
82 |
|
83 |
// Gallery Link URL field
|
84 |
$form_fields['gallery_link_url'] = array(
|
85 |
+
'label' => __( 'Gallery Link URL', 'wp-gallery-custom-links' ) .
|
86 |
' <a href="#" onclick="jQuery(\'.wpgcl_gallery_link_help\').hide();jQuery(\'#wpgcl_gallery_link_url_help\').show(); return false;" onblur="jQuery(\'#wpgcl_gallery_link_url_help\').hide();">[?]</a>' .
|
87 |
'<div id="wpgcl_gallery_link_url_help" style="'.$help_css.'" class="wpgcl_gallery_link_help">' .
|
88 |
+
__( 'Will replace "Image File" or "Attachment Page" link for this image in galleries. Use [none] to remove the link from this image in galleries.', 'wp-gallery-custom-links' ) .
|
89 |
' <a href="#" onclick="jQuery(\'#wpgcl_gallery_link_url_help\').hide(); return false;">[X]</a>' .
|
90 |
'</div>',
|
91 |
'input' => 'text',
|
94 |
// Gallery Link Target field
|
95 |
$target_value = get_post_meta( $post->ID, '_gallery_link_target', true );
|
96 |
$form_fields['gallery_link_target'] = array(
|
97 |
+
'label' => __( 'Gallery Link Target', 'wp-gallery-custom-links' ) .
|
98 |
' <a href="#" onclick="jQuery(\'.wpgcl_gallery_link_help\').hide();jQuery(\'#wpgcl_gallery_link_target_help\').show(); return false;" onblur="jQuery(\'#wpgcl_gallery_link_target_help\').hide();">[?]</a>' .
|
99 |
'<div id="wpgcl_gallery_link_target_help" style="'.$help_css.'" class="wpgcl_gallery_link_help">' .
|
100 |
+
__( 'This setting will be applied to this image in galleries regardless of whether or not a Gallery Link URL has been specified.', 'wp-gallery-custom-links' ) .
|
101 |
' <a href="#" onclick="jQuery(\'#wpgcl_gallery_link_target_help\').hide(); return false;">[X]</a>' .
|
102 |
'</div>',
|
103 |
'input' => 'html',
|
104 |
'html' => '
|
105 |
<select name="attachments['.$post->ID.'][gallery_link_target]" id="attachments['.$post->ID.'][gallery_link_target]">
|
106 |
+
<option value="">'.__( 'Do Not Change', 'wp-gallery-custom-links' ).'</option>
|
107 |
+
<option value="_self"'.($target_value == '_self' ? ' selected="selected"' : '').'>'.__( 'Same Window', 'wp-gallery-custom-links' ).'</option>
|
108 |
+
<option value="_blank"'.($target_value == '_blank' ? ' selected="selected"' : '').'>'.__( 'New Window', 'wp-gallery-custom-links' ).'</option>
|
109 |
</select>'
|
110 |
);
|
111 |
// Gallery Link OnClick Effect field
|
112 |
$preserve_click_value = get_post_meta( $post->ID, '_gallery_link_preserve_click', true );
|
113 |
$form_fields['gallery_link_preserve_click'] = array(
|
114 |
+
'label' => __( 'Gallery Link OnClick Effect', 'wp-gallery-custom-links' ) .
|
115 |
' <a href="#" onclick="jQuery(\'.wpgcl_gallery_link_help\').hide();jQuery(\'#wpgcl_gallery_link_preserve_click_help\').show(); return false;" onblur="jQuery(\'#wpgcl_gallery_link_preserve_click_help\').hide();">[?]</a>' .
|
116 |
'<div id="wpgcl_gallery_link_preserve_click_help" style="'.$help_css.'" class="wpgcl_gallery_link_help">' .
|
117 |
+
__( 'Lightbox and other OnClick events are removed by default from this image in galleries. This setting will only be applied to this image in galleries if this image has a Gallery Link URL specified.', 'wp-gallery-custom-links' ) .
|
118 |
' <a href="#" onclick="jQuery(\'#wpgcl_gallery_link_preserve_click_help\').hide(); return false;">[X]</a>' .
|
119 |
'</div>',
|
120 |
'input' => 'html',
|
121 |
'html' => '
|
122 |
<select name="attachments['.$post->ID.'][gallery_link_preserve_click]" id="attachments['.$post->ID.'][gallery_link_preserve_click]">
|
123 |
+
<option value="remove">'.__( 'Remove', 'wp-gallery-custom-links' ).'</option>
|
124 |
+
<option value="preserve"'.($preserve_click_value == 'preserve' ? ' selected="selected"' : '').'>'.__( 'Keep', 'wp-gallery-custom-links' ).'</option>
|
125 |
</select>'
|
126 |
);
|
127 |
// Gallery Link additional css classes field
|
128 |
$form_fields['gallery_link_additional_css_classes'] = array(
|
129 |
+
'label' => __( 'Gallery Link Additional CSS Classes', 'wp-gallery-custom-links' ) .
|
130 |
' <a href="#" onclick="jQuery(\'.wpgcl_gallery_link_help\').hide();jQuery(\'#wpgcl_gallery_link_additional_css_classes_help\').show(); return false;" onblur="jQuery(\'#wpgcl_gallery_link_additional_css_classes_help\').hide();">[?]</a>' .
|
131 |
'<div id="wpgcl_gallery_link_additional_css_classes_help" style="'.$help_css.'" class="wpgcl_gallery_link_help">' .
|
132 |
+
__( 'Additional CSS classes specified here will be applied to the <strong><em>link</em></strong> around this image in galleries regardless of whether or not a Gallery Link URL has been specified.', 'wp-gallery-custom-links' ) .
|
133 |
' <a href="#" onclick="jQuery(\'#wpgcl_gallery_link_additional_css_classes_help\').hide(); return false;">[X]</a>' .
|
134 |
'</div>',
|
135 |
'input' => 'text',
|