WP Gallery Custom Links - Version 1.10.1

Version Description

  • Changed javascript to queue in wp_enqueue_scripts hook instead of the all-encompassing init.
  • Added a translation for Spanish, courtesy of Andrew Kurtis of WebHostingHub (thanks!)
Download this release

Release Info

Developer fourlightsweb
Plugin Icon wp plugin WP Gallery Custom Links
Version 1.10.1
Comparing to
See all releases

Code changes from version 1.10.0 to 1.10.1

languages/wp-gallery-custom-links-es_ES.mo ADDED
Binary file
languages/wp-gallery-custom-links-es_ES.po ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 WP Gallery Custom Links
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.1\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-gallery-custom-links\n"
7
+ "POT-Creation-Date: 2014-05-22 16:39:23+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-05-28 11:59+0100\n"
12
+ "Last-Translator: jelena kovacevic <jecajeca260@gmail.com>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "X-Generator: Poedit 1.5.5\n"
15
+
16
+ #: wp-gallery-custom-links.php:79
17
+ msgid "Gallery Link URL"
18
+ msgstr "URL de enlace a Galería"
19
+
20
+ #: wp-gallery-custom-links.php:82
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
+ "Remplazará el enlace\"Image File\" o \"Attachment Page\" para esta imagen "
26
+ "en las galerías. Use [ninguno] para eliminar el enlace de esta imagen en "
27
+ "galerías."
28
+
29
+ #: wp-gallery-custom-links.php:91
30
+ msgid "Gallery Link Target"
31
+ msgstr "Objetivo de enlace a Galería"
32
+
33
+ #: wp-gallery-custom-links.php:94
34
+ msgid ""
35
+ "This setting will be applied to this image in galleries regardless of "
36
+ "whether or not a Gallery Link URL has been specified."
37
+ msgstr ""
38
+ "Esta opción se aplicaráa a esta imagen en galerías a pesar de si se "
39
+ "especificó URL de Galería."
40
+
41
+ #: wp-gallery-custom-links.php:100
42
+ msgid "Same Window"
43
+ msgstr "Misma ventana "
44
+
45
+ #: wp-gallery-custom-links.php:101
46
+ msgid "New Window"
47
+ msgstr "Nueva ventana "
48
+
49
+ #: wp-gallery-custom-links.php:107
50
+ msgid "Gallery Link OnClick Effect"
51
+ msgstr "Efecto OnClick enlace de Galería"
52
+
53
+ #: wp-gallery-custom-links.php:110
54
+ msgid ""
55
+ "Lightbox and other OnClick events are removed by default from this image in "
56
+ "galleries. This setting will only be applied to this image in galleries if "
57
+ "this image has a Gallery Link URL specified."
58
+ msgstr ""
59
+ "Lightbox y otros eventos OnClick se eliminan por defecto de esta imagen en "
60
+ "Galerías. Esta opción se aplicará a esta imagen en galerías si esta imagen "
61
+ "tiene especificada una URL de Galería."
62
+
63
+ #: wp-gallery-custom-links.php:116
64
+ msgid "Remove"
65
+ msgstr "Eliminar "
66
+
67
+ #: wp-gallery-custom-links.php:117
68
+ msgid "Keep"
69
+ msgstr "Conservar "
70
+
71
+ #: wp-gallery-custom-links.php:122
72
+ msgid "Gallery Link Additional CSS Classes"
73
+ msgstr "Clases CSS adicionales de Galería "
74
+
75
+ #: wp-gallery-custom-links.php:125
76
+ msgid ""
77
+ "Additional CSS classes specified here will be applied to the "
78
+ "<strong><em>link</em></strong> around this image in galleries regardless of "
79
+ "whether or not a Gallery Link URL has been specified."
80
+ msgstr ""
81
+ "Clases CSS adicionales se especifican aquí y serán aplicadas al "
82
+ "<strong><em>enlace</em></strong> alrededor de esta imagen en galerías a "
83
+ "pesar de si se especificó o no un enlace a galerías."
84
+
85
+ #. Plugin Name of the plugin/theme
86
+ msgid "WP Gallery Custom Links"
87
+ msgstr "Enlaces Personalizados a Galerías WP"
88
+
89
+ #. Plugin URI of the plugin/theme
90
+ msgid "http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/"
91
+ msgstr ""
92
+ "http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/"
93
+
94
+ #. Description of the plugin/theme
95
+ msgid ""
96
+ "Specify custom links for WordPress gallery images (instead of attachment or "
97
+ "file only)."
98
+ msgstr ""
99
+ "Especificar enlaces personalizados para imágenes de galerías WordPress (en "
100
+ "lugar de sólo adjunto o archivo)"
101
+
102
+ #. Author of the plugin/theme
103
+ msgid "Four Lights Web Development"
104
+ msgstr "Desarrollo Web Four Lights "
105
+
106
+ #. Author URI of the plugin/theme
107
+ msgid "http://www.fourlightsweb.com"
108
+ msgstr "http://www.fourlightsweb.com"
languages/wp-gallery-custom-links-nl_NL.mo ADDED
Binary file
languages/wp-gallery-custom-links-nl_NL.po ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 WP Gallery Custom Links
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.1\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-gallery-custom-links\n"
7
+ "POT-Creation-Date: 2014-05-22 16:39:23+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-06-17 12:23+0100\n"
12
+ "Last-Translator: Carsten <carsten@presis.nl>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "X-Generator: Poedit 1.6.5\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "Language: nl_NL\n"
17
+
18
+ #: wp-gallery-custom-links.php:79
19
+ msgid "Gallery Link URL"
20
+ msgstr "Galerij Link URL"
21
+
22
+ #: wp-gallery-custom-links.php:82
23
+ msgid ""
24
+ "Will replace \"Image File\" or \"Attachment Page\" link for this image in "
25
+ "galleries. Use [none] to remove the link from this image in galleries."
26
+ msgstr ""
27
+ "Vervangt \"Afbeeldingsbestand\" of \"Bijlage pagina\" link voor deze "
28
+ "afbeelding in de galerij. Gebruik [none] om de link van deze afbeelding in "
29
+ "de galerij te verwijderen."
30
+
31
+ #: wp-gallery-custom-links.php:91
32
+ msgid "Gallery Link Target"
33
+ msgstr "Galerij Link doel"
34
+
35
+ #: wp-gallery-custom-links.php:94
36
+ msgid ""
37
+ "This setting will be applied to this image in galleries regardless of "
38
+ "whether or not a Gallery Link URL has been specified."
39
+ msgstr ""
40
+ "Deze instelling wordt toegepast op deze afbeelding in de galerij, zelfs als "
41
+ "er geen Galerij Link URL is ingevoerd."
42
+
43
+ #: wp-gallery-custom-links.php:100
44
+ msgid "Same Window"
45
+ msgstr "Zelfde venster"
46
+
47
+ #: wp-gallery-custom-links.php:101
48
+ msgid "New Window"
49
+ msgstr "Nieuw venster"
50
+
51
+ #: wp-gallery-custom-links.php:107
52
+ msgid "Gallery Link OnClick Effect"
53
+ msgstr "Galerij link OnClick effect"
54
+
55
+ #: wp-gallery-custom-links.php:110
56
+ msgid ""
57
+ "Lightbox and other OnClick events are removed by default from this image in "
58
+ "galleries. This setting will only be applied to this image in galleries if "
59
+ "this image has a Gallery Link URL specified."
60
+ msgstr ""
61
+ "Lightbox en andere OnClick events worden verwijderd voor deze afbeelding in "
62
+ "de galerij. Deze instelling wordt alleen toegepast op deze afbeelding in de "
63
+ "galerij als de afbeelding een Galerij Link URL heeft."
64
+
65
+ #: wp-gallery-custom-links.php:116
66
+ msgid "Remove"
67
+ msgstr "Verwijder"
68
+
69
+ #: wp-gallery-custom-links.php:117
70
+ msgid "Keep"
71
+ msgstr "Behouden"
72
+
73
+ #: wp-gallery-custom-links.php:122
74
+ msgid "Gallery Link Additional CSS Classes"
75
+ msgstr "Galerij link extra CSS Classes"
76
+
77
+ #: wp-gallery-custom-links.php:125
78
+ msgid ""
79
+ "Additional CSS classes specified here will be applied to the "
80
+ "<strong><em>link</em></strong> around this image in galleries regardless of "
81
+ "whether or not a Gallery Link URL has been specified."
82
+ msgstr ""
83
+ "Extra CSS classes die hier worsen ingevoerd worsen toegepast op de "
84
+ "<strong><em>link</em></strong> rond deze afbeelding in de galerij zelfs als "
85
+ "er geen Gallerij link URL is ingevoerd."
86
+
87
+ #. Plugin Name of the plugin/theme
88
+ msgid "WP Gallery Custom Links"
89
+ msgstr "WP Galerij Custom Links"
90
+
91
+ #. Plugin URI of the plugin/theme
92
+ msgid "http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/"
93
+ msgstr ""
94
+ "http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/"
95
+
96
+ #. Description of the plugin/theme
97
+ msgid ""
98
+ "Specify custom links for WordPress gallery images (instead of attachment or "
99
+ "file only)."
100
+ msgstr ""
101
+ "Voer custos links in voor WordPress galerij afbeeldingen (in plaats van "
102
+ "bijlage of bestand links)."
103
+
104
+ #. Author of the plugin/theme
105
+ msgid "Four Lights Web Development"
106
+ msgstr "Four Lights Web Development"
107
+
108
+ #. Author URI of the plugin/theme
109
+ msgid "http://www.fourlightsweb.com"
110
+ msgstr "http://www.fourlightsweb.com"
languages/wp-gallery-custom-links.pot CHANGED
@@ -1,62 +1,93 @@
 
 
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: wp-gallery-custom-links\n"
4
- "POT-Creation-Date: 2013-08-09 16:39+0100\n"
5
- "PO-Revision-Date: 2013-08-09 16:39+0100\n"
6
- "Last-Translator: \n"
7
- "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.5.7\n"
12
- "X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
13
- "X-Poedit-Basepath: .\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: wp-gallery-custom-links.php:68
18
  msgid "Gallery Link URL"
19
  msgstr ""
20
 
21
- #: wp-gallery-custom-links.php:71
22
  msgid ""
23
  "Will replace \"Image File\" or \"Attachment Page\" link for this image in "
24
  "galleries. Use [none] to remove the link from this image in galleries."
25
  msgstr ""
26
 
27
- #: wp-gallery-custom-links.php:76
28
  msgid "Gallery Link Target"
29
  msgstr ""
30
 
31
- #: wp-gallery-custom-links.php:80
 
 
 
 
 
 
32
  msgid "Same Window"
33
  msgstr ""
34
 
35
- #: wp-gallery-custom-links.php:81
36
  msgid "New Window"
37
  msgstr ""
38
 
39
- #: wp-gallery-custom-links.php:83
40
- msgid ""
41
- "This setting will be applied to this image in galleries regardless of "
42
- "whether or not a Gallery Link URL has been specified."
43
  msgstr ""
44
 
45
- #: wp-gallery-custom-links.php:88
46
- msgid "Gallery Link OnClick Effect"
 
 
 
47
  msgstr ""
48
 
49
- #: wp-gallery-custom-links.php:92
50
  msgid "Remove"
51
  msgstr ""
52
 
53
- #: wp-gallery-custom-links.php:93
54
  msgid "Keep"
55
  msgstr ""
56
 
57
- #: wp-gallery-custom-links.php:95
 
 
 
 
58
  msgid ""
59
- "Lightbox and other OnClick events are removed by default from this image in "
60
- "galleries. This setting will only be applied to this image in galleries if "
61
- "this image has a Gallery Link URL specified."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  msgstr ""
1
+ # Copyright (C) 2014 WP Gallery Custom Links
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.1\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-gallery-custom-links\n"
7
+ "POT-Creation-Date: 2014-05-22 16:39:23+00:00\n"
 
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
 
 
14
 
15
+ #: wp-gallery-custom-links.php:79
16
  msgid "Gallery Link URL"
17
  msgstr ""
18
 
19
+ #: wp-gallery-custom-links.php:82
20
  msgid ""
21
  "Will replace \"Image File\" or \"Attachment Page\" link for this image in "
22
  "galleries. Use [none] to remove the link from this image in galleries."
23
  msgstr ""
24
 
25
+ #: wp-gallery-custom-links.php:91
26
  msgid "Gallery Link Target"
27
  msgstr ""
28
 
29
+ #: wp-gallery-custom-links.php:94
30
+ msgid ""
31
+ "This setting will be applied to this image in galleries regardless of "
32
+ "whether or not a Gallery Link URL has been specified."
33
+ msgstr ""
34
+
35
+ #: wp-gallery-custom-links.php:100
36
  msgid "Same Window"
37
  msgstr ""
38
 
39
+ #: wp-gallery-custom-links.php:101
40
  msgid "New Window"
41
  msgstr ""
42
 
43
+ #: wp-gallery-custom-links.php:107
44
+ msgid "Gallery Link OnClick Effect"
 
 
45
  msgstr ""
46
 
47
+ #: wp-gallery-custom-links.php:110
48
+ msgid ""
49
+ "Lightbox and other OnClick events are removed by default from this image in "
50
+ "galleries. This setting will only be applied to this image in galleries if "
51
+ "this image has a Gallery Link URL specified."
52
  msgstr ""
53
 
54
+ #: wp-gallery-custom-links.php:116
55
  msgid "Remove"
56
  msgstr ""
57
 
58
+ #: wp-gallery-custom-links.php:117
59
  msgid "Keep"
60
  msgstr ""
61
 
62
+ #: wp-gallery-custom-links.php:122
63
+ msgid "Gallery Link Additional CSS Classes"
64
+ msgstr ""
65
+
66
+ #: wp-gallery-custom-links.php:125
67
  msgid ""
68
+ "Additional CSS classes specified here will be applied to the "
69
+ "<strong><em>link</em></strong> around this image in galleries regardless of "
70
+ "whether or not a Gallery Link URL has been specified."
71
+ msgstr ""
72
+
73
+ #. Plugin Name of the plugin/theme
74
+ msgid "WP Gallery Custom Links"
75
+ msgstr ""
76
+
77
+ #. Plugin URI of the plugin/theme
78
+ msgid "http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/"
79
+ msgstr ""
80
+
81
+ #. Description of the plugin/theme
82
+ msgid ""
83
+ "Specify custom links for WordPress gallery images (instead of attachment or "
84
+ "file only)."
85
+ msgstr ""
86
+
87
+ #. Author of the plugin/theme
88
+ msgid "Four Lights Web Development"
89
+ msgstr ""
90
+
91
+ #. Author URI of the plugin/theme
92
+ msgid "http://www.fourlightsweb.com"
93
  msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: fourlightsweb
3
  Donate link: http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/#donate
4
  Tags: gallery links, gallery link, gallery
5
  Requires at least: 3.3.1
6
- Tested up to: 3.8.1
7
- Stable tag: 1.10.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -35,6 +35,7 @@ will be removed to allow them to function as regular links.
35
  * Use "[none]" as the Gallery Link URL to remove the link for that gallery image.
36
  * For each gallery image, you can select a Gallery Link Target ("Same Window" or "New Window").
37
  * For each gallery image, you can select how to handle Lightbox and other onClick events ("Remove" or "Keep").
 
38
  * Use `[gallery ignore_gallery_link_urls="true"]` to ignore the custom links on an entire gallery.
39
  * Use `[gallery open_all_in_new_window="true"]` and `[gallery open_all_in_same_window="true"]` to open all images in an entire gallery in a new window/the same window, respectively.
40
  * Use `[gallery preserve_click_events="true"]` to keep Lightbox or other onClick events on all custom-linked images in an entire gallery.
@@ -140,6 +141,10 @@ the same styles to `<img>` tags without a link around them.
140
 
141
  == Changelog ==
142
 
 
 
 
 
143
  = 1.10.0 =
144
  * By popular demand, added the ability to add additional css classes to each image link in the gallery.
145
  * Added a translation for German, courtesy of Martin Stehle (thanks!)
@@ -236,6 +241,10 @@ directly attached to the post.
236
 
237
  == Upgrade Notice ==
238
 
 
 
 
 
239
  = 1.10.0 =
240
  * By popular demand, added the ability to add additional css classes to each image link in the gallery.
241
  * Added a translation for German, courtesy of Martin Stehle (thanks!)
3
  Donate link: http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/#donate
4
  Tags: gallery links, gallery link, gallery
5
  Requires at least: 3.3.1
6
+ Tested up to: 4.0
7
+ Stable tag: 1.10.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
35
  * Use "[none]" as the Gallery Link URL to remove the link for that gallery image.
36
  * For each gallery image, you can select a Gallery Link Target ("Same Window" or "New Window").
37
  * For each gallery image, you can select how to handle Lightbox and other onClick events ("Remove" or "Keep").
38
+ * For each gallery link, you can add additional css classes.
39
  * Use `[gallery ignore_gallery_link_urls="true"]` to ignore the custom links on an entire gallery.
40
  * Use `[gallery open_all_in_new_window="true"]` and `[gallery open_all_in_same_window="true"]` to open all images in an entire gallery in a new window/the same window, respectively.
41
  * Use `[gallery preserve_click_events="true"]` to keep Lightbox or other onClick events on all custom-linked images in an entire gallery.
141
 
142
  == Changelog ==
143
 
144
+ = 1.10.1 =
145
+ * Changed javascript to queue in wp_enqueue_scripts hook instead of the all-encompassing init.
146
+ * Added a translation for Spanish, courtesy of Andrew Kurtis of WebHostingHub (thanks!)
147
+
148
  = 1.10.0 =
149
  * By popular demand, added the ability to add additional css classes to each image link in the gallery.
150
  * Added a translation for German, courtesy of Martin Stehle (thanks!)
241
 
242
  == Upgrade Notice ==
243
 
244
+ = 1.10.1 =
245
+ * Changed javascript to queue in wp_enqueue_scripts hook instead of the all-encompassing init.
246
+ * Added a translation for Spanish, courtesy of Andrew Kurtis of WebHostingHub (thanks!)
247
+
248
  = 1.10.0 =
249
  * By popular demand, added the ability to add additional css classes to each image link in the gallery.
250
  * Added a translation for German, courtesy of Martin Stehle (thanks!)
wp-gallery-custom-links.php CHANGED
@@ -2,13 +2,13 @@
2
  /*
3
  Plugin Name: WP Gallery Custom Links
4
  Plugin URI: http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/
5
- Description: Specifiy custom links for WordPress gallery images (instead of attachment or file only).
6
- Version: 1.10.0
7
  Author: Four Lights Web Development
8
  Author URI: http://www.fourlightsweb.com
9
  License: GPL2
10
 
11
- Copyright 2012 Four Lights Web Development, LLC. (email : development@fourlightsweb.com)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License, version 2, as
@@ -55,6 +55,13 @@ class WPGalleryCustomLinks {
55
  add_filter( 'post_gallery', array( self::$class_name, 'apply_filter_post_gallery' ), 999, 2 );
56
 
57
  // Require the javascript to disable lightbox
 
 
 
 
 
 
 
58
  wp_enqueue_script(
59
  'wp-gallery-custom-links-js',
60
  plugins_url( '/wp-gallery-custom-links.js', __FILE__ ),
@@ -62,10 +69,7 @@ class WPGalleryCustomLinks {
62
  '1.1',
63
  true
64
  );
65
-
66
- // Load translations
67
- load_plugin_textdomain( self::$textdomain_id, false, basename( dirname( __FILE__ ) ) . '/languages' );
68
- } // End function init()
69
 
70
  public static function apply_filter_attachment_fields_to_edit( $form_fields, $post ) {
71
  $help_css = 'display:none;position:absolute;background-color:#ffffe0;text-align:left;border:1px solid #dfdfdf;padding:10px;width:75%;font-weight:normal;border-radius:3px;';
2
  /*
3
  Plugin Name: WP Gallery Custom Links
4
  Plugin URI: http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/
5
+ Description: Specify custom links for WordPress gallery images (instead of attachment or file only).
6
+ Version: 1.10.1
7
  Author: Four Lights Web Development
8
  Author URI: http://www.fourlightsweb.com
9
  License: GPL2
10
 
11
+ Copyright 2014 Four Lights Web Development, LLC. (email : development@fourlightsweb.com)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License, version 2, as
55
  add_filter( 'post_gallery', array( self::$class_name, 'apply_filter_post_gallery' ), 999, 2 );
56
 
57
  // Require the javascript to disable lightbox
58
+ add_action( 'wp_enqueue_scripts', array( self::$class_name, 'do_action_wp_enqueue_scripts' ) );
59
+
60
+ // Load translations
61
+ load_plugin_textdomain( self::$textdomain_id, false, basename( dirname( __FILE__ ) ) . '/languages' );
62
+ } // End function init()
63
+
64
+ public static function do_action_wp_enqueue_scripts() {
65
  wp_enqueue_script(
66
  'wp-gallery-custom-links-js',
67
  plugins_url( '/wp-gallery-custom-links.js', __FILE__ ),
69
  '1.1',
70
  true
71
  );
72
+ }
 
 
 
73
 
74
  public static function apply_filter_attachment_fields_to_edit( $form_fields, $post ) {
75
  $help_css = 'display:none;position:absolute;background-color:#ffffe0;text-align:left;border:1px solid #dfdfdf;padding:10px;width:75%;font-weight:normal;border-radius:3px;';