Responsive Lightbox & Gallery - Version 1.5.6

Version Description

  • New: Option to conditionally load scripts and styles only on pages that have images or galleries in post content.
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Responsive Lightbox & Gallery
Version 1.5.6
Comparing to
See all releases

Code changes from version 1.5.5 to 1.5.6

includes/class-frontend.php CHANGED
@@ -13,34 +13,18 @@ class Responsive_Lightbox_Frontend {
13
 
14
  private $options = array();
15
  private $defaults = array();
16
- private $gallery_no = 0;
17
 
18
  public function __construct() {
19
  // set instance
20
  Responsive_Lightbox()->frontend = $this;
21
-
22
- // set vars
23
- $this->defaults = Responsive_Lightbox()->defaults;
24
- $this->options = Responsive_Lightbox()->options;
25
 
26
  // filters
27
  add_filter( 'post_gallery', array( &$this, 'gallery_attributes' ), 1000, 10, 2 );
28
-
29
- if ( $this->options['settings']['galleries'] === true ) {
30
- add_filter( 'wp_get_attachment_link', array( &$this, 'add_gallery_lightbox_selector' ), 1000, 6 );
31
- }
32
-
33
- if ( $this->options['settings']['videos'] === true ) {
34
- add_filter( 'the_content', array( &$this, 'add_videos_lightbox_selector' ) );
35
- }
36
-
37
- if ( $this->options['settings']['image_links'] === true || $this->options['settings']['images_as_gallery'] === true ) {
38
- add_filter( 'the_content', array( &$this, 'add_links_lightbox_selector' ) );
39
- }
40
-
41
- if ( $this->options['settings']['force_custom_gallery'] === true ) {
42
- add_filter( 'post_gallery', array( &$this, 'add_tiled_gallery_lightbox_selector' ), 2000, 10, 2 );
43
- }
44
  }
45
 
46
  /**
@@ -50,33 +34,38 @@ class Responsive_Lightbox_Frontend {
50
  * @return mixed
51
  */
52
  public function add_videos_lightbox_selector( $content ) {
53
- preg_match_all( '/<a(.*?)href=(?:\'|")((?:http|https|)(?::\/\/|)(?:www.|)((?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[a-z0-9;:@#?&%=+\/\$_.-]*)|((?:http|https|)(?::\/\/|)(?:www.|)(?:vimeo\.com\/[0-9]*(?:.+))))(?:\'|")(.*?)>/i', $content, $links );
54
-
55
- if ( isset( $links[0] ) ) {
56
- foreach ( $links[0] as $id => $link ) {
57
- if ( preg_match( '/<a.*?(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
58
- if ( isset( $result[1] ) ) {
59
- $new_rels = array();
60
- $rels = explode( ' ', $result[1] );
61
-
62
- if ( in_array( $this->options['settings']['selector'], $rels, true ) ) {
63
- foreach ( $rels as $no => $rel ) {
64
- if ( $rel !== $this->options['settings']['selector'] )
65
- $new_rels[] = $rel;
66
- }
67
-
68
- $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . ( ! empty( $new_rel ) ? simplode( ' ', $new_rels ) . ' ' : '') . $this->options['settings']['selector'] . '-video-' . $id . '"', $link ), $content );
69
- } else
70
- $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . ( $result[1] !== '' ? $result[1] . ' ' : '' ) . $this->options['settings']['selector'] . '-video-' . $id . '"', $link ), $content );
71
- }
72
- } else {
73
- // swipebox video fix
74
- if ( $this->options['settings']['script'] === 'swipebox' && strpos( $links[2][$id], 'vimeo') !== false ) {
75
- $links[2][$id] = $links[2][$id] . '?width=' . $this->options['configuration']['swipebox']['video_max_width'];
 
 
 
 
 
76
  }
77
- $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '" data-rel="' . $this->options['settings']['selector'] . '-video-' . $id . '">', $content );
78
  }
79
  }
 
80
  }
81
 
82
  return $content;
@@ -89,35 +78,40 @@ class Responsive_Lightbox_Frontend {
89
  * @return mixed
90
  */
91
  public function add_links_lightbox_selector( $content ) {
92
- preg_match_all( '/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links );
93
-
94
- if ( isset( $links[0] ) ) {
95
- if ( $this->options['settings']['images_as_gallery'] === true )
96
- $rel_hash = '[gallery-' . $this->generate_password( 4 ) . ']';
97
-
98
- foreach ( $links[0] as $id => $link ) {
99
- if ( preg_match( '/<a.*?(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
100
- if ( $this->options['settings']['images_as_gallery'] === true ) {
101
- $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . $this->options['settings']['selector'] . $rel_hash . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
102
- } else {
103
- if ( isset( $result[1] ) ) {
104
- $new_rels = array();
105
- $rels = explode( ' ', $result[1] );
106
-
107
- if ( in_array( $this->options['settings']['selector'], $rels, true ) ) {
108
- foreach ( $rels as $no => $rel ) {
109
- if ( $rel !== $this->options['settings']['selector'] )
110
- $new_rels[] = $rel;
111
- }
112
-
113
- $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . ( ! empty( $new_rels ) ? implode( ' ', $new_rels ) . ' ' : '' ) . $this->options['settings']['selector'] . '-' . $id . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
114
- } else
115
- $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . ( $result[1] !== '' ? $result[1] . ' ' : '' ) . $this->options['settings']['selector'] . '-' . $id . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
 
 
 
 
116
  }
117
- }
118
- } else
119
- $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '.' . $links[3][$id] . '"' . $links[4][$id] . ' data-rel="' . $this->options['settings']['selector'] . ( $this->options['settings']['images_as_gallery'] === true ? $rel_hash : '-' . $id ) . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ) . '>', $content );
120
  }
 
121
  }
122
 
123
  return $content;
@@ -128,30 +122,41 @@ class Responsive_Lightbox_Frontend {
128
  */
129
  public function add_gallery_lightbox_selector( $link, $id, $size, $permalink, $icon, $text ) {
130
 
131
- // gallery image title
132
- $title = '';
133
-
134
- if ( ( $title_arg = $this->options['settings']['gallery_image_title'] ) !== 'default' ) {
135
- $title_arg = apply_filters( 'rl_lightbox_attachment_image_title_arg', $title_arg, $link, $id );
136
- $title = wp_strip_all_tags( trim( $this->get_attachment_title( $id, $title_arg ) ) );
137
- }
138
-
139
- if ( $title ) {
140
- $link = str_replace( '<a href', '<a title="'. $title .'" href', $link );
141
- }
142
 
143
- $link = ( preg_match( '/<a.*? (?:rel|data-rel)=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? data-rel=(?:"|\').*?)((?:"|\').*?>)/', '$1 ' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 data-rel="' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '">', $link ) );
144
-
145
- // gallery image size
146
- if ( $this->options['settings']['gallery_image_size'] != 'full' ) {
147
- $image = wp_get_attachment_image_src( $id, $this->options['settings']['gallery_image_size'] );
148
 
149
- $link = ( preg_match( '/<a.*? href=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? href=(?:"|\')).*?((?:"|\').*?>)/', '$1' . $image[0] . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 href="' . $image[0] . '">', $link ) );
150
- } else {
151
- $link = ( preg_match( '/<a.*? href=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? href=(?:"|\')).*?((?:"|\').*?>)/', '$1' . wp_get_attachment_url( $id ) . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 href="' . wp_get_attachment_url( $id ) . '">', $link ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  }
153
 
154
- return apply_filters( 'rl_lightbox_attachment_link', $link, $id, $size, $permalink, $icon, $text );
155
  }
156
 
157
  /**
@@ -161,33 +166,39 @@ class Responsive_Lightbox_Frontend {
161
  * @param array $attr
162
  * @return mixed
163
  */
164
- public function add_tiled_gallery_lightbox_selector( $content, $attr ) {
165
- preg_match_all( '/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links );
166
-
167
- if ( isset( $links[0] ) ) {
168
-
169
- foreach ( $links[0] as $id => $link ) {
170
-
171
- // gallery image title
172
- $title = '';
173
-
174
- if ( ( $title_arg = $this->options['settings']['gallery_image_title'] ) !== 'default' ) {
 
175
 
176
- $image_id = (int) $this->get_attachment_id_by_url( $links[2][$id] . '.' . $links[3][$id] );
 
 
 
 
 
 
 
 
177
 
178
- if ( $image_id ) {
179
- $title_arg = apply_filters( 'rl_lightbox_attachment_image_title_arg', $title_arg, $image_id, $links[2][$id] . '.' . $links[3][$id] );
180
- $title = wp_strip_all_tags( trim( $this->get_attachment_title( $image_id, $title_arg ) ) );
 
181
  }
182
  }
183
-
184
- if ( preg_match( '/<a.*?(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
185
- $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '"' . ( ! empty ( $title ) ? ' title="' . $title . '"' : '' ) . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
186
- } else {
187
- $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '.' . $links[3][$id] . '"' . $links[4][$id] . ' data-rel="' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ) . ( ! empty ( $title ) ? ' title="' . $title . '"' : '' ) . '>', $content );
188
- }
189
  }
 
190
  }
 
191
  return $content;
192
  }
193
 
@@ -198,7 +209,7 @@ class Responsive_Lightbox_Frontend {
198
  * @param string $title_arg
199
  * @return string
200
  */
201
- private function get_attachment_title( $id, $title_arg ) {
202
 
203
  if ( empty( $title_arg ) || empty( $id ) ) {
204
  return false;
@@ -231,7 +242,7 @@ class Responsive_Lightbox_Frontend {
231
  * @param string $url
232
  * @return int
233
  */
234
- private function get_attachment_id_by_url( $url ) {
235
  $post_id = attachment_url_to_postid( $url );
236
 
237
  if ( ! $post_id ) {
13
 
14
  private $options = array();
15
  private $defaults = array();
16
+ public $gallery_no = 0;
17
 
18
  public function __construct() {
19
  // set instance
20
  Responsive_Lightbox()->frontend = $this;
 
 
 
 
21
 
22
  // filters
23
  add_filter( 'post_gallery', array( &$this, 'gallery_attributes' ), 1000, 10, 2 );
24
+ add_filter( 'wp_get_attachment_link', array( &$this, 'add_gallery_lightbox_selector' ), 1000, 6 );
25
+ add_filter( 'the_content', array( &$this, 'add_videos_lightbox_selector' ) );
26
+ add_filter( 'the_content', array( &$this, 'add_links_lightbox_selector' ) );
27
+ add_filter( 'post_gallery', array( &$this, 'add_custom_gallery_lightbox_selector' ), 2000, 10, 2 );
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
29
 
30
  /**
34
  * @return mixed
35
  */
36
  public function add_videos_lightbox_selector( $content ) {
37
+
38
+ if ( Responsive_Lightbox()->options['settings']['videos'] === true ) {
39
+
40
+ preg_match_all( '/<a(.*?)href=(?:\'|")((?:http|https|)(?::\/\/|)(?:www.|)((?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[a-z0-9;:@#?&%=+\/\$_.-]*)|((?:http|https|)(?::\/\/|)(?:www.|)(?:vimeo\.com\/[0-9]*(?:.+))))(?:\'|")(.*?)>/i', $content, $links );
41
+
42
+ if ( isset( $links[0] ) ) {
43
+ foreach ( $links[0] as $id => $link ) {
44
+ if ( preg_match( '/<a.*?(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
45
+ if ( isset( $result[1] ) ) {
46
+ $new_rels = array();
47
+ $rels = explode( ' ', $result[1] );
48
+
49
+ if ( in_array( Responsive_Lightbox()->options['settings']['selector'], $rels, true ) ) {
50
+ foreach ( $rels as $no => $rel ) {
51
+ if ( $rel !== Responsive_Lightbox()->options['settings']['selector'] )
52
+ $new_rels[] = $rel;
53
+ }
54
+
55
+ $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . ( ! empty( $new_rel ) ? simplode( ' ', $new_rels ) . ' ' : '') . Responsive_Lightbox()->options['settings']['selector'] . '-video-' . $id . '"', $link ), $content );
56
+ } else
57
+ $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . ( $result[1] !== '' ? $result[1] . ' ' : '' ) . Responsive_Lightbox()->options['settings']['selector'] . '-video-' . $id . '"', $link ), $content );
58
+ }
59
+ } else {
60
+ // swipebox video fix
61
+ if ( Responsive_Lightbox()->options['settings']['script'] === 'swipebox' && strpos( $links[2][$id], 'vimeo') !== false ) {
62
+ $links[2][$id] = $links[2][$id] . '?width=' . Responsive_Lightbox()->options['configuration']['swipebox']['video_max_width'];
63
+ }
64
+ $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '" data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . '-video-' . $id . '">', $content );
65
  }
 
66
  }
67
  }
68
+
69
  }
70
 
71
  return $content;
78
  * @return mixed
79
  */
80
  public function add_links_lightbox_selector( $content ) {
81
+
82
+ if ( Responsive_Lightbox()->options['settings']['image_links'] === true || Responsive_Lightbox()->options['settings']['images_as_gallery'] === true ) {
83
+
84
+ preg_match_all( '/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links );
85
+
86
+ if ( isset( $links[0] ) ) {
87
+ if ( Responsive_Lightbox()->options['settings']['images_as_gallery'] === true )
88
+ $rel_hash = '[gallery-' . $this->generate_password( 4 ) . ']';
89
+
90
+ foreach ( $links[0] as $id => $link ) {
91
+ if ( preg_match( '/<a.*?(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
92
+ if ( Responsive_Lightbox()->options['settings']['images_as_gallery'] === true ) {
93
+ $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . $rel_hash . '"' . ( Responsive_Lightbox()->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
94
+ } else {
95
+ if ( isset( $result[1] ) ) {
96
+ $new_rels = array();
97
+ $rels = explode( ' ', $result[1] );
98
+
99
+ if ( in_array( Responsive_Lightbox()->options['settings']['selector'], $rels, true ) ) {
100
+ foreach ( $rels as $no => $rel ) {
101
+ if ( $rel !== Responsive_Lightbox()->options['settings']['selector'] )
102
+ $new_rels[] = $rel;
103
+ }
104
+
105
+ $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . ( ! empty( $new_rels ) ? implode( ' ', $new_rels ) . ' ' : '' ) . Responsive_Lightbox()->options['settings']['selector'] . '-' . $id . '"' . ( Responsive_Lightbox()->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
106
+ } else
107
+ $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . ( $result[1] !== '' ? $result[1] . ' ' : '' ) . Responsive_Lightbox()->options['settings']['selector'] . '-' . $id . '"' . ( Responsive_Lightbox()->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
108
+ }
109
  }
110
+ } else
111
+ $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '.' . $links[3][$id] . '"' . $links[4][$id] . ' data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . ( Responsive_Lightbox()->options['settings']['images_as_gallery'] === true ? $rel_hash : '-' . $id ) . '"' . ( Responsive_Lightbox()->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ) . '>', $content );
112
+ }
113
  }
114
+
115
  }
116
 
117
  return $content;
122
  */
123
  public function add_gallery_lightbox_selector( $link, $id, $size, $permalink, $icon, $text ) {
124
 
125
+ if ( Responsive_Lightbox()->options['settings']['galleries'] === true ) {
126
+
127
+ // gallery link target image
128
+ $src = array();
 
 
 
 
 
 
 
129
 
130
+ // gallery image title
131
+ $title = '';
 
 
 
132
 
133
+ if ( ( $title_arg = Responsive_Lightbox()->options['settings']['gallery_image_title'] ) !== 'default' ) {
134
+ $title_arg = apply_filters( 'rl_lightbox_attachment_image_title_arg', $title_arg, $link, $id );
135
+ $title = wp_strip_all_tags( trim( $this->get_attachment_title( $id, $title_arg ) ) );
136
+ }
137
+
138
+ if ( $title ) {
139
+ $link = str_replace( '<a href', '<a title="'. $title .'" href', $link );
140
+ }
141
+
142
+ $link = ( preg_match( '/<a.*? (?:rel|data-rel)=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? data-rel=(?:"|\').*?)((?:"|\').*?>)/', '$1 ' . Responsive_Lightbox()->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '">', $link ) );
143
+
144
+ // gallery image size
145
+ if ( Responsive_Lightbox()->options['settings']['gallery_image_size'] != 'full' ) {
146
+ $src = wp_get_attachment_image_src( $id, Responsive_Lightbox()->options['settings']['gallery_image_size'] );
147
+
148
+ $link = ( preg_match( '/<a.*? href=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? href=(?:"|\')).*?((?:"|\').*?>)/', '$1' . $src[0] . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 href="' . $src[0] . '">', $link ) );
149
+ } else {
150
+ $src = wp_get_attachment_image_src( $id, 'full' );
151
+
152
+ $link = ( preg_match( '/<a.*? href=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? href=(?:"|\')).*?((?:"|\').*?>)/', '$1' . $src[0] . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 href="' . $src[0] . '">', $link ) );
153
+ }
154
+
155
+ return apply_filters( 'rl_lightbox_attachment_link', $link, $id, $size, $permalink, $icon, $text, $src );
156
+
157
  }
158
 
159
+ return $link;
160
  }
161
 
162
  /**
166
  * @param array $attr
167
  * @return mixed
168
  */
169
+ public function add_custom_gallery_lightbox_selector( $content, $attr ) {
170
+
171
+ if ( Responsive_Lightbox()->options['settings']['force_custom_gallery'] === true ) {
172
+
173
+ preg_match_all( '/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links );
174
+
175
+ if ( isset( $links[0] ) ) {
176
+
177
+ foreach ( $links[0] as $id => $link ) {
178
+
179
+ // gallery image title
180
+ $title = '';
181
 
182
+ if ( ( $title_arg = Responsive_Lightbox()->options['settings']['gallery_image_title'] ) !== 'default' ) {
183
+
184
+ $image_id = (int) $this->get_attachment_id_by_url( $links[2][$id] . '.' . $links[3][$id] );
185
+
186
+ if ( $image_id ) {
187
+ $title_arg = apply_filters( 'rl_lightbox_attachment_image_title_arg', $title_arg, $image_id, $links[2][$id] . '.' . $links[3][$id] );
188
+ $title = wp_strip_all_tags( trim( $this->get_attachment_title( $image_id, $title_arg ) ) );
189
+ }
190
+ }
191
 
192
+ if ( preg_match( '/<a.*?(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
193
+ $content = str_replace( $link, preg_replace( '/(?:rel|data-rel)=(?:\'|")(.*?)(?:\'|")/', 'data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '"' . ( ! empty ( $title ) ? ' title="' . $title . '"' : '' ) . ( Responsive_Lightbox()->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
194
+ } else {
195
+ $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '.' . $links[3][$id] . '"' . $links[4][$id] . ' data-rel="' . Responsive_Lightbox()->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '"' . ( Responsive_Lightbox()->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ) . ( ! empty ( $title ) ? ' title="' . $title . '"' : '' ) . '>', $content );
196
  }
197
  }
 
 
 
 
 
 
198
  }
199
+
200
  }
201
+
202
  return $content;
203
  }
204
 
209
  * @param string $title_arg
210
  * @return string
211
  */
212
+ public function get_attachment_title( $id, $title_arg ) {
213
 
214
  if ( empty( $title_arg ) || empty( $id ) ) {
215
  return false;
242
  * @param string $url
243
  * @return int
244
  */
245
+ public function get_attachment_id_by_url( $url ) {
246
  $post_id = attachment_url_to_postid( $url );
247
 
248
  if ( ! $post_id ) {
includes/class-settings.php CHANGED
@@ -23,10 +23,6 @@ class Responsive_Lightbox_Settings {
23
 
24
  // set instance
25
  Responsive_Lightbox()->settings = $this;
26
-
27
- // set vars
28
- $this->defaults = Responsive_Lightbox()->defaults;
29
- $this->options = Responsive_Lightbox()->options;
30
 
31
  // actions
32
  add_action( 'admin_init', array( &$this, 'register_settings' ) );
@@ -240,6 +236,12 @@ class Responsive_Lightbox_Settings {
240
  'description' => __( 'Select where all the lightbox scripts should be placed.', 'responsive-lightbox' ),
241
  'options' => $this->loading_places,
242
  ),
 
 
 
 
 
 
243
  'deactivation_delete' => array(
244
  'title' => __( 'Delete data', 'responsive-lightbox' ),
245
  'section' => 'responsive_lightbox_settings',
@@ -254,7 +256,7 @@ class Responsive_Lightbox_Settings {
254
  // 'callback' => array( &$this, 'validate_options' ),
255
  'sections' => array(
256
  'responsive_lightbox_configuration' => array(
257
- 'title' => __( 'Lightbox settings', 'responsive-lightbox' ) . ': ' . $this->scripts[$this->options['settings']['script']]['name'],
258
  // 'callback' => '',
259
  // 'page' => '',
260
  ),
@@ -265,7 +267,7 @@ class Responsive_Lightbox_Settings {
265
  )
266
  );
267
 
268
- switch ( $this->options['settings']['script'] ) {
269
 
270
  case ( 'swipebox' ) :
271
 
@@ -915,7 +917,7 @@ class Responsive_Lightbox_Settings {
915
  <div class="responsive-lightbox-settings">
916
 
917
  <div class="df-credits">
918
- <h3 class="hndle">' . __( 'Responsive Lightbox', 'responsive-lightbox' ) . ' ' . $this->defaults['version'] . '</h3>
919
  <div class="inside">
920
  <h4 class="inner">' . __( 'Need support?', 'responsive-lightbox' ) . '</h4>
921
  <p class="inner">' . __( 'If you are having problems with this plugin, please talk about them in the', 'responsive-lightbox' ) . ' <a href="http://www.dfactory.eu/support/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=support" target="_blank" title="' . __( 'Support forum', 'responsive-lightbox' ) . '">' . __( 'Support forum', 'responsive-lightbox' ) . '</a></p>
@@ -937,7 +939,7 @@ class Responsive_Lightbox_Settings {
937
  </div>
938
 
939
  <form action="options.php" method="post">
940
- <input type="hidden" name="script_r" value="' . esc_attr( $this->options['settings']['script'] ) . '" />';
941
 
942
  wp_nonce_field( 'update-options' );
943
  settings_fields( $this->tabs[$tab_key]['key'] );
@@ -1017,8 +1019,8 @@ class Responsive_Lightbox_Settings {
1017
  'max' => ! empty( $field['max'] ) ? (int) $field['max'] : '',
1018
  'options' => ! empty( $field['options'] ) ? $field['options'] : '',
1019
  'fields' => ! empty( $field['fields'] ) ? $field['fields'] : '',
1020
- 'default' => $field['type'] === 'multiple' ? '' : ( $this->sanitize_field( ! empty( $field['parent'] ) ? $this->defaults[$setting_key][$field['parent']][$field_key] : $this->defaults[$setting_key][$field_key], $field['type'] ) ),
1021
- 'value' => $field['type'] === 'multiple' ? '' : ( $this->sanitize_field( ! empty( $field['parent'] ) ? $this->options[$setting_key][$field['parent']][$field_key] : $this->options[$setting_key][$field_key], $field['type'] ) ),
1022
  'label_for' => $field_id,
1023
  'return' => false
1024
  );
@@ -1029,8 +1031,8 @@ class Responsive_Lightbox_Settings {
1029
  'id' => $field_id . '-' . $subfield_id,
1030
  'class' => ! empty( $subfield['class'] ) ? $subfield['class'] : '',
1031
  'name' => $setting['option_name'] . ( ! empty( $subfield['parent'] ) ? '[' . $subfield['parent'] . ']' : '' ) . '[' . $subfield_id . ']',
1032
- 'default' => $this->sanitize_field( ! empty( $subfield['parent'] ) ? $this->defaults[$setting_key][$subfield['parent']][$subfield_id] : $this->defaults[$setting_key][$subfield_id], $subfield['type'] ),
1033
- 'value' => $this->sanitize_field( ! empty( $subfield['parent'] ) ? $this->options[$setting_key][$subfield['parent']][$subfield_id] : $this->options[$setting_key][$subfield_id], $subfield['type'] ),
1034
  'return' => true
1035
  ) );
1036
  }
@@ -1119,7 +1121,7 @@ class Responsive_Lightbox_Settings {
1119
 
1120
  case ( 'range' ) :
1121
  $html .= '<input id="' . $args['id'] . '" type="range" name="' . $args['name'] . '" value="' . $args['value'] . '" min="' . $args['min'] . '" max="' . $args['max'] . '" oninput="this.form.' . $args['id'] . '_range.value=this.value" />';
1122
- $html .= '<output name="' . $args['id'] . '_range">' . esc_attr( $this->options['configuration']['prettyphoto']['opacity'] ) . '</output>';
1123
  break;
1124
 
1125
  case ( 'color_picker' ) :
@@ -1268,11 +1270,11 @@ class Responsive_Lightbox_Settings {
1268
 
1269
  $field_parent = $this->settings[$setting_id]['fields'][$field_id]['fields'][$subfield_id]['parent'];
1270
 
1271
- $input[$field_parent][$subfield_id] = isset( $input[$field_parent][$subfield_id] ) ? $this->sanitize_field( $input[$field_parent][$subfield_id], $subfield['type'] ) : ( $subfield['type'] === 'boolean' ? false : $this->defaults[$setting_id][$field_parent][$subfield_id] );
1272
 
1273
  } else {
1274
 
1275
- $input[$subfield_id] = isset( $input[$subfield_id] ) ? $this->sanitize_field( $input[$subfield_id], $subfield['type'] ) : ( $subfield['type'] === 'boolean' ? false : $this->defaults[$setting_id][$field_id][$subfield_id] );
1276
 
1277
  }
1278
 
@@ -1287,11 +1289,11 @@ class Responsive_Lightbox_Settings {
1287
 
1288
  $field_parent = $this->settings[$setting_id]['fields'][$field_id]['parent'];
1289
 
1290
- $input[$field_parent][$field_id] = isset( $input[$field_parent][$field_id] ) ? $this->sanitize_field( $input[$field_parent][$field_id], $field['type'] ) : ( $field['type'] === 'boolean' ? false : $this->defaults[$setting_id][$field_parent][$field_id] );
1291
 
1292
  } else {
1293
 
1294
- $input[$field_id] = isset( $input[$field_id] ) ? $this->sanitize_field( $input[$field_id], $field['type'] ) : ( $field['type'] === 'boolean' ? false : $this->defaults[$setting_id][$field_id] );
1295
 
1296
  }
1297
 
@@ -1303,17 +1305,17 @@ class Responsive_Lightbox_Settings {
1303
 
1304
  if ( $setting_id === 'configuration' ) {
1305
  // merge scripts settings
1306
- $input = array_merge( $this->options['configuration'], $input );
1307
  }
1308
 
1309
  } elseif ( isset( $_POST['reset' . '_' . $this->settings[$setting_id]['prefix'] . '_' . $setting_id] ) ) {
1310
 
1311
  if ( $setting_id === 'configuration' ) {
1312
  // merge scripts settings
1313
- $input[$this->options['settings']['script']] = $this->defaults['configuration'][$this->options['settings']['script']];
1314
- $input = array_merge( $this->options['configuration'], $input );
1315
  } else {
1316
- $input = $this->defaults[$setting_id];
1317
  }
1318
 
1319
  add_settings_error( 'reset' . '_' . $this->settings[$setting_id]['prefix'] . '_' . $setting_id, 'settings_restored', __( 'Settings restored to defaults.', 'responsive-lightbox' ), 'updated' );
23
 
24
  // set instance
25
  Responsive_Lightbox()->settings = $this;
 
 
 
 
26
 
27
  // actions
28
  add_action( 'admin_init', array( &$this, 'register_settings' ) );
236
  'description' => __( 'Select where all the lightbox scripts should be placed.', 'responsive-lightbox' ),
237
  'options' => $this->loading_places,
238
  ),
239
+ 'conditional_loading' => array(
240
+ 'title' => __( 'Conditional loading', 'responsive-lightbox' ),
241
+ 'section' => 'responsive_lightbox_settings',
242
+ 'type' => 'boolean',
243
+ 'label' => __( 'Enable to load scripts and styles only on pages that have images or galleries in post content.', 'responsive-lightbox' ),
244
+ ),
245
  'deactivation_delete' => array(
246
  'title' => __( 'Delete data', 'responsive-lightbox' ),
247
  'section' => 'responsive_lightbox_settings',
256
  // 'callback' => array( &$this, 'validate_options' ),
257
  'sections' => array(
258
  'responsive_lightbox_configuration' => array(
259
+ 'title' => __( 'Lightbox settings', 'responsive-lightbox' ) . ': ' . $this->scripts[Responsive_Lightbox()->options['settings']['script']]['name'],
260
  // 'callback' => '',
261
  // 'page' => '',
262
  ),
267
  )
268
  );
269
 
270
+ switch ( Responsive_Lightbox()->options['settings']['script'] ) {
271
 
272
  case ( 'swipebox' ) :
273
 
917
  <div class="responsive-lightbox-settings">
918
 
919
  <div class="df-credits">
920
+ <h3 class="hndle">' . __( 'Responsive Lightbox', 'responsive-lightbox' ) . ' ' . Responsive_Lightbox()->defaults['version'] . '</h3>
921
  <div class="inside">
922
  <h4 class="inner">' . __( 'Need support?', 'responsive-lightbox' ) . '</h4>
923
  <p class="inner">' . __( 'If you are having problems with this plugin, please talk about them in the', 'responsive-lightbox' ) . ' <a href="http://www.dfactory.eu/support/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=support" target="_blank" title="' . __( 'Support forum', 'responsive-lightbox' ) . '">' . __( 'Support forum', 'responsive-lightbox' ) . '</a></p>
939
  </div>
940
 
941
  <form action="options.php" method="post">
942
+ <input type="hidden" name="script_r" value="' . esc_attr( Responsive_Lightbox()->options['settings']['script'] ) . '" />';
943
 
944
  wp_nonce_field( 'update-options' );
945
  settings_fields( $this->tabs[$tab_key]['key'] );
1019
  'max' => ! empty( $field['max'] ) ? (int) $field['max'] : '',
1020
  'options' => ! empty( $field['options'] ) ? $field['options'] : '',
1021
  'fields' => ! empty( $field['fields'] ) ? $field['fields'] : '',
1022
+ 'default' => $field['type'] === 'multiple' ? '' : ( $this->sanitize_field( ! empty( $field['parent'] ) ? Responsive_Lightbox()->defaults[$setting_key][$field['parent']][$field_key] : Responsive_Lightbox()->defaults[$setting_key][$field_key], $field['type'] ) ),
1023
+ 'value' => $field['type'] === 'multiple' ? '' : ( $this->sanitize_field( ! empty( $field['parent'] ) ? Responsive_Lightbox()->options[$setting_key][$field['parent']][$field_key] : Responsive_Lightbox()->options[$setting_key][$field_key], $field['type'] ) ),
1024
  'label_for' => $field_id,
1025
  'return' => false
1026
  );
1031
  'id' => $field_id . '-' . $subfield_id,
1032
  'class' => ! empty( $subfield['class'] ) ? $subfield['class'] : '',
1033
  'name' => $setting['option_name'] . ( ! empty( $subfield['parent'] ) ? '[' . $subfield['parent'] . ']' : '' ) . '[' . $subfield_id . ']',
1034
+ 'default' => $this->sanitize_field( ! empty( $subfield['parent'] ) ? Responsive_Lightbox()->defaults[$setting_key][$subfield['parent']][$subfield_id] : Responsive_Lightbox()->defaults[$setting_key][$subfield_id], $subfield['type'] ),
1035
+ 'value' => $this->sanitize_field( ! empty( $subfield['parent'] ) ? Responsive_Lightbox()->options[$setting_key][$subfield['parent']][$subfield_id] : Responsive_Lightbox()->options[$setting_key][$subfield_id], $subfield['type'] ),
1036
  'return' => true
1037
  ) );
1038
  }
1121
 
1122
  case ( 'range' ) :
1123
  $html .= '<input id="' . $args['id'] . '" type="range" name="' . $args['name'] . '" value="' . $args['value'] . '" min="' . $args['min'] . '" max="' . $args['max'] . '" oninput="this.form.' . $args['id'] . '_range.value=this.value" />';
1124
+ $html .= '<output name="' . $args['id'] . '_range">' . esc_attr( Responsive_Lightbox()->options['configuration']['prettyphoto']['opacity'] ) . '</output>';
1125
  break;
1126
 
1127
  case ( 'color_picker' ) :
1270
 
1271
  $field_parent = $this->settings[$setting_id]['fields'][$field_id]['fields'][$subfield_id]['parent'];
1272
 
1273
+ $input[$field_parent][$subfield_id] = isset( $input[$field_parent][$subfield_id] ) ? $this->sanitize_field( $input[$field_parent][$subfield_id], $subfield['type'] ) : ( $subfield['type'] === 'boolean' ? false : Responsive_Lightbox()->defaults[$setting_id][$field_parent][$subfield_id] );
1274
 
1275
  } else {
1276
 
1277
+ $input[$subfield_id] = isset( $input[$subfield_id] ) ? $this->sanitize_field( $input[$subfield_id], $subfield['type'] ) : ( $subfield['type'] === 'boolean' ? false : Responsive_Lightbox()->defaults[$setting_id][$field_id][$subfield_id] );
1278
 
1279
  }
1280
 
1289
 
1290
  $field_parent = $this->settings[$setting_id]['fields'][$field_id]['parent'];
1291
 
1292
+ $input[$field_parent][$field_id] = isset( $input[$field_parent][$field_id] ) ? $this->sanitize_field( $input[$field_parent][$field_id], $field['type'] ) : ( $field['type'] === 'boolean' ? false : Responsive_Lightbox()->defaults[$setting_id][$field_parent][$field_id] );
1293
 
1294
  } else {
1295
 
1296
+ $input[$field_id] = isset( $input[$field_id] ) ? $this->sanitize_field( $input[$field_id], $field['type'] ) : ( $field['type'] === 'boolean' ? false : Responsive_Lightbox()->defaults[$setting_id][$field_id] );
1297
 
1298
  }
1299
 
1305
 
1306
  if ( $setting_id === 'configuration' ) {
1307
  // merge scripts settings
1308
+ $input = array_merge( Responsive_Lightbox()->options['configuration'], $input );
1309
  }
1310
 
1311
  } elseif ( isset( $_POST['reset' . '_' . $this->settings[$setting_id]['prefix'] . '_' . $setting_id] ) ) {
1312
 
1313
  if ( $setting_id === 'configuration' ) {
1314
  // merge scripts settings
1315
+ $input[Responsive_Lightbox()->options['settings']['script']] = Responsive_Lightbox()->defaults['configuration'][Responsive_Lightbox()->options['settings']['script']];
1316
+ $input = array_merge( Responsive_Lightbox()->options['configuration'], $input );
1317
  } else {
1318
+ $input = Responsive_Lightbox()->defaults[$setting_id];
1319
  }
1320
 
1321
  add_settings_error( 'reset' . '_' . $this->settings[$setting_id]['prefix'] . '_' . $setting_id, 'settings_restored', __( 'Settings restored to defaults.', 'responsive-lightbox' ), 'updated' );
js/front.js CHANGED
@@ -1,10 +1,31 @@
1
  ( function ( $ ) {
2
 
3
- $( document ).ready( function () {
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- $( document ).on( 'ready' + rlArgs.custom_events, function () {
6
-
7
- if ( rlArgs.script === 'swipebox' ) {
 
 
 
 
 
 
 
 
8
 
9
  $( 'a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]' ).swipebox( {
10
  useCSS : ( rlArgs.animation === '1' ? true : false ),
@@ -16,7 +37,9 @@
16
  loopAtEnd : ( rlArgs.loopAtEnd === '1' ? true : false )
17
  } );
18
 
19
- } else if ( rlArgs.script === 'prettyphoto' ) {
 
 
20
 
21
  $( 'a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]' ).prettyPhoto( {
22
  hook : 'data-rel',
@@ -47,7 +70,9 @@
47
  ie6_fallback : true
48
  } );
49
 
50
- } else if ( rlArgs.script === 'fancybox' ) {
 
 
51
 
52
  $( 'a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]' ).fancybox( {
53
  modal : ( rlArgs.modal === '1' ? true : false ),
@@ -80,7 +105,9 @@
80
  height : parseInt( rlArgs.videoHeight )
81
  } );
82
 
83
- } else if ( rlArgs.script === 'nivo' ) {
 
 
84
 
85
  $.each( $( 'a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]' ), function () {
86
 
@@ -110,7 +137,9 @@
110
  errorMessage : rlArgs.errorMessage
111
  } );
112
 
113
- } else if ( rlArgs.script === 'imagelightbox' ) {
 
 
114
 
115
  var selectors = [];
116
 
@@ -133,8 +162,6 @@
133
  // make unique
134
  selectors = $.unique( selectors );
135
 
136
- console.log(selectors);
137
-
138
  $( selectors ).each( function ( i, item ) {
139
  $( 'a[data-rel="' + item + '"], a[rel="' + item + '"]' ).imageLightbox( {
140
  animationSpeed : parseInt( rlArgs.animationSpeed ),
@@ -147,7 +174,9 @@
147
  } );
148
  }
149
 
150
- } else if ( rlArgs.script === 'tosrus' ) {
 
 
151
 
152
  var selectors = [];
153
 
@@ -198,9 +227,14 @@
198
  } );
199
  } );
200
  }
201
- }
 
202
 
203
- } );
 
 
 
 
204
 
205
  } );
206
 
1
  ( function ( $ ) {
2
 
3
+ $( document ).on( 'ready' + rlArgs.customEvents, function () {
4
+
5
+ // initialise event
6
+ $.event.trigger( {
7
+ type : 'doResponsiveLightbox',
8
+ script : rlArgs.script,
9
+ selector : rlArgs.selector,
10
+ args : rlArgs
11
+ } );
12
+
13
+ } );
14
+
15
+ // this is similar to the WP function add_action();
16
+ $( document ).on( 'doResponsiveLightbox', function( event ) {
17
 
18
+ var script = event.script,
19
+ selector = event.selector
20
+ args = event.args;
21
+
22
+ if ( script === undefined || selector === undefined ) {
23
+ return false;
24
+ }
25
+
26
+ switch( script ) {
27
+
28
+ case 'swipebox':
29
 
30
  $( 'a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]' ).swipebox( {
31
  useCSS : ( rlArgs.animation === '1' ? true : false ),
37
  loopAtEnd : ( rlArgs.loopAtEnd === '1' ? true : false )
38
  } );
39
 
40
+ break;
41
+
42
+ case 'prettyphoto':
43
 
44
  $( 'a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]' ).prettyPhoto( {
45
  hook : 'data-rel',
70
  ie6_fallback : true
71
  } );
72
 
73
+ break;
74
+
75
+ case 'fancybox':
76
 
77
  $( 'a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]' ).fancybox( {
78
  modal : ( rlArgs.modal === '1' ? true : false ),
105
  height : parseInt( rlArgs.videoHeight )
106
  } );
107
 
108
+ break;
109
+
110
+ case 'nivo':
111
 
112
  $.each( $( 'a[rel*="' + rlArgs.selector + '"], a[data-rel*="' + rlArgs.selector + '"]' ), function () {
113
 
137
  errorMessage : rlArgs.errorMessage
138
  } );
139
 
140
+ break;
141
+
142
+ case 'imagelightbox':
143
 
144
  var selectors = [];
145
 
162
  // make unique
163
  selectors = $.unique( selectors );
164
 
 
 
165
  $( selectors ).each( function ( i, item ) {
166
  $( 'a[data-rel="' + item + '"], a[rel="' + item + '"]' ).imageLightbox( {
167
  animationSpeed : parseInt( rlArgs.animationSpeed ),
174
  } );
175
  }
176
 
177
+ break;
178
+
179
+ case 'tosrus':
180
 
181
  var selectors = [];
182
 
227
  } );
228
  } );
229
  }
230
+
231
+ break;
232
 
233
+ default :
234
+
235
+ break;
236
+
237
+ }
238
 
239
  } );
240
 
languages/responsive-lightbox-pl_PL.mo CHANGED
Binary file
languages/responsive-lightbox-pl_PL.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Responsive Lightbox\n"
4
- "POT-Creation-Date: 2015-06-11 11:26+0100\n"
5
- "PO-Revision-Date: 2015-06-11 11:28+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: pl\n"
@@ -96,7 +96,7 @@ msgid "elastic"
96
  msgstr ""
97
 
98
  #: ../includes/class-settings.php:79 ../includes/class-settings.php:100
99
- #: ../includes/class-settings.php:795
100
  msgid "fade"
101
  msgstr ""
102
 
@@ -216,7 +216,7 @@ msgstr "Duży"
216
  msgid "Full Size (default)"
217
  msgstr "Pełny rozmiar (domyslny)"
218
 
219
- #: ../includes/class-settings.php:150 ../includes/class-settings.php:869
220
  msgid "General settings"
221
  msgstr "Ustawienia ogólne"
222
 
@@ -318,61 +318,73 @@ msgid "Select where all the lightbox scripts should be placed."
318
  msgstr "Wybierz w którym miejscu chcesz wczytywać skrypty efektu lightbox."
319
 
320
  #: ../includes/class-settings.php:244
 
 
 
 
 
 
 
 
 
 
 
 
321
  msgid "Delete data"
322
  msgstr "Usuwanie danych"
323
 
324
- #: ../includes/class-settings.php:247
325
  msgid "Delete all plugin settings on deactivation."
326
  msgstr "Usuń wszystkie dane wtyczki po jej deaktywacji."
327
 
328
- #: ../includes/class-settings.php:257 ../includes/class-settings.php:875
329
  msgid "Lightbox settings"
330
  msgstr "Ustawienia lightbox"
331
 
332
- #: ../includes/class-settings.php:275
333
  msgid "Animation type"
334
  msgstr "Typ animacji"
335
 
336
- #: ../includes/class-settings.php:279
337
  msgid "Select a method of applying a lightbox effect."
338
  msgstr "Wybierz sposób dodawania efektu lightbox."
339
 
340
- #: ../includes/class-settings.php:284
341
  msgid "Force PNG icons"
342
  msgstr "Wymuszanie ikon PNG"
343
 
344
- #: ../includes/class-settings.php:287
345
  msgid ""
346
  "Enable this if you're having problems with navigation icons not visible on "
347
  "some devices."
348
  msgstr "Włącz tę opcję jeśli masz problemy z wyświetlaniem ikon nawigacji."
349
 
350
- #: ../includes/class-settings.php:291
351
  msgid "Hide close on mobile"
352
  msgstr "Ukrywanie przycisku zamknij"
353
 
354
- #: ../includes/class-settings.php:294
355
  msgid "Hide the close button on mobile devices."
356
  msgstr ""
357
  "Włącz, jeśli chcesz ukryć przycisk zamykania na urządzeniach mobilnych."
358
 
359
- #: ../includes/class-settings.php:298
360
  msgid "Remove bars on mobile"
361
  msgstr "Ukrywanie pasków"
362
 
363
- #: ../includes/class-settings.php:301
364
  msgid "Hide the top and bottom bars on mobile devices."
365
  msgstr "Ukryj górny i dolny pasek na urządzeniach mobilnych."
366
 
367
- #: ../includes/class-settings.php:305
368
  msgid "Top and bottom bars"
369
  msgstr "Górne i dolne paski"
370
 
371
- #: ../includes/class-settings.php:311
372
  msgid "Hide top and bottom bars after a period of time."
373
  msgstr "Ukryj górny i dolny pasek po określonym czasie."
374
 
375
- #: ../includes/class-settings.php:316
376
  msgid ""
377
  "Enter the time after which the top and bottom bars will be hidden (when "
378
  "hiding is enabled)."
@@ -380,108 +392,108 @@ msgstr ""
380
  "Podaj czas po którym chcesz ukryć górny i dolny pasek (jeśli opcja ukrywania "
381
  "jest włączona)."
382
 
383
- #: ../includes/class-settings.php:323
384
  msgid "Video max width"
385
  msgstr "Maksymalna szerokość video"
386
 
387
- #: ../includes/class-settings.php:326
388
  msgid "Enter the max video width in a lightbox."
389
  msgstr "Podaj maksymalną szerokość video."
390
 
391
- #: ../includes/class-settings.php:331
392
  msgid "Loop at end"
393
  msgstr "Zapętlenie galerii"
394
 
395
- #: ../includes/class-settings.php:334
396
  msgid "True will return to the first image after the last image is reached."
397
  msgstr ""
398
  "Włącz, aby powrócić do pierwszego zdjęcia po ostatnim zdjęciu w galerii."
399
 
400
- #: ../includes/class-settings.php:346 ../includes/class-settings.php:738
401
  msgid "Animation speed"
402
  msgstr "Szybkość animacji"
403
 
404
- #: ../includes/class-settings.php:350
405
  msgid "Select animation speed for lightbox effect."
406
  msgstr "Wybierz szybkość animacji efektu lightbox."
407
 
408
- #: ../includes/class-settings.php:355
409
  msgid "Slideshow"
410
  msgstr "Pokaz slidów"
411
 
412
- #: ../includes/class-settings.php:361
413
  msgid "Display images as slideshow"
414
  msgstr "Wyświetlanie obrazków jako pokaz slajdów"
415
 
416
- #: ../includes/class-settings.php:366
417
  msgid "Enter time (in miliseconds)."
418
  msgstr "Podaj czas (w milisekundach)."
419
 
420
- #: ../includes/class-settings.php:373
421
  msgid "Slideshow autoplay"
422
  msgstr "Automatyczne odtwarzanie pokazu slajdów"
423
 
424
- #: ../includes/class-settings.php:376 ../includes/class-settings.php:820
425
  msgid "Automatically start slideshow."
426
  msgstr "Automatyczne rozpoczynanie pokazu slajdów."
427
 
428
- #: ../includes/class-settings.php:380 ../includes/class-settings.php:582
429
  msgid "Opacity"
430
  msgstr "Przezroczystość"
431
 
432
- #: ../includes/class-settings.php:383
433
  msgid "Value between 0 and 100, 100 for no opacity."
434
  msgstr "Wartość pomiędzy 0 i 100 (100 oznacza brak przezroczystości)."
435
 
436
- #: ../includes/class-settings.php:389
437
  msgid "Show title"
438
  msgstr "Wyświetlanie tytułu"
439
 
440
- #: ../includes/class-settings.php:392
441
  msgid "Display image title."
442
  msgstr "Wyświetlanie tytułu obrazka."
443
 
444
- #: ../includes/class-settings.php:396
445
  msgid "Allow resize big images"
446
  msgstr "Powiększanie dużych zdjęć"
447
 
448
- #: ../includes/class-settings.php:399
449
  msgid "Resize the photos bigger than viewport."
450
  msgstr "Zmiana wielkość zdjęć większych niż aktualny ekran."
451
 
452
- #: ../includes/class-settings.php:403
453
  msgid "Allow expand"
454
  msgstr "Zezwól na powiększanie"
455
 
456
- #: ../includes/class-settings.php:406
457
  msgid "Allow expanding images."
458
  msgstr "Zezwól na powiększanie zdjęć."
459
 
460
- #: ../includes/class-settings.php:410 ../includes/class-settings.php:676
461
  msgid "Video width"
462
  msgstr "Szerokość video"
463
 
464
- #: ../includes/class-settings.php:417 ../includes/class-settings.php:684
465
  msgid "Video height"
466
  msgstr "Wysokość video"
467
 
468
- #: ../includes/class-settings.php:424
469
  msgid "Theme"
470
  msgstr "Motyw"
471
 
472
- #: ../includes/class-settings.php:427
473
  msgid "Select the theme for lightbox effect."
474
  msgstr "Wybierz motyw dla efektu lightbox."
475
 
476
- #: ../includes/class-settings.php:432
477
  msgid "Horizontal padding"
478
  msgstr "Odstępy w poziomie"
479
 
480
- #: ../includes/class-settings.php:439
481
  msgid "Hide Flash"
482
  msgstr "Ukrywanie flash"
483
 
484
- #: ../includes/class-settings.php:442
485
  msgid ""
486
  "Hide all the flash objects on a page. Enable this if flash appears over "
487
  "prettyPhoto."
@@ -489,66 +501,66 @@ msgstr ""
489
  "Ukywa wszystkie obiekty flash na stronie. Włącz to jeśli animacje flash "
490
  "wyświetlane są nad lightboxem."
491
 
492
- #: ../includes/class-settings.php:446
493
  msgid "Flash Window Mode (wmode)"
494
  msgstr "Tryb okna flash (wmode)"
495
 
496
- #: ../includes/class-settings.php:449
497
  msgid "Select flash window mode."
498
  msgstr "Wybierz tryb okna flash."
499
 
500
- #: ../includes/class-settings.php:454
501
  msgid "Video autoplay"
502
  msgstr "Automatyczne odtwarzanie wideo"
503
 
504
- #: ../includes/class-settings.php:457
505
  msgid "Automatically start videos."
506
  msgstr "Automatycznie rozpoczynaj video."
507
 
508
- #: ../includes/class-settings.php:461 ../includes/class-settings.php:504
509
  msgid "Modal"
510
  msgstr "Tryb modal"
511
 
512
- #: ../includes/class-settings.php:464
513
  msgid "If set to true, only the close button will close the window."
514
  msgstr ""
515
  "Jeśli będzie włączone, tylko kliknięcie przycisku spowoduje zamknięcie okna."
516
 
517
- #: ../includes/class-settings.php:468
518
  msgid "Deeplinking"
519
  msgstr "Głębokie linki"
520
 
521
- #: ../includes/class-settings.php:471
522
  msgid "Allow prettyPhoto to update the url to enable deeplinking."
523
  msgstr "Zezwól prettyPhoto na aktualizacje adresów URL i głębokie linkowanie."
524
 
525
- #: ../includes/class-settings.php:475
526
  msgid "Overlay gallery"
527
  msgstr "Efekt overlay galerii"
528
 
529
- #: ../includes/class-settings.php:478
530
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
531
  msgstr ""
532
  "Jeśli będzie włączone, galeria będzie wyświetlana na cały ekran po "
533
  "najechaniu myszką."
534
 
535
- #: ../includes/class-settings.php:482
536
  msgid "Keyboard shortcuts"
537
  msgstr "Skróty klawiaturowe"
538
 
539
- #: ../includes/class-settings.php:485
540
  msgid "Set to false if you open forms inside prettyPhoto."
541
  msgstr "Wyłącz to jeśli chcesz otwierać formularze wewnątrz prettyPhoto."
542
 
543
- #: ../includes/class-settings.php:489
544
  msgid "Social (Twitter, Facebook)"
545
  msgstr "Linki społeczności (Twitter, Facebook)"
546
 
547
- #: ../includes/class-settings.php:492
548
  msgid "Display links to Facebook and Twitter."
549
  msgstr "Wyświetl linki do Facebboka i Twittera."
550
 
551
- #: ../includes/class-settings.php:507
552
  msgid ""
553
  "When true, \"overlayShow\" is set to true and \"hideOnOverlayClick\", "
554
  "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
@@ -558,396 +570,396 @@ msgstr ""
558
  "natomiast \"hideOnOverlayClick\", \"hideOnContentClick\", "
559
  "\"enableEscapeButton\", \"showCloseButton\" zostaną wyłączone."
560
 
561
- #: ../includes/class-settings.php:511
562
  msgid "Show overlay"
563
  msgstr "Wyświetlanie tła"
564
 
565
- #: ../includes/class-settings.php:514
566
  msgid "Toggle overlay."
567
  msgstr "Włącz tło."
568
 
569
- #: ../includes/class-settings.php:518
570
  msgid "Show close button"
571
  msgstr "Wyświetlanie przycisku Zamknij"
572
 
573
- #: ../includes/class-settings.php:521
574
  msgid "Toggle close button."
575
  msgstr "Włącz przycisk Zamknij."
576
 
577
- #: ../includes/class-settings.php:525
578
  msgid "Enable escape button"
579
  msgstr "Wyświetlanie przycisku Wyjdź"
580
 
581
- #: ../includes/class-settings.php:528
582
  msgid "Toggle if pressing Esc button closes FancyBox."
583
  msgstr "Włącz zamykanie FancyBox przy pomocy Esc."
584
 
585
- #: ../includes/class-settings.php:532
586
  msgid "Hide on overlay click"
587
  msgstr "Ukryj po kliknięciu w tło"
588
 
589
- #: ../includes/class-settings.php:535
590
  msgid "Toggle if clicking the overlay should close FancyBox."
591
  msgstr "Włącz zamykanie FancyBox kliknięciem w tło."
592
 
593
- #: ../includes/class-settings.php:539
594
  msgid "Hide on content click"
595
  msgstr "Ukryj po kliknięciu w treść"
596
 
597
- #: ../includes/class-settings.php:542
598
  msgid "Toggle if clicking the content should close FancyBox."
599
  msgstr "Włącz zamykanie FancyBox kliknięciem w treść."
600
 
601
- #: ../includes/class-settings.php:546
602
  msgid "Cyclic"
603
  msgstr "Cykliczność"
604
 
605
- #: ../includes/class-settings.php:549
606
  msgid ""
607
  "When true, galleries will be cyclic, allowing you to keep pressing next/back."
608
  msgstr "Jeśli będzie włączone, galerie będą wyświetlane cyklicznie."
609
 
610
- #: ../includes/class-settings.php:553
611
  msgid "Show nav arrows"
612
  msgstr "Wyświetlanie strzałek"
613
 
614
- #: ../includes/class-settings.php:556
615
  msgid "Toggle navigation arrows."
616
  msgstr "Włącz strzałki nawigacyjne."
617
 
618
- #: ../includes/class-settings.php:560
619
  msgid "Auto scale"
620
  msgstr "Automatyczne skalowanie"
621
 
622
- #: ../includes/class-settings.php:563
623
  msgid "If true, FancyBox is scaled to fit in viewport."
624
  msgstr "Jeśli będzie włączone, FancyBox będzie skalowany do rozmiaru okna."
625
 
626
- #: ../includes/class-settings.php:567
627
  msgid "Scrolling (in/out)"
628
  msgstr "Przewijanie"
629
 
630
- #: ../includes/class-settings.php:570
631
  msgid "Set the overflow CSS property to create or hide scrollbars."
632
  msgstr ""
633
  "Ustaw parametr overflow dw CSS aby tworzyć lub ukrywać elementy nawigacji."
634
 
635
- #: ../includes/class-settings.php:575
636
  msgid "Center on scroll"
637
  msgstr "Centrowanie przy przewijaniu"
638
 
639
- #: ../includes/class-settings.php:578
640
  msgid "When true, FancyBox is centered while scrolling page."
641
  msgstr ""
642
  "Jeśli będzie zaznaczone, FancyBox będzie wycentrowany w trakcie przewijania "
643
  "strony."
644
 
645
- #: ../includes/class-settings.php:585
646
  msgid "When true, transparency of content is changed for elastic transitions."
647
  msgstr ""
648
  "Jeśli będzie zaznaczone, przezroczystość treści zmieni się w trakcie "
649
  "animacji."
650
 
651
- #: ../includes/class-settings.php:589
652
  msgid "Overlay opacity"
653
  msgstr "Przezroczystość tła"
654
 
655
- #: ../includes/class-settings.php:592
656
  msgid "Opacity of the overlay."
657
  msgstr "Przezroczystość tła."
658
 
659
- #: ../includes/class-settings.php:598
660
  msgid "Overlay color"
661
  msgstr "Kolor tła"
662
 
663
- #: ../includes/class-settings.php:601
664
  msgid "Color of the overlay."
665
  msgstr "Kolor tła."
666
 
667
- #: ../includes/class-settings.php:605
668
  msgid "Title show"
669
  msgstr "Wyświetlanie tytułu"
670
 
671
- #: ../includes/class-settings.php:608
672
  msgid "Toggle title."
673
  msgstr "Wyświetlanie tytułu."
674
 
675
- #: ../includes/class-settings.php:612
676
  msgid "Title position"
677
  msgstr "Pozycja tytułu"
678
 
679
- #: ../includes/class-settings.php:615
680
  msgid "The position of title."
681
  msgstr "Pozycja tytułu."
682
 
683
- #: ../includes/class-settings.php:620
684
  msgid "Transition (in/out)"
685
  msgstr "Efekty przejścia"
686
 
687
- #: ../includes/class-settings.php:623
688
  msgid "The transition type."
689
  msgstr "Typ animacji."
690
 
691
- #: ../includes/class-settings.php:628
692
  msgid "Easings (in/out)"
693
  msgstr "Wygładzanie animacji"
694
 
695
- #: ../includes/class-settings.php:631
696
  msgid "Easing used for elastic animations."
697
  msgstr "Wygładzanie animacji dla trybu elastic."
698
 
699
- #: ../includes/class-settings.php:636
700
  msgid "Speed (in/out)"
701
  msgstr "Szybkość"
702
 
703
- #: ../includes/class-settings.php:639
704
  msgid "Speed of the fade and elastic transitions, in milliseconds."
705
  msgstr "Podaj czas trwania animacji fade i elastic (w milisekundach)"
706
 
707
- #: ../includes/class-settings.php:644
708
  msgid "Change speed"
709
  msgstr "Zmień szybkość"
710
 
711
- #: ../includes/class-settings.php:647
712
  msgid "Speed of resizing when changing gallery items, in milliseconds."
713
  msgstr ""
714
  "Szybkość zmiany wielkości okna w trakcie przechodzenia między obrazkami (w "
715
  "milisekundach)."
716
 
717
- #: ../includes/class-settings.php:652
718
  msgid "Change fade"
719
  msgstr "Zmień zanikanie"
720
 
721
- #: ../includes/class-settings.php:655
722
  msgid "Speed of the content fading while changing gallery items."
723
  msgstr "Szybkość zanikania elementów w trakcie przechodzenia między obrazkami."
724
 
725
- #: ../includes/class-settings.php:660
726
  msgid "Padding"
727
  msgstr "Odstęp (padding)"
728
 
729
- #: ../includes/class-settings.php:663
730
  msgid "Space between FancyBox wrapper and content."
731
  msgstr "Przestrzeń między FancyBox a treścią"
732
 
733
- #: ../includes/class-settings.php:668
734
  msgid "Margin"
735
  msgstr "Margines (margin)"
736
 
737
- #: ../includes/class-settings.php:671
738
  msgid "Space between viewport and FancyBox wrapper."
739
  msgstr "Przestrzeń między ekranem a Fancybox"
740
 
741
- #: ../includes/class-settings.php:679
742
  msgid "Width of the video."
743
  msgstr "Szerokość video."
744
 
745
- #: ../includes/class-settings.php:687
746
  msgid "Height of the video."
747
  msgstr "Wysokość video."
748
 
749
- #: ../includes/class-settings.php:700
750
  msgid "Effect"
751
  msgstr "Efekt"
752
 
753
- #: ../includes/class-settings.php:703
754
  msgid "The effect to use when showing the lightbox."
755
  msgstr "Wybierz efekt, który chcesz zastosować do wyświetlania lightboxa."
756
 
757
- #: ../includes/class-settings.php:708 ../includes/class-settings.php:807
758
  msgid "Keyboard navigation"
759
  msgstr "Nawigacja klawiaturą"
760
 
761
- #: ../includes/class-settings.php:711 ../includes/class-settings.php:810
762
  msgid "Enable keyboard navigation (left/right/escape)."
763
  msgstr "Włącz nawigację za pomocą klawiatury (lewo, prawo, esc)."
764
 
765
- #: ../includes/class-settings.php:715
766
  msgid "Click overlay to close"
767
  msgstr "Kliknięcie poza obrazek"
768
 
769
- #: ../includes/class-settings.php:718
770
  msgid "Enable to close lightbox on overlay click."
771
  msgstr "Włącz aby zamykać lightbox po kliknięciu w obszar poza obrazkiem."
772
 
773
- #: ../includes/class-settings.php:722
774
  msgid "Error message"
775
  msgstr "Treść komunikatu o błędzie"
776
 
777
- #: ../includes/class-settings.php:726
778
  msgid "Error message if the content cannot be loaded."
779
  msgstr "Komunikat w przypadku gdy nie można załądować treści."
780
 
781
- #: ../includes/class-settings.php:741
782
  msgid "Animation speed."
783
  msgstr "Szybkość animacji."
784
 
785
- #: ../includes/class-settings.php:746
786
  msgid "Preload next image"
787
  msgstr "Wstępne ładowanie kolejnego obrazka"
788
 
789
- #: ../includes/class-settings.php:749
790
  msgid "Silently preload the next image."
791
  msgstr "W niezauważalny sposób ładuje kolejny obrazek."
792
 
793
- #: ../includes/class-settings.php:753
794
  msgid "Enable keyboard keys"
795
  msgstr "Obługa klawiaturą"
796
 
797
- #: ../includes/class-settings.php:756
798
  msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
799
  msgstr "Włącza skróty klawiaturowe (strzałki lewo/prawo oraz Esc)"
800
 
801
- #: ../includes/class-settings.php:760
802
  msgid "Quit after last image"
803
  msgstr "Wyjście po ostanim obrazku"
804
 
805
- #: ../includes/class-settings.php:763
806
  msgid "Quit after viewing the last image."
807
  msgstr "Powoduje wyjście z lightboxa po obejrzeniu ostatniego obrazka."
808
 
809
- #: ../includes/class-settings.php:767
810
  msgid "Quit on image click"
811
  msgstr "Wyjście po kliknięciu w obrazek"
812
 
813
- #: ../includes/class-settings.php:770
814
  msgid "Quit when the viewed image is clicked."
815
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w przeglądany obrazek."
816
 
817
- #: ../includes/class-settings.php:774
818
  msgid "Quit on anything click"
819
  msgstr "Wyjście po kliknięciu w coś innego niż obrazek"
820
 
821
- #: ../includes/class-settings.php:777
822
  msgid "Quit when anything but the viewed image is clicked."
823
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w coś innego niż obrazek."
824
 
825
- #: ../includes/class-settings.php:789
826
  msgid "Transition effect"
827
  msgstr "Efekt przejścia"
828
 
829
- #: ../includes/class-settings.php:792
830
  msgid "What effect to use for the transition."
831
  msgstr "Wybierz efekt jaki zastosować dla przejścia między slajdami."
832
 
833
- #: ../includes/class-settings.php:794
834
  msgid "slide"
835
  msgstr ""
836
 
837
- #: ../includes/class-settings.php:800
838
  msgid "Infinite loop"
839
  msgstr "Nieskończona pętla"
840
 
841
- #: ../includes/class-settings.php:803
842
  msgid ""
843
  "Whether or not to slide back to the first slide when the last has been "
844
  "reached."
845
  msgstr ""
846
  "Włącz przewijanie do pierwszego slajdu po wyświetleniu ostatniego slajdu."
847
 
848
- #: ../includes/class-settings.php:814
849
  msgid "Autoplay"
850
  msgstr "Autopla"
851
 
852
- #: ../includes/class-settings.php:825
853
  msgid "The timeout between sliding to the next slide in milliseconds."
854
  msgstr "Czas pomiędzy slajdami, w milisekundach."
855
 
856
- #: ../includes/class-settings.php:832
857
  msgid "Pause on hover"
858
  msgstr "Pauza po najechaniu"
859
 
860
- #: ../includes/class-settings.php:835
861
  msgid "Whether or not to pause on hover."
862
  msgstr "Włącz pauzę po najechaniu kursorem."
863
 
864
- #: ../includes/class-settings.php:839
865
  msgid "Pagination"
866
  msgstr "Stronicowanie"
867
 
868
- #: ../includes/class-settings.php:845
869
  msgid "Whether or not to add a pagination."
870
  msgstr "Włącz stronicowanie."
871
 
872
- #: ../includes/class-settings.php:850
873
  msgid "What type of pagination to use."
874
  msgstr "Wybierz rodzaj stronicowania."
875
 
876
- #: ../includes/class-settings.php:852
877
  msgid "Bullets"
878
  msgstr "Kropki"
879
 
880
- #: ../includes/class-settings.php:853
881
  msgid "Thumbnails"
882
  msgstr "Miniatury"
883
 
884
- #: ../includes/class-settings.php:891 ../includes/class-settings.php:905
885
- #: ../includes/class-settings.php:918
886
  msgid "Responsive Lightbox"
887
  msgstr "Efekt Lightbox"
888
 
889
- #: ../includes/class-settings.php:920
890
  msgid "Need support?"
891
  msgstr "Potrzebujesz pomocy?"
892
 
893
- #: ../includes/class-settings.php:921
894
  msgid ""
895
  "If you are having problems with this plugin, please talk about them in the"
896
  msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o nich na"
897
 
898
- #: ../includes/class-settings.php:921
899
  msgid "Support forum"
900
  msgstr "Forum pomocy"
901
 
902
- #: ../includes/class-settings.php:923
903
  msgid "Do you like this plugin?"
904
  msgstr "Lubisz tę wtyczkę?"
905
 
906
- #: ../includes/class-settings.php:930
907
  msgid "Rate it 5"
908
  msgstr "Oceń ją na 5"
909
 
910
- #: ../includes/class-settings.php:930
911
  msgid "on WordPress.org"
912
  msgstr "na WordPress.org"
913
 
914
- #: ../includes/class-settings.php:931
915
  msgid "Blog about it & link to the"
916
  msgstr "Napisz o niej i dodaj link"
917
 
918
- #: ../includes/class-settings.php:931
919
  msgid "plugin page"
920
  msgstr "do strony wtyczki"
921
 
922
- #: ../includes/class-settings.php:932
923
  msgid "Check out our other"
924
  msgstr "Sprawdź nasze pozostałe"
925
 
926
- #: ../includes/class-settings.php:932
927
  msgid "WordPress plugins"
928
  msgstr "wtyczki do WordPress'a"
929
 
930
- #: ../includes/class-settings.php:952
931
  msgid "Reset to defaults"
932
  msgstr "Resetuj do domyślnych"
933
 
934
- #: ../includes/class-settings.php:1319
935
  msgid "Settings restored to defaults."
936
  msgstr "Ustawienia zostały przywrócone do domyślnych."
937
 
938
- #: ../responsive-lightbox.php:285
939
  msgid "Support"
940
  msgstr "Pomoc"
941
 
942
- #: ../responsive-lightbox.php:304
943
  msgid "Settings"
944
  msgstr "Ustawienia"
945
 
946
- #: ../responsive-lightbox.php:324
947
  msgid "Are you sure you want to reset these settings to defaults?"
948
  msgstr "Jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
949
 
950
- #: ../responsive-lightbox.php:325
951
  msgid "Are you sure you want to reset this script settings to defaults?"
952
  msgstr ""
953
  "Jesteś pewny, że chcesz zresetować ustawienia tego skryptu do ustawień "
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Responsive Lightbox\n"
4
+ "POT-Creation-Date: 2015-06-13 18:20+0100\n"
5
+ "PO-Revision-Date: 2015-06-13 18:21+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: pl\n"
96
  msgstr ""
97
 
98
  #: ../includes/class-settings.php:79 ../includes/class-settings.php:100
99
+ #: ../includes/class-settings.php:801
100
  msgid "fade"
101
  msgstr ""
102
 
216
  msgid "Full Size (default)"
217
  msgstr "Pełny rozmiar (domyslny)"
218
 
219
+ #: ../includes/class-settings.php:150 ../includes/class-settings.php:875
220
  msgid "General settings"
221
  msgstr "Ustawienia ogólne"
222
 
318
  msgstr "Wybierz w którym miejscu chcesz wczytywać skrypty efektu lightbox."
319
 
320
  #: ../includes/class-settings.php:244
321
+ msgid "Conditional loading"
322
+ msgstr "Ładowanie warunkowe"
323
+
324
+ #: ../includes/class-settings.php:247
325
+ msgid ""
326
+ "Enable to load scripts and styles only on pages that have images or "
327
+ "galleries in post content."
328
+ msgstr ""
329
+ "Włącz aby wczytywać sklrypty i style wyłącznie na stronach, które w treści "
330
+ "zawierają galerie obrazków lub pojedyncze obrazki."
331
+
332
+ #: ../includes/class-settings.php:250
333
  msgid "Delete data"
334
  msgstr "Usuwanie danych"
335
 
336
+ #: ../includes/class-settings.php:253
337
  msgid "Delete all plugin settings on deactivation."
338
  msgstr "Usuń wszystkie dane wtyczki po jej deaktywacji."
339
 
340
+ #: ../includes/class-settings.php:263 ../includes/class-settings.php:881
341
  msgid "Lightbox settings"
342
  msgstr "Ustawienia lightbox"
343
 
344
+ #: ../includes/class-settings.php:281
345
  msgid "Animation type"
346
  msgstr "Typ animacji"
347
 
348
+ #: ../includes/class-settings.php:285
349
  msgid "Select a method of applying a lightbox effect."
350
  msgstr "Wybierz sposób dodawania efektu lightbox."
351
 
352
+ #: ../includes/class-settings.php:290
353
  msgid "Force PNG icons"
354
  msgstr "Wymuszanie ikon PNG"
355
 
356
+ #: ../includes/class-settings.php:293
357
  msgid ""
358
  "Enable this if you're having problems with navigation icons not visible on "
359
  "some devices."
360
  msgstr "Włącz tę opcję jeśli masz problemy z wyświetlaniem ikon nawigacji."
361
 
362
+ #: ../includes/class-settings.php:297
363
  msgid "Hide close on mobile"
364
  msgstr "Ukrywanie przycisku zamknij"
365
 
366
+ #: ../includes/class-settings.php:300
367
  msgid "Hide the close button on mobile devices."
368
  msgstr ""
369
  "Włącz, jeśli chcesz ukryć przycisk zamykania na urządzeniach mobilnych."
370
 
371
+ #: ../includes/class-settings.php:304
372
  msgid "Remove bars on mobile"
373
  msgstr "Ukrywanie pasków"
374
 
375
+ #: ../includes/class-settings.php:307
376
  msgid "Hide the top and bottom bars on mobile devices."
377
  msgstr "Ukryj górny i dolny pasek na urządzeniach mobilnych."
378
 
379
+ #: ../includes/class-settings.php:311
380
  msgid "Top and bottom bars"
381
  msgstr "Górne i dolne paski"
382
 
383
+ #: ../includes/class-settings.php:317
384
  msgid "Hide top and bottom bars after a period of time."
385
  msgstr "Ukryj górny i dolny pasek po określonym czasie."
386
 
387
+ #: ../includes/class-settings.php:322
388
  msgid ""
389
  "Enter the time after which the top and bottom bars will be hidden (when "
390
  "hiding is enabled)."
392
  "Podaj czas po którym chcesz ukryć górny i dolny pasek (jeśli opcja ukrywania "
393
  "jest włączona)."
394
 
395
+ #: ../includes/class-settings.php:329
396
  msgid "Video max width"
397
  msgstr "Maksymalna szerokość video"
398
 
399
+ #: ../includes/class-settings.php:332
400
  msgid "Enter the max video width in a lightbox."
401
  msgstr "Podaj maksymalną szerokość video."
402
 
403
+ #: ../includes/class-settings.php:337
404
  msgid "Loop at end"
405
  msgstr "Zapętlenie galerii"
406
 
407
+ #: ../includes/class-settings.php:340
408
  msgid "True will return to the first image after the last image is reached."
409
  msgstr ""
410
  "Włącz, aby powrócić do pierwszego zdjęcia po ostatnim zdjęciu w galerii."
411
 
412
+ #: ../includes/class-settings.php:352 ../includes/class-settings.php:744
413
  msgid "Animation speed"
414
  msgstr "Szybkość animacji"
415
 
416
+ #: ../includes/class-settings.php:356
417
  msgid "Select animation speed for lightbox effect."
418
  msgstr "Wybierz szybkość animacji efektu lightbox."
419
 
420
+ #: ../includes/class-settings.php:361
421
  msgid "Slideshow"
422
  msgstr "Pokaz slidów"
423
 
424
+ #: ../includes/class-settings.php:367
425
  msgid "Display images as slideshow"
426
  msgstr "Wyświetlanie obrazków jako pokaz slajdów"
427
 
428
+ #: ../includes/class-settings.php:372
429
  msgid "Enter time (in miliseconds)."
430
  msgstr "Podaj czas (w milisekundach)."
431
 
432
+ #: ../includes/class-settings.php:379
433
  msgid "Slideshow autoplay"
434
  msgstr "Automatyczne odtwarzanie pokazu slajdów"
435
 
436
+ #: ../includes/class-settings.php:382 ../includes/class-settings.php:826
437
  msgid "Automatically start slideshow."
438
  msgstr "Automatyczne rozpoczynanie pokazu slajdów."
439
 
440
+ #: ../includes/class-settings.php:386 ../includes/class-settings.php:588
441
  msgid "Opacity"
442
  msgstr "Przezroczystość"
443
 
444
+ #: ../includes/class-settings.php:389
445
  msgid "Value between 0 and 100, 100 for no opacity."
446
  msgstr "Wartość pomiędzy 0 i 100 (100 oznacza brak przezroczystości)."
447
 
448
+ #: ../includes/class-settings.php:395
449
  msgid "Show title"
450
  msgstr "Wyświetlanie tytułu"
451
 
452
+ #: ../includes/class-settings.php:398
453
  msgid "Display image title."
454
  msgstr "Wyświetlanie tytułu obrazka."
455
 
456
+ #: ../includes/class-settings.php:402
457
  msgid "Allow resize big images"
458
  msgstr "Powiększanie dużych zdjęć"
459
 
460
+ #: ../includes/class-settings.php:405
461
  msgid "Resize the photos bigger than viewport."
462
  msgstr "Zmiana wielkość zdjęć większych niż aktualny ekran."
463
 
464
+ #: ../includes/class-settings.php:409
465
  msgid "Allow expand"
466
  msgstr "Zezwól na powiększanie"
467
 
468
+ #: ../includes/class-settings.php:412
469
  msgid "Allow expanding images."
470
  msgstr "Zezwól na powiększanie zdjęć."
471
 
472
+ #: ../includes/class-settings.php:416 ../includes/class-settings.php:682
473
  msgid "Video width"
474
  msgstr "Szerokość video"
475
 
476
+ #: ../includes/class-settings.php:423 ../includes/class-settings.php:690
477
  msgid "Video height"
478
  msgstr "Wysokość video"
479
 
480
+ #: ../includes/class-settings.php:430
481
  msgid "Theme"
482
  msgstr "Motyw"
483
 
484
+ #: ../includes/class-settings.php:433
485
  msgid "Select the theme for lightbox effect."
486
  msgstr "Wybierz motyw dla efektu lightbox."
487
 
488
+ #: ../includes/class-settings.php:438
489
  msgid "Horizontal padding"
490
  msgstr "Odstępy w poziomie"
491
 
492
+ #: ../includes/class-settings.php:445
493
  msgid "Hide Flash"
494
  msgstr "Ukrywanie flash"
495
 
496
+ #: ../includes/class-settings.php:448
497
  msgid ""
498
  "Hide all the flash objects on a page. Enable this if flash appears over "
499
  "prettyPhoto."
501
  "Ukywa wszystkie obiekty flash na stronie. Włącz to jeśli animacje flash "
502
  "wyświetlane są nad lightboxem."
503
 
504
+ #: ../includes/class-settings.php:452
505
  msgid "Flash Window Mode (wmode)"
506
  msgstr "Tryb okna flash (wmode)"
507
 
508
+ #: ../includes/class-settings.php:455
509
  msgid "Select flash window mode."
510
  msgstr "Wybierz tryb okna flash."
511
 
512
+ #: ../includes/class-settings.php:460
513
  msgid "Video autoplay"
514
  msgstr "Automatyczne odtwarzanie wideo"
515
 
516
+ #: ../includes/class-settings.php:463
517
  msgid "Automatically start videos."
518
  msgstr "Automatycznie rozpoczynaj video."
519
 
520
+ #: ../includes/class-settings.php:467 ../includes/class-settings.php:510
521
  msgid "Modal"
522
  msgstr "Tryb modal"
523
 
524
+ #: ../includes/class-settings.php:470
525
  msgid "If set to true, only the close button will close the window."
526
  msgstr ""
527
  "Jeśli będzie włączone, tylko kliknięcie przycisku spowoduje zamknięcie okna."
528
 
529
+ #: ../includes/class-settings.php:474
530
  msgid "Deeplinking"
531
  msgstr "Głębokie linki"
532
 
533
+ #: ../includes/class-settings.php:477
534
  msgid "Allow prettyPhoto to update the url to enable deeplinking."
535
  msgstr "Zezwól prettyPhoto na aktualizacje adresów URL i głębokie linkowanie."
536
 
537
+ #: ../includes/class-settings.php:481
538
  msgid "Overlay gallery"
539
  msgstr "Efekt overlay galerii"
540
 
541
+ #: ../includes/class-settings.php:484
542
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
543
  msgstr ""
544
  "Jeśli będzie włączone, galeria będzie wyświetlana na cały ekran po "
545
  "najechaniu myszką."
546
 
547
+ #: ../includes/class-settings.php:488
548
  msgid "Keyboard shortcuts"
549
  msgstr "Skróty klawiaturowe"
550
 
551
+ #: ../includes/class-settings.php:491
552
  msgid "Set to false if you open forms inside prettyPhoto."
553
  msgstr "Wyłącz to jeśli chcesz otwierać formularze wewnątrz prettyPhoto."
554
 
555
+ #: ../includes/class-settings.php:495
556
  msgid "Social (Twitter, Facebook)"
557
  msgstr "Linki społeczności (Twitter, Facebook)"
558
 
559
+ #: ../includes/class-settings.php:498
560
  msgid "Display links to Facebook and Twitter."
561
  msgstr "Wyświetl linki do Facebboka i Twittera."
562
 
563
+ #: ../includes/class-settings.php:513
564
  msgid ""
565
  "When true, \"overlayShow\" is set to true and \"hideOnOverlayClick\", "
566
  "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
570
  "natomiast \"hideOnOverlayClick\", \"hideOnContentClick\", "
571
  "\"enableEscapeButton\", \"showCloseButton\" zostaną wyłączone."
572
 
573
+ #: ../includes/class-settings.php:517
574
  msgid "Show overlay"
575
  msgstr "Wyświetlanie tła"
576
 
577
+ #: ../includes/class-settings.php:520
578
  msgid "Toggle overlay."
579
  msgstr "Włącz tło."
580
 
581
+ #: ../includes/class-settings.php:524
582
  msgid "Show close button"
583
  msgstr "Wyświetlanie przycisku Zamknij"
584
 
585
+ #: ../includes/class-settings.php:527
586
  msgid "Toggle close button."
587
  msgstr "Włącz przycisk Zamknij."
588
 
589
+ #: ../includes/class-settings.php:531
590
  msgid "Enable escape button"
591
  msgstr "Wyświetlanie przycisku Wyjdź"
592
 
593
+ #: ../includes/class-settings.php:534
594
  msgid "Toggle if pressing Esc button closes FancyBox."
595
  msgstr "Włącz zamykanie FancyBox przy pomocy Esc."
596
 
597
+ #: ../includes/class-settings.php:538
598
  msgid "Hide on overlay click"
599
  msgstr "Ukryj po kliknięciu w tło"
600
 
601
+ #: ../includes/class-settings.php:541
602
  msgid "Toggle if clicking the overlay should close FancyBox."
603
  msgstr "Włącz zamykanie FancyBox kliknięciem w tło."
604
 
605
+ #: ../includes/class-settings.php:545
606
  msgid "Hide on content click"
607
  msgstr "Ukryj po kliknięciu w treść"
608
 
609
+ #: ../includes/class-settings.php:548
610
  msgid "Toggle if clicking the content should close FancyBox."
611
  msgstr "Włącz zamykanie FancyBox kliknięciem w treść."
612
 
613
+ #: ../includes/class-settings.php:552
614
  msgid "Cyclic"
615
  msgstr "Cykliczność"
616
 
617
+ #: ../includes/class-settings.php:555
618
  msgid ""
619
  "When true, galleries will be cyclic, allowing you to keep pressing next/back."
620
  msgstr "Jeśli będzie włączone, galerie będą wyświetlane cyklicznie."
621
 
622
+ #: ../includes/class-settings.php:559
623
  msgid "Show nav arrows"
624
  msgstr "Wyświetlanie strzałek"
625
 
626
+ #: ../includes/class-settings.php:562
627
  msgid "Toggle navigation arrows."
628
  msgstr "Włącz strzałki nawigacyjne."
629
 
630
+ #: ../includes/class-settings.php:566
631
  msgid "Auto scale"
632
  msgstr "Automatyczne skalowanie"
633
 
634
+ #: ../includes/class-settings.php:569
635
  msgid "If true, FancyBox is scaled to fit in viewport."
636
  msgstr "Jeśli będzie włączone, FancyBox będzie skalowany do rozmiaru okna."
637
 
638
+ #: ../includes/class-settings.php:573
639
  msgid "Scrolling (in/out)"
640
  msgstr "Przewijanie"
641
 
642
+ #: ../includes/class-settings.php:576
643
  msgid "Set the overflow CSS property to create or hide scrollbars."
644
  msgstr ""
645
  "Ustaw parametr overflow dw CSS aby tworzyć lub ukrywać elementy nawigacji."
646
 
647
+ #: ../includes/class-settings.php:581
648
  msgid "Center on scroll"
649
  msgstr "Centrowanie przy przewijaniu"
650
 
651
+ #: ../includes/class-settings.php:584
652
  msgid "When true, FancyBox is centered while scrolling page."
653
  msgstr ""
654
  "Jeśli będzie zaznaczone, FancyBox będzie wycentrowany w trakcie przewijania "
655
  "strony."
656
 
657
+ #: ../includes/class-settings.php:591
658
  msgid "When true, transparency of content is changed for elastic transitions."
659
  msgstr ""
660
  "Jeśli będzie zaznaczone, przezroczystość treści zmieni się w trakcie "
661
  "animacji."
662
 
663
+ #: ../includes/class-settings.php:595
664
  msgid "Overlay opacity"
665
  msgstr "Przezroczystość tła"
666
 
667
+ #: ../includes/class-settings.php:598
668
  msgid "Opacity of the overlay."
669
  msgstr "Przezroczystość tła."
670
 
671
+ #: ../includes/class-settings.php:604
672
  msgid "Overlay color"
673
  msgstr "Kolor tła"
674
 
675
+ #: ../includes/class-settings.php:607
676
  msgid "Color of the overlay."
677
  msgstr "Kolor tła."
678
 
679
+ #: ../includes/class-settings.php:611
680
  msgid "Title show"
681
  msgstr "Wyświetlanie tytułu"
682
 
683
+ #: ../includes/class-settings.php:614
684
  msgid "Toggle title."
685
  msgstr "Wyświetlanie tytułu."
686
 
687
+ #: ../includes/class-settings.php:618
688
  msgid "Title position"
689
  msgstr "Pozycja tytułu"
690
 
691
+ #: ../includes/class-settings.php:621
692
  msgid "The position of title."
693
  msgstr "Pozycja tytułu."
694
 
695
+ #: ../includes/class-settings.php:626
696
  msgid "Transition (in/out)"
697
  msgstr "Efekty przejścia"
698
 
699
+ #: ../includes/class-settings.php:629
700
  msgid "The transition type."
701
  msgstr "Typ animacji."
702
 
703
+ #: ../includes/class-settings.php:634
704
  msgid "Easings (in/out)"
705
  msgstr "Wygładzanie animacji"
706
 
707
+ #: ../includes/class-settings.php:637
708
  msgid "Easing used for elastic animations."
709
  msgstr "Wygładzanie animacji dla trybu elastic."
710
 
711
+ #: ../includes/class-settings.php:642
712
  msgid "Speed (in/out)"
713
  msgstr "Szybkość"
714
 
715
+ #: ../includes/class-settings.php:645
716
  msgid "Speed of the fade and elastic transitions, in milliseconds."
717
  msgstr "Podaj czas trwania animacji fade i elastic (w milisekundach)"
718
 
719
+ #: ../includes/class-settings.php:650
720
  msgid "Change speed"
721
  msgstr "Zmień szybkość"
722
 
723
+ #: ../includes/class-settings.php:653
724
  msgid "Speed of resizing when changing gallery items, in milliseconds."
725
  msgstr ""
726
  "Szybkość zmiany wielkości okna w trakcie przechodzenia między obrazkami (w "
727
  "milisekundach)."
728
 
729
+ #: ../includes/class-settings.php:658
730
  msgid "Change fade"
731
  msgstr "Zmień zanikanie"
732
 
733
+ #: ../includes/class-settings.php:661
734
  msgid "Speed of the content fading while changing gallery items."
735
  msgstr "Szybkość zanikania elementów w trakcie przechodzenia między obrazkami."
736
 
737
+ #: ../includes/class-settings.php:666
738
  msgid "Padding"
739
  msgstr "Odstęp (padding)"
740
 
741
+ #: ../includes/class-settings.php:669
742
  msgid "Space between FancyBox wrapper and content."
743
  msgstr "Przestrzeń między FancyBox a treścią"
744
 
745
+ #: ../includes/class-settings.php:674
746
  msgid "Margin"
747
  msgstr "Margines (margin)"
748
 
749
+ #: ../includes/class-settings.php:677
750
  msgid "Space between viewport and FancyBox wrapper."
751
  msgstr "Przestrzeń między ekranem a Fancybox"
752
 
753
+ #: ../includes/class-settings.php:685
754
  msgid "Width of the video."
755
  msgstr "Szerokość video."
756
 
757
+ #: ../includes/class-settings.php:693
758
  msgid "Height of the video."
759
  msgstr "Wysokość video."
760
 
761
+ #: ../includes/class-settings.php:706
762
  msgid "Effect"
763
  msgstr "Efekt"
764
 
765
+ #: ../includes/class-settings.php:709
766
  msgid "The effect to use when showing the lightbox."
767
  msgstr "Wybierz efekt, który chcesz zastosować do wyświetlania lightboxa."
768
 
769
+ #: ../includes/class-settings.php:714 ../includes/class-settings.php:813
770
  msgid "Keyboard navigation"
771
  msgstr "Nawigacja klawiaturą"
772
 
773
+ #: ../includes/class-settings.php:717 ../includes/class-settings.php:816
774
  msgid "Enable keyboard navigation (left/right/escape)."
775
  msgstr "Włącz nawigację za pomocą klawiatury (lewo, prawo, esc)."
776
 
777
+ #: ../includes/class-settings.php:721
778
  msgid "Click overlay to close"
779
  msgstr "Kliknięcie poza obrazek"
780
 
781
+ #: ../includes/class-settings.php:724
782
  msgid "Enable to close lightbox on overlay click."
783
  msgstr "Włącz aby zamykać lightbox po kliknięciu w obszar poza obrazkiem."
784
 
785
+ #: ../includes/class-settings.php:728
786
  msgid "Error message"
787
  msgstr "Treść komunikatu o błędzie"
788
 
789
+ #: ../includes/class-settings.php:732
790
  msgid "Error message if the content cannot be loaded."
791
  msgstr "Komunikat w przypadku gdy nie można załądować treści."
792
 
793
+ #: ../includes/class-settings.php:747
794
  msgid "Animation speed."
795
  msgstr "Szybkość animacji."
796
 
797
+ #: ../includes/class-settings.php:752
798
  msgid "Preload next image"
799
  msgstr "Wstępne ładowanie kolejnego obrazka"
800
 
801
+ #: ../includes/class-settings.php:755
802
  msgid "Silently preload the next image."
803
  msgstr "W niezauważalny sposób ładuje kolejny obrazek."
804
 
805
+ #: ../includes/class-settings.php:759
806
  msgid "Enable keyboard keys"
807
  msgstr "Obługa klawiaturą"
808
 
809
+ #: ../includes/class-settings.php:762
810
  msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
811
  msgstr "Włącza skróty klawiaturowe (strzałki lewo/prawo oraz Esc)"
812
 
813
+ #: ../includes/class-settings.php:766
814
  msgid "Quit after last image"
815
  msgstr "Wyjście po ostanim obrazku"
816
 
817
+ #: ../includes/class-settings.php:769
818
  msgid "Quit after viewing the last image."
819
  msgstr "Powoduje wyjście z lightboxa po obejrzeniu ostatniego obrazka."
820
 
821
+ #: ../includes/class-settings.php:773
822
  msgid "Quit on image click"
823
  msgstr "Wyjście po kliknięciu w obrazek"
824
 
825
+ #: ../includes/class-settings.php:776
826
  msgid "Quit when the viewed image is clicked."
827
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w przeglądany obrazek."
828
 
829
+ #: ../includes/class-settings.php:780
830
  msgid "Quit on anything click"
831
  msgstr "Wyjście po kliknięciu w coś innego niż obrazek"
832
 
833
+ #: ../includes/class-settings.php:783
834
  msgid "Quit when anything but the viewed image is clicked."
835
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w coś innego niż obrazek."
836
 
837
+ #: ../includes/class-settings.php:795
838
  msgid "Transition effect"
839
  msgstr "Efekt przejścia"
840
 
841
+ #: ../includes/class-settings.php:798
842
  msgid "What effect to use for the transition."
843
  msgstr "Wybierz efekt jaki zastosować dla przejścia między slajdami."
844
 
845
+ #: ../includes/class-settings.php:800
846
  msgid "slide"
847
  msgstr ""
848
 
849
+ #: ../includes/class-settings.php:806
850
  msgid "Infinite loop"
851
  msgstr "Nieskończona pętla"
852
 
853
+ #: ../includes/class-settings.php:809
854
  msgid ""
855
  "Whether or not to slide back to the first slide when the last has been "
856
  "reached."
857
  msgstr ""
858
  "Włącz przewijanie do pierwszego slajdu po wyświetleniu ostatniego slajdu."
859
 
860
+ #: ../includes/class-settings.php:820
861
  msgid "Autoplay"
862
  msgstr "Autopla"
863
 
864
+ #: ../includes/class-settings.php:831
865
  msgid "The timeout between sliding to the next slide in milliseconds."
866
  msgstr "Czas pomiędzy slajdami, w milisekundach."
867
 
868
+ #: ../includes/class-settings.php:838
869
  msgid "Pause on hover"
870
  msgstr "Pauza po najechaniu"
871
 
872
+ #: ../includes/class-settings.php:841
873
  msgid "Whether or not to pause on hover."
874
  msgstr "Włącz pauzę po najechaniu kursorem."
875
 
876
+ #: ../includes/class-settings.php:845
877
  msgid "Pagination"
878
  msgstr "Stronicowanie"
879
 
880
+ #: ../includes/class-settings.php:851
881
  msgid "Whether or not to add a pagination."
882
  msgstr "Włącz stronicowanie."
883
 
884
+ #: ../includes/class-settings.php:856
885
  msgid "What type of pagination to use."
886
  msgstr "Wybierz rodzaj stronicowania."
887
 
888
+ #: ../includes/class-settings.php:858
889
  msgid "Bullets"
890
  msgstr "Kropki"
891
 
892
+ #: ../includes/class-settings.php:859
893
  msgid "Thumbnails"
894
  msgstr "Miniatury"
895
 
896
+ #: ../includes/class-settings.php:897 ../includes/class-settings.php:911
897
+ #: ../includes/class-settings.php:924
898
  msgid "Responsive Lightbox"
899
  msgstr "Efekt Lightbox"
900
 
901
+ #: ../includes/class-settings.php:926
902
  msgid "Need support?"
903
  msgstr "Potrzebujesz pomocy?"
904
 
905
+ #: ../includes/class-settings.php:927
906
  msgid ""
907
  "If you are having problems with this plugin, please talk about them in the"
908
  msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o nich na"
909
 
910
+ #: ../includes/class-settings.php:927
911
  msgid "Support forum"
912
  msgstr "Forum pomocy"
913
 
914
+ #: ../includes/class-settings.php:929
915
  msgid "Do you like this plugin?"
916
  msgstr "Lubisz tę wtyczkę?"
917
 
918
+ #: ../includes/class-settings.php:936
919
  msgid "Rate it 5"
920
  msgstr "Oceń ją na 5"
921
 
922
+ #: ../includes/class-settings.php:936
923
  msgid "on WordPress.org"
924
  msgstr "na WordPress.org"
925
 
926
+ #: ../includes/class-settings.php:937
927
  msgid "Blog about it & link to the"
928
  msgstr "Napisz o niej i dodaj link"
929
 
930
+ #: ../includes/class-settings.php:937
931
  msgid "plugin page"
932
  msgstr "do strony wtyczki"
933
 
934
+ #: ../includes/class-settings.php:938
935
  msgid "Check out our other"
936
  msgstr "Sprawdź nasze pozostałe"
937
 
938
+ #: ../includes/class-settings.php:938
939
  msgid "WordPress plugins"
940
  msgstr "wtyczki do WordPress'a"
941
 
942
+ #: ../includes/class-settings.php:958
943
  msgid "Reset to defaults"
944
  msgstr "Resetuj do domyślnych"
945
 
946
+ #: ../includes/class-settings.php:1325
947
  msgid "Settings restored to defaults."
948
  msgstr "Ustawienia zostały przywrócone do domyślnych."
949
 
950
+ #: ../responsive-lightbox.php:286
951
  msgid "Support"
952
  msgstr "Pomoc"
953
 
954
+ #: ../responsive-lightbox.php:305
955
  msgid "Settings"
956
  msgstr "Ustawienia"
957
 
958
+ #: ../responsive-lightbox.php:325
959
  msgid "Are you sure you want to reset these settings to defaults?"
960
  msgstr "Jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
961
 
962
+ #: ../responsive-lightbox.php:326
963
  msgid "Are you sure you want to reset this script settings to defaults?"
964
  msgstr ""
965
  "Jesteś pewny, że chcesz zresetować ustawienia tego skryptu do ustawień "
languages/responsive-lightbox.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Responsive Lightbox\n"
5
- "POT-Creation-Date: 2015-06-11 11:26+0100\n"
6
  "PO-Revision-Date: 2015-05-12 12:06+0100\n"
7
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
  "Language-Team: dFactory <info@dfactory.eu>\n"
@@ -97,7 +97,7 @@ msgid "elastic"
97
  msgstr ""
98
 
99
  #: ../includes/class-settings.php:79 ../includes/class-settings.php:100
100
- #: ../includes/class-settings.php:795
101
  msgid "fade"
102
  msgstr ""
103
 
@@ -217,7 +217,7 @@ msgstr ""
217
  msgid "Full Size (default)"
218
  msgstr ""
219
 
220
- #: ../includes/class-settings.php:150 ../includes/class-settings.php:869
221
  msgid "General settings"
222
  msgstr ""
223
 
@@ -316,615 +316,625 @@ msgid "Select where all the lightbox scripts should be placed."
316
  msgstr ""
317
 
318
  #: ../includes/class-settings.php:244
319
- msgid "Delete data"
320
  msgstr ""
321
 
322
  #: ../includes/class-settings.php:247
 
 
 
 
 
 
 
 
 
 
323
  msgid "Delete all plugin settings on deactivation."
324
  msgstr ""
325
 
326
- #: ../includes/class-settings.php:257 ../includes/class-settings.php:875
327
  msgid "Lightbox settings"
328
  msgstr ""
329
 
330
- #: ../includes/class-settings.php:275
331
  msgid "Animation type"
332
  msgstr ""
333
 
334
- #: ../includes/class-settings.php:279
335
  msgid "Select a method of applying a lightbox effect."
336
  msgstr ""
337
 
338
- #: ../includes/class-settings.php:284
339
  msgid "Force PNG icons"
340
  msgstr ""
341
 
342
- #: ../includes/class-settings.php:287
343
  msgid ""
344
  "Enable this if you're having problems with navigation icons not visible on "
345
  "some devices."
346
  msgstr ""
347
 
348
- #: ../includes/class-settings.php:291
349
  msgid "Hide close on mobile"
350
  msgstr ""
351
 
352
- #: ../includes/class-settings.php:294
353
  msgid "Hide the close button on mobile devices."
354
  msgstr ""
355
 
356
- #: ../includes/class-settings.php:298
357
  msgid "Remove bars on mobile"
358
  msgstr ""
359
 
360
- #: ../includes/class-settings.php:301
361
  msgid "Hide the top and bottom bars on mobile devices."
362
  msgstr ""
363
 
364
- #: ../includes/class-settings.php:305
365
  msgid "Top and bottom bars"
366
  msgstr ""
367
 
368
- #: ../includes/class-settings.php:311
369
  msgid "Hide top and bottom bars after a period of time."
370
  msgstr ""
371
 
372
- #: ../includes/class-settings.php:316
373
  msgid ""
374
  "Enter the time after which the top and bottom bars will be hidden (when "
375
  "hiding is enabled)."
376
  msgstr ""
377
 
378
- #: ../includes/class-settings.php:323
379
  msgid "Video max width"
380
  msgstr ""
381
 
382
- #: ../includes/class-settings.php:326
383
  msgid "Enter the max video width in a lightbox."
384
  msgstr ""
385
 
386
- #: ../includes/class-settings.php:331
387
  msgid "Loop at end"
388
  msgstr ""
389
 
390
- #: ../includes/class-settings.php:334
391
  msgid "True will return to the first image after the last image is reached."
392
  msgstr ""
393
 
394
- #: ../includes/class-settings.php:346 ../includes/class-settings.php:738
395
  msgid "Animation speed"
396
  msgstr ""
397
 
398
- #: ../includes/class-settings.php:350
399
  msgid "Select animation speed for lightbox effect."
400
  msgstr ""
401
 
402
- #: ../includes/class-settings.php:355
403
  msgid "Slideshow"
404
  msgstr ""
405
 
406
- #: ../includes/class-settings.php:361
407
  msgid "Display images as slideshow"
408
  msgstr ""
409
 
410
- #: ../includes/class-settings.php:366
411
  msgid "Enter time (in miliseconds)."
412
  msgstr ""
413
 
414
- #: ../includes/class-settings.php:373
415
  msgid "Slideshow autoplay"
416
  msgstr ""
417
 
418
- #: ../includes/class-settings.php:376 ../includes/class-settings.php:820
419
  msgid "Automatically start slideshow."
420
  msgstr ""
421
 
422
- #: ../includes/class-settings.php:380 ../includes/class-settings.php:582
423
  msgid "Opacity"
424
  msgstr ""
425
 
426
- #: ../includes/class-settings.php:383
427
  msgid "Value between 0 and 100, 100 for no opacity."
428
  msgstr ""
429
 
430
- #: ../includes/class-settings.php:389
431
  msgid "Show title"
432
  msgstr ""
433
 
434
- #: ../includes/class-settings.php:392
435
  msgid "Display image title."
436
  msgstr ""
437
 
438
- #: ../includes/class-settings.php:396
439
  msgid "Allow resize big images"
440
  msgstr ""
441
 
442
- #: ../includes/class-settings.php:399
443
  msgid "Resize the photos bigger than viewport."
444
  msgstr ""
445
 
446
- #: ../includes/class-settings.php:403
447
  msgid "Allow expand"
448
  msgstr ""
449
 
450
- #: ../includes/class-settings.php:406
451
  msgid "Allow expanding images."
452
  msgstr ""
453
 
454
- #: ../includes/class-settings.php:410 ../includes/class-settings.php:676
455
  msgid "Video width"
456
  msgstr ""
457
 
458
- #: ../includes/class-settings.php:417 ../includes/class-settings.php:684
459
  msgid "Video height"
460
  msgstr ""
461
 
462
- #: ../includes/class-settings.php:424
463
  msgid "Theme"
464
  msgstr ""
465
 
466
- #: ../includes/class-settings.php:427
467
  msgid "Select the theme for lightbox effect."
468
  msgstr ""
469
 
470
- #: ../includes/class-settings.php:432
471
  msgid "Horizontal padding"
472
  msgstr ""
473
 
474
- #: ../includes/class-settings.php:439
475
  msgid "Hide Flash"
476
  msgstr ""
477
 
478
- #: ../includes/class-settings.php:442
479
  msgid ""
480
  "Hide all the flash objects on a page. Enable this if flash appears over "
481
  "prettyPhoto."
482
  msgstr ""
483
 
484
- #: ../includes/class-settings.php:446
485
  msgid "Flash Window Mode (wmode)"
486
  msgstr ""
487
 
488
- #: ../includes/class-settings.php:449
489
  msgid "Select flash window mode."
490
  msgstr ""
491
 
492
- #: ../includes/class-settings.php:454
493
  msgid "Video autoplay"
494
  msgstr ""
495
 
496
- #: ../includes/class-settings.php:457
497
  msgid "Automatically start videos."
498
  msgstr ""
499
 
500
- #: ../includes/class-settings.php:461 ../includes/class-settings.php:504
501
  msgid "Modal"
502
  msgstr ""
503
 
504
- #: ../includes/class-settings.php:464
505
  msgid "If set to true, only the close button will close the window."
506
  msgstr ""
507
 
508
- #: ../includes/class-settings.php:468
509
  msgid "Deeplinking"
510
  msgstr ""
511
 
512
- #: ../includes/class-settings.php:471
513
  msgid "Allow prettyPhoto to update the url to enable deeplinking."
514
  msgstr ""
515
 
516
- #: ../includes/class-settings.php:475
517
  msgid "Overlay gallery"
518
  msgstr ""
519
 
520
- #: ../includes/class-settings.php:478
521
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
522
  msgstr ""
523
 
524
- #: ../includes/class-settings.php:482
525
  msgid "Keyboard shortcuts"
526
  msgstr ""
527
 
528
- #: ../includes/class-settings.php:485
529
  msgid "Set to false if you open forms inside prettyPhoto."
530
  msgstr ""
531
 
532
- #: ../includes/class-settings.php:489
533
  msgid "Social (Twitter, Facebook)"
534
  msgstr ""
535
 
536
- #: ../includes/class-settings.php:492
537
  msgid "Display links to Facebook and Twitter."
538
  msgstr ""
539
 
540
- #: ../includes/class-settings.php:507
541
  msgid ""
542
  "When true, \"overlayShow\" is set to true and \"hideOnOverlayClick\", "
543
  "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
544
  "to false."
545
  msgstr ""
546
 
547
- #: ../includes/class-settings.php:511
548
  msgid "Show overlay"
549
  msgstr ""
550
 
551
- #: ../includes/class-settings.php:514
552
  msgid "Toggle overlay."
553
  msgstr ""
554
 
555
- #: ../includes/class-settings.php:518
556
  msgid "Show close button"
557
  msgstr ""
558
 
559
- #: ../includes/class-settings.php:521
560
  msgid "Toggle close button."
561
  msgstr ""
562
 
563
- #: ../includes/class-settings.php:525
564
  msgid "Enable escape button"
565
  msgstr ""
566
 
567
- #: ../includes/class-settings.php:528
568
  msgid "Toggle if pressing Esc button closes FancyBox."
569
  msgstr ""
570
 
571
- #: ../includes/class-settings.php:532
572
  msgid "Hide on overlay click"
573
  msgstr ""
574
 
575
- #: ../includes/class-settings.php:535
576
  msgid "Toggle if clicking the overlay should close FancyBox."
577
  msgstr ""
578
 
579
- #: ../includes/class-settings.php:539
580
  msgid "Hide on content click"
581
  msgstr ""
582
 
583
- #: ../includes/class-settings.php:542
584
  msgid "Toggle if clicking the content should close FancyBox."
585
  msgstr ""
586
 
587
- #: ../includes/class-settings.php:546
588
  msgid "Cyclic"
589
  msgstr ""
590
 
591
- #: ../includes/class-settings.php:549
592
  msgid ""
593
  "When true, galleries will be cyclic, allowing you to keep pressing next/back."
594
  msgstr ""
595
 
596
- #: ../includes/class-settings.php:553
597
  msgid "Show nav arrows"
598
  msgstr ""
599
 
600
- #: ../includes/class-settings.php:556
601
  msgid "Toggle navigation arrows."
602
  msgstr ""
603
 
604
- #: ../includes/class-settings.php:560
605
  msgid "Auto scale"
606
  msgstr ""
607
 
608
- #: ../includes/class-settings.php:563
609
  msgid "If true, FancyBox is scaled to fit in viewport."
610
  msgstr ""
611
 
612
- #: ../includes/class-settings.php:567
613
  msgid "Scrolling (in/out)"
614
  msgstr ""
615
 
616
- #: ../includes/class-settings.php:570
617
  msgid "Set the overflow CSS property to create or hide scrollbars."
618
  msgstr ""
619
 
620
- #: ../includes/class-settings.php:575
621
  msgid "Center on scroll"
622
  msgstr ""
623
 
624
- #: ../includes/class-settings.php:578
625
  msgid "When true, FancyBox is centered while scrolling page."
626
  msgstr ""
627
 
628
- #: ../includes/class-settings.php:585
629
  msgid "When true, transparency of content is changed for elastic transitions."
630
  msgstr ""
631
 
632
- #: ../includes/class-settings.php:589
633
  msgid "Overlay opacity"
634
  msgstr ""
635
 
636
- #: ../includes/class-settings.php:592
637
  msgid "Opacity of the overlay."
638
  msgstr ""
639
 
640
- #: ../includes/class-settings.php:598
641
  msgid "Overlay color"
642
  msgstr ""
643
 
644
- #: ../includes/class-settings.php:601
645
  msgid "Color of the overlay."
646
  msgstr ""
647
 
648
- #: ../includes/class-settings.php:605
649
  msgid "Title show"
650
  msgstr ""
651
 
652
- #: ../includes/class-settings.php:608
653
  msgid "Toggle title."
654
  msgstr ""
655
 
656
- #: ../includes/class-settings.php:612
657
  msgid "Title position"
658
  msgstr ""
659
 
660
- #: ../includes/class-settings.php:615
661
  msgid "The position of title."
662
  msgstr ""
663
 
664
- #: ../includes/class-settings.php:620
665
  msgid "Transition (in/out)"
666
  msgstr ""
667
 
668
- #: ../includes/class-settings.php:623
669
  msgid "The transition type."
670
  msgstr ""
671
 
672
- #: ../includes/class-settings.php:628
673
  msgid "Easings (in/out)"
674
  msgstr ""
675
 
676
- #: ../includes/class-settings.php:631
677
  msgid "Easing used for elastic animations."
678
  msgstr ""
679
 
680
- #: ../includes/class-settings.php:636
681
  msgid "Speed (in/out)"
682
  msgstr ""
683
 
684
- #: ../includes/class-settings.php:639
685
  msgid "Speed of the fade and elastic transitions, in milliseconds."
686
  msgstr ""
687
 
688
- #: ../includes/class-settings.php:644
689
  msgid "Change speed"
690
  msgstr ""
691
 
692
- #: ../includes/class-settings.php:647
693
  msgid "Speed of resizing when changing gallery items, in milliseconds."
694
  msgstr ""
695
 
696
- #: ../includes/class-settings.php:652
697
  msgid "Change fade"
698
  msgstr ""
699
 
700
- #: ../includes/class-settings.php:655
701
  msgid "Speed of the content fading while changing gallery items."
702
  msgstr ""
703
 
704
- #: ../includes/class-settings.php:660
705
  msgid "Padding"
706
  msgstr ""
707
 
708
- #: ../includes/class-settings.php:663
709
  msgid "Space between FancyBox wrapper and content."
710
  msgstr ""
711
 
712
- #: ../includes/class-settings.php:668
713
  msgid "Margin"
714
  msgstr ""
715
 
716
- #: ../includes/class-settings.php:671
717
  msgid "Space between viewport and FancyBox wrapper."
718
  msgstr ""
719
 
720
- #: ../includes/class-settings.php:679
721
  msgid "Width of the video."
722
  msgstr ""
723
 
724
- #: ../includes/class-settings.php:687
725
  msgid "Height of the video."
726
  msgstr ""
727
 
728
- #: ../includes/class-settings.php:700
729
  msgid "Effect"
730
  msgstr ""
731
 
732
- #: ../includes/class-settings.php:703
733
  msgid "The effect to use when showing the lightbox."
734
  msgstr ""
735
 
736
- #: ../includes/class-settings.php:708 ../includes/class-settings.php:807
737
  msgid "Keyboard navigation"
738
  msgstr ""
739
 
740
- #: ../includes/class-settings.php:711 ../includes/class-settings.php:810
741
  msgid "Enable keyboard navigation (left/right/escape)."
742
  msgstr ""
743
 
744
- #: ../includes/class-settings.php:715
745
  msgid "Click overlay to close"
746
  msgstr ""
747
 
748
- #: ../includes/class-settings.php:718
749
  msgid "Enable to close lightbox on overlay click."
750
  msgstr ""
751
 
752
- #: ../includes/class-settings.php:722
753
  msgid "Error message"
754
  msgstr ""
755
 
756
- #: ../includes/class-settings.php:726
757
  msgid "Error message if the content cannot be loaded."
758
  msgstr ""
759
 
760
- #: ../includes/class-settings.php:741
761
  msgid "Animation speed."
762
  msgstr ""
763
 
764
- #: ../includes/class-settings.php:746
765
  msgid "Preload next image"
766
  msgstr ""
767
 
768
- #: ../includes/class-settings.php:749
769
  msgid "Silently preload the next image."
770
  msgstr ""
771
 
772
- #: ../includes/class-settings.php:753
773
  msgid "Enable keyboard keys"
774
  msgstr ""
775
 
776
- #: ../includes/class-settings.php:756
777
  msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
778
  msgstr ""
779
 
780
- #: ../includes/class-settings.php:760
781
  msgid "Quit after last image"
782
  msgstr ""
783
 
784
- #: ../includes/class-settings.php:763
785
  msgid "Quit after viewing the last image."
786
  msgstr ""
787
 
788
- #: ../includes/class-settings.php:767
789
  msgid "Quit on image click"
790
  msgstr ""
791
 
792
- #: ../includes/class-settings.php:770
793
  msgid "Quit when the viewed image is clicked."
794
  msgstr ""
795
 
796
- #: ../includes/class-settings.php:774
797
  msgid "Quit on anything click"
798
  msgstr ""
799
 
800
- #: ../includes/class-settings.php:777
801
  msgid "Quit when anything but the viewed image is clicked."
802
  msgstr ""
803
 
804
- #: ../includes/class-settings.php:789
805
  msgid "Transition effect"
806
  msgstr ""
807
 
808
- #: ../includes/class-settings.php:792
809
  msgid "What effect to use for the transition."
810
  msgstr ""
811
 
812
- #: ../includes/class-settings.php:794
813
  msgid "slide"
814
  msgstr ""
815
 
816
- #: ../includes/class-settings.php:800
817
  msgid "Infinite loop"
818
  msgstr ""
819
 
820
- #: ../includes/class-settings.php:803
821
  msgid ""
822
  "Whether or not to slide back to the first slide when the last has been "
823
  "reached."
824
  msgstr ""
825
 
826
- #: ../includes/class-settings.php:814
827
  msgid "Autoplay"
828
  msgstr ""
829
 
830
- #: ../includes/class-settings.php:825
831
  msgid "The timeout between sliding to the next slide in milliseconds."
832
  msgstr ""
833
 
834
- #: ../includes/class-settings.php:832
835
  msgid "Pause on hover"
836
  msgstr ""
837
 
838
- #: ../includes/class-settings.php:835
839
  msgid "Whether or not to pause on hover."
840
  msgstr ""
841
 
842
- #: ../includes/class-settings.php:839
843
  msgid "Pagination"
844
  msgstr ""
845
 
846
- #: ../includes/class-settings.php:845
847
  msgid "Whether or not to add a pagination."
848
  msgstr ""
849
 
850
- #: ../includes/class-settings.php:850
851
  msgid "What type of pagination to use."
852
  msgstr ""
853
 
854
- #: ../includes/class-settings.php:852
855
  msgid "Bullets"
856
  msgstr ""
857
 
858
- #: ../includes/class-settings.php:853
859
  msgid "Thumbnails"
860
  msgstr ""
861
 
862
- #: ../includes/class-settings.php:891 ../includes/class-settings.php:905
863
- #: ../includes/class-settings.php:918
864
  msgid "Responsive Lightbox"
865
  msgstr ""
866
 
867
- #: ../includes/class-settings.php:920
868
  msgid "Need support?"
869
  msgstr ""
870
 
871
- #: ../includes/class-settings.php:921
872
  msgid ""
873
  "If you are having problems with this plugin, please talk about them in the"
874
  msgstr ""
875
 
876
- #: ../includes/class-settings.php:921
877
  msgid "Support forum"
878
  msgstr ""
879
 
880
- #: ../includes/class-settings.php:923
881
  msgid "Do you like this plugin?"
882
  msgstr ""
883
 
884
- #: ../includes/class-settings.php:930
885
  msgid "Rate it 5"
886
  msgstr ""
887
 
888
- #: ../includes/class-settings.php:930
889
  msgid "on WordPress.org"
890
  msgstr ""
891
 
892
- #: ../includes/class-settings.php:931
893
  msgid "Blog about it & link to the"
894
  msgstr ""
895
 
896
- #: ../includes/class-settings.php:931
897
  msgid "plugin page"
898
  msgstr ""
899
 
900
- #: ../includes/class-settings.php:932
901
  msgid "Check out our other"
902
  msgstr ""
903
 
904
- #: ../includes/class-settings.php:932
905
  msgid "WordPress plugins"
906
  msgstr ""
907
 
908
- #: ../includes/class-settings.php:952
909
  msgid "Reset to defaults"
910
  msgstr ""
911
 
912
- #: ../includes/class-settings.php:1319
913
  msgid "Settings restored to defaults."
914
  msgstr ""
915
 
916
- #: ../responsive-lightbox.php:285
917
  msgid "Support"
918
  msgstr ""
919
 
920
- #: ../responsive-lightbox.php:304
921
  msgid "Settings"
922
  msgstr ""
923
 
924
- #: ../responsive-lightbox.php:324
925
  msgid "Are you sure you want to reset these settings to defaults?"
926
  msgstr ""
927
 
928
- #: ../responsive-lightbox.php:325
929
  msgid "Are you sure you want to reset this script settings to defaults?"
930
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Responsive Lightbox\n"
5
+ "POT-Creation-Date: 2015-06-13 18:20+0100\n"
6
  "PO-Revision-Date: 2015-05-12 12:06+0100\n"
7
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
  "Language-Team: dFactory <info@dfactory.eu>\n"
97
  msgstr ""
98
 
99
  #: ../includes/class-settings.php:79 ../includes/class-settings.php:100
100
+ #: ../includes/class-settings.php:801
101
  msgid "fade"
102
  msgstr ""
103
 
217
  msgid "Full Size (default)"
218
  msgstr ""
219
 
220
+ #: ../includes/class-settings.php:150 ../includes/class-settings.php:875
221
  msgid "General settings"
222
  msgstr ""
223
 
316
  msgstr ""
317
 
318
  #: ../includes/class-settings.php:244
319
+ msgid "Conditional loading"
320
  msgstr ""
321
 
322
  #: ../includes/class-settings.php:247
323
+ msgid ""
324
+ "Enable to load scripts and styles only on pages that have images or "
325
+ "galleries in post content."
326
+ msgstr ""
327
+
328
+ #: ../includes/class-settings.php:250
329
+ msgid "Delete data"
330
+ msgstr ""
331
+
332
+ #: ../includes/class-settings.php:253
333
  msgid "Delete all plugin settings on deactivation."
334
  msgstr ""
335
 
336
+ #: ../includes/class-settings.php:263 ../includes/class-settings.php:881
337
  msgid "Lightbox settings"
338
  msgstr ""
339
 
340
+ #: ../includes/class-settings.php:281
341
  msgid "Animation type"
342
  msgstr ""
343
 
344
+ #: ../includes/class-settings.php:285
345
  msgid "Select a method of applying a lightbox effect."
346
  msgstr ""
347
 
348
+ #: ../includes/class-settings.php:290
349
  msgid "Force PNG icons"
350
  msgstr ""
351
 
352
+ #: ../includes/class-settings.php:293
353
  msgid ""
354
  "Enable this if you're having problems with navigation icons not visible on "
355
  "some devices."
356
  msgstr ""
357
 
358
+ #: ../includes/class-settings.php:297
359
  msgid "Hide close on mobile"
360
  msgstr ""
361
 
362
+ #: ../includes/class-settings.php:300
363
  msgid "Hide the close button on mobile devices."
364
  msgstr ""
365
 
366
+ #: ../includes/class-settings.php:304
367
  msgid "Remove bars on mobile"
368
  msgstr ""
369
 
370
+ #: ../includes/class-settings.php:307
371
  msgid "Hide the top and bottom bars on mobile devices."
372
  msgstr ""
373
 
374
+ #: ../includes/class-settings.php:311
375
  msgid "Top and bottom bars"
376
  msgstr ""
377
 
378
+ #: ../includes/class-settings.php:317
379
  msgid "Hide top and bottom bars after a period of time."
380
  msgstr ""
381
 
382
+ #: ../includes/class-settings.php:322
383
  msgid ""
384
  "Enter the time after which the top and bottom bars will be hidden (when "
385
  "hiding is enabled)."
386
  msgstr ""
387
 
388
+ #: ../includes/class-settings.php:329
389
  msgid "Video max width"
390
  msgstr ""
391
 
392
+ #: ../includes/class-settings.php:332
393
  msgid "Enter the max video width in a lightbox."
394
  msgstr ""
395
 
396
+ #: ../includes/class-settings.php:337
397
  msgid "Loop at end"
398
  msgstr ""
399
 
400
+ #: ../includes/class-settings.php:340
401
  msgid "True will return to the first image after the last image is reached."
402
  msgstr ""
403
 
404
+ #: ../includes/class-settings.php:352 ../includes/class-settings.php:744
405
  msgid "Animation speed"
406
  msgstr ""
407
 
408
+ #: ../includes/class-settings.php:356
409
  msgid "Select animation speed for lightbox effect."
410
  msgstr ""
411
 
412
+ #: ../includes/class-settings.php:361
413
  msgid "Slideshow"
414
  msgstr ""
415
 
416
+ #: ../includes/class-settings.php:367
417
  msgid "Display images as slideshow"
418
  msgstr ""
419
 
420
+ #: ../includes/class-settings.php:372
421
  msgid "Enter time (in miliseconds)."
422
  msgstr ""
423
 
424
+ #: ../includes/class-settings.php:379
425
  msgid "Slideshow autoplay"
426
  msgstr ""
427
 
428
+ #: ../includes/class-settings.php:382 ../includes/class-settings.php:826
429
  msgid "Automatically start slideshow."
430
  msgstr ""
431
 
432
+ #: ../includes/class-settings.php:386 ../includes/class-settings.php:588
433
  msgid "Opacity"
434
  msgstr ""
435
 
436
+ #: ../includes/class-settings.php:389
437
  msgid "Value between 0 and 100, 100 for no opacity."
438
  msgstr ""
439
 
440
+ #: ../includes/class-settings.php:395
441
  msgid "Show title"
442
  msgstr ""
443
 
444
+ #: ../includes/class-settings.php:398
445
  msgid "Display image title."
446
  msgstr ""
447
 
448
+ #: ../includes/class-settings.php:402
449
  msgid "Allow resize big images"
450
  msgstr ""
451
 
452
+ #: ../includes/class-settings.php:405
453
  msgid "Resize the photos bigger than viewport."
454
  msgstr ""
455
 
456
+ #: ../includes/class-settings.php:409
457
  msgid "Allow expand"
458
  msgstr ""
459
 
460
+ #: ../includes/class-settings.php:412
461
  msgid "Allow expanding images."
462
  msgstr ""
463
 
464
+ #: ../includes/class-settings.php:416 ../includes/class-settings.php:682
465
  msgid "Video width"
466
  msgstr ""
467
 
468
+ #: ../includes/class-settings.php:423 ../includes/class-settings.php:690
469
  msgid "Video height"
470
  msgstr ""
471
 
472
+ #: ../includes/class-settings.php:430
473
  msgid "Theme"
474
  msgstr ""
475
 
476
+ #: ../includes/class-settings.php:433
477
  msgid "Select the theme for lightbox effect."
478
  msgstr ""
479
 
480
+ #: ../includes/class-settings.php:438
481
  msgid "Horizontal padding"
482
  msgstr ""
483
 
484
+ #: ../includes/class-settings.php:445
485
  msgid "Hide Flash"
486
  msgstr ""
487
 
488
+ #: ../includes/class-settings.php:448
489
  msgid ""
490
  "Hide all the flash objects on a page. Enable this if flash appears over "
491
  "prettyPhoto."
492
  msgstr ""
493
 
494
+ #: ../includes/class-settings.php:452
495
  msgid "Flash Window Mode (wmode)"
496
  msgstr ""
497
 
498
+ #: ../includes/class-settings.php:455
499
  msgid "Select flash window mode."
500
  msgstr ""
501
 
502
+ #: ../includes/class-settings.php:460
503
  msgid "Video autoplay"
504
  msgstr ""
505
 
506
+ #: ../includes/class-settings.php:463
507
  msgid "Automatically start videos."
508
  msgstr ""
509
 
510
+ #: ../includes/class-settings.php:467 ../includes/class-settings.php:510
511
  msgid "Modal"
512
  msgstr ""
513
 
514
+ #: ../includes/class-settings.php:470
515
  msgid "If set to true, only the close button will close the window."
516
  msgstr ""
517
 
518
+ #: ../includes/class-settings.php:474
519
  msgid "Deeplinking"
520
  msgstr ""
521
 
522
+ #: ../includes/class-settings.php:477
523
  msgid "Allow prettyPhoto to update the url to enable deeplinking."
524
  msgstr ""
525
 
526
+ #: ../includes/class-settings.php:481
527
  msgid "Overlay gallery"
528
  msgstr ""
529
 
530
+ #: ../includes/class-settings.php:484
531
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
532
  msgstr ""
533
 
534
+ #: ../includes/class-settings.php:488
535
  msgid "Keyboard shortcuts"
536
  msgstr ""
537
 
538
+ #: ../includes/class-settings.php:491
539
  msgid "Set to false if you open forms inside prettyPhoto."
540
  msgstr ""
541
 
542
+ #: ../includes/class-settings.php:495
543
  msgid "Social (Twitter, Facebook)"
544
  msgstr ""
545
 
546
+ #: ../includes/class-settings.php:498
547
  msgid "Display links to Facebook and Twitter."
548
  msgstr ""
549
 
550
+ #: ../includes/class-settings.php:513
551
  msgid ""
552
  "When true, \"overlayShow\" is set to true and \"hideOnOverlayClick\", "
553
  "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
554
  "to false."
555
  msgstr ""
556
 
557
+ #: ../includes/class-settings.php:517
558
  msgid "Show overlay"
559
  msgstr ""
560
 
561
+ #: ../includes/class-settings.php:520
562
  msgid "Toggle overlay."
563
  msgstr ""
564
 
565
+ #: ../includes/class-settings.php:524
566
  msgid "Show close button"
567
  msgstr ""
568
 
569
+ #: ../includes/class-settings.php:527
570
  msgid "Toggle close button."
571
  msgstr ""
572
 
573
+ #: ../includes/class-settings.php:531
574
  msgid "Enable escape button"
575
  msgstr ""
576
 
577
+ #: ../includes/class-settings.php:534
578
  msgid "Toggle if pressing Esc button closes FancyBox."
579
  msgstr ""
580
 
581
+ #: ../includes/class-settings.php:538
582
  msgid "Hide on overlay click"
583
  msgstr ""
584
 
585
+ #: ../includes/class-settings.php:541
586
  msgid "Toggle if clicking the overlay should close FancyBox."
587
  msgstr ""
588
 
589
+ #: ../includes/class-settings.php:545
590
  msgid "Hide on content click"
591
  msgstr ""
592
 
593
+ #: ../includes/class-settings.php:548
594
  msgid "Toggle if clicking the content should close FancyBox."
595
  msgstr ""
596
 
597
+ #: ../includes/class-settings.php:552
598
  msgid "Cyclic"
599
  msgstr ""
600
 
601
+ #: ../includes/class-settings.php:555
602
  msgid ""
603
  "When true, galleries will be cyclic, allowing you to keep pressing next/back."
604
  msgstr ""
605
 
606
+ #: ../includes/class-settings.php:559
607
  msgid "Show nav arrows"
608
  msgstr ""
609
 
610
+ #: ../includes/class-settings.php:562
611
  msgid "Toggle navigation arrows."
612
  msgstr ""
613
 
614
+ #: ../includes/class-settings.php:566
615
  msgid "Auto scale"
616
  msgstr ""
617
 
618
+ #: ../includes/class-settings.php:569
619
  msgid "If true, FancyBox is scaled to fit in viewport."
620
  msgstr ""
621
 
622
+ #: ../includes/class-settings.php:573
623
  msgid "Scrolling (in/out)"
624
  msgstr ""
625
 
626
+ #: ../includes/class-settings.php:576
627
  msgid "Set the overflow CSS property to create or hide scrollbars."
628
  msgstr ""
629
 
630
+ #: ../includes/class-settings.php:581
631
  msgid "Center on scroll"
632
  msgstr ""
633
 
634
+ #: ../includes/class-settings.php:584
635
  msgid "When true, FancyBox is centered while scrolling page."
636
  msgstr ""
637
 
638
+ #: ../includes/class-settings.php:591
639
  msgid "When true, transparency of content is changed for elastic transitions."
640
  msgstr ""
641
 
642
+ #: ../includes/class-settings.php:595
643
  msgid "Overlay opacity"
644
  msgstr ""
645
 
646
+ #: ../includes/class-settings.php:598
647
  msgid "Opacity of the overlay."
648
  msgstr ""
649
 
650
+ #: ../includes/class-settings.php:604
651
  msgid "Overlay color"
652
  msgstr ""
653
 
654
+ #: ../includes/class-settings.php:607
655
  msgid "Color of the overlay."
656
  msgstr ""
657
 
658
+ #: ../includes/class-settings.php:611
659
  msgid "Title show"
660
  msgstr ""
661
 
662
+ #: ../includes/class-settings.php:614
663
  msgid "Toggle title."
664
  msgstr ""
665
 
666
+ #: ../includes/class-settings.php:618
667
  msgid "Title position"
668
  msgstr ""
669
 
670
+ #: ../includes/class-settings.php:621
671
  msgid "The position of title."
672
  msgstr ""
673
 
674
+ #: ../includes/class-settings.php:626
675
  msgid "Transition (in/out)"
676
  msgstr ""
677
 
678
+ #: ../includes/class-settings.php:629
679
  msgid "The transition type."
680
  msgstr ""
681
 
682
+ #: ../includes/class-settings.php:634
683
  msgid "Easings (in/out)"
684
  msgstr ""
685
 
686
+ #: ../includes/class-settings.php:637
687
  msgid "Easing used for elastic animations."
688
  msgstr ""
689
 
690
+ #: ../includes/class-settings.php:642
691
  msgid "Speed (in/out)"
692
  msgstr ""
693
 
694
+ #: ../includes/class-settings.php:645
695
  msgid "Speed of the fade and elastic transitions, in milliseconds."
696
  msgstr ""
697
 
698
+ #: ../includes/class-settings.php:650
699
  msgid "Change speed"
700
  msgstr ""
701
 
702
+ #: ../includes/class-settings.php:653
703
  msgid "Speed of resizing when changing gallery items, in milliseconds."
704
  msgstr ""
705
 
706
+ #: ../includes/class-settings.php:658
707
  msgid "Change fade"
708
  msgstr ""
709
 
710
+ #: ../includes/class-settings.php:661
711
  msgid "Speed of the content fading while changing gallery items."
712
  msgstr ""
713
 
714
+ #: ../includes/class-settings.php:666
715
  msgid "Padding"
716
  msgstr ""
717
 
718
+ #: ../includes/class-settings.php:669
719
  msgid "Space between FancyBox wrapper and content."
720
  msgstr ""
721
 
722
+ #: ../includes/class-settings.php:674
723
  msgid "Margin"
724
  msgstr ""
725
 
726
+ #: ../includes/class-settings.php:677
727
  msgid "Space between viewport and FancyBox wrapper."
728
  msgstr ""
729
 
730
+ #: ../includes/class-settings.php:685
731
  msgid "Width of the video."
732
  msgstr ""
733
 
734
+ #: ../includes/class-settings.php:693
735
  msgid "Height of the video."
736
  msgstr ""
737
 
738
+ #: ../includes/class-settings.php:706
739
  msgid "Effect"
740
  msgstr ""
741
 
742
+ #: ../includes/class-settings.php:709
743
  msgid "The effect to use when showing the lightbox."
744
  msgstr ""
745
 
746
+ #: ../includes/class-settings.php:714 ../includes/class-settings.php:813
747
  msgid "Keyboard navigation"
748
  msgstr ""
749
 
750
+ #: ../includes/class-settings.php:717 ../includes/class-settings.php:816
751
  msgid "Enable keyboard navigation (left/right/escape)."
752
  msgstr ""
753
 
754
+ #: ../includes/class-settings.php:721
755
  msgid "Click overlay to close"
756
  msgstr ""
757
 
758
+ #: ../includes/class-settings.php:724
759
  msgid "Enable to close lightbox on overlay click."
760
  msgstr ""
761
 
762
+ #: ../includes/class-settings.php:728
763
  msgid "Error message"
764
  msgstr ""
765
 
766
+ #: ../includes/class-settings.php:732
767
  msgid "Error message if the content cannot be loaded."
768
  msgstr ""
769
 
770
+ #: ../includes/class-settings.php:747
771
  msgid "Animation speed."
772
  msgstr ""
773
 
774
+ #: ../includes/class-settings.php:752
775
  msgid "Preload next image"
776
  msgstr ""
777
 
778
+ #: ../includes/class-settings.php:755
779
  msgid "Silently preload the next image."
780
  msgstr ""
781
 
782
+ #: ../includes/class-settings.php:759
783
  msgid "Enable keyboard keys"
784
  msgstr ""
785
 
786
+ #: ../includes/class-settings.php:762
787
  msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
788
  msgstr ""
789
 
790
+ #: ../includes/class-settings.php:766
791
  msgid "Quit after last image"
792
  msgstr ""
793
 
794
+ #: ../includes/class-settings.php:769
795
  msgid "Quit after viewing the last image."
796
  msgstr ""
797
 
798
+ #: ../includes/class-settings.php:773
799
  msgid "Quit on image click"
800
  msgstr ""
801
 
802
+ #: ../includes/class-settings.php:776
803
  msgid "Quit when the viewed image is clicked."
804
  msgstr ""
805
 
806
+ #: ../includes/class-settings.php:780
807
  msgid "Quit on anything click"
808
  msgstr ""
809
 
810
+ #: ../includes/class-settings.php:783
811
  msgid "Quit when anything but the viewed image is clicked."
812
  msgstr ""
813
 
814
+ #: ../includes/class-settings.php:795
815
  msgid "Transition effect"
816
  msgstr ""
817
 
818
+ #: ../includes/class-settings.php:798
819
  msgid "What effect to use for the transition."
820
  msgstr ""
821
 
822
+ #: ../includes/class-settings.php:800
823
  msgid "slide"
824
  msgstr ""
825
 
826
+ #: ../includes/class-settings.php:806
827
  msgid "Infinite loop"
828
  msgstr ""
829
 
830
+ #: ../includes/class-settings.php:809
831
  msgid ""
832
  "Whether or not to slide back to the first slide when the last has been "
833
  "reached."
834
  msgstr ""
835
 
836
+ #: ../includes/class-settings.php:820
837
  msgid "Autoplay"
838
  msgstr ""
839
 
840
+ #: ../includes/class-settings.php:831
841
  msgid "The timeout between sliding to the next slide in milliseconds."
842
  msgstr ""
843
 
844
+ #: ../includes/class-settings.php:838
845
  msgid "Pause on hover"
846
  msgstr ""
847
 
848
+ #: ../includes/class-settings.php:841
849
  msgid "Whether or not to pause on hover."
850
  msgstr ""
851
 
852
+ #: ../includes/class-settings.php:845
853
  msgid "Pagination"
854
  msgstr ""
855
 
856
+ #: ../includes/class-settings.php:851
857
  msgid "Whether or not to add a pagination."
858
  msgstr ""
859
 
860
+ #: ../includes/class-settings.php:856
861
  msgid "What type of pagination to use."
862
  msgstr ""
863
 
864
+ #: ../includes/class-settings.php:858
865
  msgid "Bullets"
866
  msgstr ""
867
 
868
+ #: ../includes/class-settings.php:859
869
  msgid "Thumbnails"
870
  msgstr ""
871
 
872
+ #: ../includes/class-settings.php:897 ../includes/class-settings.php:911
873
+ #: ../includes/class-settings.php:924
874
  msgid "Responsive Lightbox"
875
  msgstr ""
876
 
877
+ #: ../includes/class-settings.php:926
878
  msgid "Need support?"
879
  msgstr ""
880
 
881
+ #: ../includes/class-settings.php:927
882
  msgid ""
883
  "If you are having problems with this plugin, please talk about them in the"
884
  msgstr ""
885
 
886
+ #: ../includes/class-settings.php:927
887
  msgid "Support forum"
888
  msgstr ""
889
 
890
+ #: ../includes/class-settings.php:929
891
  msgid "Do you like this plugin?"
892
  msgstr ""
893
 
894
+ #: ../includes/class-settings.php:936
895
  msgid "Rate it 5"
896
  msgstr ""
897
 
898
+ #: ../includes/class-settings.php:936
899
  msgid "on WordPress.org"
900
  msgstr ""
901
 
902
+ #: ../includes/class-settings.php:937
903
  msgid "Blog about it & link to the"
904
  msgstr ""
905
 
906
+ #: ../includes/class-settings.php:937
907
  msgid "plugin page"
908
  msgstr ""
909
 
910
+ #: ../includes/class-settings.php:938
911
  msgid "Check out our other"
912
  msgstr ""
913
 
914
+ #: ../includes/class-settings.php:938
915
  msgid "WordPress plugins"
916
  msgstr ""
917
 
918
+ #: ../includes/class-settings.php:958
919
  msgid "Reset to defaults"
920
  msgstr ""
921
 
922
+ #: ../includes/class-settings.php:1325
923
  msgid "Settings restored to defaults."
924
  msgstr ""
925
 
926
+ #: ../responsive-lightbox.php:286
927
  msgid "Support"
928
  msgstr ""
929
 
930
+ #: ../responsive-lightbox.php:305
931
  msgid "Settings"
932
  msgstr ""
933
 
934
+ #: ../responsive-lightbox.php:325
935
  msgid "Are you sure you want to reset these settings to defaults?"
936
  msgstr ""
937
 
938
+ #: ../responsive-lightbox.php:326
939
  msgid "Are you sure you want to reset this script settings to defaults?"
940
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.dfactory.eu/
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
  Requires at least: 4.0
6
  Tested up to: 4.2.2
7
- Stable tag: 1.5.5
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -27,6 +27,7 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
27
  * Option to set gallery images title from image title, caption, alt or description
28
  * Option to force lightbox for custom WP gallery replacements like Jetpack tiled galleries
29
  * Option to trigger lightbox on custom jquery events
 
30
  * Enter a selector for lightbox
31
  * Highly customizable settings for each of the lightbox scripts
32
  * Multisite support
@@ -67,6 +68,9 @@ No questions yet.
67
 
68
  == Changelog ==
69
 
 
 
 
70
  = 1.5.5 =
71
  * Tweak: Multiple backward rel attribute compatibility tweaks
72
  * Fix: Nivo lightbox and Image lightbox js attr errors when no data-rel given
@@ -226,5 +230,5 @@ Initial release
226
 
227
  == Upgrade Notice ==
228
 
229
- = 1.5.5 =
230
- * Tweak: Multiple backward rel attribute compatibility tweaks
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
  Requires at least: 4.0
6
  Tested up to: 4.2.2
7
+ Stable tag: 1.5.6
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
27
  * Option to set gallery images title from image title, caption, alt or description
28
  * Option to force lightbox for custom WP gallery replacements like Jetpack tiled galleries
29
  * Option to trigger lightbox on custom jquery events
30
+ * Option to conditionally load scripts and styles only on pages that have images or galleries in post content
31
  * Enter a selector for lightbox
32
  * Highly customizable settings for each of the lightbox scripts
33
  * Multisite support
68
 
69
  == Changelog ==
70
 
71
+ = 1.5.6 =
72
+ * New: Option to conditionally load scripts and styles only on pages that have images or galleries in post content.
73
+
74
  = 1.5.5 =
75
  * Tweak: Multiple backward rel attribute compatibility tweaks
76
  * Fix: Nivo lightbox and Image lightbox js attr errors when no data-rel given
230
 
231
  == Upgrade Notice ==
232
 
233
+ = 1.5.6 =
234
+ * New: Option to conditionally load scripts and styles only on pages that have images or galleries in post content.
responsive-lightbox.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Responsive Lightbox
4
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
5
- Version: 1.5.5
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
@@ -36,7 +36,7 @@ include_once( RESPONSIVE_LIGHTBOX_PATH . 'includes/class-settings.php' );
36
  * Responsive Lightbox class.
37
  *
38
  * @class Responsive_Lightbox
39
- * @version 1.5.5
40
  */
41
  class Responsive_Lightbox {
42
 
@@ -53,6 +53,7 @@ class Responsive_Lightbox {
53
  'images_as_gallery' => false,
54
  'deactivation_delete' => false,
55
  'loading_place' => 'header',
 
56
  'enable_custom_events' => false,
57
  'custom_events' => 'ajaxComplete'
58
  ),
@@ -142,7 +143,7 @@ class Responsive_Lightbox {
142
  'pagination_type' => 'thumbnails'
143
  )
144
  ),
145
- 'version' => '1.5.5'
146
  );
147
  public $options = array();
148
  private static $_instance;
@@ -339,220 +340,268 @@ class Responsive_Lightbox {
339
  * Enqueue frontend scripts and styles
340
  */
341
  public function front_scripts_styles() {
 
342
  $args = apply_filters( 'rl_lightbox_args', array(
343
  'script' => $this->options['settings']['script'],
344
  'selector' => $this->options['settings']['selector'],
345
- 'custom_events' => ($this->options['settings']['enable_custom_events'] === true ? ' ' . $this->options['settings']['custom_events'] : ''),
346
  'activeGalleries' => $this->get_boolean_value( $this->options['settings']['galleries'] )
347
  ) );
 
 
 
 
 
348
 
349
- if ( $args['script'] === 'prettyphoto' ) {
350
 
351
- wp_register_script(
352
- 'responsive-lightbox-prettyphoto', plugins_url( 'assets/prettyphoto/js/jquery.prettyPhoto.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
353
- );
354
-
355
- wp_enqueue_script( 'responsive-lightbox-prettyphoto' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
 
357
- wp_register_style(
358
- 'responsive-lightbox-prettyphoto', plugins_url( 'assets/prettyphoto/css/prettyPhoto.css', __FILE__ )
359
- );
 
 
 
 
 
360
 
361
- wp_enqueue_style( 'responsive-lightbox-prettyphoto' );
362
-
363
- $args = array_merge(
364
- $args, array(
365
- 'animationSpeed' => $this->options['configuration']['prettyphoto']['animation_speed'],
366
- 'slideshow' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['slideshow'] ),
367
- 'slideshowDelay' => $this->options['configuration']['prettyphoto']['slideshow_delay'],
368
- 'slideshowAutoplay' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['slideshow_autoplay'] ),
369
- 'opacity' => sprintf( '%.2f', ($this->options['configuration']['prettyphoto']['opacity'] / 100 ) ),
370
- 'showTitle' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['show_title'] ),
371
- 'allowResize' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['allow_resize'] ),
372
- 'allowExpand' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['allow_expand'] ),
373
- 'width' => $this->options['configuration']['prettyphoto']['width'],
374
- 'height' => $this->options['configuration']['prettyphoto']['height'],
375
- 'separator' => $this->options['configuration']['prettyphoto']['separator'],
376
- 'theme' => $this->options['configuration']['prettyphoto']['theme'],
377
- 'horizontalPadding' => $this->options['configuration']['prettyphoto']['horizontal_padding'],
378
- 'hideFlash' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['hide_flash'] ),
379
- 'wmode' => $this->options['configuration']['prettyphoto']['wmode'],
380
- 'videoAutoplay' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['video_autoplay'] ),
381
- 'modal' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['modal'] ),
382
- 'deeplinking' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['deeplinking'] ),
383
- 'overlayGallery' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['overlay_gallery'] ),
384
- 'keyboardShortcuts' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['keyboard_shortcuts'] ),
385
- 'social' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['social'] )
386
- )
387
- );
388
 
389
- } elseif ( $args['script'] === 'swipebox' ) {
390
 
391
- wp_register_script(
392
- 'responsive-lightbox-swipebox', plugins_url( 'assets/swipebox/js/jquery.swipebox.min.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
393
- );
 
 
 
394
 
395
- wp_enqueue_script( 'responsive-lightbox-swipebox' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
396
 
397
- wp_register_style(
398
- 'responsive-lightbox-swipebox', plugins_url( 'assets/swipebox/css/swipebox.min.css', __FILE__ )
399
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
400
 
401
- wp_enqueue_style( 'responsive-lightbox-swipebox' );
402
-
403
- $args = array_merge(
404
- $args, array(
405
- 'animation' => $this->get_boolean_value( ($this->options['configuration']['swipebox']['animation'] === 'css' ? true : false ) ),
406
- 'hideCloseButtonOnMobile' => $this->get_boolean_value( $this->options['configuration']['swipebox']['hide_close_mobile'] ),
407
- 'removeBarsOnMobile' => $this->get_boolean_value( $this->options['configuration']['swipebox']['remove_bars_mobile'] ),
408
- 'hideBars' => $this->get_boolean_value( $this->options['configuration']['swipebox']['hide_bars'] ),
409
- 'hideBarsDelay' => $this->options['configuration']['swipebox']['hide_bars_delay'],
410
- 'videoMaxWidth' => $this->options['configuration']['swipebox']['video_max_width'],
411
- 'useSVG' => ! $this->options['configuration']['swipebox']['force_png_icons'],
412
- 'loopAtEnd' => $this->get_boolean_value( $this->options['configuration']['swipebox']['loop_at_end'] )
413
- )
414
- );
 
 
 
 
 
 
 
 
 
 
415
 
416
- } elseif ( $args['script'] === 'fancybox' ) {
 
 
 
 
 
 
417
 
418
- wp_register_script(
419
- 'responsive-lightbox-fancybox', plugins_url( 'assets/fancybox/jquery.fancybox-1.3.4.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
420
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
421
 
422
- wp_enqueue_script( 'responsive-lightbox-fancybox' );
 
423
 
424
- wp_register_style(
425
- 'responsive-lightbox-fancybox', plugins_url( 'assets/fancybox/jquery.fancybox-1.3.4.css', __FILE__ )
426
- );
427
 
428
- wp_enqueue_style( 'responsive-lightbox-fancybox' );
429
-
430
- $args = array_merge(
431
- $args, array(
432
- 'modal' => $this->get_boolean_value( $this->options['configuration']['fancybox']['modal'] ),
433
- 'showOverlay' => $this->get_boolean_value( $this->options['configuration']['fancybox']['show_overlay'] ),
434
- 'showCloseButton' => $this->get_boolean_value( $this->options['configuration']['fancybox']['show_close_button'] ),
435
- 'enableEscapeButton' => $this->get_boolean_value( $this->options['configuration']['fancybox']['enable_escape_button'] ),
436
- 'hideOnOverlayClick' => $this->get_boolean_value( $this->options['configuration']['fancybox']['hide_on_overlay_click'] ),
437
- 'hideOnContentClick' => $this->get_boolean_value( $this->options['configuration']['fancybox']['hide_on_content_click'] ),
438
- 'cyclic' => $this->get_boolean_value( $this->options['configuration']['fancybox']['cyclic'] ),
439
- 'showNavArrows' => $this->get_boolean_value( $this->options['configuration']['fancybox']['show_nav_arrows'] ),
440
- 'autoScale' => $this->get_boolean_value( $this->options['configuration']['fancybox']['auto_scale'] ),
441
- 'scrolling' => $this->options['configuration']['fancybox']['scrolling'],
442
- 'centerOnScroll' => $this->get_boolean_value( $this->options['configuration']['fancybox']['center_on_scroll'] ),
443
- 'opacity' => $this->get_boolean_value( $this->options['configuration']['fancybox']['opacity'] ),
444
- 'overlayOpacity' => $this->options['configuration']['fancybox']['overlay_opacity'],
445
- 'overlayColor' => $this->options['configuration']['fancybox']['overlay_color'],
446
- 'titleShow' => $this->get_boolean_value( $this->options['configuration']['fancybox']['title_show'] ),
447
- 'titlePosition' => $this->options['configuration']['fancybox']['title_position'],
448
- 'transitions' => $this->options['configuration']['fancybox']['transitions'],
449
- 'easings' => $this->options['configuration']['fancybox']['easings'],
450
- 'speeds' => $this->options['configuration']['fancybox']['speeds'],
451
- 'changeSpeed' => $this->options['configuration']['fancybox']['change_speed'],
452
- 'changeFade' => $this->options['configuration']['fancybox']['change_fade'],
453
- 'padding' => $this->options['configuration']['fancybox']['padding'],
454
- 'margin' => $this->options['configuration']['fancybox']['margin'],
455
- 'videoWidth' => $this->options['configuration']['fancybox']['video_width'],
456
- 'videoHeight' => $this->options['configuration']['fancybox']['video_height']
457
- )
458
- );
459
-
460
- } elseif ( $args['script'] === 'nivo' ) {
461
-
462
- wp_register_script(
463
- 'responsive-lightbox-nivo', plugins_url( 'assets/nivo/nivo-lightbox.min.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
464
- );
465
- wp_enqueue_script( 'responsive-lightbox-nivo' );
466
 
467
- wp_register_style(
468
- 'responsive-lightbox-nivo', plugins_url( 'assets/nivo/nivo-lightbox.css', __FILE__ )
469
- );
470
- wp_enqueue_style( 'responsive-lightbox-nivo' );
 
 
 
471
 
472
- wp_register_style(
473
- 'responsive-lightbox-nivo-default', plugins_url( 'assets/nivo/themes/default/default.css', __FILE__ )
474
- );
475
- wp_enqueue_style( 'responsive-lightbox-nivo-default' );
476
-
477
- $args = array_merge(
478
- $args, array(
479
- 'effect' => $this->options['configuration']['nivo']['effect'],
480
- 'clickOverlayToClose' => $this->get_boolean_value( $this->options['configuration']['nivo']['click_overlay_to_close'] ),
481
- 'keyboardNav' => $this->get_boolean_value( $this->options['configuration']['nivo']['keyboard_nav'] ),
482
- 'errorMessage' => esc_attr( $this->options['configuration']['nivo']['error_message'] )
483
- )
484
- );
485
 
486
- } elseif ( $args['script'] === 'imagelightbox' ) {
487
 
488
- wp_register_script(
489
- 'responsive-lightbox-imagelightbox', plugins_url( 'assets/imagelightbox/js/imagelightbox.min.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
490
- );
491
- wp_enqueue_script( 'responsive-lightbox-imagelightbox' );
492
 
493
- wp_register_style(
494
- 'responsive-lightbox-imagelightbox', plugins_url( 'assets/imagelightbox/css/imagelightbox.css', __FILE__ )
495
- );
496
- wp_enqueue_style( 'responsive-lightbox-imagelightbox' );
497
-
498
- $args = array_merge(
499
- $args, array(
500
- 'animationSpeed' => $this->options['configuration']['imagelightbox']['animation_speed'],
501
- 'preloadNext' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['preload_next'] ),
502
- 'enableKeyboard' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['enable_keyboard'] ),
503
- 'quitOnEnd' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['quit_on_end'] ),
504
- 'quitOnImageClick' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['quit_on_image_click'] ),
505
- 'quitOnDocumentClick' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['quit_on_document_click'] ),
506
- )
507
- );
508
 
509
- } elseif ( $args['script'] === 'tosrus' ) {
510
 
511
- // swipe support, enqueue Hammer.js on mobile devices only
512
- if ( wp_is_mobile() ) {
513
- wp_register_script(
514
- 'responsive-lightbox-hammer-js', plugins_url( 'assets/tosrus/js/hammer.min.js', __FILE__ ), array(), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
515
- );
516
- wp_enqueue_script( 'responsive-lightbox-hammer-js' );
 
517
  }
518
 
519
- wp_register_script(
520
- 'responsive-lightbox-tosrus', plugins_url( 'assets/tosrus/js/jquery.tosrus.min.all.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
521
- );
522
- wp_enqueue_script( 'responsive-lightbox-tosrus' );
523
-
524
- wp_register_style(
525
- 'responsive-lightbox-tosrus', plugins_url( 'assets/tosrus/css/jquery.tosrus.all.min.css', __FILE__ )
526
- );
527
- wp_enqueue_style( 'responsive-lightbox-tosrus' );
528
-
529
- $args = array_merge(
530
- $args, array(
531
- 'effect' => $this->options['configuration']['tosrus']['effect'],
532
- 'infinite' => $this->get_boolean_value( $this->options['configuration']['tosrus']['infinite'] ),
533
- 'keys' => $this->get_boolean_value( $this->options['configuration']['tosrus']['keys'] ),
534
- 'autoplay' => $this->get_boolean_value( $this->options['configuration']['tosrus']['autoplay'] ),
535
- 'pause_on_hover' => $this->get_boolean_value( $this->options['configuration']['tosrus']['pause_on_hover'] ),
536
- 'timeout' => $this->options['configuration']['tosrus']['timeout'],
537
- 'pagination' => $this->get_boolean_value( $this->options['configuration']['tosrus']['pagination'] ),
538
- 'pagination_type' => $this->options['configuration']['tosrus']['pagination_type']
539
- )
540
- );
541
  }
542
-
543
- wp_register_script(
544
- 'responsive-lightbox-front', plugins_url( 'js/front.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
545
- );
546
-
547
- wp_enqueue_script( 'responsive-lightbox-front' );
548
-
549
- wp_add_inline_style(
550
- 'responsive-lightbox-swipebox', '#swipebox-action #swipebox-close, #swipebox-action #swipebox-prev, #swipebox-action #swipebox-next { background-image: url(\'assets/swipebox/source/img/icons.png\') !important; }'
551
- );
552
-
553
- wp_localize_script(
554
- 'responsive-lightbox-front', 'rlArgs', $args
555
- );
556
  }
557
 
558
  /**
2
  /*
3
  Plugin Name: Responsive Lightbox
4
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
5
+ Version: 1.5.6
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
36
  * Responsive Lightbox class.
37
  *
38
  * @class Responsive_Lightbox
39
+ * @version 1.5.6
40
  */
41
  class Responsive_Lightbox {
42
 
53
  'images_as_gallery' => false,
54
  'deactivation_delete' => false,
55
  'loading_place' => 'header',
56
+ 'conditional_loading' => false,
57
  'enable_custom_events' => false,
58
  'custom_events' => 'ajaxComplete'
59
  ),
143
  'pagination_type' => 'thumbnails'
144
  )
145
  ),
146
+ 'version' => '1.5.6'
147
  );
148
  public $options = array();
149
  private static $_instance;
340
  * Enqueue frontend scripts and styles
341
  */
342
  public function front_scripts_styles() {
343
+
344
  $args = apply_filters( 'rl_lightbox_args', array(
345
  'script' => $this->options['settings']['script'],
346
  'selector' => $this->options['settings']['selector'],
347
+ 'customEvents' => ( $this->options['settings']['enable_custom_events'] === true ? ' ' . $this->options['settings']['custom_events'] : '' ),
348
  'activeGalleries' => $this->get_boolean_value( $this->options['settings']['galleries'] )
349
  ) );
350
+
351
+ $scripts = array();
352
+ $styles = array();
353
+
354
+ switch ( $args['script'] ) {
355
 
356
+ case 'prettyphoto' :
357
 
358
+ wp_register_script(
359
+ 'responsive-lightbox-prettyphoto', plugins_url( 'assets/prettyphoto/js/jquery.prettyPhoto.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
360
+ );
361
+ wp_register_style(
362
+ 'responsive-lightbox-prettyphoto', plugins_url( 'assets/prettyphoto/css/prettyPhoto.css', __FILE__ )
363
+ );
364
+
365
+ $scripts[] = 'responsive-lightbox-prettyphoto';
366
+ $styles[] = 'responsive-lightbox-prettyphoto';
367
+
368
+ $args = array_merge(
369
+ $args, array(
370
+ 'animationSpeed' => $this->options['configuration']['prettyphoto']['animation_speed'],
371
+ 'slideshow' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['slideshow'] ),
372
+ 'slideshowDelay' => $this->options['configuration']['prettyphoto']['slideshow_delay'],
373
+ 'slideshowAutoplay' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['slideshow_autoplay'] ),
374
+ 'opacity' => sprintf( '%.2f', ($this->options['configuration']['prettyphoto']['opacity'] / 100 ) ),
375
+ 'showTitle' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['show_title'] ),
376
+ 'allowResize' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['allow_resize'] ),
377
+ 'allowExpand' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['allow_expand'] ),
378
+ 'width' => $this->options['configuration']['prettyphoto']['width'],
379
+ 'height' => $this->options['configuration']['prettyphoto']['height'],
380
+ 'separator' => $this->options['configuration']['prettyphoto']['separator'],
381
+ 'theme' => $this->options['configuration']['prettyphoto']['theme'],
382
+ 'horizontalPadding' => $this->options['configuration']['prettyphoto']['horizontal_padding'],
383
+ 'hideFlash' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['hide_flash'] ),
384
+ 'wmode' => $this->options['configuration']['prettyphoto']['wmode'],
385
+ 'videoAutoplay' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['video_autoplay'] ),
386
+ 'modal' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['modal'] ),
387
+ 'deeplinking' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['deeplinking'] ),
388
+ 'overlayGallery' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['overlay_gallery'] ),
389
+ 'keyboardShortcuts' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['keyboard_shortcuts'] ),
390
+ 'social' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['social'] )
391
+ )
392
+ );
393
+
394
+ break;
395
 
396
+ case 'swipebox' :
397
+
398
+ wp_register_script(
399
+ 'responsive-lightbox-swipebox', plugins_url( 'assets/swipebox/js/jquery.swipebox.min.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
400
+ );
401
+ wp_register_style(
402
+ 'responsive-lightbox-swipebox', plugins_url( 'assets/swipebox/css/swipebox.min.css', __FILE__ )
403
+ );
404
 
405
+ $scripts[] = 'responsive-lightbox-swipebox';
406
+ $styles[] = 'responsive-lightbox-swipebox';
407
+
408
+ $args = array_merge(
409
+ $args, array(
410
+ 'animation' => $this->get_boolean_value( ($this->options['configuration']['swipebox']['animation'] === 'css' ? true : false ) ),
411
+ 'hideCloseButtonOnMobile' => $this->get_boolean_value( $this->options['configuration']['swipebox']['hide_close_mobile'] ),
412
+ 'removeBarsOnMobile' => $this->get_boolean_value( $this->options['configuration']['swipebox']['remove_bars_mobile'] ),
413
+ 'hideBars' => $this->get_boolean_value( $this->options['configuration']['swipebox']['hide_bars'] ),
414
+ 'hideBarsDelay' => $this->options['configuration']['swipebox']['hide_bars_delay'],
415
+ 'videoMaxWidth' => $this->options['configuration']['swipebox']['video_max_width'],
416
+ 'useSVG' => ! $this->options['configuration']['swipebox']['force_png_icons'],
417
+ 'loopAtEnd' => $this->get_boolean_value( $this->options['configuration']['swipebox']['loop_at_end'] )
418
+ )
419
+ );
420
+
421
+ break;
 
 
 
 
 
 
 
 
 
 
422
 
423
+ case 'fancybox' :
424
 
425
+ wp_register_script(
426
+ 'responsive-lightbox-fancybox', plugins_url( 'assets/fancybox/jquery.fancybox-1.3.4.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
427
+ );
428
+ wp_register_style(
429
+ 'responsive-lightbox-fancybox', plugins_url( 'assets/fancybox/jquery.fancybox-1.3.4.css', __FILE__ )
430
+ );
431
 
432
+ $scripts[] = 'responsive-lightbox-fancybox';
433
+ $styles[] = 'responsive-lightbox-fancybox';
434
+
435
+ $args = array_merge(
436
+ $args, array(
437
+ 'modal' => $this->get_boolean_value( $this->options['configuration']['fancybox']['modal'] ),
438
+ 'showOverlay' => $this->get_boolean_value( $this->options['configuration']['fancybox']['show_overlay'] ),
439
+ 'showCloseButton' => $this->get_boolean_value( $this->options['configuration']['fancybox']['show_close_button'] ),
440
+ 'enableEscapeButton' => $this->get_boolean_value( $this->options['configuration']['fancybox']['enable_escape_button'] ),
441
+ 'hideOnOverlayClick' => $this->get_boolean_value( $this->options['configuration']['fancybox']['hide_on_overlay_click'] ),
442
+ 'hideOnContentClick' => $this->get_boolean_value( $this->options['configuration']['fancybox']['hide_on_content_click'] ),
443
+ 'cyclic' => $this->get_boolean_value( $this->options['configuration']['fancybox']['cyclic'] ),
444
+ 'showNavArrows' => $this->get_boolean_value( $this->options['configuration']['fancybox']['show_nav_arrows'] ),
445
+ 'autoScale' => $this->get_boolean_value( $this->options['configuration']['fancybox']['auto_scale'] ),
446
+ 'scrolling' => $this->options['configuration']['fancybox']['scrolling'],
447
+ 'centerOnScroll' => $this->get_boolean_value( $this->options['configuration']['fancybox']['center_on_scroll'] ),
448
+ 'opacity' => $this->get_boolean_value( $this->options['configuration']['fancybox']['opacity'] ),
449
+ 'overlayOpacity' => $this->options['configuration']['fancybox']['overlay_opacity'],
450
+ 'overlayColor' => $this->options['configuration']['fancybox']['overlay_color'],
451
+ 'titleShow' => $this->get_boolean_value( $this->options['configuration']['fancybox']['title_show'] ),
452
+ 'titlePosition' => $this->options['configuration']['fancybox']['title_position'],
453
+ 'transitions' => $this->options['configuration']['fancybox']['transitions'],
454
+ 'easings' => $this->options['configuration']['fancybox']['easings'],
455
+ 'speeds' => $this->options['configuration']['fancybox']['speeds'],
456
+ 'changeSpeed' => $this->options['configuration']['fancybox']['change_speed'],
457
+ 'changeFade' => $this->options['configuration']['fancybox']['change_fade'],
458
+ 'padding' => $this->options['configuration']['fancybox']['padding'],
459
+ 'margin' => $this->options['configuration']['fancybox']['margin'],
460
+ 'videoWidth' => $this->options['configuration']['fancybox']['video_width'],
461
+ 'videoHeight' => $this->options['configuration']['fancybox']['video_height']
462
+ )
463
+ );
464
+
465
+ break;
466
+
467
+ case 'nivo' :
468
 
469
+ wp_register_script(
470
+ 'responsive-lightbox-nivo', plugins_url( 'assets/nivo/nivo-lightbox.min.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
471
+ );
472
+ wp_register_style(
473
+ 'responsive-lightbox-nivo', plugins_url( 'assets/nivo/nivo-lightbox.css', __FILE__ )
474
+ );
475
+ wp_register_style(
476
+ 'responsive-lightbox-nivo-default', plugins_url( 'assets/nivo/themes/default/default.css', __FILE__ )
477
+ );
478
+
479
+ $scripts[] = 'responsive-lightbox-nivo';
480
+ $styles[] = 'responsive-lightbox-nivo';
481
+ $styles[] = 'responsive-lightbox-nivo-default';
482
+
483
+ $args = array_merge(
484
+ $args, array(
485
+ 'effect' => $this->options['configuration']['nivo']['effect'],
486
+ 'clickOverlayToClose' => $this->get_boolean_value( $this->options['configuration']['nivo']['click_overlay_to_close'] ),
487
+ 'keyboardNav' => $this->get_boolean_value( $this->options['configuration']['nivo']['keyboard_nav'] ),
488
+ 'errorMessage' => esc_attr( $this->options['configuration']['nivo']['error_message'] )
489
+ )
490
+ );
491
+
492
+ break;
493
+
494
+ case 'imagelightbox' :
495
 
496
+ wp_register_script(
497
+ 'responsive-lightbox-imagelightbox', plugins_url( 'assets/imagelightbox/js/imagelightbox.min.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
498
+ );
499
+ wp_register_style(
500
+ 'responsive-lightbox-imagelightbox', plugins_url( 'assets/imagelightbox/css/imagelightbox.css', __FILE__ )
501
+ );
502
+
503
+ $scripts[] = 'responsive-lightbox-imagelightbox';
504
+ $styles[] = 'responsive-lightbox-imagelightbox';
505
+
506
+ $args = array_merge(
507
+ $args, array(
508
+ 'animationSpeed' => $this->options['configuration']['imagelightbox']['animation_speed'],
509
+ 'preloadNext' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['preload_next'] ),
510
+ 'enableKeyboard' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['enable_keyboard'] ),
511
+ 'quitOnEnd' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['quit_on_end'] ),
512
+ 'quitOnImageClick' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['quit_on_image_click'] ),
513
+ 'quitOnDocumentClick' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['quit_on_document_click'] ),
514
+ )
515
+ );
516
+
517
+ break;
518
+
519
+ case 'tosrus' :
520
 
521
+ // swipe support, enqueue Hammer.js on mobile devices only
522
+ if ( wp_is_mobile() ) {
523
+ wp_register_script(
524
+ 'responsive-lightbox-hammer-js', plugins_url( 'assets/tosrus/js/hammer.min.js', __FILE__ ), array(), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
525
+ );
526
+ $scripts[] = 'responsive-lightbox-hammer-js';
527
+ }
528
 
529
+ wp_register_script(
530
+ 'responsive-lightbox-tosrus', plugins_url( 'assets/tosrus/js/jquery.tosrus.min.all.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
531
+ );
532
+ wp_register_style(
533
+ 'responsive-lightbox-tosrus', plugins_url( 'assets/tosrus/css/jquery.tosrus.all.min.css', __FILE__ )
534
+ );
535
+
536
+ $scripts[] = 'responsive-lightbox-tosrus';
537
+ $styles[] = 'responsive-lightbox-tosrus';
538
+
539
+ $args = array_merge( $args, array(
540
+ 'effect' => $this->options['configuration']['tosrus']['effect'],
541
+ 'infinite' => $this->get_boolean_value( $this->options['configuration']['tosrus']['infinite'] ),
542
+ 'keys' => $this->get_boolean_value( $this->options['configuration']['tosrus']['keys'] ),
543
+ 'autoplay' => $this->get_boolean_value( $this->options['configuration']['tosrus']['autoplay'] ),
544
+ 'pauseOnHover' => $this->get_boolean_value( $this->options['configuration']['tosrus']['pause_on_hover'] ),
545
+ 'timeout' => $this->options['configuration']['tosrus']['timeout'],
546
+ 'pagination' => $this->get_boolean_value( $this->options['configuration']['tosrus']['pagination'] ),
547
+ 'paginationType' => $this->options['configuration']['tosrus']['pagination_type']
548
+ )
549
+ );
550
+
551
+ break;
552
+
553
+ default :
554
+
555
+ break;
556
+ }
557
 
558
+ // run scripts by default
559
+ $contitional_scripts = true;
560
 
561
+ if ( $this->options['settings']['conditional_loading'] === true ) {
 
 
562
 
563
+ global $post;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
564
 
565
+ if ( is_object( $post ) ) {
566
+
567
+ // is gallery present in content
568
+ $has_gallery = has_shortcode( $post->post_content, 'gallery' );
569
+
570
+ // are images present in content
571
+ preg_match_all( '/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $post->post_content, $links );
572
 
573
+ $has_images = (bool) $links[0];
574
+
575
+ if ( $has_gallery === false && $has_images === false ) {
576
+ $contitional_scripts = false;
577
+ }
 
 
 
 
 
 
 
 
578
 
579
+ }
580
 
581
+ }
 
 
 
582
 
583
+ if ( ! empty( $args['script'] ) && ! empty( $args['selector'] ) && apply_filters( 'rl_lightbox_conditional_loading', $contitional_scripts ) != false ) {
584
+
585
+ wp_register_script( 'responsive-lightbox', plugins_url( 'js/front.js', __FILE__ ), array( 'jquery' ), '', ( $this->options['settings']['loading_place'] === 'header' ? false : true ) );
 
 
 
 
 
 
 
 
 
 
 
 
586
 
587
+ $scripts[] = 'responsive-lightbox';
588
 
589
+ // enqueue scripts
590
+ if ( $scripts && is_array( $scripts ) ) {
591
+ foreach ( $scripts as $script ) {
592
+ wp_enqueue_script( $script );
593
+ }
594
+
595
+ wp_localize_script( 'responsive-lightbox', 'rlArgs', $args );
596
  }
597
 
598
+ // enqueue styles
599
+ if ( $styles && is_array( $styles ) ) {
600
+ foreach ( $styles as $style ) {
601
+ wp_enqueue_style( $style );
602
+ }
603
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
604
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
605
  }
606
 
607
  /**