├── screenshot-1.png ├── screenshot-2.png ├── assets ├── images │ ├── icon.jpg │ ├── blank.gif │ ├── fancybox.png │ ├── fancy_close.png │ ├── fancybox-x.png │ ├── fancybox-y.png │ ├── fancy_loading.png │ ├── fancy_nav_left.png │ ├── fancy_shadow_e.png │ ├── fancy_shadow_n.png │ ├── fancy_shadow_s.png │ ├── fancy_shadow_w.png │ ├── modula-300x300.jpg │ ├── fancy_nav_right.png │ ├── fancy_shadow_ne.png │ ├── fancy_shadow_nw.png │ ├── fancy_shadow_se.png │ ├── fancy_shadow_sw.png │ ├── fancy_title_left.png │ ├── fancy_title_main.png │ ├── fancy_title_over.png │ └── fancy_title_right.png ├── js │ ├── admin.js │ └── purify.min.js └── css │ ├── jquery-ui.css │ ├── fancybox-admin.css │ └── fancybox.css ├── languages ├── mfbfw-ja.mo ├── mfbfw-de_DE.mo ├── mfbfw-es_ES.mo ├── mfbfw-pl_PL.mo ├── mfbfw-tr_TR.mo ├── mfbfw-ja.po ├── mfbfw-tr_TR.po └── mfbfw.pot ├── .gitignore ├── package.json ├── lib ├── admin-head.php ├── admin-tab-support.php ├── admin-tab-animations.php ├── admin-tab-galleries.php ├── admin-tab-behaviour.php ├── admin-tab-appearance.php └── admin-tab-other.php ├── admin.php ├── Gruntfile.js ├── class-fancybox-review.php └── readme.txt /screenshot-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/screenshot-1.png -------------------------------------------------------------------------------- /screenshot-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/screenshot-2.png -------------------------------------------------------------------------------- /assets/images/icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/icon.jpg -------------------------------------------------------------------------------- /languages/mfbfw-ja.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/languages/mfbfw-ja.mo -------------------------------------------------------------------------------- /assets/images/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/blank.gif -------------------------------------------------------------------------------- /languages/mfbfw-de_DE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/languages/mfbfw-de_DE.mo -------------------------------------------------------------------------------- /languages/mfbfw-es_ES.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/languages/mfbfw-es_ES.mo -------------------------------------------------------------------------------- /languages/mfbfw-pl_PL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/languages/mfbfw-pl_PL.mo -------------------------------------------------------------------------------- /languages/mfbfw-tr_TR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/languages/mfbfw-tr_TR.mo -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Thumbs.db 2 | node_modules/* 3 | .idea/* 4 | *.zip 5 | .DS_Store 6 | package-lock.json 7 | .standard.json 8 | -------------------------------------------------------------------------------- /assets/images/fancybox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancybox.png -------------------------------------------------------------------------------- /assets/images/fancy_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_close.png -------------------------------------------------------------------------------- /assets/images/fancybox-x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancybox-x.png -------------------------------------------------------------------------------- /assets/images/fancybox-y.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancybox-y.png -------------------------------------------------------------------------------- /assets/images/fancy_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_loading.png -------------------------------------------------------------------------------- /assets/images/fancy_nav_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_nav_left.png -------------------------------------------------------------------------------- /assets/images/fancy_shadow_e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_shadow_e.png -------------------------------------------------------------------------------- /assets/images/fancy_shadow_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_shadow_n.png -------------------------------------------------------------------------------- /assets/images/fancy_shadow_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_shadow_s.png -------------------------------------------------------------------------------- /assets/images/fancy_shadow_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_shadow_w.png -------------------------------------------------------------------------------- /assets/images/modula-300x300.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/modula-300x300.jpg -------------------------------------------------------------------------------- /assets/images/fancy_nav_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_nav_right.png -------------------------------------------------------------------------------- /assets/images/fancy_shadow_ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_shadow_ne.png -------------------------------------------------------------------------------- /assets/images/fancy_shadow_nw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_shadow_nw.png -------------------------------------------------------------------------------- /assets/images/fancy_shadow_se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_shadow_se.png -------------------------------------------------------------------------------- /assets/images/fancy_shadow_sw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_shadow_sw.png -------------------------------------------------------------------------------- /assets/images/fancy_title_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_title_left.png -------------------------------------------------------------------------------- /assets/images/fancy_title_main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_title_main.png -------------------------------------------------------------------------------- /assets/images/fancy_title_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_title_over.png -------------------------------------------------------------------------------- /assets/images/fancy_title_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/fancybox-for-wordpress/HEAD/assets/images/fancy_title_right.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fancybox-for-wordpress", 3 | "main": "Gruntfile.js", 4 | "version": "3.3.5", 5 | "homepage": "https://www.colorlib.com", 6 | "author": "Colorlib", 7 | "license": "GPL v3", 8 | "repository": "https://github.com/puikinsh/fancybox-for-wordpress", 9 | "devDependencies": { 10 | "grunt": "^1.0.4", 11 | "grunt-checktextdomain": "^1.0.1", 12 | "grunt-cli": "~1.3.2", 13 | "grunt-contrib-clean": "^2.0.0", 14 | "grunt-contrib-compress": "^1.4.3", 15 | "grunt-contrib-copy": "^1.0.0", 16 | "grunt-wp-i18n": "^1.0.3", 17 | "load-grunt-tasks": "^4.0.0" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/admin-head.php: -------------------------------------------------------------------------------- 1 |
FancyBox for WordPress settings have been reset.
'; 5 | 6 | 7 | // Get array with all the options 8 | $settings = mfbfw_sanitize_fancy_options( get_option( 'mfbfw' ) ); 9 | 10 | // Get Version 11 | $version = get_option('mfbfw_active_version'); 12 | 13 | // Make selects data 14 | $transitionTypeArray = array( 'fade', 'zoom', 'zoom-in-out' ,'none' ); 15 | $overlayArray = array( 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1 ); 16 | $msArray = array( 0, 25, 50, 75, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1250, 1500, 1750, 2000 ); 17 | $slideEffectArray = array('false','fade','slide','circular','tube','zoom-in-out','rotate'); 18 | -------------------------------------------------------------------------------- /lib/admin-tab-support.php: -------------------------------------------------------------------------------- 1 | 2 |-------------------------------------------------------------------------------- /admin.php: -------------------------------------------------------------------------------- 1 | 7 | 8 |
Seamlessly integrates FancyBox into your blog: Upload, activate, and you’re done. Additional configuration optional.
14 || 9 | 11 | 12 | 13 | | 14 |15 | 30 | | 31 |
|---|---|
| 34 | | 35 | 59 | | 60 |
| 63 | | 64 | 87 | | 88 |
| 12 | |
13 | />
14 | 17 | 18 | /> 19 | 22 | 23 | /> 24 | 27 | 28 | /> 29 | 32 | 50 | |
51 |
|---|
messages['notice'] ), esc_html( $this->value ) ) ; ?>
75 |76 | 77 | messages['rate'] ); ?> 78 | 79 | messages['rated'] ); ?> 80 | messages['no_rate'] ); ?> 81 |
82 |REL attribute)"
236 | msgstr "ギャラリーで自動的に画像を分類しない (REL属性で手動でギャラリーを作る場合は使用してください。)"
237 |
238 | #: admin.php:390
239 | msgid "Make a gallery for each post (will only work if your theme uses class=\"post\" on each post, which is common in WordPress"
240 | msgstr "各ポストのためにギャラリーを作る (WordPress標準テーマにおいてclass=\"post\"を各ポストで使う場合に動作します。)"
241 |
242 | #: admin.php:395
243 | msgid "Use a custom expression to apply FancyBox"
244 | msgstr "FancyBoxへのカスタム表示の適用"
245 |
246 | #: admin.php:404
247 | msgid "Custom expression guidelines:"
248 | msgstr "カスタム表示ガイドライン:"
249 |
250 | #: admin.php:406
251 | msgid "The custom expression has to apply class=\"fancybox\" to the links where you want to use FancyBox."
252 | msgstr "カスタム表示をするには、FancyBoxを使用するリンクへ class=\"fancybox\" を付けます。"
253 |
254 | #: admin.php:408
255 | msgid "The jQuery addClass() function is a good way to add the class to the desired links conserving any existing class."
256 | msgstr "jQueryの addClass() 機能を使用すると、どの既存のリンククラスへもaddクラスを加える早道です。"
257 |
258 | #: admin.php:410
259 | msgid "You can use getTitle() in your expression to copy the title attribute from the IMG tag to the A tag, so that FancyBox can show captions."
260 | msgstr "getTitle() を使用して IMG タグや、 A タグへ表示要素を追加し、FancyBoxを表示できます。"
261 |
262 | #: admin.php:412
263 | msgid "Do not call the fancybox() function here, the plugin does this for you."
264 | msgstr "Fancyboxプラグインのfancybox() 機能を使用しない。"
265 |
266 | #: admin.php:428
267 | msgid "Troubleshooting Settings"
268 | msgstr "トラブルシューティング設定"
269 |
270 | #: admin.php:430
271 | msgid "Settings in this section should only be changed if you are having problems with the plugin!"
272 | msgstr "プラグインに関する問題がある場合、この設定を変えるだけです!"
273 |
274 | #: admin.php:432
275 | msgid "If the plugin doesn't seem to work, first you should check for other plugins that may be conflicting with this one, especially other Lightbox, Slimbox, etc. Make sure all your plugins and WordPress itself are up to date (this plugin has only been tested in WordPress 2.7 and above)."
276 | msgstr "プラグインが機能しない場合は、はじめに他の類似プラグイン(特に他のLightbox、Slimbox)や、その他のプラグインと干渉している可能性があります。また、WordPress自体が最新版であることをチェックしてください。(このプラグインは、WordPress 2.7以上のバージョンでテスト済みです。)"
277 |
278 | #: admin.php:434
279 | msgid "Change them one at a time and test to see if they help. Remember that having a cache plugin may prevent changes from taking effect immidiately, so clear cache after saving changes here or deactivate cache until you finish editing these options."
280 | msgstr "これらを一つずつを変更して、影響しているかどうかをテストしてください。これらのオプションを編集し終わってもキャッシュが保持されているため、オプション設定後、すぐに効果が表れないかもしれません。その場合、オプション設定終了後に、キャッシュのクリアをしてください。"
281 |
282 | #: admin.php:440
283 | msgid "Do not call jQuery"
284 | msgstr "jQueryを使用しない"
285 |
286 | #: admin.php:446
287 | msgid "Skip jQuery call. Use this only if jQuery is being loaded twice (default: off)"
288 | msgstr "jQueryの起動スキップ。jQueryが2度起動される場合だけ使用 (初期値: off)"
289 |
290 | #: admin.php:454
291 | msgid "jQuery \"noConflict\" Mode"
292 | msgstr "jQuery \"noConflict\" モード"
293 |
294 | #: admin.php:460
295 | msgid "Use jQuery noConflict mode (default: on)"
296 | msgstr "jQuery ノーコンフリクトモード設定 (初期値: on)"
297 |
298 | #: admin.php:463
299 | msgid "(Turning this off may cause problems if there are plugins activated that use other js framework like mootools, prototype, scriptaculous, etc.)"
300 | msgstr "(この設定の有効化により、Js フレームワークを使用した、mootools、prototype、scriptaculous、その他のプラグインへの干渉を回避できる可能性があります。)"
301 |
302 | #: admin.php:472
303 | msgid "Uninstall"
304 | msgstr "削除"
305 |
306 | #: admin.php:474
307 | msgid "Like many other plugins, FancyBox for WordPress stores its settings on your WordPress' options database table. Actually, these settings are not using more than a couple of kilobytes of space, but if you want to completely uninstall this plugin, check the option below, then save changes, and when you deactivate the plugin, all its settings will be removed from the database."
308 | msgstr "他のプラグインのように、\"FancyBox for WordPress\"は、データベースのオプションテーブルに設定を格納します。これらの設定は2KB以上のスペースを使っていません。しかし、このプラグインを無効化し、削除する場合、完全に元に戻したいならば、下記のオプションをチェックすると、すべての設定はデータベースから削除されます。"
309 |
310 | #: admin.php:480
311 | msgid "Remove settings"
312 | msgstr "設定の無効化"
313 |
314 | #: admin.php:486
315 | msgid "Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. (default: off)"
316 | msgstr "プラグイン設定を \"プラグイン管理\"ページから無効化してください。 (初期値: off)"
317 |
318 | #: admin.php:503
319 | msgid "Save Changes"
320 | msgstr "設定保存"
321 |
322 | #: fancybox.php:437
323 | msgid "Settings"
324 | msgstr "設定"
325 |
326 |
--------------------------------------------------------------------------------
/assets/css/fancybox-admin.css:
--------------------------------------------------------------------------------
1 | .settings_page_fancybox-for-wordpress #wpcontent {
2 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif
3 | }
4 |
5 | #mfbfwd {
6 | border-top: 1px dashed #DDD;
7 | margin: 20px auto 40px;
8 | overflow: hidden;
9 | padding-top: 25px;
10 | width: 726px
11 | }
12 |
13 | .mfbfw_box {
14 | border-radius: 3px;
15 | float: left;
16 | font-weight: 700;
17 | height: 90px;
18 | margin: 5px 5px 3px;
19 | opacity: .7;
20 | padding: 0 5px;
21 | text-align: center;
22 | width: 220px
23 | }
24 |
25 | .mfbfw_box:hover {
26 | opacity: .9
27 | }
28 |
29 | .mfbfw_blue,
30 | .mfbfw_yellow {
31 | background: #fdca57;
32 | border: 1px solid #d7922d;
33 | color: #975c25;
34 | -webkit-box-shadow: inset 0 0 20px 5px #fb9822, inset 0 1px 0 #fff, 0 0 0 2px rgba(0, 0, 0, .05), 0 0 2px rgba(0, 0, 0, .5);
35 | -moz-box-shadow: inset 0 0 20px 5px #fb9822, inset 0 1px 0 #fff, 0 0 0 2px rgba(0, 0, 0, .05), 0 0 2px rgba(0, 0, 0, .5);
36 | box-shadow: inset 0 0 20px 5px #fb9822, inset 0 1px 0 #fff, 0 0 0 2px rgba(0, 0, 0, .05), 0 0 2px rgba(0, 0, 0, .5);
37 | text-shadow: 0 1px 0 #fee27d;
38 | filter: dropshadow(color=#ffd21f, offx=0, offy=1)
39 | }
40 |
41 | #fbfwTabs {
42 | background: 0 0;
43 | border: none
44 | }
45 |
46 | #fbfwTabs th {
47 | min-width:250px;
48 | }
49 |
50 | #fbfwTabs .ui-tabs-nav {
51 | background: 0 0;
52 | border: 0;
53 | border-bottom: 1px solid #aaa
54 | }
55 |
56 | #fbfwTabs .ui-tabs-nav li {
57 | border-radius: 0;
58 | margin: 0 5px;
59 | background: #e5e5e5;
60 | top: 2px
61 | }
62 |
63 | #fbfwTabs .ui-tabs-nav li a {
64 | font-size: 15px;
65 | font-weight: 600;
66 | outline: 0;
67 | box-shadow: none
68 | }
69 |
70 | #fbfwTabs .ui-tabs-nav .ui-tabs-active {
71 | background: #f1f1f1;
72 | position: relative;
73 | color: #000;
74 | border: 1px solid #aaa
75 | }
76 |
77 | #fbfwTabs .ui-tabs-nav .ui-tabs-active a {
78 | color: #000
79 | }
80 |
81 | #fbfwTabs .ui-tabs-nav .ui-tabs-active:after {
82 | position: absolute;
83 | width: 100%;
84 | height: 3px;
85 | bottom: -2px;
86 | background: #f1f1f1;
87 | content: "";
88 | display: block
89 | }
90 |
91 | #fbfwTabs .inlined > div:not(.cf) {
92 | display: inline-block;
93 | width: 50%;
94 | vertical-align: middle
95 | }
96 |
97 | #fbfwTabs .CodeMirror,
98 | #fbfwTabs label[for=extraCalls],
99 | .inlined {
100 | width: 100%
101 | }
102 |
103 | .inlined {
104 | display: block
105 | }
106 |
107 | .inlined .slider-horizontal {
108 | dispaly: inline-block;
109 | width: 80%;
110 | max-width: 200px;
111 | height: 3px !important;
112 | border: 0 !important;
113 | background: #d6d6d6 !important;
114 | border-radius: 3px !important;
115 | margin-right: 25px
116 | }
117 |
118 | .slider-horizontal .ui-slider-range {
119 | background: #d6d6d6 !important;
120 | border-radius: 3px !important
121 | }
122 |
123 | .slider-horizontal .ui-slider-handle {
124 | border-radius: 50%;
125 | height: 18px !important;
126 | width: 18px !important;
127 | top: 50% !important;
128 | transform: translateY(-50%) !important
129 | }
130 |
131 | .slider-horizontal .ui-slider-handle.ui-state-active {
132 | background: #fff !important;
133 | border-color: #d6d6d6 !important
134 | }
135 |
136 | .inlined input {
137 | display: inline-block;
138 | vertical-align: middle;
139 | width: 20%;
140 | max-width: 40px
141 | }
142 |
143 | .inlined .slider-text {
144 | font-size: 12px;
145 | color: #333;
146 | border-radius: 10px;
147 | background-color: #f8f8f8;
148 | -webkit-box-shadow: inset 0 2px 5px 0 rgba(0, 0, 0, .1);
149 | -moz-box-shadow: inset 0 2px 5px 0 rgba(0, 0, 0, .1);
150 | box-shadow: inset 0 2px 5px 0 rgba(0, 0, 0, .1);
151 | width: 42px;
152 | height: 22px;
153 | text-align: center
154 | }
155 |
156 | #pluginLogo img {
157 | max-height: 150px;
158 | width: auto
159 | }
160 |
161 | .inlined > div {
162 | display: inline-block;
163 | vertical-align: top
164 | }
165 |
166 | .inlined #pluginLogo {
167 | width: 19%;
168 | text-align: right;
169 | min-width: 100px
170 | }
171 |
172 | .inlined #pluginDescription {
173 | width: 80%;
174 | text-align: left;
175 | min-width: 100px
176 | }
177 |
178 | #pluginDescription h2 {
179 | font-size: 2.8em;
180 | font-weight: 400;
181 | line-height: 1.2em
182 | }
183 |
184 | #pluginDescription p {
185 | font-size: 19px
186 | }
187 |
188 | span.switch-text {
189 | display: inline-block
190 | }
191 |
192 | span.switch-text {
193 | margin-left: 25px;
194 | padding: 5px
195 | }
196 |
197 | #extraCallsBlock {
198 | width: 80%
199 | }
200 |
201 | #callbackBlock label,
202 | .cf,
203 | .start-editing,
204 | .start-editing p {
205 | width: 100%
206 | }
207 |
208 | .start-editing {
209 | position: absolute;
210 | top: 0;
211 | right: 0;
212 | left: 0;
213 | bottom: 0;
214 | height: calc(100% - 5px);
215 | z-index: 2;
216 | background: rgba(0, 0, 0, .6);
217 | display: flex;
218 | flex-wrap: wrap;
219 | align-items: center;
220 | text-align: center;
221 | color: #fff;
222 | font-size: 20px;
223 | }
224 |
225 | .start-editing p {
226 | display: block;
227 | font-size: 20px !important;
228 | }
229 |
230 | #callbackBlock label,
231 | #customExpressionBlock label,
232 | label[for="extraCalls"] {
233 | width: 100%;
234 | position: relative
235 | }
236 |
237 | #callbackBlock label textarea,
238 | #customExpressionBlock label textarea,
239 | label[for="extraCalls"] textarea {
240 | width: 100%;
241 | height: 100%;
242 | }
243 |
244 | #fbfwTabs .ui-tabs-panel h3 {
245 | margin-top: 0
246 | }
247 |
248 | #fbfwTabs.ui-tabs .ui-tabs-panel {
249 | padding-left: 0 !important;
250 | padding-right: 0 !important
251 | }
252 |
253 | #callbackBlock .CodeMirror-wrap pre {
254 | margin-left: 15px
255 | }
256 |
257 | tr.spacer {
258 | height: 25px;
259 | }
260 |
261 | .line-spacer {
262 | height: 15px;
263 | }
264 |
265 | .hidden-block {
266 | margin-top: 15px;
267 | }
268 |
269 | .about-wrap.fbfw-wrap {
270 | max-width:70%;
271 | float:left;
272 | }
273 |
274 | .cf:after,
275 | .cf:before {
276 | content: " ";
277 | display: table
278 | }
279 |
280 | .cf:after {
281 | clear: both
282 | }
283 |
284 | .about-wrap.fbfw-wrap .about-text,
285 | .about-wrap.fbfw-wrap h1 {
286 | margin-right: 0;
287 | }
288 |
289 | /**
290 | * Tooltip Styles
291 | */
292 |
293 | /* Base styles for the element that has a tooltip */
294 | [data-tooltip],
295 | .tooltip {
296 | position: relative;
297 | cursor: pointer;
298 | }
299 |
300 | /* Base styles for the entire tooltip */
301 | [data-tooltip]:before,
302 | [data-tooltip]:after,
303 | .tooltip:before,
304 | .tooltip:after {
305 | position: absolute;
306 | visibility: hidden;
307 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
308 | filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
309 | opacity: 0;
310 | -webkit-transition: opacity 0.2s ease-in-out,
311 | visibility 0.2s ease-in-out,
312 | -webkit-transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
313 | -moz-transition: opacity 0.2s ease-in-out,
314 | visibility 0.2s ease-in-out,
315 | -moz-transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
316 | transition: opacity 0.2s ease-in-out,
317 | visibility 0.2s ease-in-out,
318 | transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
319 | -webkit-transform: translate3d(0, 0, 0);
320 | -moz-transform: translate3d(0, 0, 0);
321 | transform: translate3d(0, 0, 0);
322 | pointer-events: none;
323 | }
324 |
325 | /* Show the entire tooltip on hover and focus */
326 | [data-tooltip]:hover:before,
327 | [data-tooltip]:hover:after,
328 | [data-tooltip]:focus:before,
329 | [data-tooltip]:focus:after,
330 | .tooltip:hover:before,
331 | .tooltip:hover:after,
332 | .tooltip:focus:before,
333 | .tooltip:focus:after {
334 | visibility: visible;
335 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
336 | filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
337 | opacity: 1;
338 | }
339 |
340 | /* Base styles for the tooltip's directional arrow */
341 | .tooltip:before,
342 | [data-tooltip]:before {
343 | z-index: 1001;
344 | border: 6px solid transparent;
345 | background: transparent;
346 | content: "";
347 | }
348 |
349 | /* Base styles for the tooltip's content area */
350 | .tooltip:after,
351 | [data-tooltip]:after {
352 | z-index: 1000;
353 | padding: 8px;
354 | width: 360px;
355 | background-color: #000;
356 | background-color: hsla(0, 0%, 20%, 1);
357 | color: #fff;
358 | content: attr(data-tooltip);
359 | line-height: 1.75;
360 | }
361 |
362 | /* Directions */
363 |
364 | /* Top (default) */
365 | [data-tooltip]:before,
366 | [data-tooltip]:after,
367 | .tooltip:before,
368 | .tooltip:after,
369 | .tooltip-top:before,
370 | .tooltip-top:after {
371 | bottom: 100%;
372 | left: 50%;
373 | }
374 |
375 | [data-tooltip]:before,
376 | .tooltip:before,
377 | .tooltip-top:before {
378 | margin-left: -6px;
379 | margin-bottom: -12px;
380 | border-top-color: #000;
381 | border-top-color: hsla(0, 0%, 20%, 0.9);
382 | }
383 |
384 | /* Horizontally align top/bottom tooltips */
385 | [data-tooltip]:after,
386 | .tooltip:after,
387 | .tooltip-top:after {
388 | margin-left: -80px;
389 | }
390 |
391 | [data-tooltip]:hover:before,
392 | [data-tooltip]:hover:after,
393 | [data-tooltip]:focus:before,
394 | [data-tooltip]:focus:after,
395 | .tooltip:hover:before,
396 | .tooltip:hover:after,
397 | .tooltip:focus:before,
398 | .tooltip:focus:after,
399 | .tooltip-top:hover:before,
400 | .tooltip-top:hover:after,
401 | .tooltip-top:focus:before,
402 | .tooltip-top:focus:after {
403 | -webkit-transform: translateY(-12px);
404 | -moz-transform: translateY(-12px);
405 | transform: translateY(-12px);
406 | }
407 |
408 | /* Left */
409 | .tooltip-left:before,
410 | .tooltip-left:after {
411 | right: 100%;
412 | bottom: 50%;
413 | left: auto;
414 | }
415 |
416 | .tooltip-left:before {
417 | margin-left: 0;
418 | margin-right: -12px;
419 | margin-bottom: 0;
420 | border-top-color: transparent;
421 | border-left-color: #000;
422 | border-left-color: hsla(0, 0%, 20%, 0.9);
423 | }
424 |
425 | .tooltip-left:hover:before,
426 | .tooltip-left:hover:after,
427 | .tooltip-left:focus:before,
428 | .tooltip-left:focus:after {
429 | -webkit-transform: translateX(-12px);
430 | -moz-transform: translateX(-12px);
431 | transform: translateX(-12px);
432 | }
433 |
434 | /* Bottom */
435 | .tooltip-bottom:before,
436 | .tooltip-bottom:after {
437 | top: 100%;
438 | bottom: auto;
439 | left: 50%;
440 | }
441 |
442 | .tooltip-bottom:before {
443 | margin-top: -12px;
444 | margin-bottom: 0;
445 | border-top-color: transparent;
446 | border-bottom-color: #000;
447 | border-bottom-color: hsla(0, 0%, 20%, 0.9);
448 | }
449 |
450 | .tooltip-bottom:hover:before,
451 | .tooltip-bottom:hover:after,
452 | .tooltip-bottom:focus:before,
453 | .tooltip-bottom:focus:after {
454 | -webkit-transform: translateY(12px);
455 | -moz-transform: translateY(12px);
456 | transform: translateY(12px);
457 | }
458 |
459 | /* Right */
460 | .tooltip-right:before,
461 | .tooltip-right:after {
462 | bottom: 50%;
463 | left: 100%;
464 | }
465 |
466 | .tooltip-right:before {
467 | margin-bottom: 0;
468 | margin-left: -12px;
469 | border-top-color: transparent;
470 | border-right-color: #000;
471 | border-right-color: hsla(0, 0%, 20%, 0.9);
472 | }
473 |
474 | .tooltip-right:hover:before,
475 | .tooltip-right:hover:after,
476 | .tooltip-right:focus:before,
477 | .tooltip-right:focus:after {
478 | -webkit-transform: translateX(12px);
479 | -moz-transform: translateX(12px);
480 | transform: translateX(12px);
481 | }
482 |
483 | /* Move directional arrows down a bit for left/right tooltips */
484 | .tooltip-left:before,
485 | .tooltip-right:before {
486 | top: 3px;
487 | }
488 |
489 | /* Vertically center tooltip content for left/right tooltips */
490 | .tooltip-left:after,
491 | .tooltip-right:after {
492 | margin-left: 0;
493 | margin-bottom: -16px;
494 | }
495 |
496 | #fbfwTabs span[data-tooltip] {
497 | float:right;
498 | }
499 |
500 | /* Epsilon toggle */
501 |
502 | .epsilon-toggle {
503 | position: relative;
504 | float: left;
505 | user-select: none;
506 | }
507 |
508 | .epsilon-toggle__items {
509 | box-sizing: border-box;
510 | }
511 |
512 | .epsilon-toggle__items > * {
513 | box-sizing: inherit;
514 | }
515 |
516 | .epsilon-toggle__input[type=checkbox] {
517 | border-radius: 2px;
518 | border: 2px solid #6c7781;
519 | margin-right: 12px;
520 | transition: none;
521 | height: 100%;
522 | left: 0;
523 | top: 0;
524 | margin: 0;
525 | padding: 0;
526 | opacity: 0;
527 | position: absolute;
528 | width: 100%;
529 | z-index: 1;
530 | }
531 |
532 | .epsilon-toggle__track {
533 | background-color: #fff;
534 | border: 2px solid #6c7781;
535 | border-radius: 9px;
536 | display: inline-block;
537 | height: 18px;
538 | width: 36px;
539 | vertical-align: top;
540 | transition: background .2s ease;
541 | }
542 |
543 | .epsilon-toggle__thumb {
544 | background-color: #6c7781;
545 | border: 5px solid #6c7781;
546 | border-radius: 50%;
547 | display: block;
548 | height: 10px;
549 | width: 10px;
550 | position: absolute;
551 | left: 4px;
552 | top: 4px;
553 | transition: transform .2s ease;
554 | }
555 |
556 | .epsilon-toggle__off {
557 | position: absolute;
558 | right: 6px;
559 | top: 6px;
560 | color: #6c7781;
561 | fill: currentColor;
562 | }
563 |
564 | .epsilon-toggle__on {
565 | position: absolute;
566 | top: 6px;
567 | left: 8px;
568 | border: 1px solid #fff;
569 | outline: 1px solid transparent;
570 | outline-offset: -1px;
571 | display: none;
572 | }
573 |
574 |
575 | .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__track {
576 | background-color: #11a0d2;
577 | border: 9px solid transparent;
578 | }
579 |
580 | .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__thumb {
581 | background-color: #fff;
582 | border-width: 0;
583 | transform: translateX(18px);
584 | }
585 |
586 | .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__off {
587 | display: none;
588 | }
589 |
590 | .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__on {
591 | display: inline-block;
592 | }
593 |
594 | #fbfwTabs .fancy-table > tbody > tr > td {
595 | padding:20px 10px 20px 0;
596 | }
597 |
598 | #fbfwTabs .fancy-table select {
599 | min-width:150px;
600 | margin-right:15px;
601 | }
--------------------------------------------------------------------------------
/lib/admin-tab-behaviour.php:
--------------------------------------------------------------------------------
1 | | 7 | 9 | 10 | 11 | | 12 |13 | 32 | | 33 |
|---|---|
| 36 | 38 | 39 | 40 | | 41 |42 | 58 | | 59 |
| 62 | 64 | 65 | 66 | | 67 |68 | 84 | | 85 |
| 88 | 90 | 91 | 92 | | 93 |94 | 110 | | 111 |
| 114 | 116 | 117 | 118 | | 119 |120 | 136 | | 137 |
| 140 | 142 | 143 | 144 | | 145 |146 | 162 | | 163 |
| 166 | | 167 | 184 | 201 | | 202 |
| 205 | 207 | 208 | 209 | | 210 |211 | 227 | | 228 |
| 231 | 233 | 234 | 235 | | 236 |237 | 254 | | 255 |
REL attribute)"
236 | msgstr "Resimleri otomatik olarak galeriye ekleme. (Bunu resimleri kendiniz galeriye eklemek isterseniz kullanın. ResimleriREL kodu ile galeriye ekleyebilirsiniz.)"
237 |
238 | #: admin.php:390
239 | msgid "Make a gallery for each post (will only work if your theme uses class=\"post\" on each post, which is common in WordPress"
240 | msgstr "Her yazıda resim galerisi oluştur. (Sadece temanız her yazıdaclass=\"post\" kodunu kullanıyorsa çalışır, Wordpress'de yaygın olarak kullanılır.)"
241 |
242 | #: admin.php:395
243 | msgid "Use a custom expression to apply FancyBox"
244 | msgstr "Kendi ifadelerinizi Fancybox'a ekleyin."
245 |
246 | #: admin.php:404
247 | msgid "Custom expression guidelines:"
248 | msgstr "Özelleştirilmiş İfadeler Kılavuzu:"
249 |
250 | #: admin.php:406
251 | msgid "The custom expression has to apply class=\"fancybox\" to the links where you want to use FancyBox."
252 | msgstr "Kendi ifadelerinizi kullanmak için FancyBox'u kullandığınız yerdeki linke class=\"fancybox\" kodunu yerleştiriniz."
253 |
254 | #: admin.php:408
255 | msgid "The jQuery addClass() function is a good way to add the class to the desired links conserving any existing class."
256 | msgstr "jQuery addClass() fonksiyonu linklere falan şekil vermek için iyi bir yoldur."
257 |
258 | #: admin.php:410
259 | msgid "You can use getTitle() in your expression to copy the title attribute from the IMG tag to the A tag, so that FancyBox can show captions."
260 | msgstr "You can use getTitle() in your expression to copy the title attribute from the IMG tag to the A tag, böylece başlıkları gösterebilirsiniz."
261 |
262 | #: admin.php:412
263 | msgid "Do not call the fancybox() function here, the plugin does this for you."
264 | msgstr "fancybox() fonksiyonunu burada çalıştırma, eklenti sizin için."
265 |
266 | #: admin.php:428
267 | msgid "Troubleshooting Settings"
268 | msgstr "Sorun Giderme Ayarları"
269 |
270 | #: admin.php:430
271 | msgid "Settings in this section should only be changed if you are having problems with the plugin!"
272 | msgstr "Bu seçenek sadece eklentide bir problem yaşanıyorsa değiştirilebilir."
273 |
274 | #: admin.php:432
275 | msgid "If the plugin doesn't seem to work, first you should check for other plugins that may be conflicting with this one, especially other Lightbox, Slimbox, etc. Make sure all your plugins and WordPress itself are up to date (this plugin has only been tested in WordPress 2.7 and above)."
276 | msgstr "Eğer bu eklenti çalışmıyor gibi görünüyorsa diğer eklentileri kontrol edin ve tüm eklentilerin güncel olduğundan emin olun. ( Bu eklenti sadece Wordpress 2.7 ve daha yüksek sürümlerinde test edilmiştir.)"
277 |
278 | #: admin.php:434
279 | msgid "Change them one at a time and test to see if they help. Remember that having a cache plugin may prevent changes from taking effect immidiately, so clear cache after saving changes here or deactivate cache until you finish editing these options."
280 | msgstr "Bir defalığına test etmeniz size yardımcı olabilir. Test işlemini yapmadan önce ön bellek (cache) kullanıyorsanız önbelleği temizleyiniz ve sonra test işlemi yapınız. Önbelekleme sizin yaptığınız değişiklikleri görmenizi engelleyecektir. "
281 |
282 | #: admin.php:440
283 | msgid "Do not call jQuery"
284 | msgstr "jQuery kullanma"
285 |
286 | #: admin.php:446
287 | msgid "Skip jQuery call. Use this only if jQuery is being loaded twice (default: off)"
288 | msgstr "JQuery sorgusunu atla. Eğer JQuery iki defa çalışıyorsa bunu kullanın."
289 |
290 | #: admin.php:454
291 | msgid "jQuery \"noConflict\" Mode"
292 | msgstr "jQuery \"noConflict\" Modu"
293 |
294 | #: admin.php:460
295 | msgid "Use jQuery noConflict mode (default: on)"
296 | msgstr "jQuery noConflict modu kullan (default: on)"
297 |
298 | #: admin.php:463
299 | msgid "(Turning this off may cause problems if there are plugins activated that use other js framework like mootools, prototype, scriptaculous, etc.)"
300 | msgstr "(Eğer eklenti aktifken diğer Java Scriptlerle ilgili problem yaşarsa (mootols, prototype gibi) bunu kapalı konuma getirin. )"
301 |
302 | #: admin.php:472
303 | msgid "Uninstall"
304 | msgstr "Eklentiyi Kaldır"
305 |
306 | #: admin.php:474
307 | msgid "Like many other plugins, FancyBox for WordPress stores its settings on your WordPress' options database table. Actually, these settings are not using more than a couple of kilobytes of space, but if you want to completely uninstall this plugin, check the option below, then save changes, and when you deactivate the plugin, all its settings will be removed from the database."
308 | msgstr "Diğer eklentiler gibi Fancybox da veritabanında Wordpress ayarları tablosunu kullanarak çalışır. Çok fazla boyut kullanmamasına rağmen kaldırmak isterseniz öncelikle ayarlardan eklentiyi kapatınız. Böylece ayarlarınız veritababnından silinecektir. Daha sonra kaldırma işlemini tamamlayabilirsiniz."
309 |
310 | #: admin.php:480
311 | msgid "Remove settings"
312 | msgstr "Ayarları Sil"
313 |
314 | #: admin.php:486
315 | msgid "Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. (default: off)"
316 | msgstr "Eklenti etkisizleştirildiğinde ayarları temizle."
317 |
318 | #: admin.php:503
319 | msgid "Save Changes"
320 | msgstr "Değişiklikleri Kaydet"
321 |
322 | #: fancybox.php:437
323 | msgid "Settings"
324 | msgstr "Ayarlar"
325 |
326 |
--------------------------------------------------------------------------------
/readme.txt:
--------------------------------------------------------------------------------
1 | === FancyBox for WordPress ===
2 | Contributors: silkalns
3 | Tags: fancybox, lightbox, images, photos, pictures
4 | Requires at least: 5.6
5 | Tested up to: 6.8
6 | Stable tag: 3.3.6
7 | License: GPLv3 or later
8 | License URI: http://www.gnu.org/licenses/gpl-3.0.html
9 |
10 | Seamlessly integrates FancyBox lightbox into your WordPress blog: Upload, activate, and you're done. Additional configuration optional.
11 |
12 | == Description ==
13 |
14 | Seamlessly integrates FancyBox into your blog: Upload, activate, and you're done. Additional configuration optional.
15 |
16 | You can easily customize almost anything you can think about fancybox lightbox: the border, margin width and color, zoom speed, animation type, close button position, overlay color and opacity and even more advanced option like several options to group images into galleries, and more...
17 |
18 | By default, the plugin will use jQuery to apply FancyBox to ANY thumbnails that link directly to an image. This includes posts, the sidebar, etc, so you can activate it and it will be applied automatically.
19 |
20 | = Further Reading =
21 |
22 | This plugin is developed and maintained by Colorlib. Which is well know for their free WordPress themes. However, now they are looking to extend their presence in plugin development and believe that FancyBox lightbox is a great way to start.
23 |
24 | If you are new to WordPress and want to lear more we have got you covered. Colorlib will teach you have to start a blog or create a website and much more. If you are already familiar with WordPress you likely want to learn how to make it faster and more reliable. That's when you want to look into hosting and more specifically WordPress hosting.
25 |
26 | If you enjoy using FancyBox lightbox for WordPress please leave a [positive feedback](https://wordpress.org/support/plugin/fancybox-for-wordpress/reviews/?filter=5). We are committed to make it the best lightbox plugin for WordPress.
27 |
28 | == Changelog ==
29 | = 3.3.6 - 25.11.2024 =
30 | Fixed: Security issue - Fixed XSS vulnerability in caption and title handling
31 |
32 | = 3.3.5 - 12.11.2024 =
33 | Fixed: Security issue
34 |
35 | = 3.3.4 - 22.03.2024 =
36 | Fixed: Security issue
37 |
38 | = 3.3.3 - 11.05.2021 =
39 | Fixed : Issue with padding and border ( https://github.com/ColorlibHQ/fancybox-for-wordpress/issues/86 )
40 |
41 | = 3.3.2 - 05.03.2021 =
42 | Changed: Upgrade Fancybox to latest version ( https://github.com/ColorlibHQ/fancybox-for-wordpress/issues/95 )
43 | Fixed: Close button not showing up although option is enabled
44 |
45 | = 3.3.1 =
46 | Compatibility with jQuery 3.0
47 |
48 | = 3.3.0 =
49 | Fixed compatibility issue with WordPress 5.6
50 |
51 | = 3.2.9 =
52 | * Added Zoom on Click functionality
53 |
54 | = 3.2.8 =
55 | * Fix property 'title' of undefined when using newer versions of jQuery
56 | * Add option to disable FancyBox on mobile view
57 |
58 | = 3.2.7 =
59 | * Fix for separate gutenberg blocks
60 | * Personalize script handles
61 | * Review dismiss fix
62 |
63 | = 3.2.6 =
64 | * Admin bar overfloat fix
65 | * Tooltip description bug fix
66 | * Add option for caption hide/show
67 |
68 | = 3.2.5 =
69 | * Fix title hide/show option
70 | * Fix extra height on lightbox image wrapper
71 |
72 | = 3.2.4 =
73 | * Removed dashboard news widget
74 |
75 | = 3.2.3 =
76 | * Fix for mobile close on content click
77 | * Fix for mobile close on overlay click
78 |
79 | = 3.2.2 =
80 | * Fix for padding issue when title inside position
81 | * Fix for title color when title is set to inside position
82 |
83 | = 3.2.1 =
84 | * Update toggles
85 | * Added new option to make a gallery for each gutenberg gallery block
86 |
87 | = 3.2.0 =
88 | * Admin UI minor update
89 | * Removed unneeded ie css file
90 | * Added option in Behaviour tab to exclude links that target .pdf files from being displayed in the lightbox
91 |
92 | = 3.1.9 =
93 | * Replace $.fancebox with $.fancyboxforwp.
94 |
95 | = 3.1.8 =
96 | * Fixed "Click to Hide on Overlay only works with Images"
97 | * Fixed "The requested content cannot be loaded" when trying to view page/post in fancybox
98 |
99 | = 3.1.7 =
100 | * Fixed incompatibilty with Envira Gallery
101 | * Fixed incompatibilty with NextGen Gallery
102 |
103 | = 3.1.6 =
104 | * Removed rollback functionality
105 |
106 | = 3.1.5 =
107 | * Added support for mp4 and webp files
108 |
109 | = 3.1.4 =
110 | * Made it work with query string and without query strings.
111 |
112 | = 3.1.3 =
113 | * Fixed "Parse error" - https://wordpress.org/support/topic/no-backend-after-fancybox-update/
114 | * Fixed "Breaks on query strings" - https://wordpress.org/support/topic/url-with-ssl1-fancybox-doesnt-open/
115 | * Fixed "Caption problems" - https://wordpress.org/support/topic/border-not-fitting-and-strange-white-line/
116 |
117 | = 3.1.2 =
118 | * Fixed "All links get the fancybox class"
119 |
120 | = 3.1.1 =
121 | * Removed print_r from fancybox.php
122 |
123 | = 3.1.0 =
124 | * Updated FancyBox library to the latest version
125 | * Changed Admin UI
126 |
127 | = 3.0.12 =
128 |
129 | Fixed errors causes by WordPress SVN.
130 |
131 | = 3.0.7 =
132 |
133 | * Updated Fancybox library
134 | * Updated other libraries this plugins depends on such as jQuery easing and jQuery Mousewheel
135 | * Tested plugin with WordPress 4.6
136 |
137 | = 3.0.6 =
138 | * Fixes to JavaScript code for showing and hiding elements as they are needed in Settings page. (Thanks to jono55 for reporting)
139 |
140 | = 3.0.5 =
141 | * Fixed the Revert Options button.
142 | * Fixed wrong version number being shown on the plugin's settings page.
143 | * Updated plugin and author links in readme and settings page.
144 | * Updated localization catalog (POT file).
145 | * Updated Spanish translation with minor updates.
146 | * Updated Frequently Asked Questions in readme file.
147 | * Removed version number from printed html source code.
148 | * Removed outdated/incomplete translation binaries.
149 |
150 | = 3.0.4 =
151 | * Renamed the setting affected by the security issue mentioned in 3.0.3. This should stop the malicious code from appearing on sites where the plugin is updated without removing the malicious code.
152 |
153 | = 3.0.3 =
154 | * Fixed a security issue. (Thanks to mickaelb for reporting and Konstantin Kovshenin for providing the fix)
155 |
156 | = 3.0.2 =
157 | * Added support for disabling fancybox on individual hyperlinked images by adding class='nolightbox'. (Thanks to Artem Russakovskii)
158 | * Added a link to the github project page in the info tab in the settings page.
159 | * Fixed and cleaned the installation code, new installations of the plugin should work now without need to go to the settings page.
160 | * Fixed false positives in filenames. (Thanks to Artem Russakovskii)
161 | * Fixed incompatibility with wordpress installations where the wp-content directory had been renamed.
162 | * Fixed an issue that could cause the version of the plugin to be removed from settings when deactivating the plugin.
163 | * Improved HTTPS support by using better code to retrieve the plugin url and load files.
164 | * Removed legacy code to suport upgrading settings from 2.x versions of the plugin. This was done to avoid possible issues with clean installations of the plugin.
165 | * Updated some CSS rules in jQuery UI
166 | * Some minor reformatting and cleanup of code (PHP comments, empty lines, )
167 |
168 | = 3.0.1 =
169 | * Updated: Localization catalog updated.
170 | * Updated: Spanish localization.
171 | * Fixed: Minor change in settings page that may fix options page being invisible in some cases.
172 |
173 | = 3.0.0 =
174 | * New: Fancybox v1.3.4 support This includes many new options, like title position.
175 | * New: Additional FancyBox Calls option that lets the user write their own additional code to use FancyBox on specific areas of the blog, like email subscription buttons, login, etc.
176 | * New: Revert settings button added to options page. When pressed, a confirmation dialog will appear.
177 | * New: Improvements in options page, irrelevant settings (settings that depend on a disabled setting) will hide on real time, meaning a cleaner look in the options page.
178 | * Updated: New cleaner code to select thumbnails on which to apply the fancbox script.
179 | * Updated: Many parts of plugins rewriten with many improvements in code.
180 | * Updated: Options are now serialized into a single row in the database.
181 | * Fixed: Plugin should be SSL friendly from now on.
182 | * Fixed: Do not call jQuery option in troubleshooting section didn't work if easing was enabled.
183 | * Fixed: Load at footer options should work better now.
184 | * Fixed: CSS external files now addded with wp_enqueue_style().
185 | * Fixed: has_cap error: User level value for options page removed, using role now instead. Thanks to [vonkanehoffen](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-has_cap-fix).
186 | * Removed: jQuery "noConflict" Mode option removed bacause jQuery bundled with WordPress always used noConflict.
187 | * Removed: Base64 data ("data:image/gif;base64,AAAA") in left and right fancybox link's backgrounds: It didn't seem to be working and it is usually regarded as suspicious code, so it has been removed.
188 |
189 | = 2.7.5 =
190 | * Fixed: Callback arguments are no longer added as "null" when they are not set in options page.
191 |
192 | = 2.7.4 =
193 | * Fixed: Little error tagging 2.7.3, a file didn't upload and broke options page.
194 | * Update: Language POT file
195 |
196 | = 2.7.3 =
197 | * Fixed: Settings not saving in some browsers. Thanks to [supertomate](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-save-changes-button-doesnt-submit-form?replies=7#post-1765041)
198 | * Fixed: JS being added to other plugins' configuration pages. Thanks to [Brandon Dove](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-theres-a-problem-with-is_plugin_page?replies=1#post-1888828)
199 | * Added: Support section in options page with better information
200 |
201 | = 2.7.2 =
202 | * Fixed: Layout problem in options page in WordPress 2.9
203 |
204 | = 2.7.1 =
205 | * Fixed: Z-index issue was left out in previus release
206 | * Fixed: Setting to close fancybox when clicking on the overlay wasn't available in the menu
207 | * Fixed: Frame width and height options are now in the "Other" tab
208 | * Fixed: Tabs now translated in Spanish localization
209 |
210 | = 2.7.0 =
211 | * New: Fancybox v1.2.6 support
212 | * New: New Admin page with tabs for better organization of all the options
213 | * Added: Setting to change the speed of the animation when changing gallery items
214 | * Added: Setting to enable or disable Escape key to close Fancybox
215 | * Added: Setting to show or hide close button
216 | * Added: Setting to close fancybox when clicking on the overlay
217 | * Added: Setting to enable or disable callback function on start, show and close events
218 | * Added: Italian translation
219 | * Added: Russian translation
220 | * Added: "Load JS at Footer" option
221 | * Added: New Changelog tab in Wordpress Plugin Directory
222 | * Fixed: Some typos in Spanish translation
223 | * Fixed: FancyBox not showing above some elements (those with zindex higher than 90)
224 | * Fixed: JavaScript code being included in all admin pages instead of just the plugin's options page.
225 | * Fixed: noClonflict preventing frames to work in Fancybox
226 | * Fixed: Custom frame width and height not being applied
227 | * Updated: Japanese translation
228 | * Updated: JS is now Minified instead of Packed
229 |
230 | = 2.6.0 =
231 | * Optimized the JavaScript code used to apply FancyBox
232 | * Updated Custom Expression section in Options Page
233 | * Fixed uppercase image extensions not being recognized
234 | * CSS is now loaded before the JavaScript for better parallelization
235 | * jquery.easing.1.3.js compressed (from 8,10kb to 3,47kb) and renamed to jquery.easing.1.3.pack.js
236 | * Added Turkish translation (some strings missing)
237 | * Added Japanese translation (some strings missing)
238 | * Updated Spanish translation
239 | * Updated to use new Plugin API in WP2.7 for better forward compatibility
240 | * Removed /wp-content/ reference in fancybox.php for better WP2.8 support
241 | * Optimized some code readability
242 |
243 | = 2.5.1 =
244 | * Fixed the plugin not working when selecting Gallery Type "By Post"
245 | * Fixed a bug that would prevent the title in the IMG tag from being copied to the A tag in some cases
246 | * Fixed the Custom Expression showing in the Admin panel when other gallery types are selected
247 |
248 | = 2.5 =
249 | * Support for localizations (Spanish and German localizations included)
250 | * Some parts of the code completely rewritten
251 | * Fixed fancybox files being loaded on the admin pages
252 | * New options for close button position, custom jquery expressions, iframe content
253 | * Options page mostly rewritten, better organized
254 | * Medium/advanced, troubleshooting/uninstall options collapsable, hidden by default
255 | * Better support guidelines and links on options page
256 | * Settings link on the Manage plugins page
257 | * Custom expression hidden when not used
258 | * Title atribute on IMG tags is now copied to its parent A tag for better caption support
259 | * New uninstall options and better handling of new options when installing/updating
260 | * Cleans any old options no longer needed when plugin is activated/updated
261 |
262 | = 2.2 =
263 | * Updated to FancyBox 1.2.1
264 | * Added new settings to Options Page: Easing, padding size, border color
265 | * Tweaked CSS to prevent some themes from adding unwanted styles to fancybox (especially background colors and link outlines)
266 | * Options Page reorganized in three sections: Appearance, Behaviour and Troubleshooting Settings, to make settings easier to find
267 |
268 | = 2.1.1 =
269 | * Fixed a new bug introduced in 2.1 that prevented options from being saved. Sorry about the mess :(
270 |
271 | = 2.1 =
272 | * Fixed a major bug in 2.0 that prevented it from working until plugin's options page was visited
273 | * Added two options for troubleshooting that might help in some cases if the plugin doesn't work: disable jQuery noConflict and skip jQuery call
274 | * Additional fixes to caption CSS: Captions should look better now in Hybrid theme, child themes, and other situations where general table elements are improperly styled
275 |
276 | = 2.0 =
277 | * Brand new Options Page in Admin Panel lets you easely customize many options: fancybox auto apply, image resize to fit, opacity fade while zooming, zoom speed, overlay on/off, overlay color, overlay opacity, close fancybox on image click, keep fancybox centered while scrolling
278 | * CSS completely updated for FancyBox 1.2.0
279 | * Captions fixed in IE
280 |
281 | = 1.3 =
282 | * Shadows and Close button should be fixed now
283 |
284 | = 1.2 =
285 | * Updated to FancyBox 1.2.0
286 | * Uses packed version of the JavaScript file (8kb instead of 14kb)
287 |
288 | = 1.1 =
289 | * Fixed FancyBox not being applied to .jpeg files
290 | * Fixed "Click to close" overlay text
291 | * Moved images to /img/ folder
292 |
293 |
294 | == Upgrade Notice ==
295 |
296 | = 3.0.5 =
297 | Fixes the Revert options button and wrong version number on settings page. Also updates links in settings page and readme file.
298 |
299 |
300 | == Installation ==
301 |
302 | 1. Upload the `fancybox-for-wordpress` folder to the `/wp-content/plugins/` directory
303 | 2. Activate the plugin through the 'Plugins' menu in WordPress
304 | 3. That's it, FancyBox will be automatically applied to all your image links and galleries.
305 | 4. If you want to customize a bit the look and feel of FancyBox, go to the Options Page under General Options in the WordPress Admin panel
306 |
307 |
308 | == Screenshots ==
309 |
310 | 1. Simple example of fancybox on a post. [Live demo here](http://blog.moskis.net/2012/01/20/teclado-apple-en-windows-7/)
311 | 2. Basic settings on Options Page in the Admin Panel. This makes it very easy to customize the plugin to your needs
312 |
313 |
314 | == Frequently Asked Questions ==
315 |
316 | **- There was a vulnerability detected in versions 3.0.2 and lower, is my site in danger?**
317 |
318 | This vulnerability was patched in version 3.0.3.
319 |
320 | An additional change was introduced in version 3.0.4 to make sure that the malicious code can't be printed to visitors even if it still remains in the database.
321 |
322 | If you think your site might still be using a vulnerable version of the plugin please log in to your WordPress admin panel, disable the plugin and clear any cache if your site uses a cache system.
323 |
324 | If you wish to continue using the plugin, check that the plugin is updated to the latest version from your admin panel and enable it. Then check the plugin's settings page and make sure there's no abnormal code in any of the fields, especially on the Extra Calls tab. If you are not sure about the code you see in the settings please use the Revert to Defaults button at the bottom of the settings page.
325 |
326 | If you think your site might be compromised in any other way check this guide: [WordPress Codex - FAQ My site was hacked](http://codex.wordpress.org/FAQ_My_site_was_hacked).
327 |
328 | **- Is the FancyBox script vulnerable or unsafe?**
329 |
330 | No, there's nothing wrong with the actual FancyBox script that i know of.
331 |
332 | The vulnerability detected in versions 3.0.2 and lower of the "FancyBox for WordPress" plugin was limited to the plugin itself. Other FancyBox plugins or manual implementations of FancyBox are unrelated to this issue.
333 |
--------------------------------------------------------------------------------
/lib/admin-tab-appearance.php:
--------------------------------------------------------------------------------
1 | | 9 | 11 | 12 | 13 | | 14 |15 | 32 | | 33 |
|---|---|
| 36 | 38 | 39 | 40 | | 41 |42 | 58 | | 59 |
| 62 | 64 | 65 | 66 | | 67 |68 | 91 | | 92 |
| 95 | 97 | 98 | 99 | | 100 |101 | 117 | | 118 |
| 121 | 123 | 124 | 125 | | 126 |127 | 160 | | 161 |
| 164 | 166 | 167 | 168 | | 169 |170 | 227 | | 228 |
| 231 | 233 | 234 | 235 | | 236 |237 | 253 | | 254 |
| 257 | 259 | 260 | 261 | | 262 |263 | 280 | | 281 |
| 7 | 9 | 10 | 11 | | 12 |13 | 44 | | 45 |
|---|---|
| 48 | 50 | 51 | 52 | | 53 |54 | 73 | | 74 |
| 77 | 79 | 80 | 81 | | 82 |83 | 149 | | 150 |
FancyBox\'s API & Options page.', 'mfbfw' ) ); ?>
156 || 160 | 162 | 163 | 164 | | 165 |166 | 200 | | 201 |
|---|
206 | 207 |
208 | 209 | 210 || 215 | 217 | 218 | 219 | | 220 |221 | 237 | | 238 |
|---|
when you deactivate the plugin, all its settings will be removed from the database.', 'mfbfw' ) ); ?>
243 || 247 | "> 249 | 250 | 251 | | 252 |253 | 269 | | 270 |
|---|
REL attribute)"
311 | msgstr ""
312 |
313 | #: lib/admin-tab-galleries.php:26
314 | msgid ""
315 | "Make a gallery for each post (will only work if your theme uses class="
316 | "\"post\" on each post, which is common in WordPress"
317 | msgstr ""
318 |
319 | #: lib/admin-tab-galleries.php:31
320 | msgid "Use a custom expression to apply FancyBox"
321 | msgstr ""
322 |
323 | #: lib/admin-tab-galleries.php:35 lib/admin-tab-other.php:70
324 | #: lib/admin-tab-other.php:78 lib/admin-tab-other.php:86
325 | #: lib/admin-tab-other.php:94 lib/admin-tab-other.php:102
326 | #: lib/admin-tab-other.php:137
327 | msgid "Click to start editing"
328 | msgstr ""
329 |
330 | #: lib/admin-tab-galleries.php:39
331 | msgid "Custom expression guidelines:"
332 | msgstr ""
333 |
334 | #: lib/admin-tab-galleries.php:41
335 | msgid ""
336 | "· The custom expression has to apply class=\"fancybox\" "
337 | "to the links where you want to use FancyBox. Do not call the "
338 | "fancybox() function here, the plugin does this for you."
339 | msgstr ""
340 |
341 | #: lib/admin-tab-galleries.php:43
342 | msgid ""
343 | "· The jQuery addClass() function is a good way to add "
344 | "the class to the desired links conserving any existing class."
345 | msgstr ""
346 |
347 | #: lib/admin-tab-galleries.php:45
348 | msgid ""
349 | "· You can use getTitle() in your expression to copy the "
350 | "title attribute from the IMG tag to the A tag, so "
351 | "that FancyBox can show captions."
352 | msgstr ""
353 |
354 | #: lib/admin-tab-galleries.php:47
355 | msgid ""
356 | "· You can use jQuery(thumbnails) like in the example "
357 | "expression to apply FancyBox to thumbnails that link to these extensions: "
358 | "BMP, GIF, JPG, JPEG, PNG (both lowercase and uppercase)."
359 | msgstr ""
360 |
361 | #: lib/admin-tab-galleries.php:49
362 | msgid ""
363 | "· If you want to do it manually you can use something like "
364 | "jQuery(\"a:has(img)[href$='.jpg']\") or whatever works for you."
365 | msgstr ""
366 |
367 | #: lib/admin-tab-galleries.php:51
368 | msgid ""
369 | "See the jQuery "
370 | "Documentation for more help."
371 | msgstr ""
372 |
373 | #: lib/admin-tab-galleries.php:53
374 | msgid "Examples:"
375 | msgstr ""
376 |
377 | #: lib/admin-tab-other.php:1
378 | msgid "Other Settings (advanced)"
379 | msgstr ""
380 |
381 | #: lib/admin-tab-other.php:2
382 | msgid "These are additional settings for advanced users."
383 | msgstr ""
384 |
385 | #: lib/admin-tab-other.php:6
386 | msgid "Dimensions"
387 | msgstr ""
388 |
389 | #: lib/admin-tab-other.php:14
390 | msgid "Auto detect dimensions (default: on)"
391 | msgstr ""
392 |
393 | #: lib/admin-tab-other.php:17
394 | msgid ""
395 | "Only works with Ajax and Inline content! "
396 | "Flash dimensions won't be autodetected so specify them below if necessary. "
397 | "If you want to insert several pieces of flash content with different "
398 | "dimensions you will have to use the Additional FancyBox Calls"
399 | "strong> option."
400 | msgstr ""
401 |
402 | #: lib/admin-tab-other.php:23
403 | msgid ""
404 | "Width for iframe and swf content. Also set for inline content if "
405 | "autoDimensions is disabled (default: 560)"
406 | msgstr ""
407 |
408 | #: lib/admin-tab-other.php:28
409 | msgid ""
410 | "Height for iframe and swf content. Also set for inline content if "
411 | "autoDimensions is disabled (default: 340)"
412 | msgstr ""
413 |
414 | #: lib/admin-tab-other.php:35
415 | msgid "Load JavaScript in Footer"
416 | msgstr ""
417 |
418 | #: lib/admin-tab-other.php:43
419 | msgid ""
420 | "Loads JavaScript at the end of the blog's HTML (experimental) (default: off)"
421 | msgstr ""
422 |
423 | #: lib/admin-tab-other.php:46
424 | msgid ""
425 | "This option won't be recognized if you use Parallel Load "
426 | "plugin. In that case, you can do this from Parallel Load's options."
427 | msgstr ""
428 |
429 | #: lib/admin-tab-other.php:53
430 | msgid "Callbacks"
431 | msgstr ""
432 |
433 | #: lib/admin-tab-other.php:61
434 | msgid "Enable callbacks (default: off)"
435 | msgstr ""
436 |
437 | #: lib/admin-tab-other.php:63
438 | msgid "Enabling this will show additional settings."
439 | msgstr ""
440 |
441 | #: lib/admin-tab-other.php:67
442 | msgid ""
443 | "Callback on Start event: Will be called right before "
444 | "attempting to load the content"
445 | msgstr ""
446 |
447 | #: lib/admin-tab-other.php:75
448 | msgid ""
449 | "Callback on Cancel event: Will be called after loading is "
450 | "canceled"
451 | msgstr ""
452 |
453 | #: lib/admin-tab-other.php:83
454 | msgid ""
455 | "Callback on Complete event: Will be called once the content "
456 | "is displayed"
457 | msgstr ""
458 |
459 | #: lib/admin-tab-other.php:91
460 | msgid ""
461 | "Callback on CleanUp event: Will be called just before "
462 | "closing"
463 | msgstr ""
464 |
465 | #: lib/admin-tab-other.php:99
466 | msgid ""
467 | "Callback on Closed event: Will be called once FancyBox is "
468 | "closed"
469 | msgstr ""
470 |
471 | #: lib/admin-tab-other.php:107 lib/admin-tab-other.php:142
472 | msgid "Example:"
473 | msgstr ""
474 |
475 | #: lib/admin-tab-other.php:110
476 | msgid "Leave empty any speciic callbacks you don't need to use."
477 | msgstr ""
478 |
479 | #: lib/admin-tab-other.php:118
480 | msgid "Extra FancyBox Calls (advanced)"
481 | msgstr ""
482 |
483 | #: lib/admin-tab-other.php:119
484 | msgid ""
485 | "Here you can add as many additional calls to fancybox as you want, with "
486 | "different settings. For example, if you want to use fancybox with iframes or "
487 | "ajax on any specific link, you can configure those calls here without "
488 | "affecting the settings for images."
489 | msgstr ""
490 |
491 | #: lib/admin-tab-other.php:120
492 | msgid ""
493 | "For information on the options available you can use here see FancyBox's API & Options page."
495 | msgstr ""
496 |
497 | #: lib/admin-tab-other.php:124
498 | msgid "Additional FancyBox Calls"
499 | msgstr ""
500 |
501 | #: lib/admin-tab-other.php:132
502 | msgid "Additional FancyBox Calls (default: off)"
503 | msgstr ""
504 |
505 | #: lib/admin-tab-other.php:157
506 | msgid "Troubleshooting Settings"
507 | msgstr ""
508 |
509 | #: lib/admin-tab-other.php:159
510 | msgid ""
511 | "Settings in this section should only be changed if you are having problems "
512 | "with the plugin!"
513 | msgstr ""
514 |
515 | #: lib/admin-tab-other.php:161
516 | msgid ""
517 | "If the plugin doesn't seem to work, first you should check for other plugins "
518 | "that may be conflicting with this one, especially other Lightbox, Slimbox, "
519 | "etc. Make sure all your plugins and WordPress itself are up to date (this "
520 | "plugin has only been tested in WordPress 2.7 and above)."
521 | msgstr ""
522 |
523 | #: lib/admin-tab-other.php:162
524 | msgid ""
525 | "Change them one at a time and test to see if they help. Remember that having "
526 | "a cache plugin may prevent changes from taking effect immidiately, so clear "
527 | "cache after saving changes here or deactivate cache until you finish editing "
528 | "these options."
529 | msgstr ""
530 |
531 | #: lib/admin-tab-other.php:167
532 | msgid "Do not call jQuery"
533 | msgstr ""
534 |
535 | #: lib/admin-tab-other.php:175
536 | msgid ""
537 | "Skip jQuery call. Use this only if jQuery is being loaded twice (default: "
538 | "off)"
539 | msgstr ""
540 |
541 | #: lib/admin-tab-other.php:182
542 | msgid "Uninstall"
543 | msgstr ""
544 |
545 | #: lib/admin-tab-other.php:183
546 | msgid ""
547 | "Like many other plugins, FancyBox for WordPress stores its settings on your "
548 | "WordPress' options database table. Actually, these settings are not using "
549 | "more than a couple of kilobytes of space, but if you want to completely "
550 | "uninstall this plugin, check the option below, then save changes, and "
551 | "when you deactivate the plugin, all its settings will be "
552 | "removed from the database."
553 | msgstr ""
554 |
555 | #: lib/admin-tab-other.php:187
556 | msgid "Remove settings"
557 | msgstr ""
558 |
559 | #: lib/admin-tab-other.php:195
560 | msgid ""
561 | "Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. "
562 | "(default: off)"
563 | msgstr ""
564 |
565 | #: lib/admin-tab-support.php:1
566 | msgid "Help with Fancybox"
567 | msgstr ""
568 |
569 | #: lib/admin-tab-support.php:3
570 | msgid ""
571 | "If you have problems or questions about FancyBox itself (and not this "
572 | "WordPress plugin), please start with these links: How-To & Documentation.