attosoft
efeee931c2
Updated resources before the release (Updated to version 1.9)
2012-10-11 07:38:56 +00:00
attosoft
6415dfa444
Uses minified resources even when WP_DEBUG mode
...
* Inserted file comment to `thickbox.min.js` minified with [https://developers.google.com/closure/compiler/ Closure Compiler]
* Updated `thickbox.min.css` minified with [http://www.phpied.com/cssmin-js/ cssmin.js]
* Added `download.min.php` minified with [http://blog.builtbyprime.com/php/tiny-php-a-fun-php-minifier Tiny PHP]
* Deleted `thickbox.js`, `thickbox.css` and `download.php`
2012-10-11 07:30:53 +00:00
attosoft
8eaa18df7e
Minor updates on auto-thickbox.php and readme.txt
...
* auto-thickbox.php
* Updated "Description"
* Modified a notation about Auto Thickbox
* readme.txt
* s/iFrame/iFramed/g
* Reordered items order in FAQ
* Inserted comment tag for code block after list
2012-10-11 05:43:37 +00:00
attosoft
f07a809b58
CHANGED: Modified Settings screen
...
* Added "Preview" links with ThickBox to "General - Display Style" setting
* Resolved a conflict with resizing ThickBox code in media-upload.js
* Defaults to "JavaScript" option instead of "WordPress Filters" option in "General - Auto ThickBox" setting, because ThickBox cannot be applied to codes output by current theme or plugins without using WordPress filters
* Added "Image links to images" option to "General - Auto ThickBox" setting. It is useful when showing only image links with other than ThickBox.
* Added the condition code to both WordPress filters callback and custom JavaScript
* Changed "Use WordPress built-in thickbox.js/css" checkbox to "Modified ThickBox / Built-in ThickBox" drop-down list in "General - ThickBox Resources"
* From `<input type="checkbox" />` to `<select><option></option></select>`
* Selects disabled "Footer" option when selecting "Built-in ThickBox" option
2012-10-11 01:13:02 +00:00
attosoft
8a902905ed
CHANGED: Replaced the word "Content" with "HTML"
...
* Replaced "Content" with "HTML"
* s/Content/HTML/g
* Added "_img"
* s/auto_resize/auto_resize_img/g
* s/margin_win/margin_win_img/g
* Replaced "_content" with "_html"
* s/auto_resize_content/auto_resize_html/g
* s/move_content/move_html/g
* s/resize_content/resize_html/g
* s/bgcolor_content/bgcolor_html/g
* s/margin_win_content/margin_win_html/g
* Added transition code of options for v1.8 or earlier
2012-10-07 23:26:57 +00:00
attosoft
9fb49e5820
NEW: Enhanced Auto Resize feature so that it works even when showing iframe/ajax/inline content. Changed "Enabled" option to "Image/Content" option at "General - Auto Resize" setting, and added "View - Margin - Window (Content)" option.
2012-10-07 22:55:48 +00:00
attosoft
310c6029c4
NEW: "General - Mobile Support" options that has "No Window Margin"/"No ThickBox" option and "Width"/"Height" option (See also [605631] and [604041])
2012-09-30 05:26:44 +00:00
attosoft
eed5a8fd8d
NEW: "View - Margin - Window" option
...
* Updated `readme.txt`
* Added "mobile", "iphone", "android" tags, and removed "semiologic", "simple" tags
* Added `screenshot-5.jpg` that is a screenshot on iPhone
* Updated "Changelog" section
* Updated `thickbox.min.js`
2012-09-29 05:42:14 +00:00
attosoft
091de8bb1a
FIXED: Gallery images cannot be displayed in gallery style with [ http://wordpress.org/extend/plugins/cleaner-gallery/ Cleaner Gallery]
...
WordPress Gallery outputs gallery-id class in `galleryid-\d` format, but Cleaner Gallery outputs it in `gallery-\d` format. Therefore the plugin failed to get gallery-id from `class` attribute, and overwrote existing `rel` attribute with empty string. Now the plugin uses `id` attribute instead of `class` attribute.
2012-09-24 03:42:48 +00:00
attosoft
90b176f864
Updated resources before the release
...
* Updated to version 1.8
* Tested up to WordPress 3.4.2
* Updated readme.txt
* Reupdated translations from source
2012-09-23 17:40:43 +00:00
attosoft
51100b8c25
Trivial changes on PHP files and readme.txt
...
* Maintained several links
* Removed `ATBP_NAME` and `ATBP_SLUG` variables
* Renamed `ATBP_VER` variable to `AUTO_THICKBOX_PLUS_VER`
* Changed Settings page title from "Options" to "Settings"
2012-09-23 17:28:33 +00:00
attosoft
ac118febc7
Improved localization support. Modified custom __() and _e() functions to accept variable-length argument, then removed unnecessary _s() and _es() functions. Note that Poedit extracts functions with common name such as __(), _e(), esc_attr__() and esc_attr_e() generally.
2012-09-23 14:35:31 +00:00
attosoft
2eb551d1f2
NEW: "Mouse Wheel - Image - Scroll" option and "Mouse Wheel - Background - Scroll/None" option
2012-08-14 19:55:39 +00:00
attosoft
b91ac43927
some minor changes
...
* Replaced 'resizable' with 'scalable' class
* Moved from `tb_options.dl_file` to `thickboxL10n.forceDL` variable
* Outputs the extension instead of file when file type is unsupported in Force Download
2012-08-14 19:39:52 +00:00
attosoft
14076fbb82
NEW: "Action - Mouse Click - Image - Expand / Shrink" option. You can expand an image to actual size then shrink it to fit window, and vice versa.
2012-08-14 00:43:36 +00:00
attosoft
e07b3e8bb0
NEW: "Action - Mouse Click - Image - Download (beta)" option. You can click an image to download it. This is experimental feature so I'm not sure whether it works on all server environments.
...
* Added download.php that is Force Download script
* Updated translations
2012-08-12 23:56:14 +00:00
attosoft
f57309eeca
Outputs thickboxL10.first/last/open only when needed (i.e. when selected "Mouse Click - Image - Next, !Prev/Next or Open" option)
2012-08-11 05:09:15 +00:00
attosoft
2ada5e6e39
NEW: "Action - Mouse Click - Image - Open" option. You can click an image to open it in new tab/window.
2012-08-11 04:36:05 +00:00
attosoft
9fd8b7f3d1
NEW: "View - Size - Window (Content) - !Width/Height" option. You can change the default size of ThickBox window with non-image, and it can be overridden with width/height parameters in URL.
2012-08-02 09:47:09 +00:00
attosoft
bbb47aa894
Combined multiple <script> tags output into one for readability, and added comments.
2012-08-01 13:06:58 +00:00
attosoft
ed4fed7b48
Updated resources before the release
...
* readme.txt (Changelog)
* All translations
* Added untranslated texts
* Updated Persian and Japanese translations
* Some improvements for Persian to translate 'WordPress', 'JavaScript', etc.
2012-08-01 04:53:52 +00:00
attosoft
5a7e024609
FIXED: 'First'/'Last' are not translated in !ThickBox window because WordPress translations are split into locale.pot and locale-admin.pot since WordPress 3.4. So 'First'/'Last' had translated only in options page.
2012-08-01 01:23:54 +00:00
attosoft
9a7c667c65
_s() and _es() functions accepts variable-length arguments instead of array so that Poedit can extract strings.
2012-07-31 09:15:26 +00:00
attosoft
877eb960a2
NEW: "General - Auto !ThickBox - WordPress !Filters/JavaScript/Disabled" option. Auto !ThickBox had worked only in content, excerpt, comments and widget tests due to WordPress filters (hooks). Now using JavaScript, the feature can work in whole page such as front page, header/footer, contents output by themes or other plugins. And you can also disable it if unnecessary.
...
Ported PHP codes below using `filter_anchor` filter to JavaScript.
* Add 'thickbox' class to links
* Add 'TB_iframe' to external URL
* "Gallery Images" option (Set `rel="gallery-id"`)
* "Text links to images" option
* "Links with target attribute" option
* "No ThickBox" option
2012-07-31 05:18:39 +00:00
attosoft
f9953dab7e
CHANGED: Places not only thidkbox.js but also custom <script>/<style> tags depending on "General - ThickBox Resources - Header/Footer" option. And outputs <!-- Auto ThickBox Plus --> comment before the custom tags for readability.
2012-07-31 04:07:17 +00:00
attosoft
1b8d9df41d
FIXED: Workaround for the issue that Media Uploader does not work in WordPress 3.3.3 or later
...
* [http://core.trac.wordpress.org/changeset/21048/trunk/wp-admin/media-upload.php Changeset 21048 for trunk/wp-admin/media-upload.php – WordPress Trac]
* [http://www.agentwp.com/fix-cheatin-uh-error-in-wordpress Fix Cheatin' uh? Error in WordPress]
* [http://wordpress.org/support/topic/cheatin-uh-when-trying-to-upload-media-via-3rd-party-theme WordPress › Support » Cheatin uh? (When trying to upload media via 3rd party theme)]
2012-07-27 13:12:51 +00:00
attosoft
359cb42a4c
Refactored PHP codes as follows
...
* `$util->esc_attr()` did not return a value before, but now returns
* Removed unnecessary calls for `esc_attr()`
* Moved `plugins_url()` from auto-thickbox.php to auto-thickbox-utils.php
* Refined translation texts
* `$texts[]`, 'Font Family', 'Font Size'
* Defined `ATBP_NAME`, `ATBP_SLUG`, `ATBP_VER` constants
* Inlined/Extracted some variables
* Maintained comments, etc.
2012-07-27 03:13:28 +00:00
attosoft
9d71afa823
CHANGED: Added auto-thickbox-utils.php that contains utility functions below. All translate() functions retrieves the translated string from both 'auto-thickbox' and 'default' domain.
...
* __(), _e(), _s(), _es()
* Removed gettext() in auto-thickbox.php
* esc_attr(), esc_attr__(), esc_attr_e()
* Removed esc_attr() and esc_attr_e() in auto-thickbox-options.php
* disabled(), checked()
* Removed disabled() and checked() in auto-thickbox-options.php
2012-07-26 16:22:12 +00:00
attosoft
3f3d457f46
Change "Gallery - Caption" item to "Image - Caption" item in "Text - Caption" option
...
* Support also Caption of an image that is not in WordPress Gallery
* Fix: Remove whitespace from both ends of Gallery Caption (regression by [545261] in v1.5)
2012-05-29 00:32:22 +00:00
attosoft
90e19c3fda
Update resources before release
...
* Update readme.txt (Support Me, FAQ, etc.)
* Update and maintain translations
* s/Default Display Style/Display Style/g
* s/Contact Me/Contact/g
* Remove attosoft.info URLs from translation files other than Japanese
* Update URLs for Support Forum, Donate
2012-05-28 15:51:16 +00:00
attosoft
4407634a08
Add About metabox to options page, and add Localization section to readme.txt
2012-05-28 15:21:35 +00:00
attosoft
9e12eef401
Refactoring PHP and JavaScript codes
2012-05-25 14:56:25 +00:00
attosoft
be99fece52
Replace "TB_iframe=true" with "TB_iframe". ThickBox does not check a value of "TB_iframe" query in fact. So ThickBox opens as iframe even when "TB_iframe=false".
2012-05-25 14:42:22 +00:00
attosoft
c8f60368a3
Add class="thickbox" to links automatically when URL contains "TB_iframe=true" or "#TB_inline" (i.e. class="thickbox" can be omitted in iframe/ajax content)
2012-05-25 14:30:21 +00:00
attosoft
6f06cba2d9
Improve Media Uploader called from Images options.
...
* Uploaded images are shown in "Gallery" tab
* Insert a post with custom post type, uploaded images will be attached to it
* Replace 'Insert into Post' with 'Insert Image'
2012-05-25 08:58:05 +00:00
attosoft
968aeba10e
Add "Border - WordPress Gallery" option
2012-05-24 05:17:34 +00:00
attosoft
eb0cb432fd
Separate border property options into border-width, border-style and border-color property options
2012-05-24 04:45:01 +00:00
attosoft
edff5afdcf
Add "Default Display Style - Set a different gallery-id for each WordPress Gallery" option. You can use "Gallery Images" style in WordPress Gallery even when using "Single Image" style.
2012-05-20 13:32:39 +00:00
attosoft
5d5380d4e6
Add "General - No ThickBox" option. You can specify class attribute names that do not apply ThickBox. e.g. nothickbox, no_thickbox
2012-05-20 13:23:30 +00:00
attosoft
28652e6232
Add "General - Auto ThickBox - Links with target attribute" option. class="thickbox" is not added to links with target attribute by default.
2012-05-20 13:05:06 +00:00
attosoft
bc62f4c4ba
Refine Options page
...
* "Default Display Style" option - Update control label
* "ThickBox on Text Links" option - Change from radio button to checkbox
* Page title, CSS, etc.
2012-05-20 12:56:54 +00:00
attosoft
0dc053a9ca
Update resources before release
2012-05-18 05:52:50 +00:00
attosoft
2ed7e788d0
Add Effect - !Title/Caption - Hide initially option
2012-05-18 03:51:53 +00:00
attosoft
4e9bb70e3a
Add Effect - !Title/Caption - !Zoom/Slide/Fade/None options. !Title and caption are showed/hidden by hovering the mouse over ThickBox window.
2012-05-18 00:53:13 +00:00
attosoft
942544ff38
Add General - ThickBox Resources - !Header/Footer option. You can place ThickBox script in header/footer. If you use [ http://headjs.com/ Head JS], select "Footer" at the option.
2012-05-12 04:15:59 +00:00
attosoft
ef98ade170
trivial improvements
...
* Replace `if (tb_options)` with `jQuery(function() {})` in `<script>` output
* Change `caption` argument to `elem` in tb_show function
* Not bind `mousewheel`event handler in Gallery Images
2012-05-12 00:41:45 +00:00
attosoft
dc6ea9dec5
Trivial improvements on Mouse Click action. When Mouse Click action is !Prev/Next, Close link is displayed on left/right sides in a gallery that contains only one image.
2012-05-11 04:14:33 +00:00
attosoft
f1278d5aec
Update resources (readme.txt, PHP header)
2012-03-29 16:56:07 +00:00
attosoft
ee29c1c13c
Move <script src='thickbox.js'> tag from footer to header. Now ThickBox works in themes without calling wp_footer() function.
2012-03-29 13:59:13 +00:00
attosoft
7e6e62572a
Fix: Close/Loading image paths are incorrect when using built-in ThickBox in WordPress 3.1.4 or earlier. Declared tb_pathToImage and tb_closeImage in footer.
2012-03-29 13:06:43 +00:00