| @@ -86,11 +86,11 @@ | ||
| 86 | 86 | $lb_options = [ |
| 87 | 87 | 'fb3_transition_effect' => esc_js($photonic_fb3_transition_effect ?: 'zoom'), |
| 88 | 88 | 'fb3_transition_speed' => (isset($photonic_fb3_transition_speed) && absint($photonic_fb3_transition_speed)) ? absint($photonic_fb3_transition_speed) : 366, |
| 89 | 89 | 'fb3_fullscreen_button' => !empty($photonic_fb3_show_fullscreen), |
| 90 | - 'fb3_fullscreen' => isset($photonic_enable_fb3_fullscreen) && 'on' === $photonic_enable_fb3_fullscreen ? true : false, | |
| 90 | + 'fb3_fullscreen' => isset($photonic_enable_fb3_fullscreen) && 'on' === $photonic_enable_fb3_fullscreen, | |
| 91 | 91 | 'fb3_thumbs_button' => empty($photonic_fb3_hide_thumbs), |
| 92 | - 'fb3_thumbs' => isset($photonic_enable_fb3_thumbnail) && 'on' === $photonic_enable_fb3_thumbnail ? true : false, | |
| 92 | + 'fb3_thumbs' => isset($photonic_enable_fb3_thumbnail) && 'on' === $photonic_enable_fb3_thumbnail, | |
| 93 | 93 | 'fb3_zoom' => empty($photonic_fb3_disable_zoom), |
| 94 | 94 | 'fb3_slideshow' => empty($photonic_fb3_disable_slideshow), |
| 95 | 95 | 'fb3_download' => !empty($photonic_fb3_enable_download), |
| 96 | 96 | 'fb3_disable_right_click' => !empty($photonic_fb3_disable_right_click), |
| @@ -175,18 +175,8 @@ | ||
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | $type = strtolower($attr['type']); |
| 178 | 178 | |
| 179 | - if ('picasa' === $type) { | |
| 180 | - $message = esc_html__('Google has deprecated the Picasa API. Please consider switching over to Google Photos', 'photonic'); | |
| 181 | - return "<div class='photonic-error'>\n\t<span class='photonic-error-icon photonic-icon'> </span>\n\t<div class='photonic-message'>\n\t\t$message\n\t</div>\n</div>\n"; | |
| 182 | - } | |
| 183 | - | |
| 184 | - if ('500px' === $type) { | |
| 185 | - $message = esc_html__('The API for 500px.com is no longer available for public use.', 'photonic'); | |
| 186 | - return "<div class='photonic-error'>\n\t<span class='photonic-error-icon photonic-icon'> </span>\n\t<div class='photonic-message'>\n\t\t$message\n\t</div>\n</div>\n"; | |
| 187 | - } | |
| 188 | - | |
| 189 | 179 | $layout = ('default' === $type || 'wp' === $type) |
| 190 | 180 | ? $attr['style'] |
| 191 | 181 | : (!empty($attr['layout']) |
| 192 | 182 | ? $attr['layout'] |
| @@ -196,9 +186,9 @@ | ||
| 196 | 186 | $lazy_allowed = in_array($type, ['flickr', 'smugmug', 'google', 'zenfolio', 'instagram'], true) |
| 197 | 187 | && in_array($layout, ['square', 'circle', 'random', 'masonry', 'mosaic'], true); |
| 198 | 188 | |
| 199 | 189 | if (!empty($attr['show_gallery']) && $lazy_allowed) { // Lazy button not for WP galleries |
| 200 | - $images = $this->get_lazy_load_button($attr, 'show_gallery'); | |
| 190 | + $images = $this->get_lazy_load_button($attr); | |
| 201 | 191 | } |
| 202 | 192 | elseif ((('js' === $photonic_load_mode && (empty($attr['load_mode']) || 'js' === trim(esc_attr($attr['load_mode'])))) || ('php' === $photonic_load_mode && (!empty($attr['load_mode']) && 'js' === trim(sanitize_text_field($attr['load_mode']))))) |
| 203 | 193 | && $lazy_allowed) { // Lazy button not for WP galleries |
| 204 | 194 | $attr['load_mode'] = 'js'; // Need to set this for cases where the shortcode didn't have the setting; get_lazy_load_button fails |